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

pp_TableAttrProp.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 #ifndef PP_TABLEATTRPROP_H
00022 #define PP_TABLEATTRPROP_H
00023 
00024 #include "ut_types.h"
00025 #include "ut_vector.h"
00026 #include "pt_Types.h"
00027 #include "pp_AttrProp.h"
00028 
00029 
00030 // pp_TableAttrProp implements an unbounded table of PP_AttrProp
00031 // objects.  Each PP_AttrProp represents the complete Attribute/
00032 // Property state of one or more pieces (subsequences) of the
00033 // document.
00034 
00035 class ABI_EXPORT pp_TableAttrProp
00036 {
00037 public:
00038     pp_TableAttrProp();
00039     ~pp_TableAttrProp();
00040 
00041     bool                    addAP(PP_AttrProp * pAP,
00042                                   UT_sint32 * pSubscript);
00043     bool                    createAP(UT_sint32 * pSubscript);
00044 
00045     bool                    createAP(const gchar ** attributes,
00046                                      const gchar ** properties,
00047                                      UT_sint32 * pSubscript);
00048 
00049     bool                    createAP(const UT_GenericVector<const gchar*>* pVector,
00050                                      UT_sint32 * pSubscript);
00051 
00052     bool                    findMatch(const PP_AttrProp * pMatch,
00053                                       UT_sint32 * pSubscript) const;
00054 
00055     const PP_AttrProp *     getAP(UT_sint32 subscript) const;
00056 
00057 protected:
00058     UT_GenericVector<PP_AttrProp *> m_vecTable;
00059     UT_GenericVector<PP_AttrProp *> m_vecTableSorted;
00060 };
00061 
00062 #endif /* PP_TABLEATTRPROP_H */

Generated on Mon May 28 2012 for AbiWord by  doxygen 1.7.1