diff options
-rw-r--r-- | scripting/examples/javascript/ExportSheetsToHTML/exportsheetstohtml.js | 5 | ||||
-rwxr-xr-x | scripting/examples/javascript/ExportSheetsToHTML/parcel-descriptor.xml | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/scripting/examples/javascript/ExportSheetsToHTML/exportsheetstohtml.js b/scripting/examples/javascript/ExportSheetsToHTML/exportsheetstohtml.js index 854a8a367efb..bf72759a20ef 100644 --- a/scripting/examples/javascript/ExportSheetsToHTML/exportsheetstohtml.js +++ b/scripting/examples/javascript/ExportSheetsToHTML/exportsheetstohtml.js @@ -1,3 +1,8 @@ +// When this script is run on an existing, saved, spreadsheet, +// eg. /home/testuser/myspreadsheet.sxc, the script will export +// each sheet to a separate html file, +// eg. /home/testuser/myspreadsheet_sheet1.html, +// /home/testuser/myspreadsheet_sheet2.html etc importClass(Packages.com.sun.star.uno.UnoRuntime); importClass(Packages.com.sun.star.sheet.XSpreadsheetDocument); importClass(Packages.com.sun.star.container.XIndexAccess); diff --git a/scripting/examples/javascript/ExportSheetsToHTML/parcel-descriptor.xml b/scripting/examples/javascript/ExportSheetsToHTML/parcel-descriptor.xml index 51aa36446d59..d6c3b51f0dda 100755 --- a/scripting/examples/javascript/ExportSheetsToHTML/parcel-descriptor.xml +++ b/scripting/examples/javascript/ExportSheetsToHTML/parcel-descriptor.xml @@ -9,7 +9,7 @@ Saves each sheet in the current Calc document as a separate HTML file in the same directory as the original Calc document. </description> </locale> - <functionname value="ExportSheetsToHTML.js"/> + <functionname value="exportsheetstohtml.js"/> <logicalname value="ExportSheetsToHTML.JavaScript"/> </script> |