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 FL_LAYOUT_H
00023 #define FL_LAYOUT_H
00024
00025 #include "ut_types.h"
00026 #include "pt_Types.h"
00027
00028 class PP_AttrProp;
00029 class PP_RevisionAttr;
00030 class PD_Document;
00031 class fd_Field;
00032 class po_Bookmark;
00033 class fl_AutoNum;
00034 class pf_Frag_Strux;
00035
00044 class ABI_EXPORT fl_Layout
00045 {
00046 public:
00047 fl_Layout(PTStruxType type, pf_Frag_Strux* sdh);
00048 virtual ~fl_Layout();
00049
00050 pf_Frag_Strux* getStruxDocHandle(void) const;
00051 PTStruxType getType(void) const;
00052 void setType(PTStruxType type);
00053 PT_AttrPropIndex getAttrPropIndex(void) const;
00054 void setAttrPropIndex(PT_AttrPropIndex apIndex);
00055
00056 bool getAttrProp(const PP_AttrProp ** ppAP, PP_RevisionAttr ** pRevisions,
00057 bool bShowRevisions, UT_uint32 iRevisionId,
00058 bool &bHiddenRevision) const;
00059
00060 bool getSpanAttrProp(UT_uint32 offset, bool bLeftSide, const PP_AttrProp ** ppAP,
00061 PP_RevisionAttr ** pRevisions,
00062 bool bShowRevisions, UT_uint32 iRevisionId,
00063 bool &bHiddenRevision) const;
00064
00065 bool getField(UT_uint32 offset, fd_Field * &pField);
00066 po_Bookmark * getBookmark(UT_uint32 offset);
00067 virtual void listUpdate(void) { return; }
00068 inline fl_AutoNum * getAutoNum(void) const { return m_pAutoNum; }
00069 void setAutoNum(fl_AutoNum * pAutoNum);
00070
00071 PD_Document * getDocument(void) const { return m_pDoc; };
00072
00073 protected:
00074 PTStruxType m_type;
00075 PT_AttrPropIndex m_apIndex;
00076 fl_AutoNum * m_pAutoNum;
00077
00078 PD_Document * m_pDoc;
00079 private:
00080 pf_Frag_Strux* m_sdh;
00081 };
00082
00083 #endif