summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-08-11 15:46:21 +0200
committerNoel Grandin <noel@peralex.com>2016-08-17 09:43:52 +0200
commitd5de00cc73ca6b60f586c13f22d7b78470984dea (patch)
tree8ff762360044c25af992817f720208619918dc60 /include
parent0e867bc4cba66c14d543e111ea8ab89dc2444ee0 (diff)
loplugin:unusedenumconstants in basctl..editeng
Change-Id: I49a23a197969d58a3a2d6b2be1fbe4a647c7fa08
Diffstat (limited to 'include')
-rw-r--r--include/basic/basmgr.hxx2
-rw-r--r--include/basic/sbxdef.hxx8
-rw-r--r--include/editeng/bulletitem.hxx4
-rw-r--r--include/editeng/eedata.hxx8
-rw-r--r--include/editeng/outliner.hxx9
-rw-r--r--include/editeng/svxenum.hxx27
6 files changed, 10 insertions, 48 deletions
diff --git a/include/basic/basmgr.hxx b/include/basic/basmgr.hxx
index 22ab8fd983da..c6a54016d599 100644
--- a/include/basic/basmgr.hxx
+++ b/include/basic/basmgr.hxx
@@ -34,14 +34,12 @@ class SotStorage;
enum class BasicErrorReason
{
- OPENSTORAGE = 0x0001,
OPENLIBSTORAGE = 0x0002,
OPENMGRSTREAM = 0x0004,
OPENLIBSTREAM = 0x0008,
LIBNOTFOUND = 0x0010,
STORAGENOTFOUND = 0x0020,
BASICLOADERROR = 0x0040,
- NOSTORAGENAME = 0x0080,
STDLIB = 0x0100
};
diff --git a/include/basic/sbxdef.hxx b/include/basic/sbxdef.hxx
index da5606720429..f9fb5cc6f4b6 100644
--- a/include/basic/sbxdef.hxx
+++ b/include/basic/sbxdef.hxx
@@ -58,10 +58,6 @@ enum SbxDataType {
SbxUSHORT = 18, // * unsigned short (sal_uInt16)
SbxULONG = 19, // * unsigned long (sal_uInt32)
-//deprecated: // old 64bit types kept for backward compatibility in file I/O
- SbxLONG64 = 20, // moved to SbxSALINT64 as 64bit int
- SbxULONG64 = 21, // moved to SbxSALUINT64 as 64bit int
-
SbxINT = 22, // * signed machine-dependent int
SbxUINT = 23, // * unsigned machine-dependent int
@@ -86,10 +82,6 @@ enum SbxDataType {
SbxARRAY = 0x2000, // array
SbxBYREF = 0x4000, // access by reference
- SbxSV1 = 128, // first defined data type for StarView
- SbxMEMORYSTREAM, // SvMemoryStream
- SbxSTORAGE, // SotStorage
-
SbxUSER1 = 256, // first user defined data type
SbxUSERn = 2047 // last user defined data type
};
diff --git a/include/editeng/bulletitem.hxx b/include/editeng/bulletitem.hxx
index 4c711c852657..9116222b77c9 100644
--- a/include/editeng/bulletitem.hxx
+++ b/include/editeng/bulletitem.hxx
@@ -25,7 +25,9 @@
#include <vcl/font.hxx>
-// Styles
+/**
+ * these must match the values in css::style::NumberingType
+ */
enum class SvxBulletStyle
{
ABC_BIG = 0,
diff --git a/include/editeng/eedata.hxx b/include/editeng/eedata.hxx
index 0eef2bd29bd1..ad0ab7b13fd0 100644
--- a/include/editeng/eedata.hxx
+++ b/include/editeng/eedata.hxx
@@ -41,14 +41,6 @@ namespace EEngineData
typedef std::vector< WrongSpellClass > WrongSpellVector;
- // text marking vector containing the EOC, EOW and EOS TEXT definitions
- enum TextMarkingType
- {
- EndOfCaracter = 0,
- EndOfWord = 1,
- EndOfSentence = 2
- };
-
} // end of namespace EditEngine
#endif // INCLUDED_EDITENG_EEDATA_HXX
diff --git a/include/editeng/outliner.hxx b/include/editeng/outliner.hxx
index fe12127546b0..90df8d6cc872 100644
--- a/include/editeng/outliner.hxx
+++ b/include/editeng/outliner.hxx
@@ -197,8 +197,7 @@ private:
Text = 0,
Bullet = 1,
Hypertext = 2, // Outside OutputArea
- Outside = 3, // Outside OutputArea
- DontKnow = 4
+ Outside = 3 // Outside OutputArea
};
EDITENG_DLLPRIVATE void ImplExpandOrCollaps( sal_Int32 nStartPara, sal_Int32 nEndPara, bool bExpand );
@@ -569,13 +568,11 @@ enum class OutlinerMode {
TextObject = 0x0001,
TitleObject = 0x0002,
OutlineObject = 0x0003,
- OutlineView = 0x0004,
- Subtitle = 0x0101,
- Note = 0x0201
+ OutlineView = 0x0004
};
namespace o3tl
{
- template<> struct typed_flags<OutlinerMode> : is_typed_flags<OutlinerMode, 0x030f> {};
+ template<> struct typed_flags<OutlinerMode> : is_typed_flags<OutlinerMode, 0x000f> {};
}
#define OUTLINERMODE_USERMASK (OutlinerMode)0x00FF
diff --git a/include/editeng/svxenum.hxx b/include/editeng/svxenum.hxx
index 7c8530ce9899..16147c2724ed 100644
--- a/include/editeng/svxenum.hxx
+++ b/include/editeng/svxenum.hxx
@@ -70,8 +70,7 @@ enum class SvxInterLineSpaceRule
{
Off,
Prop,
- Fix,
- End
+ Fix
};
enum SvxAdjust
@@ -139,20 +138,6 @@ enum SvxDrawAlignEnum
SVX_OBJECT_ALIGN_DOWN
};
-enum SvxDrawBezierEnum
-{
- SVX_BEZIER_MOVE,
- SVX_BEZIER_INSERT,
- SVX_BEZIER_DELETE,
- SVX_BEZIER_CUTLINE,
- SVX_BEZIER_CONVERT,
- SVX_BEZIER_EDGE,
- SVX_BEZIER_SMOOTH,
- SVX_BEZIER_SYMMTR,
- SVX_BEZIER_CLOSE,
- SVX_BEZIER_ELIMINATE_POINTS
-};
-
enum class SvxSpellArea
{
Body = 0,
@@ -161,13 +146,9 @@ enum class SvxSpellArea
Other
};
-enum SvxFrameAnchor
-{
- SVX_FLY_AT_CNTNT, // Paragraph-based frame
- SVX_FLY_IN_CNTNT, // Character-based frame
- SVX_FLY_PAGE // Page-based frame
-};
-
+/**
+ * these must match the values in css::style::NumberingType
+ */
enum SvxExtNumType
{
SVX_NUM_CHARS_UPPER_LETTER, // Counts from a-z, aa - az, ba - bz, ...