Kaydet (Commit) d5de00cc authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:unusedenumconstants in basctl..editeng

Change-Id: I49a23a197969d58a3a2d6b2be1fbe4a647c7fa08
üst 0e867bc4
......@@ -36,7 +36,6 @@ enum SvxChooseControlEnum
SVX_SNAP_PREVIEW,
SVX_SNAP_SELECT,
SVX_SNAP_URLBUTTON,
SVX_SNAP_NOTHING,
SVX_SNAP_IMAGECONTROL,
SVX_SNAP_PROGRESSBAR,
SVX_SNAP_HFIXEDLINE,
......
......@@ -139,9 +139,6 @@ namespace basctl
the application-wide scripts/dialogs.
*/
AllWithApplication,
/** real documents only
*/
DocumentsOnly,
/** real documents only, sorted lexicographically by their title (using the sys locale's default
collator)
*/
......
......@@ -59,16 +59,6 @@ namespace basegfx
class ActiveEdge
{
public:
/** The two possible active rectangle edges differ by one
coordinate value - the upper edge has the lower, the
lower edge the higher value.
*/
enum EdgeType {
/// edge with lower coordinate value
UPPER=0,
/// edge with higher coordinate value
LOWER=1
};
enum EdgeDirection {
/// edge proceeds to the left
......
......@@ -58,8 +58,7 @@ struct CreateShapeParam2D;
enum TimeBasedMode
{
MANUAL,
AUTOMATIC,
AUTOMATIC_WRAP
AUTOMATIC
};
struct TimeBasedInfo
......
......@@ -139,9 +139,7 @@ enum
PROP_DIAGRAM_DATATABLEHBORDER,
PROP_DIAGRAM_DATATABLEVBORDER,
PROP_DIAGRAM_DATATABLEOUTLINE,
PROP_DIAGRAM_EXTERNALDATA,
PROP_DIAGRAM_ROUNDED_EDGE
PROP_DIAGRAM_EXTERNALDATA
};
void lcl_AddPropertiesToVector(
......
......@@ -50,7 +50,6 @@ enum RenderEventType
EVENT_SHOW_SCROLL,
EVENT_SHOW_SELECT,
EVENT_AUTO_FLY,
EVENT_DIE,
EVENT_SELECTBAR_UPDEDATE
};
......
......@@ -59,23 +59,9 @@ enum MorkErrors
{
NoError = 0,
FailedToOpen,
UnsupportedVersion,
DefectedFormat
};
// Mork term types
enum MorkTerm
{
NoneTerm = 0,
DictTerm,
GroupTerm,
TableTerm,
RowTerm,
CellTerm,
CommentTerm,
LiteralTerm
};
/// Class MorkParser
......
......@@ -32,10 +32,7 @@ namespace connectivity
enum ExpressionFunct
{
FUNC_CONST,
ENUM_FUNC_EQUATION,
UNARY_FUNC_COLUMN,
ENUM_FUNC_AND,
ENUM_FUNC_OR
};
......
......@@ -125,13 +125,6 @@ namespace dbaxml
XML_TOK_AS_TEMPLATE ,
XML_TOK_COMPONENT_NAME
};
enum XMLType
{
XML_TYPE_FORMS,
XML_TYPE_REPORTS,
XML_TYPE_QUERIES,
XML_TYPE_TABLES
};
enum XMLQueryTable
{
XML_TOK_QUERY_NAME,
......
......@@ -56,7 +56,6 @@ namespace dbaui
FULL_JOIN=0,
LEFT_JOIN,
RIGHT_JOIN,
UNION_JOIN,
CROSS_JOIN,
INNER_JOIN
};
......
......@@ -116,7 +116,6 @@ private:
enum ApplyResult
{
AR_LEAVE_MODIFIED, // something was modified and has successfully been committed
AR_LEAVE_UNCHANGED, // no changes were made
AR_KEEP // don't leave the page (e.g. because an error occurred)
};
/** apply all changes made
......
......@@ -92,12 +92,6 @@ namespace dbaui
void newQueryWithPilot();
void newTableWithPilot();
enum RESULT
{
ERROR,
SUCCESS,
CANCEL
};
private:
css::uno::Reference< css::lang::XComponent >
impl_open(
......
......@@ -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
};
......
......@@ -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
};
......
......@@ -25,7 +25,9 @@
#include <vcl/font.hxx>
// Styles
/**
* these must match the values in css::style::NumberingType
*/
enum class SvxBulletStyle
{
ABC_BIG = 0,
......
......@@ -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
......
......@@ -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
......
......@@ -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, ...
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment