From 1024e43069cbc2c8d03077dee68347b9e77d7784 Mon Sep 17 00:00:00 2001 From: Tommaso Cucinotta Date: Mon, 19 Sep 2011 00:29:29 +0000 Subject: [PATCH] Added OpenOffice drawing file-format. Now you can: -) include in LyX OpenOffice drawings (.odg or old .sxd files) -) preview them on the screen -) view them in the final .ps/.pdf output -) edit them externally via libreoffice, ooffice, oodraw or soffice (whatever is detected). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39706 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/configure.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/configure.py b/lib/configure.py index 2d0fae5cc7..40977810c7 100644 --- a/lib/configure.py +++ b/lib/configure.py @@ -488,6 +488,9 @@ def checkFormatEntries(dtl_tools): checkViewerEditor('a Dia viewer and editor', ['dia'], rc_entry = [r'\Format dia dia DIA "" "%%" "%%" "vector,zipped=native"']) # + checkViewerEditor('an OpenOffice drawing viewer and editor', ['libreoffice', 'ooffice', 'oodraw', 'soffice'], + rc_entry = [r'\Format odg "odg, sxd" "OpenOffice drawing" "" "%%" "%%" "vector,zipped=native"']) + # checkViewerEditor('a Grace viewer and editor', ['xmgrace'], rc_entry = [r'\Format agr agr Grace "" "%%" "%%" "vector"']) # @@ -816,6 +819,9 @@ def checkConverterEntries(): checkProg('a Dia -> EPS converter', ['dia -e $$o -t eps $$i'], rc_entry = [ r'\converter dia eps "%%" ""']) # + checkProg('an OpenOffice -> EPS converter', ['libreoffice'], + rc_entry = [ r'\converter odg eps "python -tt $$s/scripts/libreoffice2eps.py $$i $$o" ""']) + # checkProg('a SVG -> PDF converter', ['rsvg-convert -f pdf -o $$o $$i', 'inkscape --file=$$i --export-area-drawing --without-gui --export-pdf=$$o'], rc_entry = [ r'\converter svg pdf "%%" ""']) # -- 2.39.2