Public Member Functions | Private Member Functions | Private Attributes

IE_Imp_PasteListener Class Reference

#include <ie_imp_PasteListener.h>

Inheritance diagram for IE_Imp_PasteListener:

List of all members.

Public Member Functions

 IE_Imp_PasteListener (PD_Document *pDocToPaste, PT_DocPosition insPoint, PD_Document *pSourceDoc)
virtual ~IE_Imp_PasteListener ()
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

Private Member Functions

PD_DocumentgetDoc (void) const

Private Attributes

PT_DocPosition m_insPoint
bool m_bFirstSection
bool m_bFirstBlock

Constructor & Destructor Documentation

IE_Imp_PasteListener::IE_Imp_PasteListener ( PD_Document pDocToPaste,
PT_DocPosition  insPoint,
PD_Document pSourceDoc 

This nifty little class allows all importers to also be used for pasting into the document. The idea is that we create a dummy document which we import to as usual with the impoters. After the Dummy document is completed we do a PD_Document::tellListener on it with this class as the listner class. This class translates all the populate().... and populateStrux()... methods into insertSpan(..) insertStrux(...) methods at the current insertion point.

Hey presto we have pasted into the current document. Pretty cool eh?

virtual IE_Imp_PasteListener::~IE_Imp_PasteListener (  )  [inline, virtual]

Member Function Documentation

virtual bool IE_Imp_PasteListener::change ( fl_ContainerLayout ,
const PX_ChangeRecord  
) [inline, virtual]

Implements PL_Listener.

PD_Document * IE_Imp_PasteListener::getDoc ( void   )  const [private]

References m_pPasteDocument.

virtual PLListenerType IE_Imp_PasteListener::getType ( void   )  const [inline, virtual]

Reimplemented from PL_Listener.

virtual bool IE_Imp_PasteListener::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.

virtual bool IE_Imp_PasteListener::signal ( UT_uint32   )  [inline, virtual]

Implements PL_Listener.

Member Data Documentation

The documentation for this class was generated from the following files: