summaryrefslogtreecommitdiffstats
path: root/trunk/src/rtfstyle.h
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2009-05-22 11:08:01 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2009-05-22 11:08:01 (GMT)
commita019396727caecaf125f043055160475d72e8268 (patch)
treeb15979d08459986e6d255da8074d0798ae56540a /trunk/src/rtfstyle.h
parent7f0e124466e31066486a3fb6dae32432c2c1291d (diff)
downloadDoxygen-38278ee097c2d3aba54958d32c217e3adf35177d.zip
Doxygen-38278ee097c2d3aba54958d32c217e3adf35177d.tar.gz
Doxygen-38278ee097c2d3aba54958d32c217e3adf35177d.tar.bz2
Release-1.5.9-20090522Release_1_5_9_20090522
Diffstat (limited to 'trunk/src/rtfstyle.h')
-rw-r--r--trunk/src/rtfstyle.h83
1 files changed, 83 insertions, 0 deletions
diff --git a/trunk/src/rtfstyle.h b/trunk/src/rtfstyle.h
new file mode 100644
index 0000000..a3d80ba
--- /dev/null
+++ b/trunk/src/rtfstyle.h
@@ -0,0 +1,83 @@
+/******************************************************************************
+ *
+ *
+ *
+ *
+ * Copyright (C) 1997-2008 by Dimitri van Heesch.
+ *
+ * Permission to use, copy, modify, and distribute this software and its
+ * documentation under the terms of the GNU General Public License is hereby
+ * granted. No representations are made about the suitability of this software
+ * for any purpose. It is provided "as is" without express or implied warranty.
+ * See the GNU General Public License for more details.
+ *
+ * Documents produced by Doxygen are derivative works derived from the
+ * input used in their production; they are not affected by this license.
+ *
+ */
+
+#ifndef RTFSTYLE_H
+#define RTFSTYLE_H
+
+#include "qtbc.h"
+#include <qregexp.h>
+#include <qdict.h>
+
+// used for table column width calculation
+const int rtf_pageWidth = 8748;
+
+extern QCString rtf_title;
+extern QCString rtf_subject;
+extern QCString rtf_comments;
+extern QCString rtf_company;
+extern QCString rtf_logoFilename;
+extern QCString rtf_author;
+extern QCString rtf_manager;
+extern QCString rtf_documentType;
+extern QCString rtf_documentId;
+extern QCString rtf_keywords;
+
+struct RTFListItemInfo
+{
+ bool isEnum;
+ int number;
+};
+
+const int rtf_maxIndentLevels = 10;
+
+extern RTFListItemInfo rtf_listItemInfo[rtf_maxIndentLevels];
+
+struct Rtf_Style_Default
+{
+ const char *name;
+ const char *reference;
+ const char *definition;
+};
+
+extern char rtf_Style_Reset[];
+extern Rtf_Style_Default rtf_Style_Default[];
+
+struct StyleData
+{
+ // elements of this type are stored in dictionary Rtf_Style
+ //
+ // to define a tag in the header reference + definition is required
+ // to use a tag in the body of the document only reference is required
+
+ unsigned index; // index in style-sheet, i.e. number in s-clause
+ char* reference; // everything required to apply the style
+ char* definition; // aditional tags like \snext and style name
+
+ StyleData(const char* reference, const char* definition);
+ ~StyleData();
+ bool setStyle(const char* s, const char* styleName);
+
+ static const QRegExp s_clause;
+};
+
+extern QDict<StyleData> rtf_Style;
+
+void loadExtensions(const char *name);
+void loadStylesheet(const char *name, QDict<StyleData>& dict);
+
+#endif