#include <WPXDocumentInterface.h>
Public Member Functions | |
virtual | ~WPXDocumentInterface () |
virtual void | setDocumentMetaData (const WPXPropertyList &propList)=0 |
Called when all document metadata should be set. | |
virtual void | startDocument ()=0 |
Called at the start of the parsing process. | |
virtual void | endDocument ()=0 |
Called at the end of the parsing process. | |
virtual void | definePageStyle (const WPXPropertyList &propList)=0 |
virtual void | openPageSpan (const WPXPropertyList &propList)=0 |
Called when a new page span is opened. | |
virtual void | closePageSpan ()=0 |
Called when a page span is closed. | |
virtual void | openHeader (const WPXPropertyList &propList)=0 |
Called when a header should be opened (a sub-document will be placed inside of it). | |
virtual void | closeHeader ()=0 |
Called when a header should be closed. | |
virtual void | openFooter (const WPXPropertyList &propList)=0 |
Called when a footer should be opened (a sub-document will be placed inside of it). | |
virtual void | closeFooter ()=0 |
Called when a footer should be closed. | |
virtual void | defineParagraphStyle (const WPXPropertyList &propList, const WPXPropertyListVector &tabStops)=0 |
virtual void | openParagraph (const WPXPropertyList &propList, const WPXPropertyListVector &tabStops)=0 |
Called when a new paragraph is opened. | |
virtual void | closeParagraph ()=0 |
Called when a paragraph is closed. | |
virtual void | defineCharacterStyle (const WPXPropertyList &propList)=0 |
virtual void | openSpan (const WPXPropertyList &propList)=0 |
Called when a text span is opened. | |
virtual void | closeSpan ()=0 |
Called when a text span is closed. | |
virtual void | defineSectionStyle (const WPXPropertyList &propList, const WPXPropertyListVector &columns)=0 |
virtual void | openSection (const WPXPropertyList &propList, const WPXPropertyListVector &columns)=0 |
Called when a new section is opened. | |
virtual void | closeSection ()=0 |
Called when a section is closed. | |
virtual void | insertTab ()=0 |
Called when a TAB character should be inserted. | |
virtual void | insertSpace ()=0 |
Called when an explicit space should be inserted. | |
virtual void | insertText (const WPXString &text)=0 |
Called when a string of text should be inserted. | |
virtual void | insertLineBreak ()=0 |
Called when a line break should be inserted. | |
virtual void | insertField (const WPXString &type, const WPXPropertyList &propList)=0 |
Called when a field should be inserted. | |
virtual void | defineOrderedListLevel (const WPXPropertyList &propList)=0 |
Defines an ordered (enumerated) list level. | |
virtual void | defineUnorderedListLevel (const WPXPropertyList &propList)=0 |
Defines an unordered (unenumerated) list level. | |
virtual void | openOrderedListLevel (const WPXPropertyList &propList)=0 |
Called when a new ordered list level should be opened. | |
virtual void | openUnorderedListLevel (const WPXPropertyList &propList)=0 |
Called when a new unordered list level should be opened. | |
virtual void | closeOrderedListLevel ()=0 |
Called when an unordered list level should be closed. | |
virtual void | closeUnorderedListLevel ()=0 |
Called when an ununordered list level should be closed. | |
virtual void | openListElement (const WPXPropertyList &propList, const WPXPropertyListVector &tabStops)=0 |
Called when a list element should be opened. | |
virtual void | closeListElement ()=0 |
Called when a list element should be closed. | |
virtual void | openFootnote (const WPXPropertyList &propList)=0 |
Called when a footnote should be opened (a sub-document will be placed inside of it) | |
virtual void | closeFootnote ()=0 |
Called when a footnote should be closed. | |
virtual void | openEndnote (const WPXPropertyList &propList)=0 |
Called when a endnote should be opened (a sub-document will be placed inside of it) | |
virtual void | closeEndnote ()=0 |
Called when a endnote should be closed. | |
virtual void | openComment (const WPXPropertyList &propList)=0 |
Called when a comment or annotation should be opened (a sub-document will be placed inside of it) | |
virtual void | closeComment ()=0 |
Called when a comment or annotation should be closed. | |
virtual void | openTextBox (const WPXPropertyList &propList)=0 |
Called when a text box should be opened (a sub-document will be placed inside of it) | |
virtual void | closeTextBox ()=0 |
Called when a text box should be closed. | |
virtual void | openTable (const WPXPropertyList &propList, const WPXPropertyListVector &columns)=0 |
Called when a table should be opened. | |
virtual void | openTableRow (const WPXPropertyList &propList)=0 |
Called when a new table row is opened. | |
virtual void | closeTableRow ()=0 |
Called when the current table row is closed. | |
virtual void | openTableCell (const WPXPropertyList &propList)=0 |
Called when a new table cell is opened. | |
virtual void | closeTableCell ()=0 |
Called when the current table cell is closed. | |
virtual void | insertCoveredTableCell (const WPXPropertyList &propList)=0 |
Called when a covered (spanned by another cell in the table) table cell is opened. | |
virtual void | closeTable ()=0 |
Called when the current table is closed. | |
virtual void | openFrame (const WPXPropertyList &propList)=0 |
Called when a positioned box should be opened. | |
virtual void | closeFrame ()=0 |
Called when the current positioned box is closed. | |
virtual void | insertBinaryObject (const WPXPropertyList &propList, const WPXBinaryData &data)=0 |
Called when a binary object should be inserted. | |
virtual void | insertEquation (const WPXPropertyList &propList, const WPXString &data)=0 |
Called when a mathml object should be inserted. | |
|
inlinevirtual |
|
pure virtual |
Called when a comment or annotation should be closed.
Referenced by WP6ContentListener::commentAnnotation().
|
pure virtual |
Called when a endnote should be closed.
Referenced by WP1ContentListener::insertNote(), WP3ContentListener::insertNote(), WP5ContentListener::insertNote(), and WP6ContentListener::noteOff().
|
pure virtual |
Called when a footer should be closed.
Referenced by WPXContentListener::_openPageSpan().
|
pure virtual |
Called when a footnote should be closed.
Referenced by WP1ContentListener::insertNote(), WP3ContentListener::insertNote(), WP5ContentListener::insertNote(), and WP6ContentListener::noteOff().
|
pure virtual |
Called when the current positioned box is closed.
Referenced by WP5ContentListener::boxOff(), WP6ContentListener::boxOff(), WP1ContentListener::insertPicture(), WP3ContentListener::insertPicture(), WP3ContentListener::insertTextBox(), and WP3ContentListener::insertWP51Table().
|
pure virtual |
Called when a header should be closed.
Referenced by WPXContentListener::_openPageSpan().
|
pure virtual |
Called when a list element should be closed.
Referenced by WPXContentListener::_closeListElement().
|
pure virtual |
Called when an unordered list level should be closed.
Referenced by WP6ContentListener::_handleListChange().
|
pure virtual |
Called when a page span is closed.
Referenced by WPXContentListener::_closePageSpan().
|
pure virtual |
Called when a paragraph is closed.
Referenced by WPXContentListener::_closeParagraph(), and WPXContentListener::_insertPageNumberParagraph().
|
pure virtual |
Called when a section is closed.
Referenced by WPXContentListener::_closeSection().
|
pure virtual |
Called when a text span is closed.
Referenced by WPXContentListener::_closeSpan(), and WPXContentListener::_insertPageNumberParagraph().
|
pure virtual |
Called when the current table is closed.
Referenced by WPXContentListener::_closeTable().
|
pure virtual |
Called when the current table cell is closed.
Referenced by WPXContentListener::_closeTableCell().
|
pure virtual |
Called when the current table row is closed.
Referenced by WPXContentListener::_closeTableRow().
|
pure virtual |
Called when a text box should be closed.
Referenced by WP3ContentListener::insertTextBox(), WP6ContentListener::insertTextBox(), and WP3ContentListener::insertWP51Table().
|
pure virtual |
Called when an ununordered list level should be closed.
Referenced by WP6ContentListener::_handleListChange().
|
pure virtual |
|
pure virtual |
Defines an ordered (enumerated) list level.
propList | Defines a set of properties for the list. May contain:
|
Referenced by WP6ContentListener::_handleListChange().
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
Defines an unordered (unenumerated) list level.
propList | Defines a set of properties for the list level. May contain:
|
Referenced by WP6ContentListener::_handleListChange().
|
pure virtual |
Called at the end of the parsing process.
This is always the last callback made.
Referenced by WPXContentListener::endDocument().
|
pure virtual |
Called when a binary object should be inserted.
propList | Defines a set of properties for the object. May contain:
|
data | Reference to the binary object |
Referenced by WP5ContentListener::insertGraphicsData(), WP6ContentListener::insertGraphicsData(), WP1ContentListener::insertPicture(), and WP3ContentListener::insertPicture().
|
pure virtual |
Called when a covered (spanned by another cell in the table) table cell is opened.
propList | Property list for the table cell. May contain:
|
Referenced by WPXContentListener::_closeTableRow().
|
pure virtual |
Called when a mathml object should be inserted.
propList | Defines a set of properties for the object.
|
data | Reference to the string containing the equation representation |
|
pure virtual |
Called when a field should be inserted.
Field types may include:
text:page-number
Current page number text:page-count
Total # of pages in document propList | Defines a set of properties for the field. May contain: |
style:num-format
Type of page number (for page number) Referenced by WPXContentListener::_insertPageNumberParagraph(), and WP6ContentListener::displayNumberReferenceGroupOff().
|
pure virtual |
Called when a line break should be inserted.
Referenced by WP6ContentListener::handleLineBreak().
|
pure virtual |
Called when an explicit space should be inserted.
Referenced by WPXContentListener::_insertText().
|
pure virtual |
Called when a TAB character should be inserted.
Referenced by WP6ContentListener::_flushText(), WP1ContentListener::insertCharacter(), WP1ContentListener::insertEOL(), WP1ContentListener::insertExtendedCharacter(), WP5ContentListener::insertIndent(), WP42ContentListener::insertTab(), WP1ContentListener::insertTab(), WP3ContentListener::insertTab(), WP5ContentListener::insertTab(), and WP6ContentListener::insertTab().
|
pure virtual |
Called when a string of text should be inserted.
text | A textbuffer encoded as a UTF8 string |
Referenced by WPXContentListener::_insertText().
|
pure virtual |
Called when a comment or annotation should be opened (a sub-document will be placed inside of it)
propList | Defines a set of properties for the comment or annotation. |
Referenced by WP6ContentListener::commentAnnotation().
|
pure virtual |
Called when a endnote should be opened (a sub-document will be placed inside of it)
propList | Defines a set of properties for the endnote. May contain:
|
Referenced by WP1ContentListener::insertNote(), WP3ContentListener::insertNote(), WP5ContentListener::insertNote(), and WP6ContentListener::noteOff().
|
pure virtual |
Called when a footer should be opened (a sub-document will be placed inside of it).
propList | Property list for the footer. May contain:
|
Referenced by WPXContentListener::_openPageSpan().
|
pure virtual |
Called when a footnote should be opened (a sub-document will be placed inside of it)
propList | Defines a set of properties for the footnote. May contain:
|
Referenced by WP1ContentListener::insertNote(), WP3ContentListener::insertNote(), WP5ContentListener::insertNote(), and WP6ContentListener::noteOff().
|
pure virtual |
Called when a positioned box should be opened.
propList | Defines a set of properties for the box. May contain:
|
Referenced by WP5ContentListener::boxOn(), WP6ContentListener::boxOn(), WP1ContentListener::insertPicture(), WP3ContentListener::insertPicture(), WP3ContentListener::insertTextBox(), and WP3ContentListener::insertWP51Table().
|
pure virtual |
Called when a header should be opened (a sub-document will be placed inside of it).
propList | Property list for the header. May contain:
|
Referenced by WPXContentListener::_openPageSpan().
|
pure virtual |
Called when a list element should be opened.
propList | Property list for the paragraph. May contain:
|
tabStops | List of tabstop definitions for the paragraph. If the list is empty, default tabstop definition should be used. Each tab stop may contain:
|
Referenced by WPXContentListener::_openListElement().
|
pure virtual |
Called when a new ordered list level should be opened.
propList | Defines a set of properties for the list level. May contain:
|
Referenced by WP6ContentListener::_handleListChange().
|
pure virtual |
Called when a new page span is opened.
This will always be called before any actual content is placed into the document.
propList | Property list for the page span. May contain:
|
Referenced by WPXContentListener::_openPageSpan().
|
pure virtual |
Called when a new paragraph is opened.
This (or openListElement) will always be called before any text or span is placed into the document.
propList | Property list for the paragraph. May contain:
|
tabStops | List of tabstop definitions for the paragraph. If the list is empty, default tabstop definition should be used. Each tab stop may contain:
|
Referenced by WPXContentListener::_insertPageNumberParagraph(), and WPXContentListener::_openParagraph().
|
pure virtual |
Called when a new section is opened.
propList | Property list for the section. May contain:
|
columns | List of definitions of each column: left gutter, right gutter, and width (includes the gutters). Empty if there is only one column in the section. Each column may contain:
|
Referenced by WPXContentListener::_openSection().
|
pure virtual |
Called when a text span is opened.
propList | Property list for the span. May contain:
|
Referenced by WPXContentListener::_insertPageNumberParagraph(), and WPXContentListener::_openSpan().
|
pure virtual |
Called when a table should be opened.
propList | Defines a set of properties for the table. May contain:
|
columns | Column definitions for the table. May contain
|
Referenced by WPXContentListener::_openTable().
|
pure virtual |
Called when a new table cell is opened.
propList | Property list for the table cell. May contain:
|
Referenced by WPXContentListener::_openTableCell().
|
pure virtual |
Called when a new table row is opened.
propList | Defines a set of properties for the table row. May contain:
|
Referenced by WPXContentListener::_openTableRow().
|
pure virtual |
Called when a text box should be opened (a sub-document will be placed inside of it)
propList | Defines a set of properties for the text box. |
Referenced by WP3ContentListener::insertTextBox(), WP6ContentListener::insertTextBox(), and WP3ContentListener::insertWP51Table().
|
pure virtual |
Called when a new unordered list level should be opened.
propList | Defines a set of properties for the list level. May contain:
|
Referenced by WP6ContentListener::_handleListChange().
|
pure virtual |
Called when all document metadata should be set.
This is always the first callback made.
propList | Property list for the metadata. May contain:
|
Referenced by WPXContentListener::startDocument().
|
pure virtual |
Called at the start of the parsing process.
This is always the second callback made.
Referenced by WPXContentListener::startDocument().