|
Foxit PDF SDK
|
Public 类型 | |
| enum | FinderType { e_FinderTypeInvalid = 0, e_FinderTypeArtifacts = 1, e_FinderTypeUnmarkedComments = 2, e_FinderTypeUnmarkedLinks = 3, e_FinderTypeUnmarkedAnnots = 4, e_FinderTypeUnmarkedContent = 5, e_FinderTypeOcrSuspects = 6 } |
| 查找器类型枚举。 更多... | |
Public 成员函数 | |
| AccessibilityNavigator (const AccessibilityNavigator &other) | |
| 构造函数,使用另一个导航器对象构造。 更多... | |
| AccessibilityNavigator (const foxit::pdf::PDFDoc &pdf_doc) | |
| 构造函数。 更多... | |
| ~AccessibilityNavigator () | |
| 析构函数。 | |
| AccessibilityFindResult | FindNextElement (int page_index, FinderType find_type, bool is_search_page) |
| 查找下一个元素。 更多... | |
| bool | IsEmpty () const |
| 检查当前对象是否为空。 更多... | |
| bool | operator!= (const AccessibilityNavigator &other) const |
| 不等于操作符。 更多... | |
| AccessibilityNavigator & | operator= (const AccessibilityNavigator &other) |
| 赋值操作符。 更多... | |
| bool | operator== (const AccessibilityNavigator &other) const |
| 等于操作符。 更多... | |
| void | StartFindNextElement () |
| 开始查找下一个元素。 更多... | |
| void | StopFindNextElement () |
| 停止查找下一个元素。 更多... | |
Public 成员函数 继承自 foxit::Base | |
| FS_HANDLE | Handle () const |
| 获取当前对象的句柄。 更多... | |
此类用于让用户逐个遍历 PDF 文档中的可访问元素,用于在可访问性检查/修复 UI 中驱动"查找下一个元素"的导航功能。 在使用此模块中的任何类或方法之前,请确保已通过 common::Library::Initialize 函数并使用包含 "Accessibility" 模块的密钥成功初始化福昕 PDF SDK。
查找器类型枚举。
此枚举的值应单独使用。
|
explicit |
构造函数。
| [in] | pdf_doc | 有效的 PDF 文档对象。 |
| foxit::addon::accessibility::AccessibilityNavigator::AccessibilityNavigator | ( | const AccessibilityNavigator & | other | ) |
构造函数,使用另一个导航器对象构造。
| [in] | other | 另一个导航器对象。 |
| AccessibilityFindResult foxit::addon::accessibility::AccessibilityNavigator::FindNextElement | ( | int | page_index, |
| FinderType | find_type, | ||
| bool | is_search_page | ||
| ) |
查找下一个元素。
| [in] | page_index | 页面索引。 |
| [in] | find_type | 查找器类型。请参考从 foxit::addon::accessibility::AccessibilityNavigator::e_FinderTypeInvalid 开始的值,本参数应为其中之一。 |
| [in] | is_search_page | 是否搜索页面。 |
| bool foxit::addon::accessibility::AccessibilityNavigator::IsEmpty | ( | ) | const |
检查当前对象是否为空。
当前对象为空时,表示当前对象不可用。
| bool foxit::addon::accessibility::AccessibilityNavigator::operator!= | ( | const AccessibilityNavigator & | other | ) | const |
不等于操作符。
| [in] | other | 另一个导航器对象。此函数将检查当前对象是否与该对象不相等。 |
| AccessibilityNavigator& foxit::addon::accessibility::AccessibilityNavigator::operator= | ( | const AccessibilityNavigator & | other | ) |
赋值操作符。
| [in] | other | 另一个导航器对象,其值将被赋值给当前对象。 |
| bool foxit::addon::accessibility::AccessibilityNavigator::operator== | ( | const AccessibilityNavigator & | other | ) | const |
等于操作符。
| [in] | other | 另一个导航器对象。此函数将检查当前对象是否与该对象相等。 |
| void foxit::addon::accessibility::AccessibilityNavigator::StartFindNextElement | ( | ) |
开始查找下一个元素。
| void foxit::addon::accessibility::AccessibilityNavigator::StopFindNextElement | ( | ) |
停止查找下一个元素。