• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

fl_Layout.h

Go to the documentation of this file.
00001 /* AbiWord
00002  * Copyright (C) 1998 AbiSource, Inc.
00003  *
00004  * This program is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU General Public License
00006  * as published by the Free Software Foundation; either version 2
00007  * of the License, or (at your option) any later version.
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software
00016  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
00017  * 02111-1307, USA.
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;     // set by child
00079 private:
00080     pf_Frag_Strux*      m_sdh;
00081 };
00082 
00083 #endif /* FL_LAYOUT_H */

Generated on Sun May 27 2012 for AbiWord by  doxygen 1.7.1