summaryrefslogtreecommitdiff
path: root/sc/inc/dptabsrc.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-03-14 11:56:53 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-03-15 10:29:31 +0000
commitc9da7f6bfe25d217fe3fdd09b82b95e9491cd8e3 (patch)
treec7150e564d45a9e1eab10d19904610e807a867eb /sc/inc/dptabsrc.hxx
parent6c3968e234e8ee49103921930de87801bcc048bc (diff)
introduce ScGeneralFunction scoped enum
to abstract over css::sheet::GeneralFunction and css::sheet::GeneralFunction2 Change-Id: I4d4df35a249bf66e12240a3b94948918f1f3ef8a Reviewed-on: https://gerrit.libreoffice.org/35168 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/inc/dptabsrc.hxx')
-rw-r--r--sc/inc/dptabsrc.hxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sc/inc/dptabsrc.hxx b/sc/inc/dptabsrc.hxx
index 2cb65bae2617..9ee1a8e6ed80 100644
--- a/sc/inc/dptabsrc.hxx
+++ b/sc/inc/dptabsrc.hxx
@@ -65,9 +65,6 @@ class ScDPResultMember;
class ScDPResultData;
class ScDPItemData;
class ScDPTableData;
-
-// implementation of DataPilotSource using ScDPTableData
-
class ScDPDimensions;
class ScDPDimension;
class ScDPHierarchies;
@@ -76,6 +73,9 @@ class ScDPLevels;
class ScDPLevel;
class ScDPMembers;
class ScDPMember;
+enum class ScGeneralFunction;
+
+// implementation of DataPilotSource using ScDPTableData
class ScDPSource : public cppu::WeakImplHelper<
css::sheet::XDimensionsSupplier,
@@ -267,7 +267,7 @@ class ScDPDimension : public cppu::WeakImplHelper<
ScDPSource* pSource;
long nDim; // dimension index (== column ID)
rtl::Reference<ScDPHierarchies> mxHierarchies;
- sal_uInt16 nFunction; // enum GeneralFunction2
+ ScGeneralFunction nFunction;
OUString aName; // if empty, take from source
std::unique_ptr<OUString> mpLayoutName;
std::unique_ptr<OUString> mpSubtotalName;
@@ -331,8 +331,8 @@ public:
sal_uInt16 getOrientation() const;
bool getIsDataLayoutDimension() const;
- sal_uInt16 getFunction() const { return nFunction;}
- void setFunction(sal_uInt16 nNew); // for data dimension
+ ScGeneralFunction getFunction() const { return nFunction;}
+ void setFunction(ScGeneralFunction nNew); // for data dimension
static long getUsedHierarchy() { return 0;}
bool HasSelectedPage() const { return bHasSelectedPage; }