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

pf_Frag_Object.h

Go to the documentation of this file.
00001 /* AbiWord
00002  * Copyright (C) 1998 AbiSource, Inc.
00003  * Copyright (c) 2001,2002 Tomas Frydrych
00004  *
00005  * This program is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU General Public License
00007  * as published by the Free Software Foundation; either version 2
00008  * of the License, or (at your option) any later version.
00009  *
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00018  * 02110-1301 USA.
00019  */
00020 
00021 
00022 #ifndef PF_FRAG_OBJECT_H
00023 #define PF_FRAG_OBJECT_H
00024 
00025 #include "ut_types.h"
00026 #include "pf_Frag.h"
00027 #include "pt_Types.h"
00028 #include "fd_Field.h"
00029 #include "po_Bookmark.h"
00035 class ABI_EXPORT pf_Frag_Object : public pf_Frag
00036 {
00037 public:
00038     pf_Frag_Object(pt_PieceTable * pPT,
00039                    PTObjectType objectType,
00040                    PT_AttrPropIndex indexAP);
00041     virtual ~pf_Frag_Object();
00042 
00043     PTObjectType            getObjectType(void) const;
00044     virtual bool            createSpecialChangeRecord(PX_ChangeRecord ** ppcr,
00045                                                       PT_DocPosition dpos,
00046                                                       PT_BlockOffset blockOffset);
00047 
00048     po_Bookmark *           getBookmark() const;
00049 
00050     virtual bool            usesXID() const {return true;}
00051 
00052 #ifdef PT_TEST
00053     virtual void            __dump(FILE * fp) const;
00054 #endif
00055 
00056 protected:
00057     virtual bool            _isContentEqual(const pf_Frag &f2) const;
00058 
00059     PTObjectType            m_objectType;
00060     void *                  m_pObjectSubclass;
00061 };
00062 
00063 #endif /* PF_FRAG_OBJECT_H */

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1