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

loplugin:unusedenumvalues

Change-Id: I9dcc9f73af6db5b4f7cc946bc28931e5c230b34c
Reviewed-on: https://gerrit.libreoffice.org/29012Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
Tested-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 4f86b7a8
...@@ -20,6 +20,7 @@ excludedSourceFiles = set([ ...@@ -20,6 +20,7 @@ excludedSourceFiles = set([
excludedTypes = set([ excludedTypes = set([
"SwVarFormat", "RES_FIELDS", "SwFillOrder", "SwIoDetect", "SwDocumentSettingsPropertyHandles", "SwVarFormat", "RES_FIELDS", "SwFillOrder", "SwIoDetect", "SwDocumentSettingsPropertyHandles",
"SalGenericDataType", "SwDateSubFormat", "XclFutureRecType", "ds_status", "MediaCommand", "SalGenericDataType", "SwDateSubFormat", "XclFutureRecType", "ds_status", "MediaCommand",
"EmfPlusHatchStyle"
]) ])
# clang does not always use exactly the same numbers in the type-parameter vars it generates # clang does not always use exactly the same numbers in the type-parameter vars it generates
......
...@@ -137,7 +137,6 @@ protected: ...@@ -137,7 +137,6 @@ protected:
enum ApplyResult enum ApplyResult
{ {
AR_LEAVE_MODIFIED, // something was modified and has successfully been committed 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) AR_KEEP // don't leave the page (e.g. because an error occurred)
}; };
......
...@@ -102,8 +102,7 @@ class FilterCache : public BaseLock ...@@ -102,8 +102,7 @@ class FilterCache : public BaseLock
E_CONTAINS_TYPES = 2, E_CONTAINS_TYPES = 2,
E_CONTAINS_FILTERS = 4, E_CONTAINS_FILTERS = 4,
E_CONTAINS_FRAMELOADERS = 8, E_CONTAINS_FRAMELOADERS = 8,
E_CONTAINS_CONTENTHANDLERS = 16, E_CONTAINS_CONTENTHANDLERS = 16
E_CONTAINS_ALL = 31 // must be a combination of all excepting E_CONTAINS_NOTHING! Please update if items will be added or removed ...
}; };
......
...@@ -27,12 +27,11 @@ class AstScope; ...@@ -27,12 +27,11 @@ class AstScope;
// Enum defining the different kinds of Ast nodes // Enum defining the different kinds of Ast nodes
enum NodeType enum NodeType
{ {
NT_object, // Denotes an object NT_service, // Denotes a service
NT_service, // Denotes an servcie
NT_interface_member, // Denotes an interface which is exported from object NT_interface_member, // Denotes an interface which is exported from object
NT_service_member, // Denotes an service which is exported from object NT_service_member, // Denotes a service which is exported from object
NT_observes, // Denotes an observed interface NT_observes, // Denotes an observed interface
NT_needs, // Denotes an needed service NT_needs, // Denotes a needed service
NT_module, // Denotes a module NT_module, // Denotes a module
NT_root, // Denotes the root of AST NT_root, // Denotes the root of AST
NT_interface, // Denotes an interface NT_interface, // Denotes an interface
......
...@@ -81,9 +81,6 @@ enum SbxDataType { ...@@ -81,9 +81,6 @@ enum SbxDataType {
SbxVECTOR = 0x1000, // simple counted array SbxVECTOR = 0x1000, // simple counted array
SbxARRAY = 0x2000, // array SbxARRAY = 0x2000, // array
SbxBYREF = 0x4000, // access by reference SbxBYREF = 0x4000, // access by reference
SbxUSER1 = 256, // first user defined data type
SbxUSERn = 2047 // last user defined data type
}; };
const sal_uInt32 SBX_TYPE_WITH_EVENTS_FLAG = 0x10000; const sal_uInt32 SBX_TYPE_WITH_EVENTS_FLAG = 0x10000;
......
...@@ -62,8 +62,7 @@ enum class SvxLineSpaceRule ...@@ -62,8 +62,7 @@ enum class SvxLineSpaceRule
{ {
Auto, Auto,
Fix, Fix,
Min, Min
End
}; };
enum class SvxInterLineSpaceRule enum class SvxInterLineSpaceRule
......
...@@ -200,14 +200,6 @@ enum ESCHER_AnchorText ...@@ -200,14 +200,6 @@ enum ESCHER_AnchorText
ESCHER_AnchorBottomCenteredBaseline ESCHER_AnchorBottomCenteredBaseline
}; };
enum ESCHER_cDir
{
ESCHER_cDir0, // Right
ESCHER_cDir90, // Down
ESCHER_cDir180, // Left
ESCHER_cDir270 // Up
};
// connector style // connector style
enum ESCHER_cxSTYLE enum ESCHER_cxSTYLE
{ {
...@@ -228,54 +220,6 @@ enum ESCHER_txfl ...@@ -228,54 +220,6 @@ enum ESCHER_txfl
ESCHER_txflVertN // Vertical, non-@ ESCHER_txflVertN // Vertical, non-@
}; };
// text direction (needed for Bi-Di support)
enum ESCHER_txDir
{
ESCHER_txdirLTR, // left-to-right text direction
ESCHER_txdirRTL, // right-to-left text direction
ESCHER_txdirContext // context text direction
};
// Callout Type
enum ESCHER_spcot
{
ESCHER_spcotRightAngle = 1,
ESCHER_spcotOneSegment = 2,
ESCHER_spcotTwoSegment = 3,
ESCHER_spcotThreeSegment= 4
};
// Callout Angle
enum ESCHER_spcoa
{
ESCHER_spcoaAny,
ESCHER_spcoa30,
ESCHER_spcoa45,
ESCHER_spcoa60,
ESCHER_spcoa90,
ESCHER_spcoa0
};
// Callout Drop
enum ESCHER_spcod
{
ESCHER_spcodTop,
ESCHER_spcodCenter,
ESCHER_spcodBottom,
ESCHER_spcodSpecified
};
// FontWork alignment
enum ESCHER_GeoTextAlign
{
ESCHER_AlignTextStretch, // Stretch each line of text to fit width.
ESCHER_AlignTextCenter, // Center text on width.
ESCHER_AlignTextLeft, // Left justify.
ESCHER_AlignTextRight, // Right justify.
ESCHER_AlignTextLetterJust, // Spread letters out to fit width.
ESCHER_AlignTextWordJust, // Spread words out to fit width.
ESCHER_AlignTextInvalid // Invalid
};
// flags for pictures // flags for pictures
enum ESCHER_BlipFlags enum ESCHER_BlipFlags
...@@ -290,71 +234,6 @@ enum ESCHER_BlipFlags ...@@ -290,71 +234,6 @@ enum ESCHER_BlipFlags
ESCHER_BlipFlagLinkToFile = 8 ESCHER_BlipFlagLinkToFile = 8
}; };
enum ESCHER_3DRenderMode
{
ESCHER_FullRender, // Generate a full rendering
ESCHER_Wireframe, // Generate a wireframe
ESCHER_BoundingCube // Generate a bounding cube
};
enum ESCHER_xFormType
{
ESCHER_xFormAbsolute, // Apply transform in absolute space centered on shape
ESCHER_xFormShape, // Apply transform to shape geometry
ESCHER_xFormDrawing // Apply transform in drawing space
};
enum ESCHER_ShadowType
{
ESCHER_ShadowOffset, // N pixel offset shadow
ESCHER_ShadowDouble, // Use second offset too
ESCHER_ShadowRich, // Rich perspective shadow (cast relative to shape)
ESCHER_ShadowShape, // Rich perspective shadow (cast in shape space)
ESCHER_ShadowDrawing, // Perspective shadow cast in drawing space
ESCHER_ShadowEmbossOrEngrave
};
// - the type of a (length) measurement
enum ESCHER_dzType
{
ESCHER_dzTypeMin = 0,
ESCHER_dzTypeDefault = 0, // Default size, ignore the values
ESCHER_dzTypeA = 1, // Values are in EMUs
ESCHER_dzTypeV = 2, // Values are in pixels
ESCHER_dzTypeShape = 3, // Values are 16.16 fractions of shape size
ESCHER_dzTypeFixedAspect = 4, // Aspect ratio is fixed
ESCHER_dzTypeAFixed = 5, // EMUs, fixed aspect ratio
ESCHER_dzTypeVFixed = 6, // Pixels, fixed aspect ratio
ESCHER_dzTypeShapeFixed = 7, // Proportion of shape, fixed aspect ratio
ESCHER_dzTypeFixedAspectEnlarge= 8, // Aspect ratio is fixed, favor larger size
ESCHER_dzTypeAFixedBig = 9, // EMUs, fixed aspect ratio
ESCHER_dzTypeVFixedBig = 10, // Pixels, fixed aspect ratio
ESCHER_dzTypeShapeFixedBig= 11, // Proportion of shape, fixed aspect ratio
ESCHER_dzTypeMax = 11
};
// compound line style
enum ESCHER_LineStyle
{
ESCHER_LineSimple, // Single line (of width lineWidth)
ESCHER_LineDouble, // Double lines of equal width
ESCHER_LineThickThin, // Double lines, one thick, one thin
ESCHER_LineThinThick, // Double lines, reverse order
ESCHER_LineTriple // Three lines, thin, thick, thin
};
// how to "fill" the line contour
enum ESCHER_LineType
{
ESCHER_lineSolidType, // Fill with a solid color
ESCHER_linePattern, // Fill with a pattern (bitmap)
ESCHER_lineTexture, // A texture (pattern with its own color map)
ESCHER_linePicture // Center a picture in the shape
};
// dashed line style // dashed line style
enum ESCHER_LineDashing enum ESCHER_LineDashing
{ {
......
...@@ -58,14 +58,6 @@ MSFILTER_DLLPUBLIC sal_Unicode bestFitOpenSymbolToMSFont(sal_Unicode cBullet, ...@@ -58,14 +58,6 @@ MSFILTER_DLLPUBLIC sal_Unicode bestFitOpenSymbolToMSFont(sal_Unicode cBullet,
rtl_TextEncoding& r_ioChrSet, OUString& r_ioFontName); rtl_TextEncoding& r_ioChrSet, OUString& r_ioFontName);
enum TextCategory
{
latin, //Latin
cs, //Complex Script
ea, //East Asian
sym //Symbol
};
#define OOXML_COLOR_AUTO 0x0a #define OOXML_COLOR_AUTO 0x0a
/** /**
......
...@@ -81,8 +81,6 @@ enum class SAL_DLLPUBLIC_RTTI RegError ...@@ -81,8 +81,6 @@ enum class SAL_DLLPUBLIC_RTTI RegError
{ {
/// no error. /// no error.
NO_ERROR, NO_ERROR,
/// internal registry error.
INTERNAL_ERROR,
/// registry is not open. /// registry is not open.
REGISTRY_NOT_OPEN, REGISTRY_NOT_OPEN,
...@@ -131,23 +129,6 @@ enum class SAL_DLLPUBLIC_RTTI RegError ...@@ -131,23 +129,6 @@ enum class SAL_DLLPUBLIC_RTTI RegError
the value of a key already exists and the merge process will replace it. the value of a key already exists and the merge process will replace it.
*/ */
MERGE_CONFLICT, MERGE_CONFLICT,
/** a recursion was detected resolving different link targets (no longer
used).
*/
DETECT_RECURSION,
/** the link is invalid and can not be resolved (now used by all
link-related operations, as links are no longer supported).
*/
INVALID_LINK,
/// the specified linkname is not valid (no longer used).
INVALID_LINKNAME,
/// the linknane is not valid (no longer used).
INVALID_LINKTARGET,
/// the link target points to a nonexisting key (no longer used).
LINKTARGET_NOT_EXIST,
/// the reserved buffer for the resolved keyname is to small.
BUFFERSIZE_TOSMALL
}; };
/// specify the calling convention for the registry API /// specify the calling convention for the registry API
......
...@@ -35,14 +35,6 @@ typedef ::std::vector< OUString > AddressList_Impl; ...@@ -35,14 +35,6 @@ typedef ::std::vector< OUString > AddressList_Impl;
class SFX2_DLLPUBLIC SfxMailModel class SFX2_DLLPUBLIC SfxMailModel
{ {
public:
enum AddressRole
{
ROLE_TO,
ROLE_CC,
ROLE_BCC
};
protected: protected:
enum SaveResult enum SaveResult
{ {
......
...@@ -120,7 +120,6 @@ enum class SfxObjectShellFlags ...@@ -120,7 +120,6 @@ enum class SfxObjectShellFlags
{ {
HASOPENDOC = 0x01L, HASOPENDOC = 0x01L,
HASMENU = 0x04L, HASMENU = 0x04L,
DONTLOADFILTERS = 0x08L,
DONTCLOSE = 0x10L, DONTCLOSE = 0x10L,
NODOCINFO = 0x20L, NODOCINFO = 0x20L,
STD_NORMAL = HASOPENDOC, STD_NORMAL = HASOPENDOC,
...@@ -128,7 +127,7 @@ enum class SfxObjectShellFlags ...@@ -128,7 +127,7 @@ enum class SfxObjectShellFlags
}; };
namespace o3tl namespace o3tl
{ {
template<> struct typed_flags<SfxObjectShellFlags> : is_typed_flags<SfxObjectShellFlags, 0xf00003d> {}; template<> struct typed_flags<SfxObjectShellFlags> : is_typed_flags<SfxObjectShellFlags, 0xf000035> {};
} }
#define SFX_TITLE_TITLE 0 #define SFX_TITLE_TITLE 0
......
...@@ -89,7 +89,6 @@ SOT_DLLPUBLIC bool IsFormatSupported( const DataFlavorExVector& rDataFlavorExVec ...@@ -89,7 +89,6 @@ SOT_DLLPUBLIC bool IsFormatSupported( const DataFlavorExVector& rDataFlavorExVec
enum class SotExchangeActionFlags { enum class SotExchangeActionFlags {
NONE = 0x0000, NONE = 0x0000,
CreateTheme = 0x0100,
KeepPosSize = 0x0200, KeepPosSize = 0x0200,
InsertImageMap = 0x0400, InsertImageMap = 0x0400,
ReplaceImageMap = 0x0800, ReplaceImageMap = 0x0800,
...@@ -97,7 +96,7 @@ enum class SotExchangeActionFlags { ...@@ -97,7 +96,7 @@ enum class SotExchangeActionFlags {
InsertTargetUrl = 0x2000, InsertTargetUrl = 0x2000,
}; };
namespace o3tl { namespace o3tl {
template<> struct typed_flags<SotExchangeActionFlags> : is_typed_flags<SotExchangeActionFlags, 0x3f00> {}; template<> struct typed_flags<SotExchangeActionFlags> : is_typed_flags<SotExchangeActionFlags, 0x3e00> {};
} }
// destinations // destinations
......
...@@ -61,8 +61,7 @@ enum SvxIconChoiceCtrlPositionMode ...@@ -61,8 +61,7 @@ enum SvxIconChoiceCtrlPositionMode
{ {
IcnViewPositionModeFree = 0, // Free pixel-perfekt positioning IcnViewPositionModeFree = 0, // Free pixel-perfekt positioning
IcnViewPositionModeAutoArrange = 1, // Auto arrange IcnViewPositionModeAutoArrange = 1, // Auto arrange
IcnViewPositionModeAutoAdjust = 2, // Auto adjust IcnViewPositionModeAutoAdjust = 2 // Auto adjust
IcnViewPositionModeLast = IcnViewPositionModeAutoAdjust
}; };
class SvxIconChoiceCtrlEntry class SvxIconChoiceCtrlEntry
......
...@@ -45,10 +45,7 @@ enum class CubeFaces ...@@ -45,10 +45,7 @@ enum class CubeFaces
Top = 0x0008, Top = 0x0008,
Right = 0x0010, Right = 0x0010,
Front = 0x0020, Front = 0x0020,
Full = Bottom | Back | Left | Top | Right | Front, Full = Bottom | Back | Left | Top | Right | Front
OpenTopBottom = Back | Left | Right | Front,
OpenLeftRight = Bottom | Back | Top | Front,
OpenFrontBack = Bottom | Left | Top | Right
}; };
namespace o3tl namespace o3tl
{ {
......
...@@ -55,10 +55,6 @@ enum class FrameSelFlags ...@@ -55,10 +55,6 @@ enum class FrameSelFlags
/** If set, all four outer frame borders are enabled. */ /** If set, all four outer frame borders are enabled. */
Outer = Left | Right | Top | Bottom, Outer = Left | Right | Top | Bottom,
/** If set, both inner frame borders are enabled. */
Inner = InnerHorizontal | InnerVertical,
/** If set, both diagonal frame borders are enabled. */
Diagonal = DiagonalTLBR | DiagonalBLTR,
/** If set, all frame borders will support the don't care state. */ /** If set, all frame borders will support the don't care state. */
DontCare = 0x0100 DontCare = 0x0100
......
...@@ -31,10 +31,7 @@ enum SvxNumType ...@@ -31,10 +31,7 @@ enum SvxNumType
SVX_ROMAN_LOWER = css::style::NumberingType::ROMAN_LOWER, SVX_ROMAN_LOWER = css::style::NumberingType::ROMAN_LOWER,
SVX_ARABIC = css::style::NumberingType::ARABIC, SVX_ARABIC = css::style::NumberingType::ARABIC,
SVX_NUMBER_NONE = css::style::NumberingType::NUMBER_NONE, SVX_NUMBER_NONE = css::style::NumberingType::NUMBER_NONE,
SVX_CHAR_SPECIAL = css::style::NumberingType::CHAR_SPECIAL,
SVX_PAGEDESC = css::style::NumberingType::PAGE_DESCRIPTOR, SVX_PAGEDESC = css::style::NumberingType::PAGE_DESCRIPTOR,
SVX_BITMAP = css::style::NumberingType::BITMAP,
SVX_CHARS_UPPER_LETTER_N = css::style::NumberingType::CHARS_UPPER_LETTER_N
}; };
/*-------------------------------------------------------------------- /*--------------------------------------------------------------------
......
...@@ -56,7 +56,6 @@ enum class StreamMode { ...@@ -56,7 +56,6 @@ enum class StreamMode {
SHARE_DENYALL = 0x0800, // overrides denyread,write,none SHARE_DENYALL = 0x0800, // overrides denyread,write,none
// masks // masks
READWRITE = READ | WRITE, READWRITE = READ | WRITE,
SHARE_DENYREADWRITE = SHARE_DENYREAD | SHARE_DENYWRITE,
STD_READ = READ | SHARE_DENYNONE | NOCREATE, STD_READ = READ | SHARE_DENYNONE | NOCREATE,
STD_WRITE = WRITE | SHARE_DENYALL, STD_WRITE = WRITE | SHARE_DENYALL,
STD_READWRITE = READWRITE | SHARE_DENYALL STD_READWRITE = READWRITE | SHARE_DENYALL
......
...@@ -308,8 +308,7 @@ enum class StandardButtonType ...@@ -308,8 +308,7 @@ enum class StandardButtonType
Ignore = 8, Ignore = 8,
Abort = 9, Abort = 9,
Less = 10, Less = 10,
Reset = 11, Count = 11,
Count = 12,
}; };
// prominent place for ListBox window types // prominent place for ListBox window types
......
...@@ -145,8 +145,7 @@ OUString Button::GetStandardText( StandardButtonType eButton ) ...@@ -145,8 +145,7 @@ OUString Button::GetStandardText( StandardButtonType eButton )
{ SV_BUTTONTEXT_MORE, "~More" }, { SV_BUTTONTEXT_MORE, "~More" },
{ SV_BUTTONTEXT_IGNORE, "~Ignore" }, { SV_BUTTONTEXT_IGNORE, "~Ignore" },
{ SV_BUTTONTEXT_ABORT, "~Abort" }, { SV_BUTTONTEXT_ABORT, "~Abort" },
{ SV_BUTTONTEXT_LESS, "~Less" }, { SV_BUTTONTEXT_LESS, "~Less" }
{ SV_BUTTONTEXT_RESET, "R~eset" }
}; };
ResMgr* pResMgr = ImplGetResMgr(); ResMgr* pResMgr = ImplGetResMgr();
......
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