Chameleon

Chameleon Svn Source Tree

Root/branches/xZenu/src/util/doxygen/src/rtfstyle.h

Source at commit 1322 created 9 years 5 months ago.
By meklort, Add doxygen to utils folder
1/******************************************************************************
2 *
3 * $Id: $
4 *
5 *
6 * Copyright (C) 1997-2011 by Dimitri van Heesch.
7 *
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.
13 *
14 * Documents produced by Doxygen are derivative works derived from the
15 * input used in their production; they are not affected by this license.
16 *
17 */
18
19#ifndef RTFSTYLE_H
20#define RTFSTYLE_H
21
22#include "qtbc.h"
23#include <qregexp.h>
24#include <qdict.h>
25
26// used for table column width calculation
27const int rtf_pageWidth = 8748;
28
29extern QCString rtf_title;
30extern QCString rtf_subject;
31extern QCString rtf_comments;
32extern QCString rtf_company;
33extern QCString rtf_logoFilename;
34extern QCString rtf_author;
35extern QCString rtf_manager;
36extern QCString rtf_documentType;
37extern QCString rtf_documentId;
38extern QCString rtf_keywords;
39
40struct RTFListItemInfo
41{
42 bool isEnum;
43 int number;
44};
45
46const int rtf_maxIndentLevels = 10;
47
48extern RTFListItemInfo rtf_listItemInfo[rtf_maxIndentLevels];
49
50struct Rtf_Style_Default
51{
52 const char *name;
53 const char *reference;
54 const char *definition;
55};
56
57extern char rtf_Style_Reset[];
58extern Rtf_Style_Default rtf_Style_Default[];
59
60struct StyleData
61{
62 // elements of this type are stored in dictionary Rtf_Style
63 //
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
66
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
70
71 StyleData(const char* reference, const char* definition);
72 ~StyleData();
73 bool setStyle(const char* s, const char* styleName);
74
75 static const QRegExp s_clause;
76};
77
78extern QDict<StyleData> rtf_Style;
79
80void loadExtensions(const char *name);
81void loadStylesheet(const char *name, QDict<StyleData>& dict);
82
83#endif
84

Archive Download this file

Revision: 1322