summaryrefslogtreecommitdiff
path: root/sc/qa
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2020-09-27 20:37:34 +0200
committerEike Rathke <erack@redhat.com>2020-09-28 02:52:50 +0200
commit930d82550863430c9bef96ac307c3ff2cfefe4d8 (patch)
tree5a27de9f058a2efd9110372c05b032965f02b9cc /sc/qa
parentdec9a123867dcd0fea4683beeb3b4b6659f926f3 (diff)
Resolves: tdf#133812 Add the 'Result' style again used by the Subtotal tool
Necessary to also adapt the test case that checks for a defined number of styles. Regression from commit 7b0aed617f1e57335837cf56ef2d222a96f8270d CommitDate: Wed Sep 28 11:42:56 2016 +0000 Remove old cell styles from calc and commit 06f319937187f76ee402d53b3baa78c391c2af19 CommitDate: Sun Oct 2 13:51:26 2016 +0000 tdf#90937 Add a set of cell styles to calc Change-Id: I3e47d8e24d375a64d9056e7a85197b89173c8e41 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103520 Tested-by: Jenkins Reviewed-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'sc/qa')
-rw-r--r--sc/qa/extras/scstylefamilyobj.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/sc/qa/extras/scstylefamilyobj.cxx b/sc/qa/extras/scstylefamilyobj.cxx
index a5843a8f3a1f..8597d22b0f71 100644
--- a/sc/qa/extras/scstylefamilyobj.cxx
+++ b/sc/qa/extras/scstylefamilyobj.cxx
@@ -83,10 +83,14 @@ private:
uno::Reference<lang::XComponent> m_xComponent;
};
+/* TODO: this c/should be derived/defined from the real style count, default
+ * implemented plus sc/res/xml/styles.xml */
+constexpr sal_Int32 kScStyleFamilyObjCount = 20;
+
ScStyleFamilyObj::ScStyleFamilyObj()
: CalcUnoApiTest("/sc/qa/extras/testdocuments")
, XElementAccess(cppu::UnoType<style::XStyle>::get())
- , XIndexAccess(19)
+ , XIndexAccess(kScStyleFamilyObjCount)
, XNameAccess("ScStyleFamilyObj")
, XNameContainer("ScStyleFamilyObj")
, XNameReplace("ScStyleFamilyObj")