|
Foxit PDF SDK
|
Public Types | |
| enum | FinderType { e_FinderTypeInvalid = 0, e_FinderTypeArtifacts = 1, e_FinderTypeUnmarkedComments = 2, e_FinderTypeUnmarkedLinks = 3, e_FinderTypeUnmarkedAnnots = 4, e_FinderTypeUnmarkedContent = 5, e_FinderTypeOcrSuspects = 6 } |
| Enumeration for finder type. More... | |
Public Member Functions | |
| AccessibilityNavigator (const AccessibilityNavigator &other) | |
| Constructor, with another navigator object. More... | |
| AccessibilityNavigator (const foxit::pdf::PDFDoc &pdf_doc) | |
| Constructor. More... | |
| ~AccessibilityNavigator () | |
| Destructor. | |
| AccessibilityFindResult | FindNextElement (int page_index, FinderType find_type, bool is_search_page) |
| Find next element. More... | |
| bool | IsEmpty () const |
| Check whether current object is empty or not. More... | |
| bool | operator!= (const AccessibilityNavigator &other) const |
| Not equal operator. More... | |
| AccessibilityNavigator & | operator= (const AccessibilityNavigator &other) |
| Assign operator. More... | |
| bool | operator== (const AccessibilityNavigator &other) const |
| Equal operator. More... | |
| void | StartFindNextElement () |
| Start to find next element. More... | |
| void | StopFindNextElement () |
| Stop finding next element. More... | |
Public Member Functions inherited from foxit::Base | |
| FS_HANDLE | Handle () const |
| Get the handle of current object. More... | |
This class lets user walk through the accessible elements of a PDF document one by one, used to drive "find next element" navigation in an accessibility checking / fixing UI. Before using any class or methods in this module, please ensure Foxit PDF SDK has been initialized successfully by function common::Library::Initialize with a key including "Accessibility" module.
Enumeration for finder type.
Values of this enumeration should be used alone.
|
explicit |
Constructor.
| [in] | pdf_doc | A valid PDF document object. |
| foxit::addon::accessibility::AccessibilityNavigator::AccessibilityNavigator | ( | const AccessibilityNavigator & | other | ) |
Constructor, with another navigator object.
| [in] | other | Another navigator object. |
| AccessibilityFindResult foxit::addon::accessibility::AccessibilityNavigator::FindNextElement | ( | int | page_index, |
| FinderType | find_type, | ||
| bool | is_search_page | ||
| ) |
Find next element.
| [in] | page_index | The page index. |
| [in] | find_type | The finder type. Please refer to values starting from foxit::addon::accessibility::AccessibilityNavigator::e_FinderTypeInvalid and this should be one of these values. |
| [in] | is_search_page | Whether to search page. |
| bool foxit::addon::accessibility::AccessibilityNavigator::IsEmpty | ( | ) | const |
Check whether current object is empty or not.
When the current object is empty, that means current object is useless.
| bool foxit::addon::accessibility::AccessibilityNavigator::operator!= | ( | const AccessibilityNavigator & | other | ) | const |
Not equal operator.
| [in] | other | Another navigator object. This function will check if current object is not equal to this one. |
| AccessibilityNavigator& foxit::addon::accessibility::AccessibilityNavigator::operator= | ( | const AccessibilityNavigator & | other | ) |
Assign operator.
| [in] | other | Another navigator object, whose value would be assigned to current object. |
| bool foxit::addon::accessibility::AccessibilityNavigator::operator== | ( | const AccessibilityNavigator & | other | ) | const |
Equal operator.
| [in] | other | Another navigator object. This function will check if current object is equal to this one. |
| void foxit::addon::accessibility::AccessibilityNavigator::StartFindNextElement | ( | ) |
Start to find next element.
| void foxit::addon::accessibility::AccessibilityNavigator::StopFindNextElement | ( | ) |
Stop finding next element.