[dia] Bug #581868 - dia -t tex file.dia export



commit b3dbb950373b33fb7bc37d3874f570b2e4c97cc1
Author: Hans Breuer <hans breuer org>
Date:   Sat Sep 19 22:40:16 2009 +0200

    Bug #581868 - dia -t tex file.dia export
    
    Unique names for 'pgf-tex' and 'pstricks-tex' to allow
    to select the filter to use when both tex exporters
    are active.

 app/app_procs.c                     |    2 +-
 plug-ins/pgf/render_pgf.c           |    4 +++-
 plug-ins/pstricks/render_pstricks.c |    4 +++-
 3 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/app/app_procs.c b/app/app_procs.c
index dccbbe1..bfa1ef7 100644
--- a/app/app_procs.c
+++ b/app/app_procs.c
@@ -643,7 +643,7 @@ app_init (int argc, char **argv)
 #  endif
 		    /* we always have pixbuf but don't know exactly all it's *few* save formats */
 		    "pixbuf-png), jpg, "
-		    "shape, svg, tex, " WMF
+		    "shape, svg, tex (pgf-tex, pstricks-tex), " WMF
 		    "wpg");
 
   GOptionContext *context = NULL;
diff --git a/plug-ins/pgf/render_pgf.c b/plug-ins/pgf/render_pgf.c
index f75fb96..3fe5bbd 100644
--- a/plug-ins/pgf/render_pgf.c
+++ b/plug-ins/pgf/render_pgf.c
@@ -1276,5 +1276,7 @@ static const gchar *extensions[] = { "tex", NULL };
 DiaExportFilter pgf_export_filter = {
     N_("LaTeX PGF macros"),
     extensions,
-    export_pgf
+    export_pgf,
+	NULL,
+	"pgf-tex"
 };
diff --git a/plug-ins/pstricks/render_pstricks.c b/plug-ins/pstricks/render_pstricks.c
index bb37e0f..b12a3a6 100644
--- a/plug-ins/pstricks/render_pstricks.c
+++ b/plug-ins/pstricks/render_pstricks.c
@@ -986,5 +986,7 @@ static const gchar *extensions[] = { "tex", NULL };
 DiaExportFilter pstricks_export_filter = {
     N_("TeX PSTricks macros"),
     extensions,
-    export_pstricks
+    export_pstricks,
+	NULL,
+	"pstricks-tex"
 };



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]