Responsible for gathering all necessary info to write <office:document-styles> (styles.xml) and <office:document-content> (content.xml). More...
#include <ODe_Main_Listener.h>
Public Member Functions | |
ODe_Main_Listener (ODe_DocumentData &rDocumentData, ODe_AuxiliaryData &rAuxiliaryData) | |
Constructor. | |
virtual | ~ODe_Main_Listener () |
Destructor. | |
virtual void | openSection (const PP_AttrProp *pAP, ODe_ListenerAction &rAction) |
Override of ODe_AbiDocListenerImpl::openSection. | |
virtual void | closeSection (ODe_ListenerAction &rAction) |
Override of ODe_AbiDocListenerImpl::closeSection. | |
Private Member Functions | |
bool | _isHeaderFooterSection (const PP_AttrProp *pAP) const |
void | _openHeaderFooterSection (const PP_AttrProp *pAP, ODe_ListenerAction &rAction) |
Private Attributes | |
ODe_DocumentData & | m_rDocumentData |
ODe_AuxiliaryData & | m_rAuxiliaryData |
bool | m_onHeaderFooterSection |
bool | m_openedODSection |
bool | m_isFirstSection |
Responsible for gathering all necessary info to write <office:document-styles> (styles.xml) and <office:document-content> (content.xml).
ODe_Main_Listener::ODe_Main_Listener | ( | ODe_DocumentData & | rDocumentData, | |
ODe_AuxiliaryData & | rAuxiliaryData | |||
) |
Constructor.
ODe_Main_Listener::~ODe_Main_Listener | ( | ) | [virtual] |
Destructor.
bool ODe_Main_Listener::_isHeaderFooterSection | ( | const PP_AttrProp * | pAP | ) | const [private] |
References gchar, and PP_AttrProp::getAttribute().
Referenced by openSection().
void ODe_Main_Listener::_openHeaderFooterSection | ( | const PP_AttrProp * | pAP, | |
ODe_ListenerAction & | rAction | |||
) | [private] |
References UT_GenericStringMap< T >::enumerate(), gchar, ODe_Style_MasterPage::getAbiFooterEvenId(), ODe_Style_MasterPage::getAbiFooterId(), ODe_Style_MasterPage::getAbiHeaderEvenId(), ODe_Style_MasterPage::getAbiHeaderId(), PP_AttrProp::getAttribute(), ODe_Style_MasterPage::getFooterContentTempFile(), ODe_Style_MasterPage::getFooterEvenContentTempFile(), ODe_Style_MasterPage::getHeaderContentTempFile(), ODe_Style_MasterPage::getHeaderEvenContentTempFile(), UT_GenericVector< T >::getItemCount(), ODe_DocumentData::m_masterStyles, m_onHeaderFooterSection, m_openedODSection, m_rAuxiliaryData, m_rDocumentData, ODe_DocumentData::m_styles, ODe_DocumentData::m_stylesAutoStyles, ODe_ListenerAction::pushListenerImpl(), UT_ASSERT, UT_SHOULD_NOT_HAPPEN, and UT_UTF8String::utf8_str().
Referenced by openSection().
void ODe_Main_Listener::closeSection | ( | ODe_ListenerAction & | rAction | ) | [virtual] |
Override of ODe_AbiDocListenerImpl::closeSection.
Reimplemented from ODe_AbiDocListenerImpl.
References m_onHeaderFooterSection, m_openedODSection, ODe_DocumentData::m_pOfficeTextTemp, m_rDocumentData, and ODe_writeUTF8String().
void ODe_Main_Listener::openSection | ( | const PP_AttrProp * | pAP, | |
ODe_ListenerAction & | rAction | |||
) | [virtual] |
Override of ODe_AbiDocListenerImpl::openSection.
Reimplemented from ODe_AbiDocListenerImpl.
References _isHeaderFooterSection(), _openHeaderFooterSection(), ODe_AutomaticStyles::addPageLayout(), ODe_Style_Style::fetchAttributesFromAbiSection(), ODe_Style_MasterPage::fetchAttributesFromAbiSection(), ODe_Style_PageLayout::fetchAttributesFromAbiSection(), ODe_Style_Style::getName(), ODe_Style_PageLayout::getName(), ODe_AutomaticStyles::getPageLayout(), ODe_AutomaticStyles::getSectionStylesCount(), ODe_Style_PageLayout::hasPageLayoutInfo(), ODe_Style_Style::hasSectionInfo(), UT_GenericStringMap< T >::insert(), ODe_DocumentData::m_contentAutoStyles, m_isFirstSection, ODe_DocumentData::m_masterStyles, m_openedODSection, ODe_DocumentData::m_pOfficeTextTemp, m_rAuxiliaryData, m_rDocumentData, ODe_DocumentData::m_styles, ODe_DocumentData::m_stylesAutoStyles, ODe_writeUTF8String(), UT_GenericStringMap< T >::pick(), ODe_ListenerAction::pushListenerImpl(), ODe_Style_Style::setFamily(), ODe_Style_PageLayout::setName(), UT_GenericStringMap< T >::size(), ODe_AutomaticStyles::storeSectionStyle(), UT_DEBUGMSG, UT_UTF8String_sprintf(), and UT_UTF8String::utf8_str().
bool ODe_Main_Listener::m_isFirstSection [private] |
Referenced by openSection().
bool ODe_Main_Listener::m_onHeaderFooterSection [private] |
Referenced by _openHeaderFooterSection(), and closeSection().
bool ODe_Main_Listener::m_openedODSection [private] |
Referenced by _openHeaderFooterSection(), closeSection(), and openSection().
Referenced by _openHeaderFooterSection(), and openSection().
Referenced by _openHeaderFooterSection(), closeSection(), and openSection().