Public Member Functions | |
OpenWriter_ContentStream_Listener (IE_Imp_OpenWriter *importer, OpenWriter_StylesStream_Listener *pSSListener, bool bOpenDocument) | |
virtual | ~OpenWriter_ContentStream_Listener () |
virtual void | startElement (const gchar *name, const gchar **atts) |
virtual void | endElement (const gchar *name) |
virtual void | charData (const gchar *buffer, int length) |
Private Member Functions | |
void | _insertImage (const gchar **atts) |
void | _insureInBlock (const gchar **atts) |
void | _insureInSection (const gchar *props) |
void | _insertBookmark (const gchar *name, const gchar *type) |
void | _flush () |
void | _openTable (const gchar **) |
void | _openColumn (const gchar **) |
void | _openRow (const gchar **) |
void | _openCell (const gchar **) |
void | _closeTable () |
void | _closeColumn () |
void | _closeRow () |
void | _closeCell () |
void | _defineSimpleStyle (const gchar **props) |
const gchar * | _mapStyle (const gchar *name) const |
const OO_Style * | _mapStyleObj (const gchar *name, UT_UTF8String &oo_sty) const |
bool | _pushInlineFmt (const gchar **atts) |
void | _popInlineFmt (void) |
Private Attributes | |
UT_UCS4String | m_charData |
bool | m_bAcceptingText |
bool | m_bInSection |
bool | m_bInTOC |
UT_UTF8String | m_curStyleName |
PP_PropertyVector | m_vecInlineFmt |
UT_NumberStack | m_stackFmtStartIndex |
const OpenWriter_StylesStream_Listener * | m_pSSListener |
UT_uint32 | m_imgCnt |
int | m_row |
int | m_col |
int | m_cel |
const bool | m_bOpenDocument |
Class to handle the content stream
OpenWriter_ContentStream_Listener::OpenWriter_ContentStream_Listener | ( | IE_Imp_OpenWriter * | importer, | |
OpenWriter_StylesStream_Listener * | pSSListener, | |||
bool | bOpenDocument | |||
) | [inline] |
virtual OpenWriter_ContentStream_Listener::~OpenWriter_ContentStream_Listener | ( | ) | [inline, virtual] |
void OpenWriter_ContentStream_Listener::_closeCell | ( | void | ) | [inline, private] |
References PD_Document::appendStrux(), OpenWriter_Stream_Listener::getDocument(), and PTX_EndCell.
Referenced by endElement().
void OpenWriter_ContentStream_Listener::_closeColumn | ( | ) | [inline, private] |
References m_col.
Referenced by endElement().
void OpenWriter_ContentStream_Listener::_closeRow | ( | void | ) | [inline, private] |
References m_col.
Referenced by endElement().
void OpenWriter_ContentStream_Listener::_closeTable | ( | void | ) | [inline, private] |
References PD_Document::appendStrux(), OpenWriter_Stream_Listener::getDocument(), m_cel, m_col, m_row, and PTX_EndTable.
Referenced by endElement().
void OpenWriter_ContentStream_Listener::_defineSimpleStyle | ( | const gchar ** | props | ) | [inline, private] |
References IE_Imp_OpenWriter::defineSimpleStyle(), OpenWriter_Stream_Listener::getImporter(), and m_curStyleName.
Referenced by startElement().
void OpenWriter_ContentStream_Listener::_flush | ( | void | ) | [inline, private] |
References PD_Document::appendSpan(), UT_UCS4String::clear(), OpenWriter_Stream_Listener::getDocument(), m_charData, UT_UCS4String::size(), and UT_UCS4String::ucs4_str().
Referenced by endElement(), and startElement().
void OpenWriter_ContentStream_Listener::_insertBookmark | ( | const gchar * | name, | |
const gchar * | type | |||
) | [inline, private] |
References PD_Document::appendObject(), OpenWriter_Stream_Listener::getDocument(), PTO_Bookmark, and UT_return_if_fail.
Referenced by startElement().
void OpenWriter_ContentStream_Listener::_insertImage | ( | const gchar ** | atts | ) | [inline, private] |
References UT_String::c_str(), abicollab::service::error(), gchar, OpenWriter_Stream_Listener::getDocument(), OpenWriter_Stream_Listener::getImporter(), IEGFT_Unknown, IE_ImpGraphic::loadGraphic(), loadStream(), m_bOpenDocument, m_imgCnt, PTO_Image, UT_getAttribute(), UT_OK, and UT_String_sprintf().
Referenced by startElement().
void OpenWriter_ContentStream_Listener::_insureInBlock | ( | const gchar ** | atts | ) | [inline, private] |
References _insureInSection(), PD_Document::appendStrux(), OpenWriter_Stream_Listener::getDocument(), m_bAcceptingText, PP_std_copyProps(), and PTX_Block.
Referenced by startElement().
void OpenWriter_ContentStream_Listener::_insureInSection | ( | const gchar * | props | ) | [inline, private] |
const gchar* OpenWriter_ContentStream_Listener::_mapStyle | ( | const gchar * | name | ) | const [inline, private] |
const OO_Style* OpenWriter_ContentStream_Listener::_mapStyleObj | ( | const gchar * | name, | |
UT_UTF8String & | oo_sty | |||
) | const [inline, private] |
void OpenWriter_ContentStream_Listener::_openCell | ( | const gchar ** | ) | [inline, private] |
References PD_Document::appendStrux(), OpenWriter_Stream_Listener::getDocument(), m_cel, m_row, PTX_SectionCell, and UT_std_string_sprintf().
Referenced by startElement().
void OpenWriter_ContentStream_Listener::_openColumn | ( | const gchar ** | ) | [inline, private] |
References m_col.
Referenced by startElement().
void OpenWriter_ContentStream_Listener::_openRow | ( | const gchar ** | ) | [inline, private] |
Referenced by startElement().
void OpenWriter_ContentStream_Listener::_openTable | ( | const gchar ** | ) | [inline, private] |
References PD_Document::appendStrux(), OpenWriter_Stream_Listener::getDocument(), and PTX_SectionTable.
Referenced by startElement().
void OpenWriter_ContentStream_Listener::_popInlineFmt | ( | void | ) | [inline, private] |
References m_stackFmtStartIndex, m_vecInlineFmt, and UT_NumberStack::pop().
Referenced by endElement().
bool OpenWriter_ContentStream_Listener::_pushInlineFmt | ( | const gchar ** | atts | ) | [inline, private] |
References m_stackFmtStartIndex, m_vecInlineFmt, and UT_NumberStack::push().
Referenced by startElement().
virtual void OpenWriter_ContentStream_Listener::charData | ( | const gchar * | buffer, | |
int | length | |||
) | [inline, virtual] |
Implements UT_XML::Listener.
References m_bAcceptingText, m_bInTOC, and m_charData.
virtual void OpenWriter_ContentStream_Listener::endElement | ( | const gchar * | name | ) | [inline, virtual] |
virtual void OpenWriter_ContentStream_Listener::startElement | ( | const gchar * | name, | |
const gchar ** | atts | |||
) | [inline, virtual] |
Implements UT_XML::Listener.
References _defineSimpleStyle(), _flush(), _insertBookmark(), _insertImage(), _insureInBlock(), _insureInSection(), _mapStyle(), _mapStyleObj(), _openCell(), _openColumn(), _openRow(), _openTable(), _pushInlineFmt(), PD_Document::appendFmt(), PD_Document::appendList(), PD_Document::appendObject(), PD_Document::appendSpan(), PD_Document::appendStrux(), UT_UTF8String::clear(), gchar, OO_Style::getAbiStyle(), OO_Style::getColBreakBefore(), OpenWriter_Stream_Listener::getDocument(), OO_Style::getPageBreakBefore(), m_bAcceptingText, m_bInTOC, m_charData, m_curStyleName, m_vecInlineFmt, PTO_Field, PTO_Hyperlink, PTX_EndTOC, PTX_SectionTOC, UT_UTF8String::size(), type, UCS_VTAB, UT_ASSERT_HARMLESS, UT_DEBUGMSG, UT_getAttribute(), UT_SHOULD_NOT_HAPPEN, and UT_UTF8String::utf8_str().
bool OpenWriter_ContentStream_Listener::m_bAcceptingText [private] |
Referenced by _insureInBlock(), _insureInSection(), charData(), endElement(), and startElement().
bool OpenWriter_ContentStream_Listener::m_bInSection [private] |
Referenced by _insureInSection(), and endElement().
bool OpenWriter_ContentStream_Listener::m_bInTOC [private] |
Referenced by charData(), endElement(), and startElement().
const bool OpenWriter_ContentStream_Listener::m_bOpenDocument [private] |
Referenced by _insertImage().
int OpenWriter_ContentStream_Listener::m_cel [private] |
Referenced by _closeTable(), _openCell(), and _openRow().
Referenced by _flush(), charData(), and startElement().
int OpenWriter_ContentStream_Listener::m_col [private] |
Referenced by _closeColumn(), _closeRow(), _closeTable(), and _openColumn().
Referenced by _defineSimpleStyle(), and startElement().
Referenced by _insertImage().
Referenced by _insureInSection(), _mapStyle(), and _mapStyleObj().
int OpenWriter_ContentStream_Listener::m_row [private] |
Referenced by _closeTable(), _openCell(), and _openRow().
Referenced by _popInlineFmt(), and _pushInlineFmt().
Referenced by _popInlineFmt(), _pushInlineFmt(), endElement(), and startElement().