Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef IE_IMP_PASTELISTENER_H
00023 #define IE_IMP_PASTELISTENER_H
00024
00025 #include "ut_types.h"
00026 #include "pt_Types.h"
00027 #include "pd_Document.h"
00028 class PX_ChangeRecord;
00029
00030 #ifdef __sgi
00031
00032
00033
00034 #include <sys/signal.h>
00035 #endif
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046 class ABI_EXPORT IE_Imp_PasteListener: public PL_Listener
00047 {
00048 public:
00049 IE_Imp_PasteListener(PD_Document * pDocToPaste, PT_DocPosition insPoint, PD_Document * pSourceDoc);
00050 virtual ~IE_Imp_PasteListener(){}
00051
00052 virtual bool populate(fl_ContainerLayout* sfh,
00053 const PX_ChangeRecord * pcr);
00054
00055 virtual bool populateStrux(pf_Frag_Strux* sdh,
00056 const PX_ChangeRecord * pcr,
00057 fl_ContainerLayout* * psfh);
00058
00059 virtual bool change(fl_ContainerLayout* ,
00060 const PX_ChangeRecord * )
00061 {return true;}
00062
00063 virtual bool insertStrux(fl_ContainerLayout* ,
00064 const PX_ChangeRecord * ,
00065 pf_Frag_Strux* ,
00066 PL_ListenerId ,
00067 void (* )(pf_Frag_Strux* sdhNew,
00068 PL_ListenerId lid,
00069 fl_ContainerLayout* sfhNew))
00070 { return true;}
00071
00072 virtual bool signal(UT_uint32 )
00073 { return true;}
00074 virtual PLListenerType getType() const
00075 {
00076 return PTL_UNKNOWN;
00077 }
00078
00079 private:
00080 PD_Document * getDoc(void) const;
00081 PD_Document * m_pPasteDocument;
00082 PT_DocPosition m_insPoint;
00083 bool m_bFirstSection;
00084 bool m_bFirstBlock;
00085 PD_Document * m_pSourceDoc;
00086 };
00087 #endif