/* -*- mode: C++; tab-width: 4; c-basic-offset: 4; -*- */ /* AbiSource * * Copyright (C) 2008 Firat Kiyak * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifndef _OXML_LIST_H_ #define _OXML_LIST_H_ // Internal includes #include #include // AbiWord includes #include #include #include // External includes #include #include //bullet characters #define BULLET "•" #define SQUARE "■" #define TRIANGLE "" #define DIAMOND "" #define BOX "□" #define HAND "☞" #define HEART "♥" #define STAR "*" #define IMPLIES "⇒" #define DASH "–" #define TICK "" class IE_Exp_OpenXML; class OXML_List : public OXML_ObjectWithAttrProp { public: OXML_List(); virtual ~OXML_List(); virtual void setId(UT_uint32 id); virtual void setParentId(UT_uint32 id); virtual void setLevel(UT_uint32 id); virtual void setDelim(const std::string & delim); virtual void setDecimal(const std::string & decimal); virtual void setStartValue(UT_uint32 id); virtual void setType(FL_ListType type); UT_uint32 getId(); UT_uint32 getParentId(); UT_uint32 getLevel(); UT_uint32 getStartValue(); const gchar* getDelim(); const gchar* getDecimal(); FL_ListType getType(); UT_Error serialize(IE_Exp_OpenXML* exporter); UT_Error serializeNumbering(IE_Exp_OpenXML* exporter); UT_Error addToPT(PD_Document * pDocument); private: UT_uint32 id; UT_uint32 parentId; UT_uint32 level; UT_uint32 startValue; std::string delim; std::string decimal; FL_ListType type; }; typedef boost::shared_ptr OXML_SharedList; #endif //_OXML_LIST_H_