Writes basic stuff like paragraphs, inlined images, etc. More...
#include <ODe_Text_Listener.h>
Public Member Functions | |
ODe_Text_Listener (ODe_Styles &rStyles, ODe_AutomaticStyles &rAutomatiStyles, GsfOutput *pTextOutput, ODe_AuxiliaryData &rAuxiliaryData, UT_uint8 zIndex, UT_uint8 spacesOffset) | |
Constructor. | |
ODe_Text_Listener (ODe_Styles &rStyles, ODe_AutomaticStyles &rAutomatiStyles, GsfOutput *pTextOutput, ODe_AuxiliaryData &rAuxiliaryData, UT_uint8 zIndex, UT_uint8 spacesOffset, const UT_UTF8String &rPendingMasterPageStyleName) | |
Constructor. | |
~ODe_Text_Listener () | |
virtual void | openTable (const PP_AttrProp *pAP, ODe_ListenerAction &rAction) |
virtual void | closeCell (ODe_ListenerAction &rAction) |
virtual void | closeSection (ODe_ListenerAction &rAction) |
virtual void | openBlock (const PP_AttrProp *pAP, ODe_ListenerAction &rAction) |
Override of ODe_AbiDocListenerImpl::openBlock. | |
virtual void | closeBlock () |
virtual void | openSpan (const PP_AttrProp *pAP) |
virtual void | closeSpan () |
virtual void | openFrame (const PP_AttrProp *pAP, ODe_ListenerAction &rAction) |
virtual void | closeFrame (ODe_ListenerAction &rAction) |
virtual void | openField (const fd_Field *field, const UT_UTF8String &fieldType, const UT_UTF8String &fieldValue) |
virtual void | closeField (const UT_UTF8String &fieldType) |
virtual void | openFootnote (const PP_AttrProp *pAP, ODe_ListenerAction &rAction) |
virtual void | closeFootnote (ODe_ListenerAction &rAction) |
virtual void | openEndnote (const PP_AttrProp *pAP, ODe_ListenerAction &rAction) |
virtual void | closeEndnote (ODe_ListenerAction &rAction) |
virtual void | openAnnotation (const PP_AttrProp *pAP, const std::string &name, PD_Document *doc=0) |
virtual void | closeAnnotation (const std::string &name) |
virtual void | endAnnotation (const std::string &name) |
virtual void | openTOC (const PP_AttrProp *pAP) |
virtual void | closeTOC () |
virtual void | openBookmark (const PP_AttrProp *pAP) |
virtual void | closeBookmark (const PP_AttrProp *pAP) |
virtual void | closeBookmark (UT_UTF8String &sBookmarkName) |
virtual void | openHyperlink (const PP_AttrProp *pAP) |
virtual void | closeHyperlink () |
void | openRDFAnchor (const PP_AttrProp *pAP) |
void | closeRDFAnchor (const PP_AttrProp *pAP) |
virtual void | insertText (const UT_UTF8String &rText) |
virtual void | insertLineBreak () |
virtual void | insertColumnBreak () |
virtual void | insertPageBreak () |
virtual void | insertTabChar () |
virtual void | insertInlinedImage (const gchar *pImageName, const PP_AttrProp *pAP) |
virtual void | insertPositionedImage (const gchar *pImageName, const PP_AttrProp *pAP) |
void | setOpenedODNote (bool b) |
void | setIgnoreFirstTab (bool b) |
Private Member Functions | |
void | _initDefaultHeadingStyles () |
bool | _blockIsPlainParagraph (const PP_AttrProp *pAP) const |
Returns true if the properties belongs to a plain paragraph, false otherwise. | |
void | _openODListItem (const PP_AttrProp *pAP) |
Open a <text:list-item>, in some cases along with a preceding <text:list> | |
void | _openODParagraph (const PP_AttrProp *pAP) |
void | _closeODParagraph () |
void | _closeODList () |
Close an OpenDocument list if there is one currently open. | |
void | _openParagraphDelayed () |
UT_UTF8String & | appendAttribute (UT_UTF8String &ret, const char *key, const char *value) |
Private Attributes | |
const PP_AttrProp * | m_delayedAP |
ODe_Style_List * | m_delayedListStyle |
bool | m_delayedPendingMasterPageStyleChange |
bool | m_delayedPageBreak |
bool | m_delayedColumnBreak |
std::string | m_delayedMasterPageStyleName |
UT_uint32 | m_delayedSpacesOffset |
bool | m_openedODParagraph |
bool | m_openedODSpan |
bool | m_isFirstCharOnParagraph |
bool | m_openedODTextboxFrame |
bool | m_openedODNote |
bool | m_bIgoreFirstTab |
GsfOutput * | m_pParagraphContent |
UT_uint8 | m_currentListLevel |
ODe_Style_List * | m_pCurrentListStyle |
bool | m_pendingColumnBreak |
bool | m_pendingPageBreak |
bool | m_bAfter |
bool | m_pendingMasterPageStyleChange |
UT_UTF8String | m_masterPageStyleName |
ODe_Styles & | m_rStyles |
ODe_AutomaticStyles & | m_rAutomatiStyles |
GsfOutput * | m_pTextOutput |
ODe_AuxiliaryData & | m_rAuxiliaryData |
UT_uint8 | m_zIndex |
UT_sint32 | m_iCurrentTOC |
Writes basic stuff like paragraphs, inlined images, etc.
ODe_Text_Listener::ODe_Text_Listener | ( | ODe_Styles & | rStyles, | |
ODe_AutomaticStyles & | rAutomatiStyles, | |||
GsfOutput * | pTextOutput, | |||
ODe_AuxiliaryData & | rAuxiliaryData, | |||
UT_uint8 | zIndex, | |||
UT_uint8 | spacesOffset | |||
) |
Constructor.
pTextOutput | Handle to the file (often a temp one) that will receive the ODT output produced by this listener. |
References _initDefaultHeadingStyles().
ODe_Text_Listener::ODe_Text_Listener | ( | ODe_Styles & | rStyles, | |
ODe_AutomaticStyles & | rAutomatiStyles, | |||
GsfOutput * | pTextOutput, | |||
ODe_AuxiliaryData & | rAuxiliaryData, | |||
UT_uint8 | zIndex, | |||
UT_uint8 | spacesOffset, | |||
const UT_UTF8String & | rPendingMasterPageStyleName | |||
) |
Constructor.
pTextOutput | Handle to the file (often a temp one) that will receive the ODT output produced by this listener. |
References _initDefaultHeadingStyles().
ODe_Text_Listener::~ODe_Text_Listener | ( | ) |
References m_currentListLevel, m_openedODParagraph, m_openedODSpan, m_pCurrentListStyle, and UT_ASSERT_HARMLESS.
bool ODe_Text_Listener::_blockIsPlainParagraph | ( | const PP_AttrProp * | pAP | ) | const [private] |
Returns true if the properties belongs to a plain paragraph, false otherwise.
An AbiWord
tag (block) can be, for instance, a list item if it has a "listid" and/or "level" attribute.
References gchar, and PP_AttrProp::getAttribute().
void ODe_Text_Listener::_closeODList | ( | ) | [private] |
Close an OpenDocument list if there is one currently open.
References ODe_AbiDocListenerImpl::_printSpacesOffset(), UT_UTF8String::clear(), m_currentListLevel, m_pCurrentListStyle, m_pTextOutput, ODe_AbiDocListenerImpl::m_spacesOffset, and ODe_writeUTF8String().
Referenced by _openODListItem(), closeCell(), closeEndnote(), closeFootnote(), closeSection(), insertColumnBreak(), insertPageBreak(), openTable(), and openTOC().
void ODe_Text_Listener::_closeODParagraph | ( | ) | [private] |
References _openParagraphDelayed(), m_bAfter, m_openedODParagraph, m_pParagraphContent, m_pTextOutput, ODe_AbiDocListenerImpl::m_spacesOffset, and ODe_gsf_output_close().
Referenced by closeCell(), closeEndnote(), closeFootnote(), closeFrame(), closeSection(), openBlock(), openTable(), and openTOC().
void ODe_Text_Listener::_initDefaultHeadingStyles | ( | ) | [private] |
References ODe_Styles::addStyle(), ODe_HeadingStyles::addStyleName(), fl_TOCLayout::getDefaultDestStyle(), PP_Property::getInitial(), ODe_AuxiliaryData::m_headingStyles, ODe_AuxiliaryData::m_mDestStyles, m_rAuxiliaryData, m_rStyles, PP_lookupProperty(), UT_continue_if_fail, UT_UTF8String_sprintf(), and UT_UTF8String::utf8_str().
Referenced by ODe_Text_Listener().
void ODe_Text_Listener::_openODListItem | ( | const PP_AttrProp * | pAP | ) | [private] |
Open a <text:list-item>, in some cases along with a preceding <text:list>
References _closeODList(), ODe_AbiDocListenerImpl::_printSpacesOffset(), ODe_AutomaticStyles::addListStyle(), UT_UTF8String::clear(), ODe_Style_Style::convertStyleToNCName(), gchar, ODe_ListLevelStyle::getAbiListID(), PP_AttrProp::getAttribute(), ODe_Style_List::getLevelStyle(), ODe_Style_List::getName(), m_currentListLevel, m_pCurrentListStyle, m_pTextOutput, m_rAutomatiStyles, ODe_AbiDocListenerImpl::m_spacesOffset, ODe_writeUTF8String(), ODe_Style_List::setLevelStyle(), UT_ASSERT, UT_ASSERT_HARMLESS, and UT_UTF8String::utf8_str().
Referenced by openBlock().
void ODe_Text_Listener::_openODParagraph | ( | const PP_AttrProp * | pAP | ) | [private] |
References UT_UTF8String::clear(), ODe_Style_Style::hasParagraphStyleProps(), ODe_Style_Style::hasTextStyleProps(), m_bAfter, m_delayedAP, m_delayedColumnBreak, m_delayedListStyle, m_delayedMasterPageStyleName, m_delayedPageBreak, m_delayedPendingMasterPageStyleChange, m_delayedSpacesOffset, m_isFirstCharOnParagraph, m_masterPageStyleName, m_openedODParagraph, m_pCurrentListStyle, m_pendingColumnBreak, m_pendingMasterPageStyleChange, m_pendingPageBreak, m_pParagraphContent, ODe_AbiDocListenerImpl::m_spacesOffset, UT_ASSERT, and UT_UTF8String::utf8_str().
Referenced by openBlock().
void ODe_Text_Listener::_openParagraphDelayed | ( | ) | [private] |
References ODe_AbiDocListenerImpl::_printSpacesOffset(), appendAttribute(), UT_UTF8String::clear(), ODe_Style_Style::convertStyleToNCName(), UT_UTF8String::empty(), UT_UTF8String::escapeXML(), ODe_Style_Style::fetchAttributesFromAbiBlock(), gchar, PP_AttrProp::getAttribute(), ODe_Style_Style::getName(), PP_AttrProp::getProperty(), ODe_Style_Style::hasParagraphStyleProps(), ODe_Style_Style::hasTextStyleProps(), m_bAfter, m_delayedAP, m_delayedColumnBreak, m_delayedListStyle, m_delayedMasterPageStyleName, m_delayedPageBreak, m_delayedPendingMasterPageStyleChange, m_delayedSpacesOffset, ODe_AuxiliaryData::m_headingStyles, m_pendingColumnBreak, m_pendingPageBreak, m_pParagraphContent, m_pTextOutput, m_rAutomatiStyles, m_rAuxiliaryData, ODe_AbiDocListenerImpl::m_spacesOffset, ODe_writeUTF8String(), PT_XMLID, ODe_Style_Style::setBreakBefore(), ODe_Style_Style::setFamily(), ODe_Style_Style::setMasterPageName(), ODe_AutomaticStyles::storeParagraphStyle(), UT_DEBUGMSG, and UT_UTF8String_sprintf().
Referenced by _closeODParagraph().
UT_UTF8String & ODe_Text_Listener::appendAttribute | ( | UT_UTF8String & | ret, | |
const char * | key, | |||
const char * | value | |||
) | [private] |
References UT_UTF8String::escapeXML().
Referenced by _openParagraphDelayed(), openAnnotation(), and openBookmark().
void ODe_Text_Listener::closeAnnotation | ( | const std::string & | name | ) | [virtual] |
Reimplemented from ODe_AbiDocListenerImpl.
References m_pParagraphContent, and ODe_writeUTF8String().
void ODe_Text_Listener::closeBlock | ( | ) | [virtual] |
Reimplemented from ODe_AbiDocListenerImpl.
void ODe_Text_Listener::closeBookmark | ( | const PP_AttrProp * | pAP | ) | [virtual] |
Reimplemented from ODe_AbiDocListenerImpl.
References gchar, PP_AttrProp::getAttribute(), m_pParagraphContent, ODe_writeUTF8String(), and UT_return_if_fail.
void ODe_Text_Listener::closeBookmark | ( | UT_UTF8String & | sBookmarkName | ) | [virtual] |
Reimplemented from ODe_AbiDocListenerImpl.
References UT_UTF8String::escapeXML(), UT_UTF8String::length(), m_pParagraphContent, ODe_writeUTF8String(), and UT_return_if_fail.
void ODe_Text_Listener::closeCell | ( | ODe_ListenerAction & | rAction | ) | [virtual] |
Reimplemented from ODe_AbiDocListenerImpl.
References _closeODList(), _closeODParagraph(), and ODe_ListenerAction::popListenerImpl().
void ODe_Text_Listener::closeEndnote | ( | ODe_ListenerAction & | rAction | ) | [virtual] |
Reimplemented from ODe_AbiDocListenerImpl.
References _closeODList(), _closeODParagraph(), m_openedODNote, and ODe_ListenerAction::popListenerImpl().
void ODe_Text_Listener::closeField | ( | const UT_UTF8String & | fieldType | ) | [virtual] |
Reimplemented from ODe_AbiDocListenerImpl.
References UT_UTF8String::length(), m_pParagraphContent, ODe_writeUTF8String(), UT_DEBUGMSG, UT_return_if_fail, and UT_UTF8String::utf8_str().
void ODe_Text_Listener::closeFootnote | ( | ODe_ListenerAction & | rAction | ) | [virtual] |
Reimplemented from ODe_AbiDocListenerImpl.
References _closeODList(), _closeODParagraph(), m_openedODNote, and ODe_ListenerAction::popListenerImpl().
void ODe_Text_Listener::closeFrame | ( | ODe_ListenerAction & | rAction | ) | [virtual] |
Reimplemented from ODe_AbiDocListenerImpl.
References _closeODParagraph(), m_openedODTextboxFrame, and ODe_ListenerAction::popListenerImpl().
void ODe_Text_Listener::closeHyperlink | ( | ) | [virtual] |
Reimplemented from ODe_AbiDocListenerImpl.
References m_pParagraphContent, and ODe_writeUTF8String().
void ODe_Text_Listener::closeRDFAnchor | ( | const PP_AttrProp * | pAP | ) | [virtual] |
Reimplemented from ODe_AbiDocListenerImpl.
References m_pParagraphContent, and ODe_writeUTF8String().
void ODe_Text_Listener::closeSection | ( | ODe_ListenerAction & | rAction | ) | [virtual] |
Reimplemented from ODe_AbiDocListenerImpl.
References _closeODList(), _closeODParagraph(), and ODe_ListenerAction::popListenerImpl().
void ODe_Text_Listener::closeSpan | ( | ) | [virtual] |
Reimplemented from ODe_AbiDocListenerImpl.
References m_openedODSpan, m_pParagraphContent, and ODe_writeUTF8String().
void ODe_Text_Listener::closeTOC | ( | ) | [virtual] |
Reimplemented from ODe_AbiDocListenerImpl.
References ODe_AbiDocListenerImpl::_printSpacesOffset(), m_pTextOutput, ODe_AbiDocListenerImpl::m_spacesOffset, and ODe_writeUTF8String().
void ODe_Text_Listener::endAnnotation | ( | const std::string & | name | ) | [virtual] |
Reimplemented from ODe_AbiDocListenerImpl.
References m_pParagraphContent, and ODe_write().
void ODe_Text_Listener::insertColumnBreak | ( | ) | [virtual] |
Reimplemented from ODe_AbiDocListenerImpl.
References _closeODList(), m_bAfter, m_isFirstCharOnParagraph, and m_pendingColumnBreak.
void ODe_Text_Listener::insertInlinedImage | ( | const gchar * | pImageName, | |
const PP_AttrProp * | pAP | |||
) | [virtual] |
Reimplemented from ODe_AbiDocListenerImpl.
References ODe_Styles::addGraphicsStyle(), UT_UTF8String::clear(), UT_UTF8String::escapeXML(), gchar, PP_AttrProp::getAttribute(), ODe_Styles::getGraphicsStyle(), ODe_Style_Style::getName(), PP_AttrProp::getProperty(), UT_UTF8String::length(), m_pParagraphContent, m_rAutomatiStyles, m_rStyles, m_zIndex, ODe_writeAttribute(), ODe_writeUTF8String(), ODe_Style_Style::setFamily(), ODe_Style_Style::setParentStyleName(), ODe_Style_Style::setRunThrough(), ODe_Style_Style::setStyleName(), ODe_Style_Style::setVerticalPos(), ODe_Style_Style::setVerticalRel(), ODe_Style_Style::setWrap(), ODe_AutomaticStyles::storeGraphicStyle(), UT_UTF8String_sprintf(), and UT_UTF8String::utf8_str().
void ODe_Text_Listener::insertLineBreak | ( | ) | [virtual] |
Reimplemented from ODe_AbiDocListenerImpl.
References m_pParagraphContent, and ODe_writeUTF8String().
void ODe_Text_Listener::insertPageBreak | ( | ) | [virtual] |
Reimplemented from ODe_AbiDocListenerImpl.
References _closeODList(), m_bAfter, m_isFirstCharOnParagraph, and m_pendingPageBreak.
void ODe_Text_Listener::insertPositionedImage | ( | const gchar * | pImageName, | |
const PP_AttrProp * | pAP | |||
) | [virtual] |
References UT_UTF8String::clear(), DIM_IN, UT_UTF8String::escapeXML(), gchar, PP_AttrProp::getAttribute(), ODe_Style_Style::getName(), ODe_AutomaticStyles::getPageLayout(), ODe_Style_PageLayout::getPageMarginHeader(), ODe_Style_PageLayout::getPageMarginLeft(), ODe_Style_PageLayout::getPageMarginTop(), PP_AttrProp::getProperty(), ODe_AutomaticStyles::getSectionStylesCount(), UT_UTF8String::length(), m_pParagraphContent, m_rAutomatiStyles, m_zIndex, ODe_writeAttribute(), ODe_writeUTF8String(), ODe_Style_Style::setFamily(), ODe_Style_Style::setParentStyleName(), ODe_Style_Style::setRunThrough(), ODe_Style_Style::setWrap(), ODe_AutomaticStyles::storeGraphicStyle(), UT_ASSERT, UT_convertInchesToDimensionString(), UT_convertToInches(), UT_DEBUGMSG, UT_UTF8String_sprintf(), and UT_UTF8String::utf8_str().
Referenced by openFrame().
void ODe_Text_Listener::insertTabChar | ( | ) | [virtual] |
Reimplemented from ODe_AbiDocListenerImpl.
References m_bIgoreFirstTab, m_currentListLevel, m_isFirstCharOnParagraph, m_pParagraphContent, and ODe_writeUTF8String().
void ODe_Text_Listener::insertText | ( | const UT_UTF8String & | rText | ) | [virtual] |
Reimplemented from ODe_AbiDocListenerImpl.
References UT_UTF8String::length(), m_isFirstCharOnParagraph, m_pParagraphContent, and ODe_writeUTF8String().
void ODe_Text_Listener::openAnnotation | ( | const PP_AttrProp * | pAP, | |
const std::string & | name, | |||
PD_Document * | doc = 0 | |||
) | [virtual] |
Reimplemented from ODe_AbiDocListenerImpl.
References UT_UniqueId::Annotation, appendAttribute(), UT_UTF8String::escapeXML(), gchar, PP_AttrProp::getProperty(), PD_Document::getUID(), ODe_AuxiliaryData::m_additionalRDF, m_pParagraphContent, m_rAuxiliaryData, ODc_reorderDate(), ODe_writeUTF8String(), PT_XMLID, UT_DEBUGMSG, UT_UTF8String_sprintf(), and UT_UTF8String::utf8_str().
void ODe_Text_Listener::openBlock | ( | const PP_AttrProp * | pAP, | |
ODe_ListenerAction & | rAction | |||
) | [virtual] |
Override of ODe_AbiDocListenerImpl::openBlock.
Reimplemented from ODe_AbiDocListenerImpl.
References _closeODParagraph(), _openODListItem(), and _openODParagraph().
void ODe_Text_Listener::openBookmark | ( | const PP_AttrProp * | pAP | ) | [virtual] |
Reimplemented from ODe_AbiDocListenerImpl.
References appendAttribute(), gchar, PP_AttrProp::getAttribute(), m_pParagraphContent, ODe_writeUTF8String(), PT_XMLID, and UT_return_if_fail.
void ODe_Text_Listener::openEndnote | ( | const PP_AttrProp * | pAP, | |
ODe_ListenerAction & | rAction | |||
) | [virtual] |
Reimplemented from ODe_AbiDocListenerImpl.
References m_openedODNote, m_pParagraphContent, m_rAutomatiStyles, m_rAuxiliaryData, m_rStyles, ODe_AbiDocListenerImpl::m_spacesOffset, and ODe_ListenerAction::pushListenerImpl().
void ODe_Text_Listener::openField | ( | const fd_Field * | field, | |
const UT_UTF8String & | fieldType, | |||
const UT_UTF8String & | fieldValue | |||
) | [virtual] |
Reimplemented from ODe_AbiDocListenerImpl.
References UT_UTF8String::escapeXML(), UT_UTF8String::length(), m_pParagraphContent, ODe_writeUTF8String(), UT_DEBUGMSG, UT_return_if_fail, UT_UTF8String_sprintf(), and UT_UTF8String::utf8_str().
void ODe_Text_Listener::openFootnote | ( | const PP_AttrProp * | pAP, | |
ODe_ListenerAction & | rAction | |||
) | [virtual] |
Reimplemented from ODe_AbiDocListenerImpl.
References m_openedODNote, m_pParagraphContent, m_rAutomatiStyles, m_rAuxiliaryData, m_rStyles, ODe_AbiDocListenerImpl::m_spacesOffset, and ODe_ListenerAction::pushListenerImpl().
void ODe_Text_Listener::openFrame | ( | const PP_AttrProp * | pAP, | |
ODe_ListenerAction & | rAction | |||
) | [virtual] |
Reimplemented from ODe_AbiDocListenerImpl.
References gchar, PP_AttrProp::getAttribute(), PP_AttrProp::getProperty(), insertPositionedImage(), m_openedODTextboxFrame, m_pTextOutput, m_rAutomatiStyles, m_rAuxiliaryData, m_rStyles, ODe_AbiDocListenerImpl::m_spacesOffset, m_zIndex, ODe_writeUTF8String(), PT_STRUX_IMAGE_DATAID, and ODe_ListenerAction::pushListenerImpl().
void ODe_Text_Listener::openHyperlink | ( | const PP_AttrProp * | pAP | ) | [virtual] |
Reimplemented from ODe_AbiDocListenerImpl.
References UT_UTF8String::escapeXML(), gchar, PP_AttrProp::getAttribute(), UT_UTF8String::length(), m_pParagraphContent, ODe_writeUTF8String(), and UT_return_if_fail.
void ODe_Text_Listener::openRDFAnchor | ( | const PP_AttrProp * | pAP | ) | [virtual] |
Reimplemented from ODe_AbiDocListenerImpl.
References UT_UTF8String::escapeURL(), RDFAnchor::getID(), m_pParagraphContent, ODe_writeUTF8String(), and UT_return_if_fail.
void ODe_Text_Listener::openSpan | ( | const PP_AttrProp * | pAP | ) | [virtual] |
Reimplemented from ODe_AbiDocListenerImpl.
References ODe_Style_Style::convertStyleToNCName(), UT_UTF8String::empty(), ODe_Style_Style::fetchAttributesFromAbiSpan(), gchar, PP_AttrProp::getAttribute(), ODe_Style_Style::getName(), ODe_Style_Style::hasTextStyleProps(), m_openedODSpan, m_pParagraphContent, m_rAutomatiStyles, ODe_writeUTF8String(), ODe_Style_Style::setFamily(), ODe_AutomaticStyles::storeTextStyle(), and UT_UTF8String_sprintf().
void ODe_Text_Listener::openTable | ( | const PP_AttrProp * | pAP, | |
ODe_ListenerAction & | rAction | |||
) | [virtual] |
Reimplemented from ODe_AbiDocListenerImpl.
References _closeODList(), _closeODParagraph(), m_pTextOutput, m_rAutomatiStyles, m_rAuxiliaryData, m_rStyles, ODe_AbiDocListenerImpl::m_spacesOffset, and ODe_ListenerAction::pushListenerImpl().
void ODe_Text_Listener::openTOC | ( | const PP_AttrProp * | pAP | ) | [virtual] |
Reimplemented from ODe_AbiDocListenerImpl.
References _closeODList(), _closeODParagraph(), ODe_AbiDocListenerImpl::_printSpacesOffset(), ODe_Styles::addStyle(), UT_UTF8String::assign(), UT_UTF8String::clear(), ODe_Style_Style::convertStyleToNCName(), UT_UTF8String::escapeXML(), gchar, fl_TOCLayout::getDefaultHeading(), PP_Property::getInitial(), PP_AttrProp::getProperty(), m_iCurrentTOC, ODe_AuxiliaryData::m_mDestStyles, m_pTextOutput, ODe_AuxiliaryData::m_pTOCContents, m_rAuxiliaryData, m_rStyles, ODe_AbiDocListenerImpl::m_spacesOffset, ODe_writeUTF8String(), PP_lookupProperty(), UT_ASSERT_HARMLESS, UT_UTF8String_sprintf(), and UT_UTF8String::utf8_str().
void ODe_Text_Listener::setIgnoreFirstTab | ( | bool | b | ) | [inline] |
References m_bIgoreFirstTab.
Referenced by ODe_Note_Listener::openBlock().
void ODe_Text_Listener::setOpenedODNote | ( | bool | b | ) | [inline] |
References m_openedODNote.
bool ODe_Text_Listener::m_bAfter [private] |
Referenced by _closeODParagraph(), _openODParagraph(), _openParagraphDelayed(), insertColumnBreak(), and insertPageBreak().
bool ODe_Text_Listener::m_bIgoreFirstTab [private] |
Referenced by insertTabChar(), and setIgnoreFirstTab().
Referenced by _closeODList(), _openODListItem(), insertTabChar(), and ~ODe_Text_Listener().
const PP_AttrProp* ODe_Text_Listener::m_delayedAP [private] |
Referenced by _openODParagraph(), and _openParagraphDelayed().
bool ODe_Text_Listener::m_delayedColumnBreak [private] |
Referenced by _openODParagraph(), and _openParagraphDelayed().
Referenced by _openODParagraph(), and _openParagraphDelayed().
std::string ODe_Text_Listener::m_delayedMasterPageStyleName [private] |
Referenced by _openODParagraph(), and _openParagraphDelayed().
bool ODe_Text_Listener::m_delayedPageBreak [private] |
Referenced by _openODParagraph(), and _openParagraphDelayed().
bool ODe_Text_Listener::m_delayedPendingMasterPageStyleChange [private] |
Referenced by _openODParagraph(), and _openParagraphDelayed().
Referenced by _openODParagraph(), and _openParagraphDelayed().
UT_sint32 ODe_Text_Listener::m_iCurrentTOC [private] |
Referenced by openTOC().
bool ODe_Text_Listener::m_isFirstCharOnParagraph [private] |
Referenced by _openODParagraph(), insertColumnBreak(), insertPageBreak(), insertTabChar(), and insertText().
Referenced by _openODParagraph().
bool ODe_Text_Listener::m_openedODNote [private] |
Referenced by closeEndnote(), closeFootnote(), openEndnote(), openFootnote(), and setOpenedODNote().
bool ODe_Text_Listener::m_openedODParagraph [private] |
Referenced by _closeODParagraph(), _openODParagraph(), and ~ODe_Text_Listener().
bool ODe_Text_Listener::m_openedODSpan [private] |
Referenced by closeSpan(), openSpan(), and ~ODe_Text_Listener().
bool ODe_Text_Listener::m_openedODTextboxFrame [private] |
Referenced by closeFrame(), and openFrame().
Referenced by _closeODList(), _openODListItem(), _openODParagraph(), and ~ODe_Text_Listener().
bool ODe_Text_Listener::m_pendingColumnBreak [private] |
Referenced by _openODParagraph(), _openParagraphDelayed(), and insertColumnBreak().
bool ODe_Text_Listener::m_pendingMasterPageStyleChange [private] |
Referenced by _openODParagraph().
bool ODe_Text_Listener::m_pendingPageBreak [private] |
Referenced by _openODParagraph(), _openParagraphDelayed(), and insertPageBreak().
GsfOutput* ODe_Text_Listener::m_pParagraphContent [private] |
Referenced by _closeODParagraph(), _openODParagraph(), _openParagraphDelayed(), closeAnnotation(), closeBookmark(), closeField(), closeHyperlink(), closeRDFAnchor(), closeSpan(), endAnnotation(), insertInlinedImage(), insertLineBreak(), insertPositionedImage(), insertTabChar(), insertText(), openAnnotation(), openBookmark(), openEndnote(), openField(), openFootnote(), openHyperlink(), openRDFAnchor(), and openSpan().
GsfOutput* ODe_Text_Listener::m_pTextOutput [private] |
Referenced by _closeODList(), _closeODParagraph(), _openODListItem(), _openParagraphDelayed(), closeTOC(), openFrame(), openTable(), and openTOC().
Referenced by _initDefaultHeadingStyles(), _openParagraphDelayed(), openAnnotation(), openEndnote(), openFootnote(), openFrame(), openTable(), and openTOC().
ODe_Styles& ODe_Text_Listener::m_rStyles [private] |
Referenced by _initDefaultHeadingStyles(), insertInlinedImage(), openEndnote(), openFootnote(), openFrame(), openTable(), and openTOC().
UT_uint8 ODe_Text_Listener::m_zIndex [private] |
Referenced by insertInlinedImage(), insertPositionedImage(), and openFrame().