chart2/source/controller/main/DrawCommandDispatch.h | 37 ++++++++++---------- 1 file changed, 20 insertions(+), 17 deletions(-)
New commits: commit 0e09fff5f89b38245b108edb67d5e75e57774874 Author: Rasenkai <rasenka...@gmail.com> AuthorDate: Fri Jan 27 22:12:20 2023 +0530 Commit: Hossein <hoss...@libreoffice.org> CommitDate: Sat Jan 28 22:10:29 2023 +0000 tdf#145614 chart2: controller: Convert #define to enum Rename CommandID to DrawCommandID Change-Id: I4bef2cc030e5b326589b08e22f3dd427772fc79f Signed-off-by: Rasenkai <rasenka...@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146268 Reviewed-by: Hossein <hoss...@libreoffice.org> Tested-by: Hossein <hoss...@libreoffice.org> diff --git a/chart2/source/controller/main/DrawCommandDispatch.h b/chart2/source/controller/main/DrawCommandDispatch.h index faf70bde1047..c58aa4149bbf 100644 --- a/chart2/source/controller/main/DrawCommandDispatch.h +++ b/chart2/source/controller/main/DrawCommandDispatch.h @@ -19,23 +19,26 @@ #ifndef CHART_DRAWCOMMANDDISPATCH_HRC #define CHART_DRAWCOMMANDDISPATCH_HRC -//Command Ids: -#define COMMAND_ID_OBJECT_SELECT 1 -#define COMMAND_ID_DRAW_LINE 2 -#define COMMAND_ID_LINE_ARROW_END 3 -#define COMMAND_ID_DRAW_RECT 4 -#define COMMAND_ID_DRAW_ELLIPSE 5 -#define COMMAND_ID_DRAW_FREELINE_NOFILL 6 -#define COMMAND_ID_DRAW_TEXT 7 -#define COMMAND_ID_DRAW_TEXT_VERTICAL 8 -#define COMMAND_ID_DRAW_CAPTION 9 -#define COMMAND_ID_DRAW_CAPTION_VERTICAL 10 -#define COMMAND_ID_DRAWTBX_CS_BASIC 11 -#define COMMAND_ID_DRAWTBX_CS_SYMBOL 12 -#define COMMAND_ID_DRAWTBX_CS_ARROW 13 -#define COMMAND_ID_DRAWTBX_CS_FLOWCHART 14 -#define COMMAND_ID_DRAWTBX_CS_CALLOUT 15 -#define COMMAND_ID_DRAWTBX_CS_STAR 16 +//Draw Command Ids: +enum DrawCommandID +{ + COMMAND_ID_OBJECT_SELECT = 1, + COMMAND_ID_DRAW_LINE = 2, + COMMAND_ID_LINE_ARROW_END = 3, + COMMAND_ID_DRAW_RECT = 4, + COMMAND_ID_DRAW_ELLIPSE = 5, + COMMAND_ID_DRAW_FREELINE_NOFILL = 6, + COMMAND_ID_DRAW_TEXT = 7, + COMMAND_ID_DRAW_TEXT_VERTICAL = 8, + COMMAND_ID_DRAW_CAPTION = 9, + COMMAND_ID_DRAW_CAPTION_VERTICAL = 10, + COMMAND_ID_DRAWTBX_CS_BASIC = 11, + COMMAND_ID_DRAWTBX_CS_SYMBOL = 12, + COMMAND_ID_DRAWTBX_CS_ARROW = 13, + COMMAND_ID_DRAWTBX_CS_FLOWCHART = 14, + COMMAND_ID_DRAWTBX_CS_CALLOUT = 15, + COMMAND_ID_DRAWTBX_CS_STAR = 16 +}; #endif