cui/source/inc/align.hxx | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-)
New commits: commit ae4f76363dd25eaaa7d332512af067567e78ca0a Author: Zainab Abbasi <101zabb...@gmail.com> AuthorDate: Wed Apr 17 13:32:59 2024 -0700 Commit: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> CommitDate: Tue May 7 08:13:11 2024 +0200 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.lauhakan...@libreoffice.org> Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> diff --git a/cui/source/inc/align.hxx b/cui/source/inc/align.hxx index caea33e42150..a1761607cfd8 100644 --- a/cui/source/inc/align.hxx +++ b/cui/source/inc/align.hxx @@ -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 - -#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 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 +}; + +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>