summaryrefslogtreecommitdiff
path: root/sc/source/ui/inc/imoptdlg.hxx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2021-07-15 10:37:57 +0200
committerEike Rathke <erack@redhat.com>2021-07-15 13:02:04 +0200
commitfda91f8be16ba760e360940ebafd6244c648cb8c (patch)
tree35c56bba166691e0ad63792c69c940fe6cf7919e /sc/source/ui/inc/imoptdlg.hxx
parent246c766cadcafc5d26f39f832a683a13f2dfe40b (diff)
Related: tdf#135762 Allow --convert-to csv to specify 1-based sheet number
Same multifile mechanism as for -1 all sheets is used, so soffice --convert-to csv:"Text - txt - csv (StarCalc)":44,34,UTF8,1,,0,false,true,false,false,false,2 sample.ods writes a file sample-Sheet2.csv Change-Id: Ib9248c9561e4e340c88458ac5dfd159e443a4cfd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118971 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins
Diffstat (limited to 'sc/source/ui/inc/imoptdlg.hxx')
-rw-r--r--sc/source/ui/inc/imoptdlg.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/inc/imoptdlg.hxx b/sc/source/ui/inc/imoptdlg.hxx
index 2314349f602a..935f271b0c5c 100644
--- a/sc/source/ui/inc/imoptdlg.hxx
+++ b/sc/source/ui/inc/imoptdlg.hxx
@@ -32,7 +32,7 @@ public:
: nFieldSepCode(nFieldSep), nTextSepCode(nTextSep),
bFixedWidth(false), bSaveAsShown(false), bQuoteAllText(false),
bSaveNumberAsSuch(true), bSaveFormulas(false), bRemoveSpace(false),
- bNewFilePerSheet(false)
+ nSheetToExport(0)
{ SetTextEncoding( nEnc ); }
ScImportOptions& operator=( const ScImportOptions& rCpy ) = default;
@@ -51,9 +51,9 @@ public:
bool bSaveNumberAsSuch;
bool bSaveFormulas;
bool bRemoveSpace;
- // currently only "0" for 'current sheet' and "-1" for all sheets (each to
- // a separate file) are options
- bool bNewFilePerSheet;
+ // "0" for 'current sheet', "-1" for all sheets (each to a separate file),
+ // or 1-based specific sheet number (to a separate file).
+ sal_Int32 nSheetToExport;
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */