From a09ffed2f603699955c18c19e0d3e782fb61d93f Mon Sep 17 00:00:00 2001
From: albert-github
Date: Sun, 8 Feb 2015 11:29:00 +0100
Subject: Support generating index-color PNG files
Based on the request http://stackoverflow.com/questions/27036474/how-do-make-doxygen-generate-index-color-png-files for index colored png files, this functionality will be included in the newer versions (2.39) of dot.
The functionality -Tpng:cairo:gd will automatically be used by doxygen, though the file extension would be wrong (.png:cairo:gd).
With this patch the :cairo:gd is stripped from the image extension, but not from the -T of the dot command.
In the doxywizard the different possibilities are supplied as well. Note however that the DOT_IMAGE_FORMAT name is not checked when read from the Doxyfile so it is possible to use other renderer / formats as well due to the generic solution with getDot ImageExtension.
---
src/config.xml | 12 +++++++++++-
src/docbookvisitor.cpp | 2 +-
src/dot.cpp | 46 ++++++++++++++++++++++++++++------------------
src/htmldocvisitor.cpp | 4 ++--
src/index.cpp | 3 ++-
src/rtfdocvisitor.cpp | 3 ++-
src/rtfgen.cpp | 12 ++++++++----
src/translator_am.h | 2 +-
src/translator_ar.h | 2 +-
src/translator_br.h | 2 +-
src/translator_ca.h | 2 +-
src/translator_cn.h | 2 +-
src/translator_cz.h | 2 +-
src/translator_de.h | 2 +-
src/translator_dk.h | 2 +-
src/translator_en.h | 2 +-
src/translator_eo.h | 2 +-
src/translator_es.h | 2 +-
src/translator_fa.h | 2 +-
src/translator_fi.h | 2 +-
src/translator_fr.h | 4 ++--
src/translator_gr.h | 2 +-
src/translator_hr.h | 2 +-
src/translator_hu.h | 2 +-
src/translator_id.h | 2 +-
src/translator_it.h | 2 +-
src/translator_jp.h | 2 +-
src/translator_kr.h | 2 +-
src/translator_lt.h | 2 +-
src/translator_lv.h | 2 +-
src/translator_mk.h | 2 +-
src/translator_nl.h | 2 +-
src/translator_no.h | 2 +-
src/translator_pl.h | 2 +-
src/translator_pt.h | 2 +-
src/translator_ro.h | 2 +-
src/translator_ru.h | 2 +-
src/translator_sc.h | 2 +-
src/translator_si.h | 2 +-
src/translator_sk.h | 2 +-
src/translator_sr.h | 2 +-
src/translator_sv.h | 2 +-
src/translator_tr.h | 2 +-
src/translator_tw.h | 2 +-
src/translator_ua.h | 2 +-
src/translator_vi.h | 2 +-
src/translator_za.h | 2 +-
src/util.cpp | 6 ++++++
src/util.h | 2 ++
src/vhdldocgen.cpp | 3 ++-
50 files changed, 105 insertions(+), 70 deletions(-)
diff --git a/src/config.xml b/src/config.xml
index 438b885..b6f1936 100644
--- a/src/config.xml
+++ b/src/config.xml
@@ -3271,7 +3271,9 @@ to be found in the default search path.
Graphviz).
\note If you choose \c svg you need to set
\ref cfg_html_file_extension "HTML_FILE_EXTENSION" to \c xhtml in order to make the SVG files
visible in IE 9+ (other browsers do not have this requirement).
@@ -3281,6 +3283,14 @@ to be found in the default search path.
+
+
+
+
+
+
+
+
\n"
+ "
\n"
"
\n"
"上图中的矩形有如下意义:\n"
"
\n"
diff --git a/src/translator_cz.h b/src/translator_cz.h
index b83eb92..f56adc5 100644
--- a/src/translator_cz.h
+++ b/src/translator_cz.h
@@ -1070,7 +1070,7 @@ class TranslatorCzech : public Translator
"};\n"
"\\endcode\n"
"K výše uvedenému bude vygenerován následující graf:"
- "
\n"
+ "
\n"
"
\n"
"Bloky (tj. uzly) v uvedeném grafu mají následující význam:\n"
"
\n"
diff --git a/src/translator_de.h b/src/translator_de.h
index d936bf1..9caecfc 100644
--- a/src/translator_de.h
+++ b/src/translator_de.h
@@ -1116,7 +1116,7 @@ class TranslatorGerman : public TranslatorAdapter_1_8_4
"};\n"
"\\endcode\n"
"Dies liefert den folgenden Graphen:"
- "
\n"
+ "
\n"
"
\n"
"Die Rechtecke in obigem Graphen bedeuten:\n"
"
\n"
diff --git a/src/translator_dk.h b/src/translator_dk.h
index 74b07f4..2904a76 100644
--- a/src/translator_dk.h
+++ b/src/translator_dk.h
@@ -993,7 +993,7 @@ class TranslatorDanish : public TranslatorAdapter_1_8_0
"\\endcode\n"
"Hvis \\c MAX_DOT_GRAPH_HEIGHT i konfigurationsfilen "
"er sat til 240, vil dette resultere i følgende graf:"
- "
\n"
+ "
\n"
"
\n"
"De forskellige slags kasser i ovenstående graf har følgende "
"betydninger:\n"
diff --git a/src/translator_en.h b/src/translator_en.h
index 5937ed3..cf2424f 100644
--- a/src/translator_en.h
+++ b/src/translator_en.h
@@ -1014,7 +1014,7 @@ class TranslatorEnglish : public Translator
"};\n"
"\\endcode\n"
"This will result in the following graph:"
- "
\n"
+ "
\n"
"
\n"
"The boxes in the above graph have the following meaning:\n"
"
\n"
diff --git a/src/translator_eo.h b/src/translator_eo.h
index e1513cb..e285a14 100644
--- a/src/translator_eo.h
+++ b/src/translator_eo.h
@@ -1017,7 +1017,7 @@ class TranslatorEsperanto : public TranslatorAdapter_1_8_4
"};\n"
"\\endcode\n"
"Tio ĉi liveros la sekvan diagramon:"
- "
\n"
+ "
\n"
"
\n"
"La skatoloj de la supra diagramo havas la sekvajn signifojn:\n"
"
\n"
diff --git a/src/translator_es.h b/src/translator_es.h
index ba6e823..9c5860a 100644
--- a/src/translator_es.h
+++ b/src/translator_es.h
@@ -1045,7 +1045,7 @@ class TranslatorSpanish : public Translator
"};\n"
"\\endcode\n"
"Dará como resultado el siguiente gráfico:"
- "
\n"
+ "
\n"
"
\n"
"Las cajas en el gráfico arriba tienen el siguiente significado:\n"
"
\n"
diff --git a/src/translator_fa.h b/src/translator_fa.h
index 7b6f9d7..0fdc9a3 100644
--- a/src/translator_fa.h
+++ b/src/translator_fa.h
@@ -1015,7 +1015,7 @@ class TranslatorPersian : public TranslatorAdapter_1_7_5
"\\endcode\n"
"If the \\c MAX_DOT_GRAPH_HEIGHT tag in the configuration file "
"is set to 240 this will result in the following graph:"
- "
\n"
+ "
\n"
"
\n"
"The boxes in the above graph have the following meaning:\n"
"
\n"
diff --git a/src/translator_fi.h b/src/translator_fi.h
index eeeb9a5..d468c5c 100644
--- a/src/translator_fi.h
+++ b/src/translator_fi.h
@@ -1114,7 +1114,7 @@ class TranslatorFinnish : public TranslatorAdapter_1_6_0
"\\endcode\n"
"Tuloksena on seuraavanlainen kaavio:"
//"This will result in the following graph:"
- "
\n"
+ "
\n"
"
\n"
"Ylläolevassa kaaviossa laatikoilla on seuraavat merkitykset\n:"
// "The boxes in the above graph have the following meaning:\n"
diff --git a/src/translator_fr.h b/src/translator_fr.h
index 2c548c2..cf8e2e2 100644
--- a/src/translator_fr.h
+++ b/src/translator_fr.h
@@ -1077,7 +1077,7 @@ class TranslatorFrench : public Translator
"};\n"
"\\endcode\n"
"Cela aboutira au graphe suivant :"
- "
\n"
+ "
\n"
"
\n"
"Les rectangles du graphe ci-dessus ont la signification suivante :\n"
"
\n"
@@ -2057,4 +2057,4 @@ class TranslatorFrench : public Translator
};
-#endif
\ No newline at end of file
+#endif
diff --git a/src/translator_gr.h b/src/translator_gr.h
index fa7a682..bfcd864 100644
--- a/src/translator_gr.h
+++ b/src/translator_gr.h
@@ -987,7 +987,7 @@ class TranslatorGreek : public TranslatorAdapter_1_8_4
"};\n"
"\\endcode\n"
"Αυτό οδηγεί στο επόμενο διάγραμμα:"
- "
\n"
+ "
\n"
"
\n"
"Τα κουτιά στο παραπάνω διάγραμμα έχουν την ακόλουθη σημασία:\n"
"
\n"
diff --git a/src/translator_hr.h b/src/translator_hr.h
index 98a746a..e9f0719 100644
--- a/src/translator_hr.h
+++ b/src/translator_hr.h
@@ -753,7 +753,7 @@ class TranslatorCroatian : public TranslatorAdapter_1_8_2
"};\n"
"\\endcode\n"
"To će rezultirati grafikonom:"
- "
\n"
+ "
\n"
"
\n"
"Pravokutnici imaju slijedeće značenje:\n"
"
\n"
diff --git a/src/translator_hu.h b/src/translator_hu.h
index 610af8e..4892600 100644
--- a/src/translator_hu.h
+++ b/src/translator_hu.h
@@ -997,7 +997,7 @@ class TranslatorHungarian : public TranslatorAdapter_1_4_6
"\\endcode\n"
"Ha a konfigurációs fájl \\c MAX_DOT_GRAPH_HEIGHT elemének értékét "
"240-re állítjuk, az eredmény a következő ábra lesz:"
- "
\n"
+ "
\n"
"
\n"
"Az ábrán levő dobozok jelentése:\n"
"
\n"
diff --git a/src/translator_id.h b/src/translator_id.h
index 5647bc0..dd79cd7 100644
--- a/src/translator_id.h
+++ b/src/translator_id.h
@@ -1001,7 +1001,7 @@ class TranslatorIndonesian : public TranslatorAdapter_1_8_0
"\\endcode\n"
"Apabila tag \\c MAX_DOT_GRAPH_HEIGHT di file konfigurasi "
"diset ke 240 kode di atas akan menghasilkan bagan berikut:"
- "
\n"
+ "
\n"
"
\n"
"Kotak-kotak pada bagan di atas mempunyai arti sebagai berikut:\n"
"
\n"
diff --git a/src/translator_it.h b/src/translator_it.h
index 59799a3..65be176 100644
--- a/src/translator_it.h
+++ b/src/translator_it.h
@@ -1028,7 +1028,7 @@ class TranslatorItalian : public TranslatorAdapter_1_8_2
"};\n"
"\\endcode\n"
"Verrà prodotto il grafo seguente:"
- "
\n"
+ "
\n"
"
\n"
"I riquadri nel grafo qui sopra hanno il seguente significato:\n"
"
\n"
diff --git a/src/translator_kr.h b/src/translator_kr.h
index 18337a5..ff9da26 100644
--- a/src/translator_kr.h
+++ b/src/translator_kr.h
@@ -1035,7 +1035,7 @@ class TranslatorKorean : public Translator
"};\n"
"\\endcode\n"
"다음과 같은 그래프가 출력될 것입니다. :"
- "
\n"
+ "
\n"
"
\n"
"위 그래프의 박스들은 다음과 같은 의미를 가집니다. :\n"
"
\n"
diff --git a/src/translator_lt.h b/src/translator_lt.h
index 174170e..98bd692 100644
--- a/src/translator_lt.h
+++ b/src/translator_lt.h
@@ -1006,7 +1006,7 @@ class TranslatorLithuanian : public TranslatorAdapter_1_4_6
"\\endcode\n"
"If the \\c MAX_DOT_GRAPH_HEIGHT tag in the configuration file "
"is set to 240 this will result in the following graph:"
- "
\n"
+ "
\n"
"
\n"
"The boxes in the above graph have the following meaning:\n"
"
\n"
diff --git a/src/translator_lv.h b/src/translator_lv.h
index 135cd11..bd069f1 100644
--- a/src/translator_lv.h
+++ b/src/translator_lv.h
@@ -1020,7 +1020,7 @@ class TranslatorLatvian : public TranslatorAdapter_1_8_4
"};\n"
"\\endcode\n"
"This will result in the following graph:"
- "
\n"
+ "
\n"
"
\n"
"The boxes in the above graph have the following meaning:\n"
"
\n"
diff --git a/src/translator_mk.h b/src/translator_mk.h
index 510561e..e2ec041 100644
--- a/src/translator_mk.h
+++ b/src/translator_mk.h
@@ -1003,7 +1003,7 @@ class TranslatorMacedonian : public TranslatorAdapter_1_6_0
"\\endcode\n"
"Ако вредноста на \\c MAX_DOT_GRAPH_HEIGHT во конфигурациската датотека "
"е 240 тогаш примерот ќе го создаде следниов дијаграм:"
- "
\n"
+ "
\n"
"
\n"
"Правоаголниците во дијаграмот погоре го имаат следново значење:\n"
"
\n"
diff --git a/src/translator_nl.h b/src/translator_nl.h
index 2ffacb6..1f59ed2 100644
--- a/src/translator_nl.h
+++ b/src/translator_nl.h
@@ -656,7 +656,7 @@ class TranslatorDutch : public Translator
"};\n"
"\\endcode\n"
"Dit voorbeeld zal resulteren in de volgende graaf:"
- "
\n"
+ "
\n"
"
\n"
"De rechthoeken in the bovenstaande graaf hebben de volgende betekenis:\n"
"
\n"
diff --git a/src/translator_no.h b/src/translator_no.h
index 2662e47..5bf6c17 100644
--- a/src/translator_no.h
+++ b/src/translator_no.h
@@ -1048,7 +1048,7 @@ class TranslatorNorwegian : public TranslatorAdapter_1_4_6
"\\endcode\n"
"Hvis \\c MAX_DOT_GRAPH_HEIGHT er satt til 200 i "
"konfigurasjonsfila vil dette resultere i følgende graf:"
- "
\n"
+ "
\n"
"
\n"
"Boksene i grafen over betyr følgende:\n"
"
\n"
diff --git a/src/translator_pl.h b/src/translator_pl.h
index 6f2e14c..0b23775 100644
--- a/src/translator_pl.h
+++ b/src/translator_pl.h
@@ -1012,7 +1012,7 @@ class TranslatorPolish : public TranslatorAdapter_1_8_2
"};\n"
"\\endcode\n"
"Rezultat na następującym wykresie:"
- "
\n"
+ "
\n"
"
\n"
"Prostokąty w powyższym wykresie mają następujące znaczenie:\n"
"
\n"
diff --git a/src/translator_pt.h b/src/translator_pt.h
index 13422f6..be45424 100644
--- a/src/translator_pt.h
+++ b/src/translator_pt.h
@@ -1016,7 +1016,7 @@ class TranslatorPortuguese : public Translator
"};\n"
"\\endcode\n"
"Isto irá gerar o seguinte gráfo:"
- "
\n"
+ "
\n"
"
\n"
"As caixas no grafo anterior têm as seguintes interpretações:\n"
"
\n"
diff --git a/src/translator_ro.h b/src/translator_ro.h
index ea0988d..bde0f24 100644
--- a/src/translator_ro.h
+++ b/src/translator_ro.h
@@ -1031,7 +1031,7 @@ class TranslatorRomanian : public Translator
"\\endcode\n"
"Dacă tagul \\c MAX_DOT_GRAPH_HEIGHT din fişierul de configurare "
"este setat la 200, acesta este graful rezultat:"
- "
\n"
+ "
\n"
"
\n"
"Căsuţele din partea de sus au următoarea semnificaţie:\n"
"
\n"
diff --git a/src/translator_ru.h b/src/translator_ru.h
index c06d911..94ddf29 100644
--- a/src/translator_ru.h
+++ b/src/translator_ru.h
@@ -1004,7 +1004,7 @@ class TranslatorRussian : public Translator
"\\endcode\n"
"Если \\c MAX_DOT_GRAPH_HEIGHT в конфигурационном файле "
"установлен в 240, получится следующий граф:"
- "
\n"
+ "
\n"
"
\n"
"Прямоугольники в этом графе имеют следующее значение:\n"
"
\n"
diff --git a/src/translator_sc.h b/src/translator_sc.h
index 84e8756..5e37724 100644
--- a/src/translator_sc.h
+++ b/src/translator_sc.h
@@ -1033,7 +1033,7 @@ class TranslatorSerbianCyrillic : public TranslatorAdapter_1_6_0
"\\endcode\n"
"Ако је \\c MAX_DOT_GRAPH_HEIGHT таг у конфигурационој датотеци "
"подешен на 240, то ће резултовати на следећи начин:"
- "
\n"
+ "
\n"
"
\n"
"Правоугаоници имају следеће значење:\n"
"
\n"
diff --git a/src/translator_si.h b/src/translator_si.h
index 33bc27a..b6d6a87 100644
--- a/src/translator_si.h
+++ b/src/translator_si.h
@@ -684,7 +684,7 @@ class TranslatorSlovene : public TranslatorAdapter_1_4_6
"\\endcode\n"
"If the \\c MAX_DOT_GRAPH_HEIGHT tag in the configuration file "
"is set to 200 this will result in the following graph:"
- "
\n"
+ "
\n"
"
\n"
"The boxes in the above graph have the following meaning:\n"
"
\n"
diff --git a/src/translator_sk.h b/src/translator_sk.h
index 0fc826b..d8f06f5 100644
--- a/src/translator_sk.h
+++ b/src/translator_sk.h
@@ -1004,7 +1004,7 @@ class TranslatorSlovak : public Translator
"};\n"
"\\endcode\n"
"K vyššie uvedenému bude vygenerovaný nasledujúci graf:"
- "
\n"
+ "
\n"
"
\n"
"Bloky (tj. uzly) v uvedenom grafe majú nasledujúci význam:\n"
"
\n"
diff --git a/src/translator_sr.h b/src/translator_sr.h
index 09b6534..5e09f60 100644
--- a/src/translator_sr.h
+++ b/src/translator_sr.h
@@ -1001,7 +1001,7 @@ class TranslatorSerbian : public TranslatorAdapter_1_6_0
"\\endcode\n"
"Ako je \\c MAX_DOT_GRAPH_HEIGHT tag u konfiguracionoj datoteci "
"postavljen na \\c 200 graf izvođenja će izgledati ovako:"
- "
\n"
+ "
\n"
"Graf će biti odsečen ako ne stane unutar zadatih granica.\n"
"
\n"
"Pravougaonici imaju sledeća značenja:\n"
diff --git a/src/translator_sv.h b/src/translator_sv.h
index 5b36a17..d41a203 100644
--- a/src/translator_sv.h
+++ b/src/translator_sv.h
@@ -907,7 +907,7 @@ class TranslatorSwedish : public Translator
"};\n"
"\\endcode\n"
"Detta resulterar i att följande graf genereras:"
- "
\n"
+ "
\n"
"
\n"
"Rektanglarna i den ovanstående grafen har följande betydelser:\n"
"
\n"
diff --git a/src/translator_tr.h b/src/translator_tr.h
index 56b4a19..e02c1fe 100644
--- a/src/translator_tr.h
+++ b/src/translator_tr.h
@@ -1016,7 +1016,7 @@ class TranslatorTurkish : public TranslatorAdapter_1_7_5
"};\n"
"\\endcode\n"
"Bu kod aşağıdaki şemayı oluşturur:"
- "
\n"
diff --git a/src/translator_tw.h b/src/translator_tw.h
index 7ff5b6c..a1faab9 100644
--- a/src/translator_tw.h
+++ b/src/translator_tw.h
@@ -1022,7 +1022,7 @@ class TranslatorChinesetraditional : public Translator
"};\n"
"\\endcode\n"
"這個例子會產生下列的圖示:"
- "
\n"
+ "
\n"
"
\n"
"上圖中的各區塊意義如下:\n"
"
\n"
diff --git a/src/translator_ua.h b/src/translator_ua.h
index 45efd6e..12440cf 100644
--- a/src/translator_ua.h
+++ b/src/translator_ua.h
@@ -993,7 +993,7 @@ class TranslatorUkrainian : public TranslatorAdapter_1_8_4
"};\n"
"\\endcode\n"
"Таким чином, отримуємо наступний граф:"
- "
\n"
+ "
\n"
"
\n"
"Прямокутники в цьому графі мають наступний зміст:\n"
"
\n"
diff --git a/src/translator_vi.h b/src/translator_vi.h
index dd0a8f1..6fe38ba 100644
--- a/src/translator_vi.h
+++ b/src/translator_vi.h
@@ -1021,7 +1021,7 @@ class TranslatorVietnamese : public TranslatorAdapter_1_6_0
"};\n"
"\\endcode\n"
"Kết quả trong biểu đồ sau đây:"
- "
\n"
+ "
\n"
"
\n"
"Các hộp trong biểu đồ trên có ý nghĩa như sau:\n"
"
\n"
diff --git a/src/translator_za.h b/src/translator_za.h
index f47052e..a9ed3e4 100644
--- a/src/translator_za.h
+++ b/src/translator_za.h
@@ -1002,7 +1002,7 @@ class TranslatorAfrikaans : public TranslatorAdapter_1_6_0
"\\endcode\n"
"As die \\c MAX_DOT_GRAPH_HEIGHT merker in die konfigurasie leër "
"aan 240 gelyk gestel is, word die volgende diagram geproduseer:"
- "
\n"
+ "
\n"
"
\n"
"Die reghoeke in die diagram het die volgende betekenis:\n"
"