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

po_Bookmark.h

Go to the documentation of this file.
00001 /* AbiWord
00002  * Copyright (C) 2001 Tomas Frydrych
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 #ifndef BOOKMARK_H
00020 #define BOOKMARK_H
00021 
00022 #include "ut_types.h"
00023 #include "ut_xml.h"
00024 #include "pf_Frag_Object.h"
00025 #include "pf_Frag_Text.h"
00026 #include "pt_Types.h"
00027 
00028 class fl_BlockLayout;
00029 class pf_Frag_Object;
00030 
00036 class ABI_EXPORT po_Bookmark
00037 {
00038  public:
00039     // TBD: convention for naming
00040     typedef enum
00041     {
00042         POBOOKMARK_START,
00043         POBOOKMARK_END,
00044         __last_field_dont_use__
00045     } BookmarkType;
00046 
00047     po_Bookmark(BookmarkType type, const gchar* name);
00048     virtual                         ~po_Bookmark(void);
00049     void                            setBlock(fl_BlockLayout * pBlock);
00050     fl_BlockLayout *                getBlock( void) const;
00051     BookmarkType                    getBookmarkType(void) const;
00052     const gchar *               getName(void) const;
00053     void                            setName(const gchar * szValue);
00054     // probably need different types of update
00055     // which are overridden in the appropriate subclass
00056     // eg positionChangeUpdate
00057     //    referenceChangeUpdate
00058 
00059  private:
00060     fl_BlockLayout * m_pBlock;
00061     // will need some more helper functions in here eg. to test
00062     // whether text has changed to avoid unnecessary updates
00063     BookmarkType m_iBookmarkType;
00064     gchar * m_pName;
00065 };
00066 
00067 #endif
00068 
00069 
00070 
00071 

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1