|
Foxit PDF SDK
|
Public Types | |
| enum | DrawRectType { e_DrawRectTypeContent = 0, e_DrawRectTypeTableCell = 1, e_DrawRectTypeTableFigure = 2, e_DrawRectTypeOrderRect = 3, e_DrawRectTypeText = 4, e_DrawRectTypeTableLabel = 5, e_DrawRectTypeLine = 6, e_DrawRectTypeLabel = 7, e_DrawRectTypeTableCellsType = 8, e_DrawRectTypeTableCellsBorder = 9, e_DrawRectTypeTableCellsSelectedBorder = 10, e_DrawRectTypeTableCellsHeaderBackground = 11, e_DrawRectTypeTableCellsDataBackground = 12, e_DrawRectTypeTableCellsHeaderBackgroundMultispan = 13, e_DrawRectTypeTableCellsDataBackgroundMultispan = 14, e_DrawRectTypeTableCellsHeaderBackgroundMissingHeader = 15, e_DrawRectTypeTableCellsDataBackgroundMissingHeader = 16 } |
| Enumeration for draw rect type. More... | |
Public Member Functions | |
| virtual void | DrawLine (const foxit::pdf::PDFDoc &pdf_doc, int page_index, DrawRectType type, const AccessibilityLineInfoArray &line_info_array)=0 |
| A callback function used to draw lines for accessibility visualization. More... | |
| virtual void | DrawRect (const foxit::pdf::PDFDoc &pdf_doc, int page_index, DrawRectType type, const AccessibilityRectInfoArray &rect_info_array)=0 |
| A callback function used to draw rectangles for accessibility visualization. More... | |
| virtual void | DrawText (const foxit::pdf::PDFDoc &pdf_doc, int page_index, DrawRectType type, const AccessibilityTextInfoArray &text_info_array)=0 |
| A callback function used to draw text for accessibility visualization. More... | |
| virtual bool | GenerateContent (const foxit::pdf::PDFDoc &pdf_doc, int page_index)=0 |
| A callback function used to generate content for a specified page. More... | |
| virtual WString | GetDocumentFileName (const foxit::pdf::PDFDoc &pdf_doc)=0 |
| A callback function used to get the document file name. More... | |
| virtual WString | GetTextStringByStringID (const WString &string_id)=0 |
| A callback function used to get text string by string ID. More... | |
| virtual void | OnContentChanged (const foxit::pdf::PDFDoc &pdf_doc, int page_index, bool is_notify_self)=0 |
| A callback function used to notify that content has changed on a specified page. More... | |
| virtual void | Release ()=0 |
| A callback function used to release current callback object itself. More... | |
This class represents a render provider for accessibility, used to generate content and draw visual elements.
All the pure virtual functions in this class are used as callback functions and should be implemented by user in derived class. The render provider is shared between the accessibility classes and ReadingOrderEditor, providing rendering capabilities for accessibility visual feedback.
Enumeration for draw rect type.
This enumeration is used by AccessibilityProviderCallback to specify the type of drawing rectangle. Values of this enumeration should be used alone.
|
pure virtual |
A callback function used to draw lines for accessibility visualization.
| [in] | pdf_doc | The PDF document object. |
| [in] | page_index | The page index. |
| [in] | type | The draw rect type. Please refer to values starting from foxit::addon::accessibility::AccessibilityProviderCallback::e_DrawRectTypeContent and this should be one of these values.. |
| [in] | line_info_array | The array of accessibility line info objects. |
|
pure virtual |
A callback function used to draw rectangles for accessibility visualization.
| [in] | pdf_doc | The PDF document object. |
| [in] | page_index | The page index. |
| [in] | type | The draw rect type. Please refer to values starting from foxit::addon::accessibility::AccessibilityProviderCallback::e_DrawRectTypeContent and this should be one of these values.. |
| [in] | rect_info_array | The array of accessibility rect info objects. |
|
pure virtual |
A callback function used to draw text for accessibility visualization.
| [in] | pdf_doc | The PDF document object. |
| [in] | page_index | The page index. |
| [in] | type | The draw rect type. Please refer to values starting from foxit::addon::accessibility::AccessibilityProviderCallback::e_DrawRectTypeContent and this should be one of these values.. |
| [in] | text_info_array | The array of accessibility text info objects. |
|
pure virtual |
A callback function used to generate content for a specified page.
| [in] | pdf_doc | The PDF document object. |
| [in] | page_index | The page index. |
|
pure virtual |
A callback function used to get the document file name.
| [in] | pdf_doc | The PDF document object. |
|
pure virtual |
A callback function used to get text string by string ID.
| [in] | string_id | The string ID. |
|
pure virtual |
A callback function used to notify that content has changed on a specified page.
| [in] | pdf_doc | The PDF document object. |
| [in] | page_index | The page index. |
| [in] | is_notify_self | Whether to notify self. |
|
pure virtual |
A callback function used to release current callback object itself.