#include <ie_imp_WordPerfect.h>
Public Member Functions | |
| IE_Imp_WordPerfect (PD_Document *pDocument) | |
| virtual | ~IE_Imp_WordPerfect () |
| virtual void | pasteFromBuffer (PD_DocumentRange *pDocRange, UT_uint8 *pData, UT_uint32 lenData, const char *szEncoding=0) |
| virtual void | setDocumentMetaData (const WPXPropertyList &propList) |
| virtual void | startDocument () |
| virtual void | endDocument () |
| virtual void | openPageSpan (const WPXPropertyList &propList) |
| virtual void | closePageSpan () |
| virtual void | openHeader (const WPXPropertyList &propList) |
| virtual void | closeHeader () |
| virtual void | openFooter (const WPXPropertyList &propList) |
| virtual void | closeFooter () |
| virtual void | openParagraph (const WPXPropertyList &propList, const WPXPropertyListVector &tabStops) |
| virtual void | closeParagraph () |
| virtual void | openSpan (const WPXPropertyList &propList) |
| virtual void | closeSpan () |
| virtual void | openSection (const WPXPropertyList &propList, const WPXPropertyListVector &columns) |
| virtual void | closeSection () |
| virtual void | insertTab () |
| virtual void | insertText (const WPXString &text) |
| virtual void | insertLineBreak () |
| virtual void | defineOrderedListLevel (const WPXPropertyList &propList) |
| virtual void | defineUnorderedListLevel (const WPXPropertyList &propList) |
| virtual void | openOrderedListLevel (const WPXPropertyList &propList) |
| virtual void | openUnorderedListLevel (const WPXPropertyList &propList) |
| virtual void | closeOrderedListLevel () |
| virtual void | closeUnorderedListLevel () |
| virtual void | openListElement (const WPXPropertyList &propList, const WPXPropertyListVector &tabStops) |
| virtual void | closeListElement () |
| virtual void | openFootnote (const WPXPropertyList &propList) |
| virtual void | closeFootnote () |
| virtual void | openEndnote (const WPXPropertyList &propList) |
| virtual void | closeEndnote () |
| virtual void | openTable (const WPXPropertyList &propList, const WPXPropertyListVector &columns) |
| virtual void | openTableRow (const WPXPropertyList &propList) |
| virtual void | closeTableRow () |
| virtual void | openTableCell (const WPXPropertyList &propList) |
| virtual void | closeTableCell () |
| virtual void | insertCoveredTableCell (const WPXPropertyList &) |
| virtual void | closeTable () |
| virtual void | definePageStyle (const WPXPropertyList &) |
| virtual void | defineParagraphStyle (const WPXPropertyList &, const WPXPropertyListVector &) |
| virtual void | defineCharacterStyle (const WPXPropertyList &) |
| virtual void | defineSectionStyle (const WPXPropertyList &, const WPXPropertyListVector &) |
| virtual void | insertSpace () |
| virtual void | insertField (const WPXString &, const WPXPropertyList &) |
| virtual void | openComment (const WPXPropertyList &) |
| virtual void | closeComment () |
| virtual void | openTextBox (const WPXPropertyList &) |
| virtual void | closeTextBox () |
| virtual void | openFrame (const WPXPropertyList &) |
| virtual void | closeFrame () |
| virtual void | insertBinaryObject (const WPXPropertyList &, const WPXBinaryData &) |
| virtual void | insertEquation (const WPXPropertyList &, const WPXString &) |
Protected Member Functions | |
| virtual UT_Error | _loadFile (GsfInput *input) |
| UT_Error | _appendSection (int numColumns, const float, const float) |
| UT_Error | _appendListSpan (UT_uint32 listTag) |
| UT_Error | _updateDocumentOrderedListDefinition (ABI_ListDefinition *pListDefinition, int iLevel, const char listType, const UT_UTF8String &sTextBeforeNumber, const UT_UTF8String &sTextAfterNumber, int iStartingNumber) |
| UT_Error | _updateDocumentUnorderedListDefinition (ABI_ListDefinition *pListDefinition, int level) |
Private Attributes | |
| float | m_leftPageMargin |
| float | m_rightPageMargin |
| float | m_leftSectionMargin |
| float | m_rightSectionMargin |
| int | m_sectionColumnsCount |
| UT_sint8 | m_headerId |
| UT_sint8 | m_footerId |
| UT_uint32 | m_nextFreeId |
| float | m_topMargin |
| float | m_bottomMargin |
| float | m_leftMarginOffset |
| float | m_rightMarginOffset |
| float | m_textIndent |
| ABI_ListDefinition * | m_pCurrentListDefinition |
| bool | m_bParagraphChanged |
| bool | m_bParagraphInSection |
| bool | m_bInSection |
| bool | m_bSectionChanged |
| bool | m_bRequireBlock |
| int | m_iCurrentListLevel |
| bool | m_bInCell |
| int | m_bHdrFtrOpenCount |
| IE_Imp_WordPerfect::IE_Imp_WordPerfect | ( | PD_Document * | pDocument | ) |
| IE_Imp_WordPerfect::~IE_Imp_WordPerfect | ( | ) | [virtual] |
| UT_Error IE_Imp_WordPerfect::_appendSection | ( | int | numColumns, | |
| const float | marginLeft, | |||
| const float | marginRight | |||
| ) | [protected] |
References IE_Imp::appendStrux(), UT_String::c_str(), gchar, m_bInSection, m_bRequireBlock, m_bSectionChanged, PTX_Block, PTX_Section, UT_DEBUGMSG, UT_String_sprintf(), and X_CheckDocumentError.
Referenced by openSection().
| UT_Error IE_Imp_WordPerfect::_loadFile | ( | GsfInput * | input | ) | [protected, virtual] |
Implements IE_Imp.
References abicollab::service::error(), and UT_DEBUGMSG.
| UT_Error IE_Imp_WordPerfect::_updateDocumentOrderedListDefinition | ( | ABI_ListDefinition * | pListDefinition, | |
| int | iLevel, | |||
| const char | listType, | |||
| const UT_UTF8String & | sTextBeforeNumber, | |||
| const UT_UTF8String & | sTextAfterNumber, | |||
| int | iStartingNumber | |||
| ) | [protected] |
| UT_Error IE_Imp_WordPerfect::_updateDocumentUnorderedListDefinition | ( | ABI_ListDefinition * | pListDefinition, | |
| int | level | |||
| ) | [protected] |
| virtual void IE_Imp_WordPerfect::closeComment | ( | ) | [inline, virtual] |
| void IE_Imp_WordPerfect::closeEndnote | ( | ) | [virtual] |
References IE_Imp::appendStrux(), m_bHdrFtrOpenCount, PTX_EndEndnote, and X_CheckDocumentError.
| void IE_Imp_WordPerfect::closeFooter | ( | ) | [virtual] |
References m_bHdrFtrOpenCount.
| void IE_Imp_WordPerfect::closeFootnote | ( | ) | [virtual] |
References IE_Imp::appendStrux(), m_bHdrFtrOpenCount, PTX_EndFootnote, and X_CheckDocumentError.
| virtual void IE_Imp_WordPerfect::closeFrame | ( | ) | [inline, virtual] |
| void IE_Imp_WordPerfect::closeHeader | ( | ) | [virtual] |
References m_bHdrFtrOpenCount.
| virtual void IE_Imp_WordPerfect::closeListElement | ( | ) | [inline, virtual] |
| void IE_Imp_WordPerfect::closeOrderedListLevel | ( | ) | [virtual] |
| virtual void IE_Imp_WordPerfect::closePageSpan | ( | ) | [inline, virtual] |
| virtual void IE_Imp_WordPerfect::closeParagraph | ( | ) | [inline, virtual] |
| virtual void IE_Imp_WordPerfect::closeSection | ( | ) | [inline, virtual] |
| virtual void IE_Imp_WordPerfect::closeSpan | ( | ) | [inline, virtual] |
| void IE_Imp_WordPerfect::closeTable | ( | void | ) | [virtual] |
References IE_Imp::appendStrux(), m_bHdrFtrOpenCount, m_bInCell, m_bRequireBlock, PTX_Block, PTX_EndCell, PTX_EndTable, UT_DEBUGMSG, and X_CheckDocumentError.
| virtual void IE_Imp_WordPerfect::closeTableCell | ( | ) | [inline, virtual] |
| virtual void IE_Imp_WordPerfect::closeTableRow | ( | ) | [inline, virtual] |
| virtual void IE_Imp_WordPerfect::closeTextBox | ( | ) | [inline, virtual] |
| void IE_Imp_WordPerfect::closeUnorderedListLevel | ( | ) | [virtual] |
References m_bHdrFtrOpenCount, m_iCurrentListLevel, UT_ASSERT, and UT_DEBUGMSG.
| virtual void IE_Imp_WordPerfect::defineCharacterStyle | ( | const WPXPropertyList & | ) | [inline, virtual] |
| void IE_Imp_WordPerfect::defineOrderedListLevel | ( | const WPXPropertyList & | propList | ) | [virtual] |
References _updateDocumentOrderedListDefinition(), ABI_ListDefinition::getLevelNumber(), ABI_ListDefinition::getListID(), ABI_ListDefinition::getOutlineHash(), m_bHdrFtrOpenCount, m_pCurrentListDefinition, ABI_ListDefinition::setListID(), ABI_ListDefinition::setListLeftOffset(), ABI_ListDefinition::setListMinLabelWidth(), ABI_ListDefinition::setListType(), UT_DEBUGMSG, and UT_rand().
| virtual void IE_Imp_WordPerfect::definePageStyle | ( | const WPXPropertyList & | ) | [inline, virtual] |
| virtual void IE_Imp_WordPerfect::defineParagraphStyle | ( | const WPXPropertyList & | , | |
| const WPXPropertyListVector & | ||||
| ) | [inline, virtual] |
| virtual void IE_Imp_WordPerfect::defineSectionStyle | ( | const WPXPropertyList & | , | |
| const WPXPropertyListVector & | ||||
| ) | [inline, virtual] |
| void IE_Imp_WordPerfect::defineUnorderedListLevel | ( | const WPXPropertyList & | propList | ) | [virtual] |
References _updateDocumentUnorderedListDefinition(), ABI_ListDefinition::getListID(), ABI_ListDefinition::getOutlineHash(), m_bHdrFtrOpenCount, m_pCurrentListDefinition, ABI_ListDefinition::setListID(), ABI_ListDefinition::setListLeftOffset(), ABI_ListDefinition::setListMinLabelWidth(), UT_DEBUGMSG, and UT_rand().
| void IE_Imp_WordPerfect::endDocument | ( | ) | [virtual] |
References UT_DEBUGMSG.
| virtual void IE_Imp_WordPerfect::insertBinaryObject | ( | const WPXPropertyList & | , | |
| const WPXBinaryData & | ||||
| ) | [inline, virtual] |
| virtual void IE_Imp_WordPerfect::insertCoveredTableCell | ( | const WPXPropertyList & | ) | [inline, virtual] |
| virtual void IE_Imp_WordPerfect::insertEquation | ( | const WPXPropertyList & | , | |
| const WPXString & | ||||
| ) | [inline, virtual] |
| virtual void IE_Imp_WordPerfect::insertField | ( | const WPXString & | , | |
| const WPXPropertyList & | ||||
| ) | [inline, virtual] |
| void IE_Imp_WordPerfect::insertLineBreak | ( | ) | [virtual] |
References IE_Imp::appendSpan(), m_bHdrFtrOpenCount, UT_DEBUGMSG, and X_CheckDocumentError.
| virtual void IE_Imp_WordPerfect::insertSpace | ( | ) | [inline, virtual] |
| void IE_Imp_WordPerfect::insertTab | ( | ) | [virtual] |
References IE_Imp::appendSpan(), m_bHdrFtrOpenCount, UT_DEBUGMSG, and X_CheckDocumentError.
| void IE_Imp_WordPerfect::insertText | ( | const WPXString & | text | ) | [virtual] |
References IE_Imp::appendSpan(), m_bHdrFtrOpenCount, UT_DEBUGMSG, and X_CheckDocumentError.
| virtual void IE_Imp_WordPerfect::openComment | ( | const WPXPropertyList & | ) | [inline, virtual] |
| void IE_Imp_WordPerfect::openEndnote | ( | const WPXPropertyList & | propList | ) | [virtual] |
| void IE_Imp_WordPerfect::openFooter | ( | const WPXPropertyList & | propList | ) | [virtual] |
References m_bHdrFtrOpenCount.
| void IE_Imp_WordPerfect::openFootnote | ( | const WPXPropertyList & | propList | ) | [virtual] |
| virtual void IE_Imp_WordPerfect::openFrame | ( | const WPXPropertyList & | ) | [inline, virtual] |
| void IE_Imp_WordPerfect::openHeader | ( | const WPXPropertyList & | propList | ) | [virtual] |
References m_bHdrFtrOpenCount.
| void IE_Imp_WordPerfect::openListElement | ( | const WPXPropertyList & | propList, | |
| const WPXPropertyListVector & | tabStops | |||
| ) | [virtual] |
References PD_Document::appendFmtMark(), IE_Imp::appendObject(), IE_Imp::appendSpan(), IE_Imp::appendStrux(), UT_String::c_str(), gchar, IE_Imp::getDoc(), ABI_ListDefinition::getListID(), ABI_ListDefinition::getListLeftOffset(), ABI_ListDefinition::getListMinLabelWidth(), ABI_ListDefinition::getListType(), ABI_ListDefinition::incrementLevelNumber(), m_bHdrFtrOpenCount, m_bRequireBlock, m_iCurrentListLevel, m_pCurrentListDefinition, PT_MAX_ATTRIBUTES, PTO_Field, PTX_Block, UT_ASSERT, UT_DEBUGMSG, UT_String_sprintf(), and X_CheckDocumentError.
| void IE_Imp_WordPerfect::openOrderedListLevel | ( | const WPXPropertyList & | propList | ) | [virtual] |
References m_bHdrFtrOpenCount, m_iCurrentListLevel, and UT_DEBUGMSG.
| void IE_Imp_WordPerfect::openPageSpan | ( | const WPXPropertyList & | propList | ) | [virtual] |
References m_bHdrFtrOpenCount, m_bSectionChanged, m_leftPageMargin, m_rightPageMargin, and UT_DEBUGMSG.
| void IE_Imp_WordPerfect::openParagraph | ( | const WPXPropertyList & | propList, | |
| const WPXPropertyListVector & | tabStops | |||
| ) | [virtual] |
| void IE_Imp_WordPerfect::openSection | ( | const WPXPropertyList & | propList, | |
| const WPXPropertyListVector & | columns | |||
| ) | [virtual] |
| void IE_Imp_WordPerfect::openSpan | ( | const WPXPropertyList & | propList | ) | [virtual] |
References IE_Imp::appendFmt(), UT_String::c_str(), gchar, m_bHdrFtrOpenCount, UT_DEBUGMSG, and X_CheckDocumentError.
| void IE_Imp_WordPerfect::openTable | ( | const WPXPropertyList & | propList, | |
| const WPXPropertyListVector & | columns | |||
| ) | [virtual] |
| void IE_Imp_WordPerfect::openTableCell | ( | const WPXPropertyList & | propList | ) | [virtual] |
| void IE_Imp_WordPerfect::openTableRow | ( | const WPXPropertyList & | propList | ) | [virtual] |
References IE_Imp::appendStrux(), m_bHdrFtrOpenCount, m_bInCell, PTX_EndCell, UT_DEBUGMSG, and X_CheckDocumentError.
| virtual void IE_Imp_WordPerfect::openTextBox | ( | const WPXPropertyList & | ) | [inline, virtual] |
| void IE_Imp_WordPerfect::openUnorderedListLevel | ( | const WPXPropertyList & | propList | ) | [virtual] |
References m_bHdrFtrOpenCount, m_iCurrentListLevel, and UT_DEBUGMSG.
| virtual void IE_Imp_WordPerfect::pasteFromBuffer | ( | PD_DocumentRange * | pDocRange, | |
| UT_uint8 * | pData, | |||
| UT_uint32 | lenData, | |||
| const char * | szEncoding = 0 | |||
| ) | [virtual] |
| void IE_Imp_WordPerfect::setDocumentMetaData | ( | const WPXPropertyList & | propList | ) | [virtual] |
| void IE_Imp_WordPerfect::startDocument | ( | void | ) | [virtual] |
References UT_DEBUGMSG.
int IE_Imp_WordPerfect::m_bHdrFtrOpenCount [private] |
Referenced by closeEndnote(), closeFooter(), closeFootnote(), closeHeader(), closeOrderedListLevel(), closeTable(), closeUnorderedListLevel(), defineOrderedListLevel(), defineUnorderedListLevel(), insertLineBreak(), insertTab(), insertText(), openEndnote(), openFooter(), openFootnote(), openHeader(), openListElement(), openOrderedListLevel(), openPageSpan(), openParagraph(), openSection(), openSpan(), openTable(), openTableCell(), openTableRow(), and openUnorderedListLevel().
bool IE_Imp_WordPerfect::m_bInCell [private] |
Referenced by closeTable(), openTableCell(), and openTableRow().
bool IE_Imp_WordPerfect::m_bInSection [private] |
Referenced by _appendSection(), and openFootnote().
float IE_Imp_WordPerfect::m_bottomMargin [private] |
Referenced by openParagraph().
bool IE_Imp_WordPerfect::m_bParagraphChanged [private] |
bool IE_Imp_WordPerfect::m_bParagraphInSection [private] |
bool IE_Imp_WordPerfect::m_bRequireBlock [private] |
Referenced by _appendSection(), closeTable(), openEndnote(), openFootnote(), openListElement(), and openParagraph().
bool IE_Imp_WordPerfect::m_bSectionChanged [private] |
Referenced by _appendSection(), openPageSpan(), and openSection().
UT_sint8 IE_Imp_WordPerfect::m_footerId [private] |
UT_sint8 IE_Imp_WordPerfect::m_headerId [private] |
int IE_Imp_WordPerfect::m_iCurrentListLevel [private] |
float IE_Imp_WordPerfect::m_leftMarginOffset [private] |
Referenced by openParagraph().
float IE_Imp_WordPerfect::m_leftPageMargin [private] |
Referenced by openPageSpan(), and openSection().
float IE_Imp_WordPerfect::m_leftSectionMargin [private] |
Referenced by openSection().
UT_uint32 IE_Imp_WordPerfect::m_nextFreeId [private] |
Referenced by closeOrderedListLevel(), defineOrderedListLevel(), defineUnorderedListLevel(), and openListElement().
float IE_Imp_WordPerfect::m_rightMarginOffset [private] |
Referenced by openParagraph().
float IE_Imp_WordPerfect::m_rightPageMargin [private] |
Referenced by openPageSpan(), and openSection().
float IE_Imp_WordPerfect::m_rightSectionMargin [private] |
Referenced by openSection().
int IE_Imp_WordPerfect::m_sectionColumnsCount [private] |
Referenced by openSection().
float IE_Imp_WordPerfect::m_textIndent [private] |
Referenced by openParagraph().
float IE_Imp_WordPerfect::m_topMargin [private] |
Referenced by openParagraph().
1.7.1