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

fl_AutoLists.h

Go to the documentation of this file.
00001 /* AbiWord
00002  * Copyright (C) 1998,1999 AbiSource, Inc.
00003  * BIDI Copyright (c) 2001,2002 Tomas Frydrych, Yaacov Akiba Slama
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 #ifndef FL_AUTOLISTS_H
00021 #define FL_AUTOLISTS_H
00022 
00023 #include "ut_types.h"
00024 #include "ut_xml.h"
00025 #include "fp_types.h"
00026 
00028 // Lists Definitions are in fp_types.h
00030 
00031 class ABI_EXPORT fl_AutoLists
00032 {
00033     public:
00034         UT_uint32 getXmlListsSize();
00035         UT_uint32 getFmtListsSize();
00036 
00037         const gchar * getXmlList(UT_uint32 i);
00038         const char *     getFmtList(UT_uint32 i);
00039 };
00040 
00041 #define IS_NUMBERED_LIST_TYPE(x) (((x) >= NUMBERED_LIST && (x) < BULLETED_LIST) || ((x) > OTHER_NUMBERED_LISTS && (x) < NOT_A_LIST))
00042 #define IS_BULLETED_LIST_TYPE(x) ((x) >= BULLETED_LIST && (x) < OTHER_NUMBERED_LISTS)
00043 
00044 #define IS_NONE_LIST_TYPE(x) ((x) == NOT_A_LIST)
00045 
00046 #define  XML_NUMBERED_LIST (( const gchar *) "Numbered List")
00047 #define  XML_LOWERCASE_LIST ((const gchar *) "Lower Case List")
00048 #define  XML_UPPERCASE_LIST ((const gchar *) "Upper Case List")
00049 #define  XML_LOWERROMAN_LIST ((const gchar *) "Lower Roman List")
00050 #define  XML_UPPERROMAN_LIST ((const gchar *) "Upper Roman List")
00051 #define  XML_HEBREW_LIST ((const gchar *) "Hebrew List")
00052 #define  XML_ARABICNUM_LIST ((const gchar *) "Arabic List")
00053 #define  XML_BULLETED_LIST ((const gchar *) "Bullet List")
00054 #define  XML_DASHED_LIST ((const gchar *) "Dashed List")
00055 #define  XML_SQUARE_LIST ((const gchar *) "Square List")
00056 #define  XML_TRIANGLE_LIST ((const gchar *) "Triangle List")
00057 #define  XML_DIAMOND_LIST ((const gchar *) "Diamond List")
00058 #define  XML_STAR_LIST ((const gchar *) "Star List")
00059 #define  XML_IMPLIES_LIST ((const gchar *) "Implies List")
00060 #define  XML_TICK_LIST ((const gchar *) "Tick List")
00061 #define  XML_BOX_LIST ((const gchar *) "Box List")
00062 #define  XML_HAND_LIST ((const gchar *) "Hand List")
00063 #define  XML_HEART_LIST ((const gchar *) "Heart List")
00064 #define  XML_ARROWHEAD_LIST ((const gchar *) "Arrowhead List")
00065 
00066 //
00067 // MS Word uses 0.5 inches so we do too.
00068 #define  LIST_DEFAULT_INDENT 0.50
00069 
00070 // May need to tweak this some more...
00071 
00072 #define  LIST_DEFAULT_INDENT_LABEL 0.30
00073 
00074 //
00075 // Reserved the first 10000 id's for useful purposes....
00076 //
00077 #define  AUTO_LIST_RESERVED 1000
00078 
00079 #define fmt_NUMBERED_LIST ((const char *)"%*%d")
00080 #define  fmt_LOWERCASE_LIST ((const char *)"%*%a")
00081 #define  fmt_UPPERCASE_LIST ((const char *)"%*%A")
00082 #define  fmt_LOWERROMAN_LIST  ((const char *)"%*%r")
00083 #define  fmt_UPPERROMAN_LIST  ((const char *)"%*%R")
00084 #define  fmt_BULLETED_LIST ((const char *)"%b")
00085 #define  fmt_DASHED_LIST ((const char *)"%c")
00086 #define  fmt_HEBREW_LIST ((const char *)"%*%h")
00087 #define  fmt_ARABICNUM_LIST ((const char *)"%*%i")
00088 
00089 
00090 #endif

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1