Get OpenDocument export working when htlatex is available but oolatex
is not. Also check for oowriter as an ODT viewer. 


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@19262 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2007-07-31 17:19:39 +00:00
parent 775d93c837
commit 538fd6796e

View File

@ -295,6 +295,9 @@ def checkFormatEntries(dtl_tools):
checkViewer('Noteedit', ['noteedit'], checkViewer('Noteedit', ['noteedit'],
rc_entry = [r'\Format noteedit not Noteedit "" "%%" "%%" "vector"']) rc_entry = [r'\Format noteedit not Noteedit "" "%%" "%%" "vector"'])
# #
checkViewer('an OpenDocument viewer', ['oowriter'],
rc_entry = [r'\Format odt odt OpenDocument "" "%%" "%%" "document,vector"'])
#
# entried that do not need checkProg # entried that do not need checkProg
addToRC(r'''\Format date "" "date command" "" "" "" "" addToRC(r'''\Format date "" "date command" "" "" "" ""
\Format fax "" Fax "" "" "" "document" \Format fax "" Fax "" "" "" "document"
@ -310,7 +313,6 @@ def checkFormatEntries(dtl_tools):
\Format pstex pstex_t PSTEX "" "" "" "" \Format pstex pstex_t PSTEX "" "" "" ""
\Format rtf rtf "Rich Text Format" "" "" "" "document,vector" \Format rtf rtf "Rich Text Format" "" "" "" "document,vector"
\Format sxw sxw "OpenOffice.Org (sxw)" "" "" "" "document,vector" \Format sxw sxw "OpenOffice.Org (sxw)" "" "" "" "document,vector"
\Format odt odt "Open Document" O "" "" "document,vector"
\Format wmf wmf "Windows Metafile" "" "" "" "vector" \Format wmf wmf "Windows Metafile" "" "" "" "vector"
\Format emf emf "Enhanced Metafile" "" "" "" "vector" \Format emf emf "Enhanced Metafile" "" "" "" "vector"
\Format word doc "MS Word" W "" "" "document,vector" \Format word doc "MS Word" W "" "" "document,vector"
@ -368,8 +370,8 @@ def checkConverterEntries():
checkProg('an OpenDocument -> LaTeX converter', ['w2l -clean $$i'], checkProg('an OpenDocument -> LaTeX converter', ['w2l -clean $$i'],
rc_entry = [ r'\converter odt latex "%%" ""' ]) rc_entry = [ r'\converter odt latex "%%" ""' ])
# #
checkProg('a LaTeX -> Open Document converter', ['oolatex $$i', 'oolatex.sh $$i'], checkProg('a LaTeX -> Open Document converter', ['oolatex $$i', 'oolatex.sh $$i', 'htlatex $$i \'xhtml,ooffice\' \'ooffice/! -cmozhtf\' \'-coo\' \'-cvalidate\''],
rc_entry = [ r'\converter latex odt "%%" "latex"' ]) rc_entry = [ r'\converter latex odt "%%" "needaux"' ])
# On windows it is called latex2rt.exe # On windows it is called latex2rt.exe
checkProg('a LaTeX -> RTF converter', ['latex2rtf -p -S -o $$o $$i', 'latex2rt -p -S -o $$o $$i'], checkProg('a LaTeX -> RTF converter', ['latex2rtf -p -S -o $$o $$i', 'latex2rt -p -S -o $$o $$i'],
rc_entry = [ r'\converter latex rtf "%%" "needaux"' ]) rc_entry = [ r'\converter latex rtf "%%" "needaux"' ])