summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-08-12 12:41:43 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-08-16 06:45:26 +0000
commit5b1095fc03e90506cb8ed956fafb528d4f6b0044 (patch)
treebd189462f567a1487e66516869a42db4796ffa0c
parent93de7661211d19f6fff201bff5625413a453258d (diff)
loplugin:unusedenumvalues in sc
Change-Id: If16f62c3a44a603aff7399f2064777069d5d85fa Reviewed-on: https://gerrit.libreoffice.org/28074 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
-rw-r--r--sc/inc/chgtrack.hxx1
-rw-r--r--sc/inc/global.hxx1
-rw-r--r--sc/inc/tabprotection.hxx2
-rw-r--r--sc/inc/types.hxx6
-rw-r--r--sc/source/core/data/fillinfo.cxx8
-rw-r--r--sc/source/core/inc/refupdat.hxx7
-rw-r--r--sc/source/filter/excel/xepivot.cxx15
-rw-r--r--sc/source/filter/inc/formulabase.hxx11
-rw-r--r--sc/source/filter/inc/tokstack.hxx3
-rw-r--r--sc/source/filter/inc/xltracer.hxx13
-rw-r--r--sc/source/filter/oox/revisionfragment.cxx5
-rw-r--r--sc/source/filter/xml/xmlimprt.hxx17
-rw-r--r--sc/source/ui/inc/condformathelper.hxx3
-rw-r--r--sc/source/ui/inc/selectionstate.hxx2
14 files changed, 7 insertions, 87 deletions
diff --git a/sc/inc/chgtrack.hxx b/sc/inc/chgtrack.hxx
index e7f6e5338db9..94aa56d66e3f 100644
--- a/sc/inc/chgtrack.hxx
+++ b/sc/inc/chgtrack.hxx
@@ -82,7 +82,6 @@ enum ScChangeActionClipMode
{
SC_CACM_NONE,
SC_CACM_CUT,
- SC_CACM_COPY,
SC_CACM_PASTE
};
diff --git a/sc/inc/global.hxx b/sc/inc/global.hxx
index 396865bce851..27ea1f862906 100644
--- a/sc/inc/global.hxx
+++ b/sc/inc/global.hxx
@@ -151,7 +151,6 @@ enum class InsertDeleteFlags : sal_uInt16
ATTRIB = HARDATTR | STYLES,
CONTENTS = VALUE | DATETIME | STRING | NOTE | FORMULA | OUTLINE,
ALL = CONTENTS | ATTRIB | OBJECTS,
- ALL_USED_BITS = ALL | EDITATTR | NOCAPTIONS | ADDNOTES | SPECIAL_BOOLEAN | FORGETCAPTIONS,
/// Copy flags for auto/series fill functions: do not touch notes and drawing objects.
AUTOFILL = ALL & ~(NOTE | OBJECTS)
};
diff --git a/sc/inc/tabprotection.hxx b/sc/inc/tabprotection.hxx
index 066f8c4fdbe4..31ea28b73bd1 100644
--- a/sc/inc/tabprotection.hxx
+++ b/sc/inc/tabprotection.hxx
@@ -77,7 +77,6 @@ public:
{
STRUCTURE = 0,
WINDOWS,
- CONTENT,
NONE ///< last item - used to resize the vector
};
@@ -162,7 +161,6 @@ public:
SCENARIOS,
SELECT_LOCKED_CELLS,
SELECT_UNLOCKED_CELLS,
- SHEET,
SORT,
NONE ///< last item - used to resize the vector
};
diff --git a/sc/inc/types.hxx b/sc/inc/types.hxx
index 5fc451bf4198..15ebf75f2048 100644
--- a/sc/inc/types.hxx
+++ b/sc/inc/types.hxx
@@ -78,12 +78,6 @@ enum GroupCalcState
GroupCalcRunning,
};
-enum OpenCLKernelState
-{
- OpenCLKernelNone = 0,
- OpenCLKernelBinaryCreated
-};
-
struct RangeMatrix
{
ScMatrixRef mpMat;
diff --git a/sc/source/core/data/fillinfo.cxx b/sc/source/core/data/fillinfo.cxx
index 6f7155070b09..d74ea57355c3 100644
--- a/sc/source/core/data/fillinfo.cxx
+++ b/sc/source/core/data/fillinfo.cxx
@@ -46,14 +46,6 @@
#include <memory>
#include <o3tl/make_unique.hxx>
-enum FillInfoLinePos
- {
- FILP_TOP,
- FILP_BOTTOM,
- FILP_LEFT,
- FILP_RIGHT
- };
-
// Similar as in output.cxx
static void lcl_GetMergeRange( SCsCOL nX, SCsROW nY, SCSIZE nArrY,
diff --git a/sc/source/core/inc/refupdat.hxx b/sc/source/core/inc/refupdat.hxx
index bbfa15b029c1..8bc1ab6d7253 100644
--- a/sc/source/core/inc/refupdat.hxx
+++ b/sc/source/core/inc/refupdat.hxx
@@ -43,13 +43,6 @@ class ScRefUpdate
{
public:
- /// What type of reference is to be updated.
- enum WhatType
- {
- ALL, /// all references
- ABSOLUTE /// only absolute references
- };
-
static ScRefUpdateRes Update
( ScDocument* pDoc, UpdateRefMode eUpdateRefMode,
SCCOL nCol1, SCROW nRow1, SCTAB nTab1,
diff --git a/sc/source/filter/excel/xepivot.cxx b/sc/source/filter/excel/xepivot.cxx
index 897651fe7d4c..de36642a9e7a 100644
--- a/sc/source/filter/excel/xepivot.cxx
+++ b/sc/source/filter/excel/xepivot.cxx
@@ -1559,19 +1559,12 @@ void XclExpPivotTable::WriteQsiSxTag( XclExpStream& rStrm ) const
#endif
rStrm << nOptions;
- enum ExcelVersion
- {
- Excel2000 = 0,
- ExcelXP = 1,
- Excel2003 = 2,
- Excel2007 = 3
- };
- ExcelVersion eXclVer = Excel2000;
+ sal_uInt8 eXclVer = 0; // Excel2000
sal_uInt8 nOffsetBytes = 16;
- rStrm << static_cast<sal_uInt8>(eXclVer) // version table last refreshed
- << static_cast<sal_uInt8>(eXclVer) // minimum version to refresh
+ rStrm << eXclVer // version table last refreshed
+ << eXclVer // minimum version to refresh
<< nOffsetBytes
- << static_cast<sal_uInt8>(eXclVer); // first version created
+ << eXclVer; // first version created
rStrm << XclExpString(maPTInfo.maTableName);
rStrm << static_cast<sal_uInt16>(0x0001); // no idea what this is for.
diff --git a/sc/source/filter/inc/formulabase.hxx b/sc/source/filter/inc/formulabase.hxx
index a5b1e7ca425e..aae1f93ad010 100644
--- a/sc/source/filter/inc/formulabase.hxx
+++ b/sc/source/filter/inc/formulabase.hxx
@@ -382,17 +382,6 @@ enum FuncParamValidity
FUNC_PARAM_EXCELONLY /// Parameter supported by Excel only.
};
-/** Enumerates different types of token class conversion in function parameters. */
-enum FuncParamConversion
-{
- FUNC_PARAMCONV_ORG, /// Use original class of current token.
- FUNC_PARAMCONV_VAL, /// Convert tokens to VAL class.
- FUNC_PARAMCONV_ARR, /// Convert tokens to ARR class.
- FUNC_PARAMCONV_RPT, /// Repeat parent conversion in VALTYPE parameters.
- FUNC_PARAMCONV_RPX, /// Repeat parent conversion in REFTYPE parameters.
- FUNC_PARAMCONV_RPO /// Repeat parent conversion in operands of operators.
-};
-
/** Structure that contains all needed information for a parameter in a
function.
diff --git a/sc/source/filter/inc/tokstack.hxx b/sc/source/filter/inc/tokstack.hxx
index 71ef978db958..ffac2697be5f 100644
--- a/sc/source/filter/inc/tokstack.hxx
+++ b/sc/source/filter/inc/tokstack.hxx
@@ -66,8 +66,7 @@ enum E_TYPE
T_Matrix, // token for inline arrays
T_ExtName, // token for external names
T_ExtRefC,
- T_ExtRefA,
- T_Error // for check in case of error
+ T_ExtRefA
};
class TokenPool
diff --git a/sc/source/filter/inc/xltracer.hxx b/sc/source/filter/inc/xltracer.hxx
index 6b216df04f27..f3f1b1e4bd07 100644
--- a/sc/source/filter/inc/xltracer.hxx
+++ b/sc/source/filter/inc/xltracer.hxx
@@ -30,30 +30,17 @@ enum XclTracerId
eUnKnown , /// unused but allows us to set the correct index
eRowLimitExceeded ,
eTabLimitExceeded ,
- ePassword ,
ePrintRange ,
eShortDate ,
eBorderLineStyle ,
eFillPattern ,
- eInvisibleGrid ,
- eFormattedNote ,
- eFormulaExtName ,
eFormulaMissingArg ,
ePivotDataSource ,
ePivotChartExists ,
eChartUnKnownType ,
- eChartTrendLines ,
- eChartErrorBars ,
eChartOnlySheet ,
- eChartRange ,
- eChartDSName,
eChartDataTable,
eChartLegendPosition,
- eChartTextFormatting,
- eChartEmbeddedObj,
- eChartAxisAuto,
- eChartAxisManual,
- eChartInvalidXY,
eUnsupportedObject ,
eObjectNotPrintable ,
eDVType,
diff --git a/sc/source/filter/oox/revisionfragment.cxx b/sc/source/filter/oox/revisionfragment.cxx
index 704c7d529ec3..928d71ec857f 100644
--- a/sc/source/filter/oox/revisionfragment.cxx
+++ b/sc/source/filter/oox/revisionfragment.cxx
@@ -44,10 +44,7 @@ enum RevisionType
{
REV_UNKNOWN = 0,
REV_CELLCHANGE,
- REV_INSERTROW,
- REV_DELETEROW,
- REV_INSERTCOL,
- REV_DELETECOL
+ REV_INSERTROW
};
/**
diff --git a/sc/source/filter/xml/xmlimprt.hxx b/sc/source/filter/xml/xmlimprt.hxx
index 518a33da12b5..5df632d3c803 100644
--- a/sc/source/filter/xml/xmlimprt.hxx
+++ b/sc/source/filter/xml/xmlimprt.hxx
@@ -74,23 +74,6 @@ enum ScXMLDocTokens
XML_TOK_OFFICE_END=XML_TOK_UNKNOWN
};
-enum ScXMLStylesTokens
-{
- XML_TOK_STYLES_STYLE
-};
-
-enum ScXMLStylesAttrTokens
-{
- XML_TOK_STYLES_STYLE_NAME,
- XML_TOK_STYLES_STYLE_FAMILY,
- XML_TOK_STYLES_STYLE_PARENT_STYLE_NAME
-};
-
-enum ScXMLStyleTokens
-{
- XML_TOK_STYLE_PROPERTIES
-};
-
enum ScXMLBodyTokens
{
XML_TOK_BODY_TRACKED_CHANGES,
diff --git a/sc/source/ui/inc/condformathelper.hxx b/sc/source/ui/inc/condformathelper.hxx
index 405e11c5a4eb..cac29a9a181b 100644
--- a/sc/source/ui/inc/condformathelper.hxx
+++ b/sc/source/ui/inc/condformathelper.hxx
@@ -22,8 +22,7 @@ enum ScCondFormatEntryType
DATABAR,
FORMULA,
ICONSET,
- DATE,
- COLLAPSE
+ DATE
};
class ScCondFormatHelper
diff --git a/sc/source/ui/inc/selectionstate.hxx b/sc/source/ui/inc/selectionstate.hxx
index 86a8d6f6a180..8791751697aa 100644
--- a/sc/source/ui/inc/selectionstate.hxx
+++ b/sc/source/ui/inc/selectionstate.hxx
@@ -29,8 +29,6 @@ enum ScSelectionType
SC_SELECTTYPE_NONE, /// No selection, simple cell cursor.
SC_SELECTTYPE_SHEET, /// Single cell, cell range, or multi range selection.
SC_SELECTTYPE_EDITCELL, /// Cell in edit mode (with or without selection).
- SC_SELECTTYPE_DRAWING, /// One or more drawing objects.
- SC_SELECTTYPE_EDITDRAW /// Edit mode in drawing object (with or without selection).
};
class ScViewData;