summaryrefslogtreecommitdiff
path: root/sw/inc/cmdid.h
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-01-28 15:17:04 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-01-29 18:59:53 +0100
commitc3d5c9a08df77f9c0d0fd2493cf299dbad1a9dff (patch)
treef448517b6031741ab182685f3cf8ee332deac2f4 /sw/inc/cmdid.h
parent58c849a94234f18eac020be66117aa2378487e2f (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 'sw/inc/cmdid.h')
-rw-r--r--sw/inc/cmdid.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/inc/cmdid.h b/sw/inc/cmdid.h
index 342f41cb949a..bdac82f3bc2c 100644
--- a/sw/inc/cmdid.h
+++ b/sw/inc/cmdid.h
@@ -625,7 +625,7 @@
#define FN_UNO_FOOTER_FIRST (FN_EXTRA2 + 119)
#define FN_UNO_TABLE_BORDER2 (FN_EXTRA2 + 120)
-// #define free (FN_EXTRA2 + 121)
+#define FN_FIELD_DIALOG_DOC_PROPS TypedWhichId<SfxUnoAnyItem>(FN_EXTRA2 + 121)
#define FN_UNO_HIDDEN (FN_EXTRA2 + 122)
#define FN_UNO_STYLE_INTEROP_GRAB_BAG (FN_EXTRA2 + 123)
#define FN_UNO_TABLE_TEMPLATE_NAME (FN_EXTRA2 + 124)
@@ -861,12 +861,12 @@
#define SID_ATTR_PAGE_COLUMN (FN_SIDEBAR + 0)
#define SID_ATTR_PAGE_HEADER (FN_SIDEBAR + 3)
-#define SID_ATTR_PAGE_HEADER_LRMARGIN (FN_SIDEBAR + 4)
-#define SID_ATTR_PAGE_HEADER_SPACING (FN_SIDEBAR + 5)
+#define SID_ATTR_PAGE_HEADER_LRMARGIN TypedWhichId<SvxLongLRSpaceItem>(FN_SIDEBAR + 4)
+#define SID_ATTR_PAGE_HEADER_SPACING TypedWhichId<SvxLongULSpaceItem>(FN_SIDEBAR + 5)
#define SID_ATTR_PAGE_HEADER_LAYOUT (FN_SIDEBAR + 6)
#define SID_ATTR_PAGE_FOOTER (FN_SIDEBAR + 7)
-#define SID_ATTR_PAGE_FOOTER_LRMARGIN (FN_SIDEBAR + 8)
-#define SID_ATTR_PAGE_FOOTER_SPACING (FN_SIDEBAR + 9)
+#define SID_ATTR_PAGE_FOOTER_LRMARGIN TypedWhichId<SvxLongLRSpaceItem>(FN_SIDEBAR + 8)
+#define SID_ATTR_PAGE_FOOTER_SPACING TypedWhichId<SvxLongULSpaceItem>(FN_SIDEBAR + 9)
#define SID_ATTR_PAGE_FOOTER_LAYOUT (FN_SIDEBAR + 10)
#define SID_ATTR_PAGE_MARGIN (FN_SIDEBAR + 11)