convert SvxPrevLineSpace to scoped enum
Change-Id: I5903169e1d7728a2f1e547efdff82a75e8d7b6a7
This commit is contained in:
@@ -108,6 +108,7 @@ for d in definitionSet:
|
||||
"vcl/inc/CommonSalLayout.hxx", # VerticalOrientation
|
||||
"include/tools/fontenum.hxx", # part of GDI file format
|
||||
"svx/inc/galobj.hxx", # GalSoundType
|
||||
"include/svx/msdffdef.hxx",
|
||||
# unit test code
|
||||
"cppu/source/uno/check.cxx",
|
||||
# general weird nonsense going on
|
||||
@@ -142,6 +143,7 @@ for d in definitionSet:
|
||||
"sw/source/uibase/inc/swcont.hxx", # RegionMode, from UI; ContentTypeId, from UI(registry)
|
||||
"sw/inc/toxe.hxx", # ToxAuthorityType (from UI)
|
||||
"include/svx/sxekitm.hxx", # SdrEdgeKind (from UI)
|
||||
"include/svx/paraprev.hxx", # SvxPrevLineSpace (from UI)
|
||||
# represents constants from an external API
|
||||
"opencl/inc/opencl_device_selection.h",
|
||||
"vcl/inc/sft.hxx",
|
||||
|
@@ -23,14 +23,14 @@
|
||||
#include <editeng/svxenum.hxx>
|
||||
#include <svx/svxdllapi.h>
|
||||
|
||||
enum SvxPrevLineSpace
|
||||
enum class SvxPrevLineSpace
|
||||
{
|
||||
SVX_PREV_LINESPACE_1 = 0,
|
||||
SVX_PREV_LINESPACE_15,
|
||||
SVX_PREV_LINESPACE_2,
|
||||
SVX_PREV_LINESPACE_PROP,
|
||||
SVX_PREV_LINESPACE_MIN,
|
||||
SVX_PREV_LINESPACE_DURCH
|
||||
N1 = 0,
|
||||
N15,
|
||||
N2,
|
||||
Prop,
|
||||
Min,
|
||||
Leading
|
||||
};
|
||||
|
||||
class SVX_DLLPUBLIC SvxParaPrevWindow : public vcl::Window
|
||||
|
@@ -31,7 +31,7 @@ SvxParaPrevWindow::SvxParaPrevWindow( vcl::Window* pParent, WinBits nBits) :
|
||||
nLower ( 0 ),
|
||||
eAdjust ( SVX_ADJUST_LEFT ),
|
||||
eLastLine ( SVX_ADJUST_LEFT ),
|
||||
eLine ( SVX_PREV_LINESPACE_1 ),
|
||||
eLine ( SvxPrevLineSpace::N1 ),
|
||||
nLineVal ( 0 )
|
||||
|
||||
{
|
||||
@@ -118,17 +118,17 @@ void SvxParaPrevWindow::DrawParagraph(vcl::RenderContext& rRenderContext)
|
||||
{
|
||||
switch (eLine)
|
||||
{
|
||||
case SVX_PREV_LINESPACE_1:
|
||||
case SvxPrevLineSpace::N1:
|
||||
break;
|
||||
case SVX_PREV_LINESPACE_15:
|
||||
case SvxPrevLineSpace::N15:
|
||||
aPnt.Y() += nH / 2;
|
||||
break;
|
||||
case SVX_PREV_LINESPACE_2:
|
||||
case SvxPrevLineSpace::N2:
|
||||
aPnt.Y() += nH;
|
||||
break;
|
||||
case SVX_PREV_LINESPACE_PROP:
|
||||
case SVX_PREV_LINESPACE_MIN:
|
||||
case SVX_PREV_LINESPACE_DURCH:
|
||||
case SvxPrevLineSpace::Prop:
|
||||
case SvxPrevLineSpace::Min:
|
||||
case SvxPrevLineSpace::Leading:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user