#include <ie_exp_DocRangeListener.h>
Public Member Functions | |
IE_Exp_DocRangeListener (PD_DocumentRange *pDocRange, PD_Document *pOutDoc) | |
virtual | ~IE_Exp_DocRangeListener () |
virtual bool | populate (fl_ContainerLayout *sfh, const PX_ChangeRecord *pcr) |
virtual bool | populateStrux (pf_Frag_Strux *sdh, const PX_ChangeRecord *pcr, fl_ContainerLayout **psfh) |
virtual bool | change (fl_ContainerLayout *, const PX_ChangeRecord *) |
virtual bool | insertStrux (fl_ContainerLayout *, const PX_ChangeRecord *, pf_Frag_Strux *, PL_ListenerId, void(*)(pf_Frag_Strux *sdhNew, PL_ListenerId lid, fl_ContainerLayout *sfhNew)) |
virtual bool | signal (UT_uint32) |
virtual PLListenerType | getType () const |
Static Public Member Functions | |
static void | assembleAtts (const PP_PropertyVector &inAtts, const PP_PropertyVector &inProps, PP_PropertyVector &outAtts) |
Private Member Functions | |
PD_Document * | getDoc (void) const |
Private Attributes | |
PD_Document * | m_pOutDocument |
bool | m_bFirstSection |
bool | m_bFirstBlock |
PD_Document * | m_pSourceDoc |
PT_AttrPropIndex | m_iLastAP |
IE_Exp_DocRangeListener::IE_Exp_DocRangeListener | ( | PD_DocumentRange * | pDocRange, | |
PD_Document * | pOutDoc | |||
) |
This nifty little class allows a docrange to be exported into blank document. We can then export the content of this document to any of our supported formats. This allows us to export any selection into any document format. We can then place this content on the clipbaord for other application to read.
References PD_Document::appendStyle(), PD_Document::createDataItem(), PD_Document::enumDataItems(), PD_Document::getAllUsedStyles(), PP_AttrProp::getAttributes(), PD_Document::getAttrProp(), getDoc(), PD_Style::getIndexAP(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), m_pSourceDoc, and szName.
virtual IE_Exp_DocRangeListener::~IE_Exp_DocRangeListener | ( | ) | [inline, virtual] |
void IE_Exp_DocRangeListener::assembleAtts | ( | const PP_PropertyVector & | inAtts, | |
const PP_PropertyVector & | inProps, | |||
PP_PropertyVector & | outAtts | |||
) | [static] |
References ASSERT_PV_SIZE, PP_hasAttribute(), UT_std_string_setProperty(), and xxx_UT_DEBUGMSG.
Referenced by populate(), and populateStrux().
virtual bool IE_Exp_DocRangeListener::change | ( | fl_ContainerLayout * | , | |
const PX_ChangeRecord * | ||||
) | [inline, virtual] |
Implements PL_Listener.
PD_Document * IE_Exp_DocRangeListener::getDoc | ( | void | ) | const [private] |
References m_pOutDocument.
Referenced by IE_Exp_DocRangeListener(), populate(), and populateStrux().
virtual PLListenerType IE_Exp_DocRangeListener::getType | ( | void | ) | const [inline, virtual] |
Reimplemented from PL_Listener.
virtual bool IE_Exp_DocRangeListener::insertStrux | ( | fl_ContainerLayout * | , | |
const PX_ChangeRecord * | , | |||
pf_Frag_Strux * | , | |||
PL_ListenerId | , | |||
void(*)(pf_Frag_Strux *sdhNew,PL_ListenerId lid,fl_ContainerLayout *sfhNew) | ||||
) | [inline, virtual] |
Implements PL_Listener.
bool IE_Exp_DocRangeListener::populate | ( | fl_ContainerLayout * | sfh, | |
const PX_ChangeRecord * | pcr | |||
) | [virtual] |
Implements PL_Listener.
References PD_Document::appendFmt(), PD_Document::appendObject(), PD_Document::appendSpan(), PD_Document::appendStrux(), assembleAtts(), PP_AttrProp::getAttributes(), PD_Document::getAttrProp(), PX_ChangeRecord_Span::getBufIndex(), getDoc(), PX_ChangeRecord::getIndexAP(), PX_ChangeRecord_Span::getLength(), PX_ChangeRecord_Object::getObjectType(), PD_Document::getPointer(), PP_AttrProp::getProperties(), PX_ChangeRecord::getType(), m_bFirstBlock, m_bFirstSection, m_iLastAP, m_pSourceDoc, PTX_Block, PTX_Section, PX_ChangeRecord::PXT_InsertFmtMark, PX_ChangeRecord::PXT_InsertObject, PX_ChangeRecord::PXT_InsertSpan, UT_ASSERT_HARMLESS, UT_DEBUGMSG, UT_SHOULD_NOT_HAPPEN, and xxx_UT_DEBUGMSG.
bool IE_Exp_DocRangeListener::populateStrux | ( | pf_Frag_Strux * | sdh, | |
const PX_ChangeRecord * | pcr, | |||
fl_ContainerLayout ** | psfh | |||
) | [virtual] |
Implements PL_Listener.
References PD_Document::appendStrux(), assembleAtts(), PP_AttrProp::getAttributes(), PD_Document::getAttrProp(), getDoc(), PX_ChangeRecord::getIndexAP(), PP_AttrProp::getProperties(), PX_ChangeRecord::getType(), m_bFirstBlock, m_bFirstSection, m_pSourceDoc, PTX_Block, PTX_Section, UT_ASSERT, and xxx_UT_DEBUGMSG.
virtual bool IE_Exp_DocRangeListener::signal | ( | UT_uint32 | ) | [inline, virtual] |
Implements PL_Listener.
bool IE_Exp_DocRangeListener::m_bFirstBlock [private] |
Referenced by populate(), and populateStrux().
bool IE_Exp_DocRangeListener::m_bFirstSection [private] |
Referenced by populate(), and populateStrux().
Referenced by populate().
Referenced by getDoc().
PD_Document* IE_Exp_DocRangeListener::m_pSourceDoc [private] |
Referenced by IE_Exp_DocRangeListener(), populate(), and populateStrux().