00001 /* AbiSource 00002 * 00003 * Copyright (C) 2005 INdT 00004 * Author: Daniel d'Andrada T. de Carvalho <daniel.carvalho@indt.org.br> 00005 * 00006 * This program is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU General Public License 00008 * as published by the Free Software Foundation; either version 2 00009 * of the License, or (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software 00018 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 00019 * 02110-1301 USA. 00020 */ 00021 00022 #ifndef ODE_STYLE_LIST_H_ 00023 #define ODE_STYLE_LIST_H_ 00024 00025 // AbiWord includes 00026 #include <ut_hash.h> 00027 #include <ut_string_class.h> 00028 00029 // External includes 00030 #include <gsf/gsf-output.h> 00031 00032 // Internal classes 00033 class ODe_ListLevelStyle; 00034 00035 // AbiWord classes 00036 class PP_AttrProp; 00037 00041 class ODe_Style_List { 00042 public: 00043 00044 virtual ~ODe_Style_List(); 00045 00046 // Write this <text:list-style> element. 00047 bool write(GsfOutput* pODT, const UT_UTF8String& rSpacesOffset) const; 00048 00049 void setName(const UT_UTF8String& rName) { m_name = rName; } 00050 const UT_UTF8String& getName() const {return m_name;} 00051 00052 void setLevelStyle(UT_uint8 level, const PP_AttrProp& rBlockAP); 00053 const ODe_ListLevelStyle* getLevelStyle(UT_uint8 level) const; 00054 00055 UT_GenericVector<ODe_ListLevelStyle*>* getListLevelStyles() { 00056 return m_levelStyles.enumerate(); 00057 } 00058 00059 private: 00060 // style:name attribute 00061 UT_UTF8String m_name; 00062 00063 // text:consecutive-numbering attribute 00064 //bool m_bConsecutiveNumbering; 00065 00066 UT_GenericStringMap<ODe_ListLevelStyle*> m_levelStyles; 00067 }; 00068 00069 #endif /*ODE_STYLE_LIST_H_*/