summaryrefslogtreecommitdiffstats
path: root/src/plantuml.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2021-04-04 16:55:21 (GMT)
committeralbert-github <albert.tests@gmail.com>2021-04-04 16:55:21 (GMT)
commitafa248d63e73886a6f0dc0cdb285d18959a0a963 (patch)
tree7e071ac6d5a1b386b87c13442b566e90ada9b34d /src/plantuml.cpp
parent97415f7b4504d2be65338464731d7bbb4aa4d993 (diff)
downloadDoxygen-afa248d63e73886a6f0dc0cdb285d18959a0a963.zip
Doxygen-afa248d63e73886a6f0dc0cdb285d18959a0a963.tar.gz
Doxygen-afa248d63e73886a6f0dc0cdb285d18959a0a963.tar.bz2
Extending startuml with extra figure types
Not all diagrams can be created with the PlantUML `@startuml` command but need another PlantUML `@start...` command. This wil look like `@start<engine>` where currently supported are the following `<engine>`'s: `uml`, `bpm`, `wire`, `dot`, `ditaa`, `salt`, `math`, `latex`, `gantt`, `mindmap`, `wbs`, `yaml`, `creole`, `json` and `flow`. By default the `<engine>` is `uml`. The `<engine>` can be specified as an option. Explicitly the option variant has been chosen so we won't get an explosion of extra commands.
Diffstat (limited to 'src/plantuml.cpp')
-rw-r--r--src/plantuml.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plantuml.cpp b/src/plantuml.cpp
index da26ba7..5fbc1fe 100644
--- a/src/plantuml.cpp
+++ b/src/plantuml.cpp
@@ -22,7 +22,7 @@
#include "debug.h"
#include "fileinfo.h"
-QCString PlantumlManager::writePlantUMLSource(const QCString &outDirArg,const QCString &fileName,const QCString &content,OutputFormat format)
+QCString PlantumlManager::writePlantUMLSource(const QCString &outDirArg,const QCString &fileName,const QCString &content,OutputFormat format, const QCString &engine)
{
QCString baseName;
QCString puName;
@@ -71,9 +71,9 @@ QCString PlantumlManager::writePlantUMLSource(const QCString &outDirArg,const QC
Debug::print(Debug::Plantuml,0,"*** %s puName: %s\n","writePlantUMLSource",qPrint(puName));
Debug::print(Debug::Plantuml,0,"*** %s imgName: %s\n","writePlantUMLSource",qPrint(imgName));
- QCString text = "@startuml "+imgName+"\n";
+ QCString text = "@start"+engine+" "+imgName+"\n";
text+=content;
- text+="\n@enduml\n";
+ text+="\n@end"+engine+"\n";
QCString qcOutDir(outDir);
uint pos = qcOutDir.findRev("/");