]> git.lyx.org Git - features.git/commitdiff
Add xlsx format
authorGeorg Baum <baum@lyx.org>
Thu, 8 Sep 2016 18:53:37 +0000 (20:53 +0200)
committerGeorg Baum <baum@lyx.org>
Thu, 8 Sep 2016 18:54:40 +0000 (20:54 +0200)
We do already have docx, but xlsx was missing. This is a separate format
because of the MIME type. nd because some users might need converters which
can only handle one format. Now the spreadsheet template does not hide the
fact anymore that it can deal with xlsx files as well.

lib/configure.py
lib/external_templates
status.22x

index d604fad4a0e4e1623638aafac32d7a9720b80a4a..c478616607399c85b59162e182de63f96ad3a260 100644 (file)
@@ -632,6 +632,7 @@ def checkFormatEntries(dtl_tools):
     checkViewer('gnumeric spreadsheet software', ['gnumeric'],
       rc_entry = [r'''\Format gnumeric gnumeric "Gnumeric spreadsheet" "" ""    "%%"   "document"      "application/x-gnumeric"
 \Format excel      xls    "Excel spreadsheet"      "" "" "%%"    "document"    "application/vnd.ms-excel"
+\Format excel2     xlsx   "MS Excel Office Open XML" "" "" "%%" "document"     "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
 \Format html_table html   "HTML Table (for spreadsheets)"      "" "" "%%"    "document"        "text/html"
 \Format oocalc     ods    "OpenDocument spreadsheet" "" "" "%%"    "document"  "application/vnd.oasis.opendocument.spreadsheet"'''])
  #
@@ -1012,9 +1013,11 @@ def checkConverterEntries():
        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 excel  latex "ssconvert --export-type=Gnumeric_html:latex $$i $$o" ""
+\converter excel2 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" ""
+\converter excel2 html_table "ssconvert --export-type=Gnumeric_html:html40frag $$i $$o" ""
 '''])
 
     path, lilypond = checkProg('a LilyPond -> EPS/PDF/PNG converter', ['lilypond'])
index 409e09a7ed3ae34b6bc5f373a7bf8a73b14a59b7..015e758416d2012a6ea1e52e437782204b6c4f58 100644 (file)
@@ -47,7 +47,7 @@ Template GnumericSpreadsheet
                both for gnumeric and excel files.
        HelpTextEnd
        InputFormat "gnumeric"
-       FileFilter "*.{gnumeric,ods,xls}"
+       FileFilter "*.{gnumeric,ods,xls,xlsx}"
        AutomaticProduction true
        Format LaTeX
                Product "\\def\\inputGnumericTable{}\\input{$$AbsOrRelPathMaster$$Basename.tex}"
index 76c28e7bc909f64efb6ed7e79abd17d0582af991..340635fb6356669953ea9cafb2d63123531a45b4 100644 (file)
@@ -15,6 +15,8 @@ What's new
 
 * DOCUMENT INPUT/OUTPUT
 
+- .xlsx is now a suggested extension in the spreadsheet external template
+
 
 * TEX2LYX IMPROVEMENTS