|
Foxit PDF SDK
|
Public 类型 | |
| enum | OCGState { e_OCGStateOn = 0, e_OCGStateOff = 1, e_OCGStateToggle = 2 } |
| 当设置OCG状态动作被触发时要执行的设置OCG状态的枚举。 更多... | |
Public 类型 继承自 foxit::pdf::actions::Action | |
| enum | NewWindowFlag { e_NewWindowFlagFalse = 0, e_NewWindowFlagTrue = 1, e_NewWindowFlagNone = 2 } |
| 新窗口标志枚举。 更多... | |
| enum | Type { e_TypeUnknown = 0, e_TypeGoto = 1, e_TypeGoToR = 2, e_TypeGoToE = 3, e_TypeLaunch = 4, e_TypeThread = 5, e_TypeURI = 6, e_TypeSound = 7, e_TypeMovie = 8, e_TypeHide = 9, e_TypeNamed = 10, e_TypeSubmitForm = 11, e_TypeResetForm = 12, e_TypeImportData = 13, e_TypeJavaScript = 14, e_TypeSetOCGState = 15, e_TypeRendition = 16, e_TypeTrans = 17, e_TypeGoTo3DView = 18 } |
| 动作类型枚举。 更多... | |
Public 成员函数 | |
| SetOCGStateAction (const Action &action) | |
| 构造函数,使用父类对象。 更多... | |
| OCGState | GetOCGState (int index) const |
| 获取OCG的状态。 更多... | |
| objects::PDFDictionaryArray | GetOCGStateArray (int index) const |
| 获取OCG字典数组。 更多... | |
| int | GetOCGStateCount () const |
| 获取OCG状态的数量。 更多... | |
| int | InsertOCGStates (const PDFDoc &document, int index, OCGState state, const objects::PDFDictionaryArray &ocg_dict_array) |
| 将OCG状态插入到动作中。 更多... | |
| bool | IsRadioButtonStatePreserved () const |
| 获取单选按钮保留状态。 更多... | |
| void | RemoveOCGStates (int index) |
| 移除OCG状态。 更多... | |
| bool | ReplaceOCGStates (const PDFDoc &document, int index, const objects::PDFDictionaryArray &ocg_dict_array) |
| 替换OCG状态数组。 更多... | |
| void | SetRadioButtonStatePreserved (bool is_preserved) |
| 设置单选按钮保留状态。 更多... | |
Public 成员函数 继承自 foxit::pdf::actions::Action | |
| Action (const PDFDoc &document, objects::PDFDictionary *action_dict) | |
| 构造函数,带参数。 更多... | |
| Action (const Action &action) | |
| 构造函数,使用另一个动作对象。 更多... | |
| ~Action () | |
| 析构函数。 | |
| objects::PDFDictionary * | GetDict () const |
| 获取当前对象的PDF字典。 更多... | |
| PDFDoc | GetDocument () |
| 获取当前动作所属的PDF文档。 更多... | |
| Action | GetSubAction (int index) |
| 按索引获取子动作。 更多... | |
| int | GetSubActionCount () |
| 获取子动作的数量。 更多... | |
| Type | GetType () |
| 获取动作类型。 更多... | |
| void | InsertSubAction (int index, const Action &sub_action) |
| 在指定索引位置插入新的子动作。 更多... | |
| bool | IsEmpty () const |
| 检查当前对象是否为空。 更多... | |
| bool | operator != (const Action &other) const |
| 不等于操作符。 更多... | |
| Action & | operator= (const Action &other) |
| 赋值操作符。 更多... | |
| bool | operator== (const Action &other) const |
| 等于操作符。 更多... | |
| void | RemoveAllSubActions () |
| 移除所有子动作。 更多... | |
| void | RemoveSubAction (int index) |
| 移除指定索引的子动作。 更多... | |
| void | SetSubAction (int index, const Action &sub_action) |
| 按索引设置子动作。 更多... | |
Public 成员函数 继承自 foxit::Base | |
| FS_HANDLE | Handle () const |
| 获取当前对象的句柄。 更多... | |
额外继承的成员函数 | |
静态 Public 成员函数 继承自 foxit::pdf::actions::Action | |
| static Action | Create (const foxit::pdf::PDFDoc &document, Type action_type) |
| 为指定的动作类型创建新动作。 更多... | |
设置OCG状态动作是设置一个或多个可选内容组的状态。(更多详情,请参考 <PDF参考1.7> P667 "设置OCG状态动作") 类actions::SetOCGStateAction派生自Action,提供用于 获取/设置设置OCG状态动作数据的函数。
|
explicit |
构造函数,使用父类对象。
| [in] | action | 父类对象。 |
| OCGState foxit::pdf::actions::SetOCGStateAction::GetOCGState | ( | int | index | ) | const |
获取OCG的状态。
| [in] | index | OCG状态的索引。 有效范围:从0到(count-1)。 count由函数SetOCGStateAction::GetOCGStateCount返回。 |
| objects::PDFDictionaryArray foxit::pdf::actions::SetOCGStateAction::GetOCGStateArray | ( | int | index | ) | const |
获取OCG字典数组。
| [in] | index | OCG状态的索引。 有效范围:从0到(count-1)。 count由函数SetOCGStateAction::GetOCGStateCount返回。 |
| int foxit::pdf::actions::SetOCGStateAction::GetOCGStateCount | ( | ) | const |
获取OCG状态的数量。
| int foxit::pdf::actions::SetOCGStateAction::InsertOCGStates | ( | const PDFDoc & | document, |
| int | index, | ||
| OCGState | state, | ||
| const objects::PDFDictionaryArray & | ocg_dict_array | ||
| ) |
将OCG状态插入到动作中。
| [in] | document | 有效的PDF文档对象。 |
| [in] | index | 要插入的OCG的索引。OCG状态将在该索引之后插入。 有效范围:从0到(count-1)。 count由函数SetOCGStateAction::GetOCGStateCount返回。 如果此值小于0或当前动作中OCG状态的数量为0, 参数state将被插入到第一个位置。 如果此值大于当前动作中OCG状态的数量, 参数state将被添加到末尾。 |
| [in] | state | 要插入的OCG状态。 |
| [in] | ocg_dict_array | 要插入的OCG字典数组。 |
| bool foxit::pdf::actions::SetOCGStateAction::IsRadioButtonStatePreserved | ( | ) | const |
获取单选按钮保留状态。
如果为true,表示当应用State数组中的状态时,应保留可选内容组之间的单选按钮状态关系。 如果为false,则忽略单选按钮状态关系(如果有的话)。 默认值:true。
| void foxit::pdf::actions::SetOCGStateAction::RemoveOCGStates | ( | int | index | ) |
移除OCG状态。
| [in] | index | 要移除的OCG的索引。 有效范围:从0到(count-1)。 count由函数SetOCGStateAction::GetOCGStateCount返回。 |
| bool foxit::pdf::actions::SetOCGStateAction::ReplaceOCGStates | ( | const PDFDoc & | document, |
| int | index, | ||
| const objects::PDFDictionaryArray & | ocg_dict_array | ||
| ) |
替换OCG状态数组。
| [in] | document | 有效的PDF文档对象。 |
| [in] | index | 要替换的OCG的索引。 有效范围:从0到(count-1)。 count由函数SetOCGStateAction::GetOCGStateCount返回。 |
| [in] | ocg_dict_array | 要插入的OCG字典数组。 |
| void foxit::pdf::actions::SetOCGStateAction::SetRadioButtonStatePreserved | ( | bool | is_preserved | ) |
设置单选按钮保留状态。
| [in] | is_preserved | 保留状态值。 |