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

pf_Frag_Strux.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., 51 Franklin Street, Fifth Floor, Boston, MA
00017  * 02110-1301 USA.
00018  */
00019 
00020 
00021 #ifndef PF_FRAG_STRUX_H
00022 #define PF_FRAG_STRUX_H
00023 
00024 #include "ut_types.h"
00025 #include "pf_Frag.h"
00026 #include "pt_Types.h"
00027 #include "pd_Document.h"
00028 
00029 class fl_ContainerLayout;
00030 
00042 class ABI_EXPORT pf_Frag_Strux : public pf_Frag
00043 {
00044 public:
00045     pf_Frag_Strux(pt_PieceTable * pPT,
00046                   PTStruxType struxType,
00047                   UT_uint32 length,
00048                   PT_AttrPropIndex indexAP);
00049     virtual ~pf_Frag_Strux();
00050 
00051     PTStruxType             getStruxType(void) const;
00052     fl_ContainerLayout*     getFmtHandle(PL_ListenerId lid) const;
00053     bool                    setFmtHandle(PL_ListenerId lid, fl_ContainerLayout* sfh);
00054     void                    clearAllFmtHandles() {m_vecFmtHandle.clear();}
00055 
00056     virtual bool            createSpecialChangeRecord(PX_ChangeRecord ** ppcr,
00057                                                       PT_DocPosition dpos) const;
00058 
00059     virtual bool            usesXID() const;
00060     bool                    isMatchingType(PTStruxType e) const;
00061     bool                    isMatchingType(const pf_Frag * p) const;
00062 
00063 #ifdef PT_TEST
00064     virtual void            __dump(FILE * fp) const = 0;
00065 #endif
00066 
00067 protected:
00068 
00069     virtual bool            _isContentEqual(const pf_Frag &f2) const;
00070     PTStruxType             m_struxType;
00071     UT_GenericVector<fl_ContainerLayout*>   m_vecFmtHandle;
00072 };
00073 
00074 #endif /* PF_FRAG_STRUX_H */

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1