summaryrefslogtreecommitdiff
path: root/sw/source/uibase/shells
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/source/uibase/shells
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/source/uibase/shells')
-rw-r--r--sw/source/uibase/shells/basesh.cxx2
-rw-r--r--sw/source/uibase/shells/textsh1.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/shells/basesh.cxx b/sw/source/uibase/shells/basesh.cxx
index 15780ee57c6e..70dd94f905f4 100644
--- a/sw/source/uibase/shells/basesh.cxx
+++ b/sw/source/uibase/shells/basesh.cxx
@@ -572,7 +572,7 @@ void SwBaseShell::StateClpbrd(SfxItemSet &rSet)
TransferableDataHelper::CreateFromSystemClipboard(
&rSh.GetView().GetEditWin()) );
- SvxClipboardFormatItem aFormatItem( nWhich );
+ SvxClipboardFormatItem aFormatItem( SID_CLIPBOARD_FORMAT_ITEMS );
SwTransferable::FillClipFormatItem( rSh, aDataHelper, aFormatItem );
rSet.Put( aFormatItem );
}
diff --git a/sw/source/uibase/shells/textsh1.cxx b/sw/source/uibase/shells/textsh1.cxx
index 4677237aeb76..43aaae7a7243 100644
--- a/sw/source/uibase/shells/textsh1.cxx
+++ b/sw/source/uibase/shells/textsh1.cxx
@@ -2087,7 +2087,7 @@ void SwTextShell::GetState( SfxItemSet &rSet )
const OUString& aApplicationName( rSmartTagMgr.GetApplicationName() );
const OUString aRangeText = xRange->getString();
- const SvxSmartTagItem aItem( nWhich,
+ const SvxSmartTagItem aItem( SID_OPEN_SMARTTAGMENU,
aActionComponentsSequence,
aActionIndicesSequence,
aStringKeyMaps,