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

new loplugin:unusedenumconstants

These are the simple removals, where it is obviously safe,
the more complex ones will come in separate commits

Change-Id: I7211945a6a5576354b60d9c709940ce9b674f308
Reviewed-on: https://gerrit.libreoffice.org/33828Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 83721f43
......@@ -136,7 +136,6 @@ public:
enum BasicWindowStatus
{
BASWIN_OK = 0x00,
BASWIN_RUNNINGBASIC = 0x01,
BASWIN_TOBEKILLED = 0x02,
BASWIN_SUSPENDED = 0x04,
......
......@@ -50,7 +50,7 @@ namespace cppcanvas
virtual void setTransformation( const ::basegfx::B2DHomMatrix& rMatrix ) override;
virtual void setClip( const ::basegfx::B2DPolyPolygon& rClipPoly ) override;
virtual void setClip() override;
virtual void setCompositeOp( CompositeOp aOp ) override;
virtual void setCompositeOp( sal_Int8 aOp ) override;
protected:
// for our clients
......
......@@ -93,9 +93,9 @@ namespace cppcanvas
return maRenderState;
}
void CanvasGraphicHelper::setCompositeOp( CompositeOp aOp )
void CanvasGraphicHelper::setCompositeOp( sal_Int8 aOp )
{
maRenderState.CompositeOperation = (sal_Int8)aOp;
maRenderState.CompositeOperation = aOp;
}
}
......
......@@ -93,7 +93,6 @@ enum class PageType
Color,
Shadow,
Transparence,
Unknown = 0xFFF
};
class SvxAreaTabDialog : public SfxTabDialog
......
......@@ -50,8 +50,6 @@ namespace
// list of default groups
enum Group
{
Group_Unknown = -1,
Group_General,
Group_Writer,
Group_Html,
......
......@@ -92,8 +92,7 @@ enum LineSpaceList
LLINESPACE_PROP = 4,
LLINESPACE_MIN = 5,
LLINESPACE_DURCH= 6,
LLINESPACE_FIX = 7,
LLINESPACE_END
LLINESPACE_FIX = 7
};
void SetLineSpace_Impl( SvxLineSpacingItem&, int, long lValue = 0 );
......
......@@ -96,15 +96,6 @@ protected:
getPageController( TabPage* _pCurrentPage ) const override;
virtual bool onFinish() override;
protected:
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)
};
private:
DECL_LINK(OnTypeSelected, OGeneralPage&, void);
};
......
......@@ -131,15 +131,8 @@ protected:
virtual ::svt::IWizardPageController* getPageController( TabPage* _pCurrentPage ) const override;
virtual bool onFinish() override;
protected:
void resetPages(const css::uno::Reference< css::beans::XPropertySet >& _rxDatasource);
enum ApplyResult
{
AR_LEAVE_MODIFIED, // something was modified and has successfully been committed
AR_KEEP // don't leave the page (e.g. because an error occurred)
};
private:
/** declares a path with or without authentication, as indicated by the database type
......
......@@ -123,7 +123,6 @@ class FilterCache : public BaseLock
*/
enum EReadOption
{
E_READ_NOTHING = 0,
E_READ_STANDARD = 1,
E_READ_UPDATE = 2,
E_READ_ALL = 3
......
......@@ -27,8 +27,7 @@
enum PenStyle { PEN_NULL, PEN_SOLID, PEN_DOT, PEN_DASH, PEN_DASHDOT };
enum BrushStyle { BRUSH_NULL, BRUSH_SOLID, BRUSH_HORZ, BRUSH_VERT,
BRUSH_CROSS, BRUSH_DIAGCROSS, BRUSH_UPDIAG, BRUSH_DOWNDIAG,
BRUSH_25, BRUSH_50, BRUSH_75,
BRUSH_BITMAP };
BRUSH_25, BRUSH_50, BRUSH_75 };
class DXF2GDIMetaFile {
......
......@@ -69,8 +69,7 @@ namespace PictReaderInternal {
enum PenStyle { PEN_NULL, PEN_SOLID, PEN_DOT, PEN_DASH, PEN_DASHDOT };
enum BrushStyle { BRUSH_NULL, BRUSH_SOLID, BRUSH_HORZ, BRUSH_VERT,
BRUSH_CROSS, BRUSH_DIAGCROSS, BRUSH_UPDIAG, BRUSH_DOWNDIAG,
BRUSH_25, BRUSH_50, BRUSH_75,
BRUSH_BITMAP };
BRUSH_25, BRUSH_50, BRUSH_75 };
// Data
enum PenStyle penStyle;
enum BrushStyle brushStyle;
......
......@@ -81,21 +81,6 @@
#include <ctype.h>
#include <unordered_map>
// compatibility: DatabaseCursorType is dead, but for compatibility reasons we still have to write it ...
namespace com {
namespace sun {
namespace star {
namespace data {
enum DatabaseCursorType
{
DatabaseCursorType_FORWARD = 0,
DatabaseCursorType_KEYSET = 2,
DatabaseCursorType_MAKE_FIXED_SIZE = SAL_MAX_ENUM
};
} } } }
using namespace ::dbtools;
using namespace ::comphelper;
using namespace ::com::sun::star::uno;
......@@ -110,7 +95,6 @@ using namespace ::com::sun::star::form;
using namespace ::com::sun::star::awt;
using namespace ::com::sun::star::io;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::data;
using namespace ::com::sun::star::util;
......@@ -3802,7 +3786,7 @@ void SAL_CALL ODatabaseForm::write(const Reference<XObjectOutputStream>& _rxOutS
_rxOutStream->writeShort((sal_Int16)eTranslated); // former DataSelectionType
// very old versions expect a CursorType here
_rxOutStream->writeShort(DatabaseCursorType_KEYSET);
_rxOutStream->writeShort(2); // DatabaseCursorType_KEYSET
_rxOutStream->writeBoolean(m_eNavigation != NavigationBarMode_NONE);
......
......@@ -78,8 +78,6 @@ namespace framework
public LayoutManager_PBase
{
public:
enum { DOCKINGAREAS_COUNT = 4 };
LayoutManager( const css::uno::Reference< css::uno::XComponentContext >& xContext );
virtual ~LayoutManager() override;
......
......@@ -60,8 +60,7 @@ class OReadImagesDocumentHandler : public ::cppu::WeakImplHelper< css::xml::sax:
enum Image_XML_Namespace
{
IMG_NS_IMAGE,
IMG_NS_XLINK,
TBL_XML_NAMESPACES_COUNT
IMG_NS_XLINK
};
OReadImagesDocumentHandler( ImageListsDescriptor& aItems );
......
......@@ -57,8 +57,7 @@ class FWE_DLLPUBLIC OReadStatusBarDocumentHandler :
enum StatusBar_XML_Namespace
{
SB_NS_STATUSBAR,
SB_NS_XLINK,
SB_XML_NAMESPACES_COUNT
SB_NS_XLINK
};
OReadStatusBarDocumentHandler( const css::uno::Reference< css::container::XIndexContainer >& aStatusBarItems );
......
......@@ -57,8 +57,7 @@ class FWE_DLLPUBLIC OReadToolBoxDocumentHandler :
enum ToolBox_XML_Namespace
{
TB_NS_TOOLBAR,
TB_NS_XLINK,
TB_XML_NAMESPACES_COUNT
TB_NS_XLINK
};
OReadToolBoxDocumentHandler( const css::uno::Reference< css::container::XIndexContainer >& rItemContainer );
......
......@@ -152,13 +152,6 @@ namespace framework
sal_Bool,
OUStringHash > ImageNameMap;
enum Layer
{
LAYER_DEFAULT,
LAYER_USERDEFINED,
LAYER_COUNT
};
enum NotifyOp
{
NotifyOp_Remove,
......
......@@ -47,68 +47,6 @@ namespace cppcanvas
{
public:
/** These enums determine how the primitive color is combined
with the background. When performing this calculations, it
is assumed that all color values are premultiplied with
the corresponding alpha values (if no alpha is specified,
1.0 is assumed). Then, the following general compositing
operation is performed:
C = Ca * Fa + Cb * Fb
where C is the result color, Ca and Cb are the input
colors, premultiplied with alpha, and Fa and Fb are
described for the different composite modes (wherein Aa
and Ab denote source and destination alpha, respectively).
*/
enum CompositeOp
{
/// Clear destination. Fa = Fb = 0.
CLEAR,
/// Copy source as-is to destination. Fa = 1, Fb = 0.
SOURCE,
/// Leave destination as-is. Fa = 0, Fb = 1.
DESTINATION,
/// Copy source over destination. Fa = 1, Fb = 1-Aa.
OVER,
/// Copy source under destination. Fa = 1-Ab, Fb = 1.
UNDER,
/// Copy source to destination, but limited to where the destination is. Fa = Ab, Fb = 0.
INSIDE,
/// Leave destination as is, but only where source was. Fa = 0, Fb = Aa.
INSIDE_REVERSE,
/// Copy source to destination, but limited to where destination is not. Fa = 1-Ab, Fb = 0.
OUTSIDE,
/// Leave destination as is, but only where source has not been. Fa = 0, Fb = 1-Aa.
OUTSIDE_REVERSE,
/// Copy source over destination, but only where destination is. Keep destination. Fa = Ab, Fb = 1-Aa.
ATOP,
/// Copy destination over source, but only where source is. Keep source. Fa = 1-Ab, Fb = Aa.
ATOP_REVERSE,
/// Take only parts where either source or destination, but not both are. Fa = 1-Ab, Fb = 1-Aa.
XOR,
/** simply add contributions of both source and destination. The
resulting color values are limited to the permissible color
range, and clipped to the maximal value, if exceeded. Fa = 1, Fb = 1.
*/
ADD,
/// Fa = min(1,(1-Ab)/Aa), Fb = 1
SATURATE
};
virtual ~CanvasGraphic() {}
/** Set object transformation matrix
......@@ -123,8 +61,9 @@ namespace cppcanvas
virtual void setClip() = 0;
/** Set object composite mode
* @see css::rendering::CompositeOperation
*/
virtual void setCompositeOp( CompositeOp aOp ) = 0;
virtual void setCompositeOp( sal_Int8 aOp ) = 0;
/** Render to parent canvas
......
......@@ -62,8 +62,6 @@ namespace accessibility
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleParent() override;
virtual sal_Int32 SAL_CALL getAccessibleIndexInParent() override;
virtual sal_Int16 SAL_CALL getAccessibleRole() override;
/// Maximal length of text returned by getAccessibleDescription()
enum { MaxDescriptionLen = 40 };
virtual OUString SAL_CALL getAccessibleDescription() override;
virtual OUString SAL_CALL getAccessibleName() override;
virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet() override;
......
......@@ -232,8 +232,7 @@ enum class SvxNumRuleType
{
NUMBERING,
OUTLINE_NUMBERING,
PRESENTATION_NUMBERING,
END
PRESENTATION_NUMBERING
};
class EDITENG_DLLPUBLIC SvxNumRule final
......
......@@ -54,9 +54,6 @@ enum RestartReason {
// "For the extension to work properly,
// %PRODUCTNAME must be restarted."
RESTART_REASON_OPENGL,
// "For the OpenGL changes to take effect,
// %PRODUCTNAME must be restarted."
RESTART_REASON_SAFE_MODE
};
// Must be called with the solar mutex locked:
......
......@@ -71,11 +71,6 @@ public:
/// Perform no join, leads to visible gaps between thick line segments
joinNone
};
enum
{
/// Width of stroke start/end arrow to exactly fit the joining stroke
normalizedArrowWidth=65536
};
typedef ::std::vector< double > DashArray;
SvtGraphicStroke();
......
......@@ -72,9 +72,7 @@ enum SdXMLGroupShapeElemTokenMap
XML_TOK_GROUP_ANNOTATION,
XML_TOK_GROUP_A,
XML_TOK_GROUP_LAST
XML_TOK_GROUP_A
};
enum SdXMLFrameShapeElemTokenMap
......@@ -87,9 +85,7 @@ enum SdXMLFrameShapeElemTokenMap
XML_TOK_FRAME_FRAME,
XML_TOK_FRAME_FLOATING_FRAME,
XML_TOK_FRAME_APPLET,
XML_TOK_FRAME_TABLE,
XML_TOK_FRAME_LAST
XML_TOK_FRAME_TABLE
};
enum SdXML3DSceneShapeElemTokenMap
......@@ -98,20 +94,7 @@ enum SdXML3DSceneShapeElemTokenMap
XML_TOK_3DSCENE_3DCUBE,
XML_TOK_3DSCENE_3DSPHERE,
XML_TOK_3DSCENE_3DLATHE,
XML_TOK_3DSCENE_3DEXTRUDE,
XML_TOK_3DSCENE_LAST
};
enum SdXMLShapeAttrTokenMap
{
XML_TOK_SHAPE_NAME,
XML_TOK_SHAPE_DRAWSTYLE_NAME_GRAPHICS,
XML_TOK_SHAPE_PRESENTATION_CLASS,
XML_TOK_SHAPE_DRAWSTYLE_NAME_PRESENTATION,
XML_TOK_SHAPE_TRANSFORM,
XML_TOK_SHAPE_IS_PLACEHOLDER,
XML_TOK_SHAPE_IS_USER_TRANSFORMED
XML_TOK_3DSCENE_3DEXTRUDE
};
enum SdXML3DObjectAttrTokenMap
......@@ -138,33 +121,6 @@ enum SdXML3DSphereObjectAttrTokenMap
XML_TOK_3DSPHEREOBJ_SIZE
};
enum SdXMLPolygonShapeAttrTokenMap
{
XML_TOK_POLYGONSHAPE_VIEWBOX,
XML_TOK_POLYGONSHAPE_POINTS
};
enum SdXMLPathShapeAttrTokenMap
{
XML_TOK_PATHSHAPE_VIEWBOX,
XML_TOK_PATHSHAPE_D
};
enum SdXML3DSceneShapeAttrTokenMap
{
XML_TOK_3DSCENESHAPE_TRANSFORM,
XML_TOK_3DSCENESHAPE_VRP,
XML_TOK_3DSCENESHAPE_VPN,
XML_TOK_3DSCENESHAPE_VUP,
XML_TOK_3DSCENESHAPE_PROJECTION,
XML_TOK_3DSCENESHAPE_DISTANCE,
XML_TOK_3DSCENESHAPE_FOCAL_LENGTH,
XML_TOK_3DSCENESHAPE_SHADOW_SLANT,
XML_TOK_3DSCENESHAPE_SHADE_MODE,
XML_TOK_3DSCENESHAPE_AMBIENT_COLOR,
XML_TOK_3DSCENESHAPE_LIGHTING_MODE
};
enum SdXML3DLightAttrTokenMap
{
XML_TOK_3DLIGHT_DIFFUSE_COLOR,
......
......@@ -95,8 +95,7 @@ enum SwXMLTextElemTokens
XML_TOK_TEXT_FORMS,
XML_TOK_TEXT_CALCULATION_SETTINGS,
XML_TOK_TEXT_AUTOMARK,
XML_TOK_TEXT_NUMBERED_PARAGRAPH,
XML_TOK_TEXT_ELEM_END=XML_TOK_UNKNOWN
XML_TOK_TEXT_NUMBERED_PARAGRAPH
};
enum XMLTextPElemTokens
......@@ -235,9 +234,7 @@ enum XMLTextPElemTokens
XML_TOK_TEXT_FIELDMARK,
XML_TOK_TEXT_FIELDMARK_START,
XML_TOK_TEXT_FIELDMARK_END,
XML_TOK_TEXT_P_ELEM_END=XML_TOK_UNKNOWN
XML_TOK_TEXT_FIELDMARK_END
};
enum XMLTextPAttrTokens
......@@ -254,8 +251,7 @@ enum XMLTextPAttrTokens
XML_TOK_TEXT_P_CLASS_NAMES,
XML_TOK_TEXT_P_IS_LIST_HEADER,
XML_TOK_TEXT_P_RESTART_NUMBERING,
XML_TOK_TEXT_P_START_VALUE,
XML_TOK_TEXT_P_END=XML_TOK_UNKNOWN
XML_TOK_TEXT_P_START_VALUE
};
enum XMLTextNumberedParagraphAttrTokens
......@@ -265,8 +261,7 @@ enum XMLTextNumberedParagraphAttrTokens
XML_TOK_TEXT_NUMBERED_PARAGRAPH_LEVEL,
XML_TOK_TEXT_NUMBERED_PARAGRAPH_STYLE_NAME,
XML_TOK_TEXT_NUMBERED_PARAGRAPH_CONTINUE_NUMBERING,
XML_TOK_TEXT_NUMBERED_PARAGRAPH_START_VALUE,
XML_TOK_TEXT_NUMBERED_PARAGRAPH_END=XML_TOK_UNKNOWN
XML_TOK_TEXT_NUMBERED_PARAGRAPH_START_VALUE
};
enum XMLTextListBlockAttrTokens
......@@ -275,15 +270,13 @@ enum XMLTextListBlockAttrTokens
XML_TOK_TEXT_LIST_BLOCK_STYLE_NAME,
XML_TOK_TEXT_LIST_BLOCK_CONTINUE_NUMBERING,
XML_TOK_TEXT_LIST_BLOCK_ID,
XML_TOK_TEXT_LIST_BLOCK_CONTINUE_LIST,
XML_TOK_TEXT_LIST_BLOCK_END=XML_TOK_UNKNOWN
XML_TOK_TEXT_LIST_BLOCK_CONTINUE_LIST
};
enum XMLTextListBlockElemTokens
{
XML_TOK_TEXT_LIST_HEADER,
XML_TOK_TEXT_LIST_ITEM,
XML_TOK_TEXT_LIST_BLOCK_ELEM_END=XML_TOK_UNKNOWN
XML_TOK_TEXT_LIST_ITEM
};
enum XMLTextFrameAttrTokens
......@@ -313,8 +306,7 @@ enum XMLTextFrameAttrTokens
XML_TOK_TEXT_FRAME_APPLET_NAME,
XML_TOK_TEXT_FRAME_FRAME_NAME,
XML_TOK_TEXT_FRAME_NOTIFY_ON_UPDATE,
XML_TOK_TEXT_FRAME_MIN_WIDTH,
XML_TOK_TEXT_FRAME_END=XML_TOK_UNKNOWN
XML_TOK_TEXT_FRAME_MIN_WIDTH
};
enum XMLTextHyperlinkAttrTokens
......@@ -325,8 +317,7 @@ enum XMLTextHyperlinkAttrTokens
XML_TOK_TEXT_HYPERLINK_SHOW,
XML_TOK_TEXT_HYPERLINK_STYLE_NAME,
XML_TOK_TEXT_HYPERLINK_VIS_STYLE_NAME,
XML_TOK_TEXT_HYPERLINK_SERVER_MAP,
XML_TOK_TEXT_HYPERLINK_END=XML_TOK_UNKNOWN
XML_TOK_TEXT_HYPERLINK_SERVER_MAP
};
enum XMLTextPageMasterElemTokens
......@@ -336,8 +327,7 @@ enum XMLTextPageMasterElemTokens
XML_TOK_TEXT_MP_HEADER_LEFT,
XML_TOK_TEXT_MP_FOOTER_LEFT,
XML_TOK_TEXT_MP_HEADER_FIRST,
XML_TOK_TEXT_MP_FOOTER_FIRST,
XML_TOK_TEXT_MP_END=XML_TOK_UNKNOWN
XML_TOK_TEXT_MP_FOOTER_FIRST
};
enum XMLTextContourAttrTokens
......@@ -347,8 +337,7 @@ enum XMLTextContourAttrTokens
XML_TOK_TEXT_CONTOUR_VIEWBOX,
XML_TOK_TEXT_CONTOUR_POINTS,
XML_TOK_TEXT_CONTOUR_D,
XML_TOK_TEXT_CONTOUR_AUTO,
XML_TOK_TEXT_CONTOUR_END=XML_TOK_UNKNOWN
XML_TOK_TEXT_CONTOUR_AUTO
};
enum XMLTextType
{
......
......@@ -54,8 +54,7 @@ enum XMLStyleStylesElemTokens
XML_TOK_TEXT_BIBLIOGRAPHY_CONFIG,
XML_TOK_TEXT_LINENUMBERING_CONFIG,
XML_TOK_STYLE_DEFAULT_STYLE,
XML_TOK_STYLE_DEFAULT_PAGE_LAYOUT, //text grid enhancement
XML_TOK_STYLE_STYLES_ELEM_END=XML_TOK_UNKNOWN
XML_TOK_STYLE_DEFAULT_PAGE_LAYOUT //text grid enhancement
};
class XMLOFF_DLLPUBLIC SvXMLStyleContext : public SvXMLImportContext
......
......@@ -31,8 +31,7 @@ namespace mysqlc
{
enum
{
PROPERTY_ID_FIRST = 0,
PROPERTY_ID_QUERYTIMEOUT,
PROPERTY_ID_QUERYTIMEOUT = 1,
PROPERTY_ID_MAXFIELDSIZE,
PROPERTY_ID_MAXROWS,
PROPERTY_ID_CURSORNAME,
......
......@@ -69,8 +69,7 @@ enum ScXMLDocTokens
XML_TOK_DOC_META,
XML_TOK_DOC_SCRIPTS,
XML_TOK_DOC_BODY,
XML_TOK_DOC_SETTINGS,
XML_TOK_OFFICE_END=XML_TOK_UNKNOWN
XML_TOK_DOC_SETTINGS
};
enum ScXMLBodyTokens
......
......@@ -96,7 +96,6 @@ enum AutoLayout
AUTOLAYOUT_TITLE_VERTICAL_OUTLINE = 29,
AUTOLAYOUT_TITLE_VERTICAL_OUTLINE_CLIPART = 30,
AUTOLAYOUT_HANDOUT9 = 31,
AUTOLAYOUT_4CLIPART = 33,
AUTOLAYOUT_6CLIPART = 34,
AUTOLAYOUT_END
};
......
......@@ -46,17 +46,6 @@ using namespace basegfx::tools;
using namespace drawinglayer::attribute;
using namespace drawinglayer::primitive2d;
enum
{
ITEM_OFFSET = 4,
ITEM_OFFSET_DOUBLE = 6,
NAME_LINE_OFF_X = 2,
NAME_LINE_OFF_Y = 2,
NAME_LINE_HEIGHT = 2,
NAME_OFFSET = 2,
SCROLL_OFFSET = 4
};
ThumbnailView::ThumbnailView (vcl::Window *pParent, WinBits nWinStyle)
: Control( pParent, nWinStyle )
, mpItemAttrs(new ThumbnailItemAttributes)
......
......@@ -50,6 +50,7 @@
#include <basegfx/polygon/b2dpolypolygoncutter.hxx>
#include <com/sun/star/presentation/XSlideShow.hpp>
#include <com/sun/star/rendering/CompositeOperation.hpp>
#include <memory>
#include <vector>
......@@ -180,7 +181,7 @@ void clearRect( ::cppcanvas::CanvasSharedPtr const& pCanvas,
if( pPolyPoly )
{
pPolyPoly->setCompositeOp( cppcanvas::CanvasGraphic::SOURCE );
pPolyPoly->setCompositeOp( css::rendering::CompositeOperation::SOURCE );
pPolyPoly->setRGBAFillColor( 0xFFFFFF00U );
pPolyPoly->draw();
}
......
......@@ -198,7 +198,7 @@ namespace
/*137 SotClipboardFormatId::STARCHART_8_TEMPLATE*/ { MIMETYPE_OASIS_OPENDOCUMENT_CHART_TEMPLATE_ASCII, "Chart 8 Template", &cppu::UnoType<Sequence<sal_Int8>>::get() },
/*138 SotClipboardFormatId::STARMATH_8_TEMPLATE*/ { MIMETYPE_OASIS_OPENDOCUMENT_FORMULA_TEMPLATE_ASCII, "Math 8 Template", &cppu::UnoType<Sequence<sal_Int8>>::get() },
/*139 SotClipboardFormatId::STARBASE_8*/ { MIMETYPE_OASIS_OPENDOCUMENT_DATABASE_ASCII, "StarBase 8", &cppu::UnoType<Sequence<sal_Int8>>::get() },
/*140 SotClipboardFormatId::GDIMETAFILE*/ { "application/x-openoffice-highcontrast-gdimetafile;windows_formatname=\"GDIMetaFile\"", "High Contrast GDIMetaFile", &cppu::UnoType<Sequence<sal_Int8>>::get() },
/*140 SotClipboardFormatId::HC_GDIMETAFILE*/ { "application/x-openoffice-highcontrast-gdimetafile;windows_formatname=\"GDIMetaFile\"", "High Contrast GDIMetaFile", &cppu::UnoType<Sequence<sal_Int8>>::get() },
/*141 SotClipboardFormatId::PNG*/ { "image/png", "PNG Bitmap", &cppu::UnoType<Sequence<sal_Int8>>::get() },
/*142 SotClipboardFormatId::STARWRITERGLOB_8_TEMPLATE*/ { MIMETYPE_OASIS_OPENDOCUMENT_TEXT_GLOBAL_TEMPLATE_ASCII, "Writer/Global 8 Template", &cppu::UnoType<Sequence<sal_Int8>>::get() },
/*143 SotClipboardFormatId::MATHML*/ { "application/mathml+xml", "MathML", &::cppu::UnoType<const Sequence< sal_Int8 >>::get() },
......
......@@ -83,14 +83,7 @@ enum EDocStates
/// default state, if a document was new created or loaded
E_UNKNOWN = 0,
/// modified against the original file
E_MODIFIED = 1,
/// an active document can be postponed to be saved later.
E_POSTPONED = 2,
/// was already handled during one AutoSave/Recovery session.
E_HANDLED = 4,
/** an action was started (saving/loading) ... Can be interesting later if the process may be was interrupted by an exception. */
E_TRY_SAVE = 8,
E_TRY_LOAD_BACKUP = 16,
E_TRY_LOAD_ORIGINAL = 32,
......
......@@ -34,7 +34,6 @@ enum SwChapterFormat
CF_NUM_TITLE, ///< number and title
CF_NUMBER_NOPREPST, ///< only chapter number without post-/prefix
CF_NUM_NOPREPST_TITLE, ///< chapter number without post-/prefix and title
CF_END
};
class SW_DLLPUBLIC SwChapterFieldType : public SwFieldType
......
......@@ -39,7 +39,6 @@ enum SwAuthorFormat
AF_BEGIN,
AF_NAME = AF_BEGIN,
AF_SHORTCUT,
AF_END,
AF_FIXED = 0x8000
};
......@@ -54,7 +53,6 @@ enum SwDocStatSubType
DS_TBL,
DS_GRF,
DS_OLE,
DS_END
};
typedef sal_uInt16 SwDocInfoSubType;
......
......@@ -55,7 +55,6 @@ enum REFERENCEMARK
REF_NUMBER, ///< "Number"
REF_NUMBER_NO_CONTEXT, ///< "Number (no context)"
REF_NUMBER_FULL_CONTEXT, ///< "Number (full context)"
REF_END
};
/// Get reference.
......
......@@ -280,7 +280,6 @@ enum PrepareHint
// height of zero in order to avoid too much noise. At formatting
// it checks whether it fits and if necessary changes its page again.
PREP_ERGOSUM, // Needed because of movement in FootnoteFrames. Check QuoVadis/ErgoSum.
PREP_END // END.
};
enum FrameControlType
......
......@@ -130,13 +130,12 @@ enum class DelContentType : sal_uInt16
{
Ftn = 0x01,
Fly = 0x02,
Toc = 0x04,
Bkm = 0x08,
AllMask = 0x0F,
AllMask = 0x0b,
CheckNoCntnt = 0x80,
};
namespace o3tl {
template<> struct typed_flags<DelContentType> : is_typed_flags<DelContentType, 0x8f> {};
template<> struct typed_flags<DelContentType> : is_typed_flags<DelContentType, 0x8b> {};
}
/// will DelContentIndex destroy a frame anchored at character at rAnchorPos?
......
......@@ -187,8 +187,6 @@ enum class SwServiceType {
StyleTable = 114,
StyleCell = 115,
LAST = StyleCell,
Invalid = USHRT_MAX
};
......
......@@ -31,11 +31,10 @@ class SvxMacroTableDtor;
enum class SwXmlFlags {
NONE = 0x0000,
ConvBlock = 0x0001,
NoRootCommit = 0x0002,
};
namespace o3tl {
template<> struct typed_flags<SwXmlFlags> : is_typed_flags<SwXmlFlags, 0x0003> {};
template<> struct typed_flags<SwXmlFlags> : is_typed_flags<SwXmlFlags, 0x0002> {};
}
class SwXMLTextBlocks : public SwImpBlocks
......
......@@ -71,7 +71,6 @@ enum HISTORY_HINT {
HSTRY_CHGFLYANCHOR,
HSTRY_CHGFLYCHAIN,
HSTRY_CHGCHARFMT,
HSTRY_END
};
class SwHistoryHint
......
......@@ -39,7 +39,6 @@ enum SvxCSS1Position
SVX_CSS1_POS_STATIC, // normal
SVX_CSS1_POS_ABSOLUTE, // absolut
SVX_CSS1_POS_RELATIVE, // relativ