1 /******************************************************************************
6 * Copyright (C) 1997-2012 by Dimitri van Heesch.
8 * Permission to use, copy, modify, and distribute this software and its
9 * documentation under the terms of the GNU General Public License is hereby
10 * granted. No representations are made about the suitability of this software
11 * for any purpose. It is provided "as is" without express or implied warranty.
12 * See the GNU General Public License for more details.
14 * Documents produced by Doxygen are derivative works derived from the
15 * input used in their production; they are not affected by this license.
26 // used for table column width calculation
27 const int rtf_pageWidth = 8748;
29 extern QCString rtf_title;
30 extern QCString rtf_subject;
31 extern QCString rtf_comments;
32 extern QCString rtf_company;
33 extern QCString rtf_logoFilename;
34 extern QCString rtf_author;
35 extern QCString rtf_manager;
36 extern QCString rtf_documentType;
37 extern QCString rtf_documentId;
38 extern QCString rtf_keywords;
40 struct RTFListItemInfo
46 const int rtf_maxIndentLevels = 10;
48 extern RTFListItemInfo rtf_listItemInfo[rtf_maxIndentLevels];
50 struct Rtf_Style_Default
53 const char *reference;
54 const char *definition;
57 extern char rtf_Style_Reset[];
58 extern Rtf_Style_Default rtf_Style_Default[];
62 // elements of this type are stored in dictionary Rtf_Style
64 // to define a tag in the header reference + definition is required
65 // to use a tag in the body of the document only reference is required
67 unsigned index; // index in style-sheet, i.e. number in s-clause
68 char* reference; // everything required to apply the style
69 char* definition; // aditional tags like \snext and style name
71 StyleData(const char* reference, const char* definition);
73 bool setStyle(const char* s, const char* styleName);
75 static const QRegExp s_clause;
78 extern QDict<StyleData> rtf_Style;
80 void loadExtensions(const char *name);
81 void loadStylesheet(const char *name, QDict<StyleData>& dict);