tdf#145614 Convert #define to enum
Change-Id: I50cad24e9cbda04cfe1209d824cad61da2287def Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166191 Tested-by: Jenkins Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
This commit is contained in:
committed by
Ilmari Lauhakangas
parent
837c9af957
commit
ae4f76363d
+17
-13
@@ -19,20 +19,24 @@
|
||||
#pragma once
|
||||
|
||||
// list box indexes
|
||||
#define ALIGNDLG_HORALIGN_STD 0
|
||||
#define ALIGNDLG_HORALIGN_LEFT 1
|
||||
#define ALIGNDLG_HORALIGN_CENTER 2
|
||||
#define ALIGNDLG_HORALIGN_RIGHT 3
|
||||
#define ALIGNDLG_HORALIGN_BLOCK 4
|
||||
#define ALIGNDLG_HORALIGN_FILL 5
|
||||
#define ALIGNDLG_HORALIGN_DISTRIBUTED 6
|
||||
enum HorizontalAlign {
|
||||
ALIGNDLG_HORALIGN_STD = 0,
|
||||
ALIGNDLG_HORALIGN_LEFT = 1,
|
||||
ALIGNDLG_HORALIGN_CENTER = 2,
|
||||
ALIGNDLG_HORALIGN_RIGHT = 3,
|
||||
ALIGNDLG_HORALIGN_BLOCK = 4,
|
||||
ALIGNDLG_HORALIGN_FILL = 5,
|
||||
ALIGNDLG_HORALIGN_DISTRIBUTED = 6
|
||||
};
|
||||
|
||||
#define ALIGNDLG_VERALIGN_STD 0
|
||||
#define ALIGNDLG_VERALIGN_TOP 1
|
||||
#define ALIGNDLG_VERALIGN_MID 2
|
||||
#define ALIGNDLG_VERALIGN_BOTTOM 3
|
||||
#define ALIGNDLG_VERALIGN_BLOCK 4
|
||||
#define ALIGNDLG_VERALIGN_DISTRIBUTED 5
|
||||
enum VerticalAlign {
|
||||
ALIGNDLG_VERALIGN_STD = 0,
|
||||
ALIGNDLG_VERALIGN_TOP = 1,
|
||||
ALIGNDLG_VERALIGN_MID = 2,
|
||||
ALIGNDLG_VERALIGN_BOTTOM = 3,
|
||||
ALIGNDLG_VERALIGN_BLOCK = 4,
|
||||
ALIGNDLG_VERALIGN_DISTRIBUTED = 5
|
||||
};
|
||||
|
||||
#include <sfx2/tabdlg.hxx>
|
||||
#include <svtools/valueset.hxx>
|
||||
|
||||
Reference in New Issue
Block a user