summaryrefslogtreecommitdiffstats
path: root/src/plantuml.h
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2014-08-10 18:09:33 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2014-08-10 18:09:33 (GMT)
commit7506404e646f1fcc5a26ca6fca91a7f65154f05a (patch)
treef97964759aa6238f02bd5b7f853306c19965914d /src/plantuml.h
parent97d12d058a7831adcc8c6f2cfe8c20ddd2ae5bc2 (diff)
downloadDoxygen-7506404e646f1fcc5a26ca6fca91a7f65154f05a.zip
Doxygen-7506404e646f1fcc5a26ca6fca91a7f65154f05a.tar.gz
Doxygen-7506404e646f1fcc5a26ca6fca91a7f65154f05a.tar.bz2
Bug 731947 - Support for PlantUML
Diffstat (limited to 'src/plantuml.h')
-rw-r--r--src/plantuml.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/plantuml.h b/src/plantuml.h
new file mode 100644
index 0000000..27626d1
--- /dev/null
+++ b/src/plantuml.h
@@ -0,0 +1,40 @@
+/******************************************************************************
+ *
+ * Copyright (C) 1997-2014 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 PLANTUML_H
+#define PLANTUML_H
+
+class QCString;
+
+/** Plant UML output image formats */
+enum PlantUMLOutputFormat { PUML_BITMAP, PUML_EPS, PUML_SVG };
+
+/** Write a PlantUML compatible file.
+ * @param[in] outDir the output directory to write the file to.
+ * @param[in] fileName the name of the file. If empty a name will be chosen automatically.
+ * @param[in] content the contents of the PlantUML file.
+ * @returns The name of the generated file.
+ */
+QCString writePlantUMLSource(const QCString &outDir,const QCString &fileName,const QCString &content);
+
+/** Convert a PlantUML file to an image.
+ * @param[in] baseName the name of the generated file (as returned by writePlantUMLSource())
+ * @param[in] outDir the directory to write the resulting image into.
+ * @param[in] format the image format to generate.
+ */
+void generatePlantUMLOutput(const char *baseName,const char *outDir,PlantUMLOutputFormat format);
+
+#endif
+