diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-01-28 15:17:04 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-01-29 18:59:53 +0100 |
commit | c3d5c9a08df77f9c0d0fd2493cf299dbad1a9dff (patch) | |
tree | f448517b6031741ab182685f3cf8ee332deac2f4 /sd/inc | |
parent | 58c849a94234f18eac020be66117aa2378487e2f (diff) |
used TypedWhichId in the constructor of various svx *Item classes
to act as an extra check that we have the association of Item and
TypedWhichId annotations correct.
(*) requires that I add an upcasting constructor to TypedWhichId
(*) Make the field dialog stuff in writer use a new item id
FN_FIELD_DIALOG_DOC_PROPS instead of abusing the
existing SID_DOCINFO
Change-Id: Ica4aea930c80124609a063768c9af5a189df1c27
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129098
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/inc')
-rw-r--r-- | sd/inc/sdattr.hrc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sd/inc/sdattr.hrc b/sd/inc/sdattr.hrc index 90dc0964322b..f6230634e07e 100644 --- a/sd/inc/sdattr.hrc +++ b/sd/inc/sdattr.hrc @@ -21,6 +21,8 @@ #include <svl/solar.hrc> +class XColorItem; + // Layer attributes #define ATTR_LAYER_START SID_SD_START + 1234 #define ATTR_LAYER_NAME ATTR_LAYER_START @@ -78,11 +80,11 @@ #define ATTR_COPY_NUMBER ATTR_COPY_START #define ATTR_COPY_MOVE_X ATTR_COPY_START + 1 #define ATTR_COPY_MOVE_Y ATTR_COPY_START + 2 -#define ATTR_COPY_ANGLE ATTR_COPY_START + 3 +#define ATTR_COPY_ANGLE TypedWhichId<SdrAngleItem>(ATTR_COPY_START + 3) #define ATTR_COPY_WIDTH ATTR_COPY_START + 4 #define ATTR_COPY_HEIGHT ATTR_COPY_START + 5 -#define ATTR_COPY_START_COLOR ATTR_COPY_START + 6 -#define ATTR_COPY_END_COLOR ATTR_COPY_START + 7 +#define ATTR_COPY_START_COLOR TypedWhichId<XColorItem>(ATTR_COPY_START + 6) +#define ATTR_COPY_END_COLOR TypedWhichId<XColorItem>(ATTR_COPY_START + 7) #define ATTR_COPY_END ATTR_COPY_END_COLOR #define ATTR_SNAPLINE_START ATTR_COPY_END + 1 |