summaryrefslogtreecommitdiffstats
path: root/sc/inc/scextopt.hxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-01-10 15:10:23 -0500
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-01-10 15:22:20 -0500
commit3e87471b6815a3cad48cab2ef81073bad5453c56 (patch)
tree8ddecec61394f3fe541382bfc68e553a9b43dc12 /sc/inc/scextopt.hxx
parentswap entries to optional checkbox is on last row (diff)
downloadcore-3e87471b6815a3cad48cab2ef81073bad5453c56.tar.gz
core-3e87471b6815a3cad48cab2ef81073bad5453c56.zip
fdo#73484: Ensure that we import all tab settings from Excel.
The old code would not import settings of the last sheet if maTabData was not large enough before the loop begins. Enlarge maTabData ahead of time to ensure we load all tab settings. Change-Id: I9093a93ef26ccba9fef06a8929d1d86311f5c55d
Diffstat (limited to 'sc/inc/scextopt.hxx')
-rw-r--r--sc/inc/scextopt.hxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/sc/inc/scextopt.hxx b/sc/inc/scextopt.hxx
index a4893cf17309..bcdaa2c2a070 100644
--- a/sc/inc/scextopt.hxx
+++ b/sc/inc/scextopt.hxx
@@ -96,6 +96,13 @@ public:
/** @return read access to the settings of a sheet, if extant; otherwise 0. */
const ScExtTabSettings* GetTabSettings( SCTAB nTab ) const;
+
+ /**
+ * @return index of the last sheet that has settings, or -1 if no tab
+ * settings are present.
+ */
+ SCTAB GetLastTab() const;
+
/** @return read/write access to the settings of a sheet, may create a new struct. */
ScExtTabSettings& GetOrCreateTabSettings( SCTAB nTab );