Class responsible for listening to the Abiword Document. More...
#include <ie_exp_OpenXML_Listener.h>
Class responsible for listening to the Abiword Document.
IE_Exp_OpenXML_Listener::IE_Exp_OpenXML_Listener | ( | PD_Document * | doc | ) |
IE_Exp_OpenXML_Listener Class responsible for listening to the Abiword Document.
References addDocumentStyles(), addImages(), addLists(), document, OXML_Document::getNewInstance(), pdoc, setPageSize(), PD_Document::tellListener(), UT_DEBUGMSG, and UT_OK.
IE_Exp_OpenXML_Listener::~IE_Exp_OpenXML_Listener | ( | ) |
References OXML_Document::destroyInstance(), and document.
UT_Error IE_Exp_OpenXML_Listener::addDocumentStyles | ( | ) | [private] |
References OXML_Document::addStyle(), document, PD_Document::enumStyles(), gchar, PD_Document::getAttrProp(), PD_Document::getAttrPropIndex(), PD_Style::getBasedOn(), PD_Style::getFollowedBy(), PD_Style::getName(), PD_Style::getNthProperty(), PD_Style::getPropertyCount(), PD_Document::getStyleCount(), PD_Style::isCharStyle(), pdoc, OXML_ObjectWithAttrProp::setAttribute(), OXML_Style::setBasedOn(), OXML_Style::setFollowedBy(), OXML_ObjectWithAttrProp::setProperty(), style, UT_DEBUGMSG, and UT_OK.
Referenced by IE_Exp_OpenXML_Listener().
UT_Error IE_Exp_OpenXML_Listener::addImages | ( | ) | [private] |
References OXML_Document::addImage(), document, PD_Document::enumDataItems(), pdoc, OXML_Image::setData(), OXML_Image::setId(), OXML_Image::setMimeType(), szName, UT_DEBUGMSG, and UT_OK.
Referenced by IE_Exp_OpenXML_Listener().
UT_Error IE_Exp_OpenXML_Listener::addLists | ( | ) | [private] |
References OXML_Document::addList(), document, PD_Document::enumLists(), PD_Document::getAttrProp(), PD_Document::getAttrPropIndex(), PD_Document::getListsCount(), pdoc, OXML_List::setDecimal(), OXML_List::setDelim(), OXML_List::setId(), OXML_List::setLevel(), OXML_List::setParentId(), OXML_List::setStartValue(), OXML_List::setType(), and UT_OK.
Referenced by IE_Exp_OpenXML_Listener().
bool IE_Exp_OpenXML_Listener::change | ( | fl_ContainerLayout * | sfh, | |
const PX_ChangeRecord * | pcr | |||
) | [virtual] |
Implements PL_Listener.
OXML_Document * IE_Exp_OpenXML_Listener::getDocument | ( | void | ) |
References document.
Referenced by IE_Exp_OpenXML::_writeDocument().
std::string IE_Exp_OpenXML_Listener::getNextId | ( | ) | [private] |
References idCount.
Referenced by populate(), and populateStrux().
virtual bool IE_Exp_OpenXML_Listener::insertStrux | ( | fl_ContainerLayout * | sfh, | |
const PX_ChangeRecord * | pcr, | |||
pf_Frag_Strux * | sdhNew, | |||
PL_ListenerId | lid, | |||
void(*)(pf_Frag_Strux *sdhNew, PL_ListenerId lid, fl_ContainerLayout *sfhNew) | pfnBindHandles | |||
) | [virtual] |
Implements PL_Listener.
bool IE_Exp_OpenXML_Listener::populate | ( | fl_ContainerLayout * | sfh, | |
const PX_ChangeRecord * | pcr | |||
) | [virtual] |
Implements PL_Listener.
References OXML_Element::appendElement(), bInHyperlink, document, fd_Field::FD_ListLabel, gchar, OXML_ObjectWithAttrProp::getAttribute(), PP_AttrProp::getAttribute(), PP_AttrProp::getAttributeCount(), PD_Document::getAttrProp(), OXML_Document::getBookmarkId(), PX_ChangeRecord_Span::getBufIndex(), PD_Document::getDataItemDataByName(), PX_ChangeRecord_Object::getField(), fd_Field::getFieldType(), PX_ChangeRecord::getIndexAP(), PX_ChangeRecord_Span::getLength(), getNextId(), PP_AttrProp::getNthAttribute(), PP_AttrProp::getNthProperty(), PX_ChangeRecord_Object::getObjectType(), PD_Document::getPointer(), PP_AttrProp::getProperty(), PP_AttrProp::getPropertyCount(), PX_ChangeRecord::getType(), fd_Field::getValue(), hyperlink, paragraph, pdoc, PTO_Bookmark, PTO_Embed, PTO_Field, PTO_Hyperlink, PTO_Image, PTO_Math, PX_ChangeRecord::PXT_InsertFmtMark, PX_ChangeRecord::PXT_InsertObject, PX_ChangeRecord::PXT_InsertSpan, OXML_ObjectWithAttrProp::setAttribute(), OXML_Document::setBookmarkName(), OXML_Element_Math::setMathML(), OXML_Element_Bookmark::setName(), OXML_Element_Paragraph::setPageBreak(), OXML_ObjectWithAttrProp::setProperty(), szName, UCS_FF, UT_DEBUGMSG, UT_OK, and UT_UTF8String::utf8_str().
bool IE_Exp_OpenXML_Listener::populateStrux | ( | pf_Frag_Strux * | sdh, | |
const PX_ChangeRecord * | pcr, | |||
fl_ContainerLayout ** | psfh | |||
) | [virtual] |
Implements PL_Listener.
References OXML_Document::addEndnote(), OXML_Document::addFooter(), OXML_Document::addFootnote(), OXML_Document::addHeader(), OXML_Element::appendElement(), OXML_Section::appendElement(), OXML_Document::appendSection(), bInPositionedImage, bInTextbox, ie_Table::closeCell(), ie_Table::closeTable(), document, gchar, PP_AttrProp::getAttribute(), PP_AttrProp::getAttributeCount(), PD_Document::getAttrProp(), ie_Table::getBot(), PX_ChangeRecord::getIndexAP(), ie_Table::getLeft(), getNextId(), PP_AttrProp::getNthAttribute(), PP_AttrProp::getNthProperty(), ie_Table::getNumCols(), PP_AttrProp::getProperty(), PP_AttrProp::getPropertyCount(), ie_Table::getRight(), PX_ChangeRecord_Strux::getStruxType(), ie_Table::getTop(), PX_ChangeRecord::getType(), ie_Table::isNewRow(), m_cellStack, m_rowStack, m_tableStack, ie_Table::openCell(), ie_Table::openTable(), paragraph, pdoc, PTX_Block, PTX_EndAnnotation, PTX_EndCell, PTX_EndEndnote, PTX_EndFootnote, PTX_EndFrame, PTX_EndMarginnote, PTX_EndTable, PTX_EndTOC, PTX_Section, PTX_SectionAnnotation, PTX_SectionCell, PTX_SectionEndnote, PTX_SectionFootnote, PTX_SectionFrame, PTX_SectionHdrFtr, PTX_SectionMarginnote, PTX_SectionTable, PTX_SectionTOC, savedParagraph, savedSection, section, OXML_ObjectWithAttrProp::setAttribute(), OXML_Element_Row::setNumCols(), OXML_ObjectWithAttrProp::setProperty(), OXML_Section::setTarget(), szName, tableHelper, TARGET_DOCUMENT, TARGET_ENDNOTE, TARGET_FOOTER, TARGET_FOOTNOTE, TARGET_HEADER, and UT_DEBUGMSG.
UT_Error IE_Exp_OpenXML_Listener::setPageSize | ( | ) | [private] |
References DIM_IN, document, fp_PageSize::getDefaultPageMargin(), PD_Document::getPageSize(), fp_PageSize::Height(), fp_PageSize::isPortrait(), pdoc, OXML_Document::setPageHeight(), OXML_Document::setPageMargins(), OXML_Document::setPageOrientation(), OXML_Document::setPageWidth(), UT_convertToDimensionlessString(), UT_UTF8String::utf8_str(), and fp_PageSize::Width().
Referenced by IE_Exp_OpenXML_Listener().
bool IE_Exp_OpenXML_Listener::signal | ( | UT_uint32 | iSignal | ) | [virtual] |
Implements PL_Listener.
bool IE_Exp_OpenXML_Listener::bInHyperlink [private] |
Referenced by populate().
bool IE_Exp_OpenXML_Listener::bInPositionedImage [private] |
Referenced by populateStrux().
bool IE_Exp_OpenXML_Listener::bInTextbox [private] |
Referenced by populateStrux().
OXML_Document* IE_Exp_OpenXML_Listener::document [private] |
Referenced by populate().
int IE_Exp_OpenXML_Listener::idCount [private] |
Referenced by getNextId().
std::stack<OXML_SharedElement_Cell> IE_Exp_OpenXML_Listener::m_cellStack [private] |
Referenced by populateStrux().
std::stack<OXML_Element_Row*> IE_Exp_OpenXML_Listener::m_rowStack [private] |
Referenced by populateStrux().
std::stack<OXML_Element_Table*> IE_Exp_OpenXML_Listener::m_tableStack [private] |
Referenced by populateStrux().
Referenced by populate(), and populateStrux().
PD_Document* IE_Exp_OpenXML_Listener::pdoc [private] |
Referenced by addDocumentStyles(), addImages(), addLists(), IE_Exp_OpenXML_Listener(), populate(), populateStrux(), and setPageSize().
Referenced by populateStrux().
Referenced by populateStrux().
OXML_Section* IE_Exp_OpenXML_Listener::section [private] |
Referenced by populateStrux().
ie_Table IE_Exp_OpenXML_Listener::tableHelper [private] |
Referenced by populateStrux().