summaryrefslogtreecommitdiff
path: root/scaddins/source/analysis/analysishelper.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-02-07 09:32:11 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-02-07 10:48:19 +0200
commitde9c7e4d94da2c392564604c8b07ba323f564981 (patch)
treecb06fff1a76bec0d3fe87ac8f9a7f4d7c92db8aa /scaddins/source/analysis/analysishelper.hxx
parentf31d07b546c27417949b03821569573a2b4bfae9 (diff)
convert FDCategory to scoped enum
and drop unused AddIn constant Change-Id: I9cb07d58d7c986973d9713572538ce2142654397
Diffstat (limited to 'scaddins/source/analysis/analysishelper.hxx')
-rw-r--r--scaddins/source/analysis/analysishelper.hxx27
1 files changed, 13 insertions, 14 deletions
diff --git a/scaddins/source/analysis/analysishelper.hxx b/scaddins/source/analysis/analysishelper.hxx
index b00654d39056..670f5c55dc80 100644
--- a/scaddins/source/analysis/analysishelper.hxx
+++ b/scaddins/source/analysis/analysishelper.hxx
@@ -188,14 +188,13 @@ double GetCoupdays( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int
sal_Int32 nBase );
-enum FDCategory
-{
- FDCat_AddIn,
- FDCat_DateTime,
- FDCat_Finance,
- FDCat_Inf,
- FDCat_Math,
- FDCat_Tech
+enum class FDCategory
+{
+ DateTime,
+ Finance,
+ Inf,
+ Math,
+ Tech
};
@@ -204,8 +203,8 @@ struct FuncDataBase
const sal_Char* pIntName;
sal_uInt16 nUINameID; // resource ID to UI name
sal_uInt16 nDescrID; // resource ID to description, parameter names and ~ description
- bool bDouble; // name already exist in Calc
- bool bWithOpt; // first parameter is internal
+ bool bDouble; // name already exist in Calc
+ bool bWithOpt; // first parameter is internal
sal_uInt16 nCompListID; // resource ID to list of valid names
sal_uInt16 nNumOfParams; // number of named / described parameters
FDCategory eCat; // function category
@@ -216,15 +215,15 @@ struct FuncDataBase
class FuncData final
{
private:
- OUString aIntName;
+ OUString aIntName;
sal_uInt16 nUINameID;
sal_uInt16 nDescrID; // leads also to parameter descriptions!
- bool bDouble; // flag for names that already exist in Calc
- bool bWithOpt; // has internal parameter on first position
+ bool bDouble; // flag for names that already exist in Calc
+ bool bWithOpt; // has internal parameter on first position
sal_uInt16 nParam; // num of parameters
sal_uInt16 nCompID;
- std::vector<OUString> aCompList; // list of all valid names
+ std::vector<OUString> aCompList; // list of all valid names
FDCategory eCat; // function category
OUString aSuffix; // if bDouble and not empty, append a suffix other than "_ADD" for UI