mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +00:00
Enable export of spreadsheets with XHTML.
This commit is contained in:
parent
94dd876699
commit
1840e2dbaf
@ -638,6 +638,7 @@ def checkFormatEntries(dtl_tools):
|
|||||||
checkViewer('gnumeric spreadsheet software', ['gnumeric'],
|
checkViewer('gnumeric spreadsheet software', ['gnumeric'],
|
||||||
rc_entry = [r'''\Format gnumeric gnumeric "Gnumeric spreadsheet" "" "" "%%" "document" "application/x-gnumeric"
|
rc_entry = [r'''\Format gnumeric gnumeric "Gnumeric spreadsheet" "" "" "%%" "document" "application/x-gnumeric"
|
||||||
\Format excel xls "Excel spreadsheet" "" "" "%%" "document" "application/vnd.ms-excel"
|
\Format excel xls "Excel spreadsheet" "" "" "%%" "document" "application/vnd.ms-excel"
|
||||||
|
\Format html_table html "HTML Table (for spreadsheets)" "" "" "%%" "document" "text/html"
|
||||||
\Format oocalc ods "OpenDocument spreadsheet" "" "" "%%" "document" "application/vnd.oasis.opendocument.spreadsheet"'''])
|
\Format oocalc ods "OpenDocument spreadsheet" "" "" "%%" "document" "application/vnd.oasis.opendocument.spreadsheet"'''])
|
||||||
#
|
#
|
||||||
checkViewer('an HTML previewer', ['firefox', 'mozilla file://$$p$$i', 'netscape'],
|
checkViewer('an HTML previewer', ['firefox', 'mozilla file://$$p$$i', 'netscape'],
|
||||||
@ -1016,7 +1017,11 @@ def checkConverterEntries():
|
|||||||
checkProg('a spreadsheet -> latex converter', ['ssconvert'],
|
checkProg('a spreadsheet -> latex converter', ['ssconvert'],
|
||||||
rc_entry = [ r'''\converter gnumeric latex "ssconvert --export-type=Gnumeric_html:latex $$i $$o" ""
|
rc_entry = [ r'''\converter gnumeric latex "ssconvert --export-type=Gnumeric_html:latex $$i $$o" ""
|
||||||
\converter oocalc latex "ssconvert --export-type=Gnumeric_html:latex $$i $$o" ""
|
\converter oocalc latex "ssconvert --export-type=Gnumeric_html:latex $$i $$o" ""
|
||||||
\converter excel latex "ssconvert --export-type=Gnumeric_html:latex $$i $$o" ""'''])
|
\converter excel latex "ssconvert --export-type=Gnumeric_html:latex $$i $$o" ""
|
||||||
|
\converter gnumeric html_table "ssconvert --export-type=Gnumeric_html:html40frag $$i $$o" ""
|
||||||
|
\converter oocalc html_table "ssconvert --export-type=Gnumeric_html:html40frag $$i $$o" ""
|
||||||
|
\converter excel html_table "ssconvert --export-type=Gnumeric_html:html40frag $$i $$o" ""
|
||||||
|
'''])
|
||||||
|
|
||||||
path, lilypond = checkProg('a LilyPond -> EPS/PDF/PNG converter', ['lilypond'])
|
path, lilypond = checkProg('a LilyPond -> EPS/PDF/PNG converter', ['lilypond'])
|
||||||
if (lilypond != ''):
|
if (lilypond != ''):
|
||||||
|
@ -81,6 +81,11 @@ Template GnumericSpreadsheet
|
|||||||
Format DocBook
|
Format DocBook
|
||||||
Product "[Spreadsheet: $$FName]"
|
Product "[Spreadsheet: $$FName]"
|
||||||
FormatEnd
|
FormatEnd
|
||||||
|
Format XHTML
|
||||||
|
Product "$$Contents(\"$$AbsPath$$Basename.html\")</p>"
|
||||||
|
UpdateFormat html_table
|
||||||
|
UpdateResult "$$AbsPath$$Basename.html"
|
||||||
|
FormatEnd
|
||||||
TemplateEnd
|
TemplateEnd
|
||||||
|
|
||||||
Template RasterImage
|
Template RasterImage
|
||||||
|
Loading…
Reference in New Issue
Block a user