[Libreoffice-commits] core.git: Branch 'feature/item_refactor2' - 1299 commits - accessibility/inc accessibility/source android/README android/source animations/source apple_remote/source avmedia/inc avmedia/source basctl/inc basctl/Library_basctl.mk basctl/source basctl/uiconfig basegfx/source basic/CppunitTest_basic_macros.mk basic/qa basic/source bean/com bean/qa bin/check-elf-dynamic-objects bin/find-german-comments bin/find-unneeded-includes bin/get-bugzilla-attachments-by-mimetype bin/gla11y bin/lo-commit-stat bin/update_pch bridges/Library_cpp_uno.mk bridges/source canvas/Executable_canvasdemo.mk canvas/source chart2/inc chart2/qa chart2/source chart2/uiconfig cli_ure/source codemaker/source comphelper/CppunitTest_comphelper_test.mk comphelper/IwyuFilter_comphelper.yaml comphelper/Library_comphelper.mk comphelper/qa comphelper/source comphelper/StaticLibrary_windows_process.mk compilerplugins/clang config_host.mk.in configmgr/source configure.ac connectivity/Library_mysqlc.mk connectivity/ Library_postgresql-sdbc-impl.mk connectivity/qa connectivity/source cppcanvas/inc cppcanvas/qa cppcanvas/source cppuhelper/source cppu/qa cppu/source cpputools/source cui/inc cui/Library_cui.mk cui/source cui/uiconfig cui/UIConfig_cui.mk dbaccess/Executable_odbcconfig.mk dbaccess/inc dbaccess/qa dbaccess/source dbaccess/uiconfig dbaccess/win32 desktop/CppunitTest_desktop_app.mk desktop/CppunitTest_desktop_lokinit.mk desktop/Executable_minidump_upload.mk desktop/Executable_sbase.mk desktop/Executable_scalc.mk desktop/Executable_sdraw.mk desktop/Executable_simpress.mk desktop/Executable_smath.mk desktop/Executable_sweb.mk desktop/Executable_swriter.mk desktop/inc desktop/Library_crashreport.mk desktop/Library_sofficeapp.mk desktop/qa desktop/source desktop/StaticLibrary_winlauncher.mk desktop/uiconfig dictionaries download.lst drawinglayer/source dtrans/Library_sysdtrans.mk dtrans/source editeng/Library_editeng.mk editeng/qa editeng/source embeddedobj/source embedserv/source emfio/sou rce extensions/source extensions/uiconfig external/clucene external/coinmp external/cppunit external/curl external/epoxy external/firebird external/gpgmepp external/graphite external/harfbuzz external/icu external/languagetool external/lcms2 external/libabw external/libcdr external/libebook external/libepubgen external/libetonyek external/libfreehand external/liblangtag external/libmspub external/libmwaw external/libodfgen external/libpagemaker external/libqxp external/librevenge external/libstaroffice external/libvisio external/libwps external/libxslt external/libzmf external/pdfium external/python3 external/redland extras/source filter/inc filter/source filter/uiconfig forms/source formula/source fpicker/Library_fps.mk fpicker/source framework/inc framework/qa framework/source framework/uiconfig helpcompiler/inc helpcompiler/source helpcontent2 hwpfilter/source i18nlangtag/source i18npool/Library_localedata_en.mk i18npool/source icon-themes/breeze icon-themes/breeze_dark icon-them es/breeze_svg icon-themes/colibre icon-themes/colibre_svg icon-themes/elementary icon-themes/elementary_svg icon-themes/karasa_jaga icon-themes/karasa_jaga_svg icon-themes/sifr icon-themes/sifr_dark icon-themes/sifr_svg icon-themes/tango idl/source include/avmedia include/basegfx include/com include/comphelper include/editeng include/filter include/formula include/i18nlangtag include/item include/IwyuFilter_include.yaml include/LibreOfficeKit include/oox include/opencl include/osl include/postwin.h include/registry include/rtl include/sal include/sax include/sfx2 include/sot include/svl include/svtools include/svx include/test include/toolkit include/tools include/ucbhelper include/uno include/unotools include/vcl include/xmloff io/IwyuFilter_io.yaml io/qa ios/CustomTarget_iOS_setup.mk ios/LibreOfficeLight io/source item/CppunitTest_item.mk item/inc item/Library_item.mk item/Makefile item/Module_item.mk item/README item/source item/test javaunohelper/source jurt/Library_jpipe.mk jvm access/IwyuFilter_jvmaccess.yaml jvmaccess/source jvmfwk/inc jvmfwk/IwyuFilter_jvmfwk.yaml jvmfwk/plugins jvmfwk/source l10ntools/source librelogo/CustomTarget_librelogo.mk librelogo/source libreofficekit/CppunitTest_libreofficekit_tiledrendering.mk libreofficekit/Executable_gtktiledviewer.mk libreofficekit/Executable_tilebench.mk libreofficekit/qa libreofficekit/source lingucomponent/source linguistic/source lotuswordpro/inc lotuswordpro/source Makefile.in nlpsolver/ThirdParty odk/examples odk/Package_share_readme.mk odk/README odk/source offapi/com officecfg/registry onlineupdate/Executable_mar.mk onlineupdate/Executable_mbsdiff.mk onlineupdate/Executable_test_updater_dialog.mk onlineupdate/Executable_updater.mk onlineupdate/Executable_update_service.mk onlineupdate/StaticLibrary_libmar.mk onlineupdate/StaticLibrary_libmarverify.mk onlineupdate/StaticLibrary_updatehelper.mk oovbaapi/ooo oox/inc oox/source opencl/Executable_opencltest.mk opencl/inc opencl/Module_opencl.mk opencl/op encltest opencl/source package/source postprocess/CustomTarget_images.mk postprocess/CustomTarget_registry.mk postprocess/CustomTarget_signing.mk pyuno/inc pyuno/IwyuFilter_pyuno.yaml pyuno/Module_pyuno.mk pyuno/PythonTest_pyuno_pytests_ssl.mk pyuno/PythonTest_pyuno_pytests_testssl.mk pyuno/source qadevOOo/Jar_OOoRunner.mk qadevOOo/objdsc qadevOOo/tests readlicense_oo/CustomTarget_license.mk readlicense_oo/license readlicense_oo/Package_license.mk registry/source reportbuilder/java reportdesign/inc reportdesign/source Repository.mk RepositoryModule_build.mk RepositoryModule_host.mk sal/android sal/Library_sal.mk sal/osl sal/qa sal/rtl sax/qa sax/source sc/CppunitTest_sc_cellsearchobj.mk sc/CppunitTest_sc_subtotaldescriptorbase.mk sc/CppunitTest_sc_subtotaldescriptorbaseobj.mk sc/CppunitTest_sc_tablecolumnobj.mk sc/CppunitTest_sc_tablerowobj.mk sc/CppunitTest_sc_ucalc.mk sc/inc sc/Library_sc.mk sc/Module_sc.mk scp2/macros scp2/source sc/qa scripting/source sc/sdi sc/source sc/uiconfi g sc/UIConfig_scalc.mk sdext/source sd/inc sd/IwyuFilter_sd.yaml sd/Module_sd.mk sd/qa sd/source sd/uiconfig sd/UIConfig_simpress.mk sd/UITest_findReplace.mk sd/UITest_sd_findReplace.mk setup_native/Library_reg4allmsdoc.mk setup_native/Library_shlxtmsi.mk setup_native/source setup_native/StaticLibrary_quickstarter.mk sfx2/inc sfx2/Library_sfx.mk sfx2/sdi sfx2/source sfx2/uiconfig shell/Library_ooofilt.mk shell/Library_ooofilt_x64.mk shell/Library_propertyhdl.mk shell/Library_propertyhdl_x64.mk shell/Library_shlxthdl.mk shell/Library_shlxthdl_x64.mk shell/Library_spsupp.mk shell/Library_spsupp_x64.mk shell/source shell/StaticLibrary_shlxthandler_common.mk shell/StaticLibrary_shlxthandler_common_x64.mk slideshow/inc slideshow/source smoketest/Executable_libtest.mk solenv/bin solenv/clang-format solenv/CompilerTest_compilerplugins_clang.mk solenv/flatpak-manifest.in solenv/gbuild solenv/gdb solenv/qa solenv/sanitizers soltools/cpp soltools/mkdepend sot/source starmath/inc starmath/qa s tarmath/source stoc/source store/source svgio/qa svgio/source svl/Library_svl.mk svl/qa svl/source svtools/inc svtools/source svtools/uiconfig svx/Executable_gengal.mk svx/inc svx/Library_svxcore.mk svx/Library_svx.mk svx/qa svx/source svx/uiconfig svx/UIConfig_svx.mk sw/CppunitTest_sw_uiwriter.mk sw/CppunitTest_sw_uwriter.mk sw/inc sw/IwyuFilter_sw.yaml sw/Library_sw.mk sw/Module_sw.mk sw/qa sw/sdi sw/source sw/uiconfig sw/UIConfig_swriter.mk sw/UITest_findReplace.mk sw/UITest_sw_findReplace.mk sw/UITest_sw_findSimilarity.mk sysui/CustomTarget_infoplist.mk sysui/Package_infoplist.mk test/CppunitTest_test_xpath.mk test/inc test/Library_subsequenttest.mk test/Library_test.mk test/Module_test.mk test/qa test/source testtools/source test/user-template toolkit/source tools/CppunitTest_tools_test.mk tools/inc tools/IwyuFilter_tools.yaml tools/Library_tl.mk tools/qa tools/source translations ucbhelper/IwyuFilter_ucbhelper.yaml ucbhelper/source ucb/source udkapi/com uitest/demo_ui uitest/U ITest_demo_ui.mk UnoControls/source unodevtools/source unoidl/IwyuFilter_unoidl.yaml unotools/source unoxml/source uui/source vbahelper/inc vbahelper/source vcl/backendtest vcl/CppunitTest_vcl_backend_test.mk vcl/CppunitTest_vcl_bitmap_render_test.mk vcl/CppunitTest_vcl_bitmap_test.mk vcl/CppunitTest_vcl_gen.mk vcl/CppunitTest_vcl_jpeg_read_write_test.mk vcl/CppunitTest_vcl_svm_test.mk vcl/Executable_icontest.mk vcl/Executable_lo_kde5filepicker.mk vcl/Executable_mtfdemo.mk vcl/Executable_ui-previewer.mk vcl/Executable_vcldemo.mk vcl/Executable_visualbackendtest.mk vcl/headless vcl/inc vcl/Library_desktop_detector.mk vcl/Library_vcl.mk vcl/Library_vclplug_gen.mk vcl/Library_vclplug_gtk3_kde5.mk vcl/Library_vclplug_gtk3.mk vcl/Library_vclplug_gtk.mk vcl/Library_vclplug_kde5.mk vcl/Library_vclplug_qt5.mk vcl/Library_vclplug_win.mk vcl/Module_vcl.mk vcl/opengl vcl/osx vcl/Package_opengl.mk vcl/Package_opengl_shader.mk vcl/Package_theme_definitions.mk vcl/Package_tipoftheday.mk vcl/qa vc l/qt5 vcl/quartz vcl/source vcl/StaticLibrary_glxtest.mk vcl/uiconfig vcl/unx vcl/win vcl/workben winaccessibility/Library_uacccom.mk winaccessibility/source wizards/com wizards/CustomTarget_wizards.mk wizards/source writerfilter/source writerperfect/qa writerperfect/source xmerge/source xmlhelp/source xmloff/inc xmloff/source xmloff/util xmlscript/source xmlsecurity/inc xmlsecurity/IwyuFilter_xmlsecurity.yaml xmlsecurity/qa xmlsecurity/source
Armin Le Grand (via logerrit)
logerrit at kemper.freedesktop.org
Sun May 5 21:13:45 UTC 2019
Rebased ref, commits from common ancestor:
commit 6f72ff948b8f7581e2f46ded1e55803d94cb2606
Author: Armin Le Grand <Armin.Le.Grand at me.com>
AuthorDate: Sun May 5 17:09:42 2019 +0200
Commit: Armin Le Grand <Armin.Le.Grand at me.com>
CommitDate: Sun May 5 23:10:50 2019 +0200
WIP: Re-simplified StateChanged interface
Added rebase correctiojns
Change-Id: Ib0aa5e964fe1bb9365cd1f9d4fffe448134663cb
diff --git a/avmedia/source/framework/mediatoolbox.cxx b/avmedia/source/framework/mediatoolbox.cxx
index e75ba15aa390..191adfa913a9 100644
--- a/avmedia/source/framework/mediatoolbox.cxx
+++ b/avmedia/source/framework/mediatoolbox.cxx
@@ -84,7 +84,7 @@ MediaToolBoxControl::~MediaToolBoxControl()
}
-void MediaToolBoxControl::StateChanged( sal_uInt16, SfxItemState eState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/ )
+void MediaToolBoxControl::StateChanged( sal_uInt16, SfxItemState eState, const SfxPoolItem* pState, const Item::ItemBase* /*pSlotItem*/ )
{
MediaToolBoxControl_Impl* pCtrl = static_cast< MediaToolBoxControl_Impl* >( GetToolBox().GetItemWindow( GetId() ) );
diff --git a/basctl/source/basicide/IDEComboBox.cxx b/basctl/source/basicide/IDEComboBox.cxx
index edb312499a4f..1ff980a0baa5 100644
--- a/basctl/source/basicide/IDEComboBox.cxx
+++ b/basctl/source/basicide/IDEComboBox.cxx
@@ -60,7 +60,7 @@ LibBoxControl::LibBoxControl(sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx)
{
}
-void LibBoxControl::StateChanged(sal_uInt16, SfxItemState eState, const SfxPoolItem* pState, const ::std::unique_ptr<const ::Item::ItemBase>& /*rSlotItem*/)
+void LibBoxControl::StateChanged(sal_uInt16, SfxItemState eState, const SfxPoolItem* pState, const ::Item::ItemBase* /*pSlotItem*/)
{
LibBox* pBox = static_cast<LibBox*>(GetToolBox().GetItemWindow(GetId()));
@@ -337,7 +337,7 @@ LanguageBoxControl::LanguageBoxControl(sal_uInt16 nSlotId, sal_uInt16 nId, ToolB
{
}
-void LanguageBoxControl::StateChanged(sal_uInt16, SfxItemState eState, const SfxPoolItem* pItem, const ::std::unique_ptr<const ::Item::ItemBase>& /*rSlotItem*/)
+void LanguageBoxControl::StateChanged(sal_uInt16, SfxItemState eState, const SfxPoolItem* pItem, const ::Item::ItemBase* /*pSlotItem*/)
{
if (LanguageBox* pBox = static_cast<LanguageBox*>(GetToolBox().GetItemWindow(GetId())))
{
diff --git a/basctl/source/inc/IDEComboBox.hxx b/basctl/source/inc/IDEComboBox.hxx
index aa67d1d7576e..8b05ecf15ce9 100644
--- a/basctl/source/inc/IDEComboBox.hxx
+++ b/basctl/source/inc/IDEComboBox.hxx
@@ -60,7 +60,7 @@ public:
* @param pState --
*/
virtual void StateChanged(sal_uInt16 nSlotID, SfxItemState eState,
- const SfxPoolItem* pState, const ::std::unique_ptr<const ::Item::ItemBase>& rSlotItem) override;
+ const SfxPoolItem* pState, const ::Item::ItemBase* pSlotItem) override;
/*!
* Create combobox of Macro and Dialog Library
*
@@ -189,7 +189,7 @@ public:
* @param pState --
*/
virtual void StateChanged(sal_uInt16 nSID, SfxItemState eState,
- const SfxPoolItem* pState, const ::std::unique_ptr<const ::Item::ItemBase>& rSlotItem) override;
+ const SfxPoolItem* pState, const ::Item::ItemBase* pSlotItem) override;
/*!
* Create ComboBox of Language
*
diff --git a/cui/source/dialogs/cuihyperdlg.cxx b/cui/source/dialogs/cuihyperdlg.cxx
index 53c07d4e9115..0bfbe9025d48 100644
--- a/cui/source/dialogs/cuihyperdlg.cxx
+++ b/cui/source/dialogs/cuihyperdlg.cxx
@@ -57,7 +57,7 @@ void SvxHlinkCtrl::dispose()
}
void SvxHlinkCtrl::StateChanged( sal_uInt16 nSID, SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/ )
+ const SfxPoolItem* pState, const Item::ItemBase* /*pSlotItem*/ )
{
if ( eState == SfxItemState::DEFAULT && !pParent->IsDisposed() )
{
diff --git a/cui/source/inc/cuihyperdlg.hxx b/cui/source/inc/cuihyperdlg.hxx
index bb7dc8ee05b2..62e9a3f3f6f4 100644
--- a/cui/source/inc/cuihyperdlg.hxx
+++ b/cui/source/inc/cuihyperdlg.hxx
@@ -61,7 +61,7 @@ public:
virtual void dispose() override;
virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ const SfxPoolItem* pState, const Item::ItemBase* pSlotItem ) override;
};
diff --git a/include/avmedia/mediatoolbox.hxx b/include/avmedia/mediatoolbox.hxx
index a70751ab2d78..cfe7902d6961 100644
--- a/include/avmedia/mediatoolbox.hxx
+++ b/include/avmedia/mediatoolbox.hxx
@@ -39,7 +39,7 @@ public:
MediaToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbX );
virtual ~MediaToolBoxControl() override;
- virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const Item::ItemBase* pSlotItem ) override;
virtual VclPtr<vcl::Window> CreateItemWindow( vcl::Window* pParent ) override;
private:
diff --git a/include/sfx2/ctrlitem.hxx b/include/sfx2/ctrlitem.hxx
index 6d6e5cec95a1..aa0f1a2dd89d 100644
--- a/include/sfx2/ctrlitem.hxx
+++ b/include/sfx2/ctrlitem.hxx
@@ -63,7 +63,7 @@ public:
sal_uInt16 GetId() const { return nId; }
virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem );
+ const SfxPoolItem* pState, const Item::ItemBase* pSlotItem );
MapUnit GetCoreMetric() const;
@@ -79,7 +79,7 @@ class SFX2_DLLPUBLIC SfxStatusForwarder: public SfxControllerItem
protected:
virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ const SfxPoolItem* pState, const Item::ItemBase* pSlotItem ) override;
public:
SfxStatusForwarder( sal_uInt16 nSlotId,
diff --git a/include/sfx2/sfxstatuslistener.hxx b/include/sfx2/sfxstatuslistener.hxx
index 6c2e8bc555af..9be4acb91b83 100644
--- a/include/sfx2/sfxstatuslistener.hxx
+++ b/include/sfx2/sfxstatuslistener.hxx
@@ -51,7 +51,7 @@ class SFX2_DLLPUBLIC SfxStatusListener : public cppu::WeakImplHelper<
sal_uInt16 nSID,
SfxItemState eState,
const SfxPoolItem* pState,
- const std::unique_ptr<const Item::ItemBase>& rSlotItem );
+ const Item::ItemBase* pSlotItem );
// XComponent
virtual void SAL_CALL dispose() override;
diff --git a/include/sfx2/sidebar/ControllerItem.hxx b/include/sfx2/sidebar/ControllerItem.hxx
index 20464ab78437..6e56121de0c6 100644
--- a/include/sfx2/sidebar/ControllerItem.hxx
+++ b/include/sfx2/sidebar/ControllerItem.hxx
@@ -76,7 +76,7 @@ public:
protected:
- virtual void StateChanged (sal_uInt16 nSId, SfxItemState eState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem) override;
+ virtual void StateChanged (sal_uInt16 nSId, SfxItemState eState, const SfxPoolItem* pState, const Item::ItemBase* pSlotItem) override;
private:
ItemUpdateReceiverInterface& mrItemUpdateReceiver;
diff --git a/include/sfx2/stbitem.hxx b/include/sfx2/stbitem.hxx
index 7c9b63465a28..c74534e27870 100644
--- a/include/sfx2/stbitem.hxx
+++ b/include/sfx2/stbitem.hxx
@@ -93,7 +93,7 @@ protected:
// Old sfx2 interface
virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem );
+ const SfxPoolItem* pState, const Item::ItemBase* pSlotItem );
virtual void Click();
virtual void Command( const CommandEvent& rCEvt );
virtual bool MouseButtonDown( const MouseEvent & );
diff --git a/include/sfx2/tbxctrl.hxx b/include/sfx2/tbxctrl.hxx
index 22be891b261a..bfd584fd84b2 100644
--- a/include/sfx2/tbxctrl.hxx
+++ b/include/sfx2/tbxctrl.hxx
@@ -27,6 +27,7 @@
#include <vcl/floatwin.hxx>
#include <svtools/toolboxcontroller.hxx>
#include <rtl/ref.hxx>
+#include <item/base/ItemBase.hxx>
namespace com::sun::star::frame { class XDispatchProvider; }
namespace com::sun::star::frame { class XFrame; }
@@ -131,7 +132,7 @@ protected:
DECL_LINK( ClosePopupWindow, SfxPopupWindow *, void );
// old SfxToolBoxControl methods
- virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem );
+ virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const Item::ItemBase* pSlotItem );
virtual void Select( sal_uInt16 nSelectModifier );
virtual void DoubleClick();
diff --git a/include/sfx2/unoctitm.hxx b/include/sfx2/unoctitm.hxx
index 14901b89eebd..2b6608735017 100644
--- a/include/sfx2/unoctitm.hxx
+++ b/include/sfx2/unoctitm.hxx
@@ -130,7 +130,7 @@ public:
static OUString getSlaveCommand( const css::util::URL& rURL );
void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, SfxSlotServer const * pServ );
- virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const Item::ItemBase* pSlotItem ) override;
void setMasterSlaveCommand( bool bSet );
/// @throws css::uno::RuntimeException
void dispatch( const css::util::URL& aURL,
diff --git a/include/svx/ParaSpacingControl.hxx b/include/svx/ParaSpacingControl.hxx
index 3a89b2436aec..f75d0a4deb57 100644
--- a/include/svx/ParaSpacingControl.hxx
+++ b/include/svx/ParaSpacingControl.hxx
@@ -37,7 +37,7 @@ public:
virtual ~ParaULSpacingControl() override;
virtual void StateChanged(sal_uInt16 nSID, SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem) override;
+ const SfxPoolItem* pState, const Item::ItemBase* pSlotItem) override;
virtual VclPtr<vcl::Window> CreateItemWindow(vcl::Window* pParent) override = 0;
};
@@ -71,7 +71,7 @@ public:
virtual void SAL_CALL dispose() override;
virtual void StateChanged(sal_uInt16 nSID, SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem) override;
+ const SfxPoolItem* pState, const Item::ItemBase* pSlotItem) override;
virtual VclPtr<vcl::Window> CreateItemWindow(vcl::Window* pParent) override = 0;
// XContextChangeEventListener
diff --git a/include/svx/bmpmask.hxx b/include/svx/bmpmask.hxx
index 51f2c1484fea..3d465babd2e5 100644
--- a/include/svx/bmpmask.hxx
+++ b/include/svx/bmpmask.hxx
@@ -57,7 +57,7 @@ private:
protected:
virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ const SfxPoolItem* pState, const Item::ItemBase* pSlotItem ) override;
public:
SvxBmpMaskSelectItem( SvxBmpMask& rMask,
diff --git a/include/svx/clipboardctl.hxx b/include/svx/clipboardctl.hxx
index 858f841bfd36..1d8ca3374afe 100644
--- a/include/svx/clipboardctl.hxx
+++ b/include/svx/clipboardctl.hxx
@@ -49,7 +49,7 @@ public:
virtual VclPtr<SfxPopupWindow> CreatePopupWindow() override;
virtual void StateChanged( sal_uInt16 nSID,
SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ const SfxPoolItem* pState, const Item::ItemBase* pSlotItem ) override;
};
#endif
diff --git a/include/svx/fillctrl.hxx b/include/svx/fillctrl.hxx
index 64233ea8db50..ef1ae5de7d61 100644
--- a/include/svx/fillctrl.hxx
+++ b/include/svx/fillctrl.hxx
@@ -70,7 +70,7 @@ public:
SvxFillToolBoxControl(sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx);
virtual ~SvxFillToolBoxControl() override;
- virtual void StateChanged(sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem) override;
+ virtual void StateChanged(sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const Item::ItemBase* pSlotItem) override;
void Update();
virtual VclPtr<vcl::Window> CreateItemWindow(vcl::Window* pParent) override;
};
diff --git a/include/svx/float3d.hxx b/include/svx/float3d.hxx
index 4e8cde9b7744..eb53059bb109 100644
--- a/include/svx/float3d.hxx
+++ b/include/svx/float3d.hxx
@@ -237,7 +237,7 @@ class Svx3DCtrlItem : public SfxControllerItem
{
protected:
virtual void StateChanged( sal_uInt16 nSId, SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ const SfxPoolItem* pState, const Item::ItemBase* pSlotItem ) override;
public:
Svx3DCtrlItem( sal_uInt16, SfxBindings* );
@@ -255,7 +255,7 @@ class SvxConvertTo3DItem : public SfxControllerItem
bool bState;
protected:
- virtual void StateChanged(sal_uInt16 nSId, SfxItemState eState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem) override;
+ virtual void StateChanged(sal_uInt16 nSId, SfxItemState eState, const SfxPoolItem* pState, const Item::ItemBase* pSlotItem) override;
public:
SvxConvertTo3DItem(sal_uInt16 nId, SfxBindings* pBindings);
diff --git a/include/svx/fontwork.hxx b/include/svx/fontwork.hxx
index 42f5853d29aa..139f7fb7ab88 100644
--- a/include/svx/fontwork.hxx
+++ b/include/svx/fontwork.hxx
@@ -59,7 +59,7 @@ class SvxFontWorkControllerItem : public SfxControllerItem
protected:
virtual void StateChanged(sal_uInt16 nSID, SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem) override;
+ const SfxPoolItem* pState, const Item::ItemBase* pSlotItem) override;
public:
SvxFontWorkControllerItem(sal_uInt16 nId, SvxFontWorkDialog&, SfxBindings&);
diff --git a/include/svx/formatpaintbrushctrl.hxx b/include/svx/formatpaintbrushctrl.hxx
index 6ff4ac22226c..f651f232938a 100644
--- a/include/svx/formatpaintbrushctrl.hxx
+++ b/include/svx/formatpaintbrushctrl.hxx
@@ -41,7 +41,7 @@ public:
virtual void Select(sal_uInt16 nSelectModifier) override;
virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ const SfxPoolItem* pState, const Item::ItemBase* pSlotItem ) override;
private:
DECL_LINK( WaitDoubleClickHdl, Timer*, void );
void impl_executePaintBrush();
diff --git a/include/svx/grafctrl.hxx b/include/svx/grafctrl.hxx
index 376c4bc71d5d..d54f77762b8b 100644
--- a/include/svx/grafctrl.hxx
+++ b/include/svx/grafctrl.hxx
@@ -32,7 +32,7 @@ public:
SvxGrafToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
virtual ~SvxGrafToolBoxControl() override;
- virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const Item::ItemBase* pSlotItem ) override;
virtual VclPtr<vcl::Window> CreateItemWindow( vcl::Window *pParent ) override;
};
@@ -100,7 +100,7 @@ public:
SvxGrafModeToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
virtual ~SvxGrafModeToolBoxControl() override;
- virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const Item::ItemBase* pSlotItem ) override;
virtual VclPtr<vcl::Window> CreateItemWindow( vcl::Window *pParent ) override;
};
diff --git a/include/svx/imapdlg.hxx b/include/svx/imapdlg.hxx
index 6c4c26b22623..c3d2e6f1b6d1 100644
--- a/include/svx/imapdlg.hxx
+++ b/include/svx/imapdlg.hxx
@@ -67,7 +67,7 @@ class SvxIMapDlgItem : public SfxControllerItem
protected:
virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ const SfxPoolItem* pState, const Item::ItemBase* pSlotItem ) override;
public:
diff --git a/include/svx/insctrl.hxx b/include/svx/insctrl.hxx
index 539ff2a409b8..fb20e3cdacdf 100644
--- a/include/svx/insctrl.hxx
+++ b/include/svx/insctrl.hxx
@@ -27,7 +27,7 @@ class SVX_DLLPUBLIC SvxInsertStatusBarControl : public SfxStatusBarControl
{
public:
virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ const SfxPoolItem* pState, const Item::ItemBase* pSlotItem ) override;
virtual void Paint( const UserDrawEvent& rEvt ) override;
SFX_DECL_STATUSBAR_CONTROL();
diff --git a/include/svx/layctrl.hxx b/include/svx/layctrl.hxx
index bf3afec5d14b..47ba821b14fe 100644
--- a/include/svx/layctrl.hxx
+++ b/include/svx/layctrl.hxx
@@ -31,7 +31,7 @@ public:
virtual VclPtr<SfxPopupWindow> CreatePopupWindow() override;
virtual void StateChanged( sal_uInt16 nSID,
SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ const SfxPoolItem* pState, const Item::ItemBase* pSlotItem ) override;
SFX_DECL_TOOLBOX_CONTROL();
@@ -52,7 +52,7 @@ public:
virtual void StateChanged( sal_uInt16 nSID,
SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ const SfxPoolItem* pState, const Item::ItemBase* pSlotItem ) override;
};
#endif
diff --git a/include/svx/lboxctrl.hxx b/include/svx/lboxctrl.hxx
index 4e7ef45f155e..683aee14a15b 100644
--- a/include/svx/lboxctrl.hxx
+++ b/include/svx/lboxctrl.hxx
@@ -49,7 +49,7 @@ public:
virtual void StateChanged( sal_uInt16 nSID,
SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ const SfxPoolItem* pState, const Item::ItemBase* pSlotItem ) override;
virtual VclPtr<SfxPopupWindow> CreatePopupWindow() override;
};
diff --git a/include/svx/linectrl.hxx b/include/svx/linectrl.hxx
index 77fba627ed03..cc68463b2d75 100644
--- a/include/svx/linectrl.hxx
+++ b/include/svx/linectrl.hxx
@@ -51,7 +51,7 @@ public:
virtual ~SvxLineStyleToolBoxControl() override;
virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ const SfxPoolItem* pState, const Item::ItemBase* pSlotItem ) override;
void Update( const SfxPoolItem* pState );
virtual VclPtr<vcl::Window> CreateItemWindow( vcl::Window *pParent ) override;
};
@@ -69,7 +69,7 @@ public:
virtual ~SvxLineWidthToolBoxControl() override;
virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ const SfxPoolItem* pState, const Item::ItemBase* pSlotItem ) override;
virtual VclPtr<vcl::Window> CreateItemWindow( vcl::Window *pParent ) override;
};
diff --git a/include/svx/modctrl.hxx b/include/svx/modctrl.hxx
index 20b5543d94da..3410f3fa9b17 100644
--- a/include/svx/modctrl.hxx
+++ b/include/svx/modctrl.hxx
@@ -31,7 +31,7 @@ class SVX_DLLPUBLIC SvxModifyControl : public SfxStatusBarControl
{
public:
virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ const SfxPoolItem* pState, const Item::ItemBase* pSlotItem ) override;
virtual void Paint( const UserDrawEvent& rUsrEvt ) override;
virtual void Click() override;
diff --git a/include/svx/pszctrl.hxx b/include/svx/pszctrl.hxx
index b68d75e490a9..c464349416ed 100644
--- a/include/svx/pszctrl.hxx
+++ b/include/svx/pszctrl.hxx
@@ -37,7 +37,7 @@ public:
SvxPosSizeStatusBarControl( sal_uInt16 nSlotId, sal_uInt16 nId, StatusBar& rStb );
virtual ~SvxPosSizeStatusBarControl() override;
- virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const Item::ItemBase* pSlotItem ) override;
virtual void Paint( const UserDrawEvent& rEvt ) override;
virtual void Command( const CommandEvent& rCEvt ) override;
};
diff --git a/include/svx/selctrl.hxx b/include/svx/selctrl.hxx
index a062ec0ce009..f153b8447c6d 100644
--- a/include/svx/selctrl.hxx
+++ b/include/svx/selctrl.hxx
@@ -32,7 +32,7 @@ public:
SvxSelectionModeControl( sal_uInt16 nSlotId, sal_uInt16 nId, StatusBar& rStb );
virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ const SfxPoolItem* pState, const Item::ItemBase* pSlotItem ) override;
virtual bool MouseButtonDown( const MouseEvent& rEvt ) override;
virtual void Paint( const UserDrawEvent& rEvt ) override;
diff --git a/include/svx/tbcontrl.hxx b/include/svx/tbcontrl.hxx
index 8d335964b4e6..c2cef8bc7560 100644
--- a/include/svx/tbcontrl.hxx
+++ b/include/svx/tbcontrl.hxx
@@ -170,7 +170,7 @@ public:
virtual VclPtr<vcl::Window> CreateItemWindow(vcl::Window* pParent) override;
virtual void StateChanged(sal_uInt16 nSID, SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem) override;
+ const SfxPoolItem* pState, const Item::ItemBase* pSlotItem) override;
DECL_LINK( VisibilityNotification, SvxStyleBox_Impl&, void );
protected:
@@ -259,7 +259,7 @@ public:
virtual ~SvxSimpleUndoRedoController() override;
virtual void StateChanged(sal_uInt16 nSID, SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem) override;
+ const SfxPoolItem* pState, const Item::ItemBase* pSlotItem) override;
};
class SVX_DLLPUBLIC SvxCurrencyToolBoxControl : public svt::PopupWindowController
diff --git a/include/svx/tbxctl.hxx b/include/svx/tbxctl.hxx
index fc74a94c9f7d..97153a413579 100644
--- a/include/svx/tbxctl.hxx
+++ b/include/svx/tbxctl.hxx
@@ -46,7 +46,7 @@ public:
virtual void Select(sal_uInt16 nSelectModifier) override;
virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ const SfxPoolItem* pState, const Item::ItemBase* pSlotItem ) override;
};
#endif
diff --git a/include/svx/verttexttbxctrl.hxx b/include/svx/verttexttbxctrl.hxx
index 2af62c30eafc..e4858dc6acf1 100644
--- a/include/svx/verttexttbxctrl.hxx
+++ b/include/svx/verttexttbxctrl.hxx
@@ -35,7 +35,7 @@ public:
virtual void SAL_CALL initialize(const css::uno::Sequence<css::uno::Any>& rArguments) override;
virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ const SfxPoolItem* pState, const Item::ItemBase* pSlotItem ) override;
};
class SVX_DLLPUBLIC SvxCTLTextTbxCtrl : public SvxVertCTLTextTbxCtrl
diff --git a/include/svx/xmlsecctrl.hxx b/include/svx/xmlsecctrl.hxx
index b691784f6cd3..ec8987e3e173 100644
--- a/include/svx/xmlsecctrl.hxx
+++ b/include/svx/xmlsecctrl.hxx
@@ -39,7 +39,7 @@ public:
XmlSecStatusBarControl( sal_uInt16 _nSlotId, sal_uInt16 _nId, StatusBar& _rStb );
virtual ~XmlSecStatusBarControl() override;
- virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const Item::ItemBase* pSlotItem ) override;
virtual void Paint( const UserDrawEvent& rEvt ) override;
virtual void Command( const CommandEvent& rCEvt ) override;
};
diff --git a/include/svx/zoomctrl.hxx b/include/svx/zoomctrl.hxx
index 8fa1a044306e..f40ef55f535d 100644
--- a/include/svx/zoomctrl.hxx
+++ b/include/svx/zoomctrl.hxx
@@ -32,7 +32,7 @@ private:
public:
virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ const SfxPoolItem* pState, const Item::ItemBase* pSlotItem ) override;
virtual void Paint( const UserDrawEvent& rEvt ) override;
virtual void Command( const CommandEvent& rCEvt ) override;
diff --git a/include/svx/zoomsliderctrl.hxx b/include/svx/zoomsliderctrl.hxx
index d112c118c4dc..719ae5dc9c6c 100644
--- a/include/svx/zoomsliderctrl.hxx
+++ b/include/svx/zoomsliderctrl.hxx
@@ -44,7 +44,7 @@ public:
SvxZoomSliderControl( sal_uInt16 _nSlotId, sal_uInt16 _nId, StatusBar& _rStb );
virtual ~SvxZoomSliderControl() override;
- virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const Item::ItemBase* pSlotItem ) override;
virtual void Paint( const UserDrawEvent& rEvt ) override;
virtual bool MouseButtonDown( const MouseEvent & ) override;
virtual bool MouseButtonUp( const MouseEvent & ) override;
diff --git a/reportdesign/source/ui/misc/statusbarcontroller.cxx b/reportdesign/source/ui/misc/statusbarcontroller.cxx
index c05f961ae033..a3e1427a8c68 100644
--- a/reportdesign/source/ui/misc/statusbarcontroller.cxx
+++ b/reportdesign/source/ui/misc/statusbarcontroller.cxx
@@ -140,10 +140,9 @@ void SAL_CALL OStatusbarController::statusChanged( const FeatureStateEvent& _aEv
Sequence< PropertyValue > aSeq;
if ( (_aEvent.State >>= aSeq) && aSeq.getLength() == 2 )
{
- const std::unique_ptr<const Item::ItemBase> aSlotItem;
SvxZoomSliderItem aZoomSlider(100,20,400);
aZoomSlider.PutValue(_aEvent.State, 0);
- static_cast<SvxZoomSliderControl*>(m_rController.get())->StateChanged(m_nSlotId,SfxItemState::DEFAULT,&aZoomSlider,aSlotItem);
+ static_cast<SvxZoomSliderControl*>(m_rController.get())->StateChanged(m_nSlotId,SfxItemState::DEFAULT,&aZoomSlider,nullptr);
}
}
else if ( m_aCommandURL == ".uno:Zoom" )
@@ -151,10 +150,9 @@ void SAL_CALL OStatusbarController::statusChanged( const FeatureStateEvent& _aEv
Sequence< PropertyValue > aSeq;
if ( (_aEvent.State >>= aSeq) && aSeq.getLength() == 3 )
{
- const std::unique_ptr<const Item::ItemBase> aSlotItem;
SvxZoomItem aZoom;
aZoom.PutValue(_aEvent.State, 0 );
- static_cast<SvxZoomStatusBarControl*>(m_rController.get())->StateChanged(m_nSlotId,SfxItemState::DEFAULT,&aZoom,aSlotItem);
+ static_cast<SvxZoomStatusBarControl*>(m_rController.get())->StateChanged(m_nSlotId,SfxItemState::DEFAULT,&aZoom,nullptr);
}
}
}
diff --git a/sc/inc/NumberFormatControl.hxx b/sc/inc/NumberFormatControl.hxx
index eb8ae901960b..9f9637c4ff10 100644
--- a/sc/inc/NumberFormatControl.hxx
+++ b/sc/inc/NumberFormatControl.hxx
@@ -34,7 +34,7 @@ public:
virtual ~ScNumberFormatControl() override;
virtual void StateChanged(sal_uInt16 nSID, SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem) override;
+ const SfxPoolItem* pState, const Item::ItemBase* pSlotItem) override;
virtual VclPtr<vcl::Window> CreateItemWindow( vcl::Window *pParent ) override;
};
diff --git a/sc/source/ui/cctrl/tbzoomsliderctrl.cxx b/sc/source/ui/cctrl/tbzoomsliderctrl.cxx
index ca9d390586c7..f59fbc36d5fd 100644
--- a/sc/source/ui/cctrl/tbzoomsliderctrl.cxx
+++ b/sc/source/ui/cctrl/tbzoomsliderctrl.cxx
@@ -49,7 +49,7 @@ ScZoomSliderControl::~ScZoomSliderControl()
}
void ScZoomSliderControl::StateChanged( sal_uInt16 /*nSID*/, SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/ )
+ const SfxPoolItem* pState, const Item::ItemBase* /*pSlotItem*/ )
{
sal_uInt16 nId = GetId();
ToolBox& rTbx = GetToolBox();
diff --git a/sc/source/ui/inc/navcitem.hxx b/sc/source/ui/inc/navcitem.hxx
index ae7c35775b46..63bcf293114f 100644
--- a/sc/source/ui/inc/navcitem.hxx
+++ b/sc/source/ui/inc/navcitem.hxx
@@ -32,7 +32,7 @@ public:
SfxBindings& rBindings );
protected:
virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState,
- const SfxPoolItem* pItem, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ const SfxPoolItem* pItem, const Item::ItemBase* pSlotItem ) override;
private:
ScNavigatorDlg& rNavigatorDlg;
diff --git a/sc/source/ui/inc/tbzoomsliderctrl.hxx b/sc/source/ui/inc/tbzoomsliderctrl.hxx
index d9fb1f26bf03..5cc49909de3c 100644
--- a/sc/source/ui/inc/tbzoomsliderctrl.hxx
+++ b/sc/source/ui/inc/tbzoomsliderctrl.hxx
@@ -34,7 +34,7 @@ public:
ScZoomSliderControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
virtual ~ScZoomSliderControl() override;
- virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const Item::ItemBase* pSlotItem ) override;
virtual VclPtr<vcl::Window> CreateItemWindow( vcl::Window *pParent ) override;
};
diff --git a/sc/source/ui/navipi/navcitem.cxx b/sc/source/ui/navipi/navcitem.cxx
index 660ec1079892..b3ca207a2679 100644
--- a/sc/source/ui/navipi/navcitem.cxx
+++ b/sc/source/ui/navipi/navcitem.cxx
@@ -34,7 +34,7 @@ ScNavigatorControllerItem::ScNavigatorControllerItem( sal_uInt16 nIdP,
}
void ScNavigatorControllerItem::StateChanged( sal_uInt16 /* nSID */, SfxItemState /* eState */,
- const SfxPoolItem* pItem, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/ )
+ const SfxPoolItem* pItem, const Item::ItemBase* /*pSlotItem*/ )
{
switch( GetId() )
{
diff --git a/sc/source/ui/sidebar/NumberFormatControl.cxx b/sc/source/ui/sidebar/NumberFormatControl.cxx
index b6548b496a77..3c33c7de6aa6 100644
--- a/sc/source/ui/sidebar/NumberFormatControl.cxx
+++ b/sc/source/ui/sidebar/NumberFormatControl.cxx
@@ -36,7 +36,7 @@ ScNumberFormatControl::~ScNumberFormatControl()
}
void ScNumberFormatControl::StateChanged(sal_uInt16, SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/)
+ const SfxPoolItem* pState, const Item::ItemBase* /*pSlotItem*/)
{
sal_uInt16 nId = GetId();
ToolBox& rTbx = GetToolBox();
diff --git a/sd/source/ui/app/tmplctrl.cxx b/sd/source/ui/app/tmplctrl.cxx
index 5bf3c1b255e2..4d0ebccb9a18 100644
--- a/sd/source/ui/app/tmplctrl.cxx
+++ b/sd/source/ui/app/tmplctrl.cxx
@@ -76,7 +76,7 @@ SdTemplateControl::~SdTemplateControl()
}
void SdTemplateControl::StateChanged(
- sal_uInt16 /*nSID*/, SfxItemState eState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/ )
+ sal_uInt16 /*nSID*/, SfxItemState eState, const SfxPoolItem* pState, const Item::ItemBase* /*pSlotItem*/ )
{
if( eState != SfxItemState::DEFAULT || pState->IsVoidItem() )
GetStatusBar().SetItemText( GetId(), OUString() );
diff --git a/sd/source/ui/dlg/animobjs.cxx b/sd/source/ui/dlg/animobjs.cxx
index 3319760dbf9d..9a9ce531cb17 100644
--- a/sd/source/ui/dlg/animobjs.cxx
+++ b/sd/source/ui/dlg/animobjs.cxx
@@ -1112,7 +1112,7 @@ AnimationControllerItem::AnimationControllerItem(
}
void AnimationControllerItem::StateChanged( sal_uInt16 nSId,
- SfxItemState eState, const SfxPoolItem* pItem, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/ )
+ SfxItemState eState, const SfxPoolItem* pItem, const Item::ItemBase* /*pSlotItem*/ )
{
if( eState >= SfxItemState::DEFAULT && nSId == SID_ANIMATOR_STATE )
{
diff --git a/sd/source/ui/dlg/diactrl.cxx b/sd/source/ui/dlg/diactrl.cxx
index 18e96129ad4b..588c0800f6ce 100644
--- a/sd/source/ui/dlg/diactrl.cxx
+++ b/sd/source/ui/dlg/diactrl.cxx
@@ -102,7 +102,7 @@ SdTbxCtlDiaPages::~SdTbxCtlDiaPages()
}
void SdTbxCtlDiaPages::StateChanged( sal_uInt16,
- SfxItemState eState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/ )
+ SfxItemState eState, const SfxPoolItem* pState, const Item::ItemBase* /*pSlotItem*/ )
{
SdPagesField* pFld = static_cast<SdPagesField*>( GetToolBox().GetItemWindow( GetId() ) );
DBG_ASSERT( pFld, "Window not found" );
diff --git a/sd/source/ui/dlg/gluectrl.cxx b/sd/source/ui/dlg/gluectrl.cxx
index 15994fc8c5a3..87a0d693c3fe 100644
--- a/sd/source/ui/dlg/gluectrl.cxx
+++ b/sd/source/ui/dlg/gluectrl.cxx
@@ -118,7 +118,7 @@ SdTbxCtlGlueEscDir::SdTbxCtlGlueEscDir(
* Represents state in the listbox of the controller
*/
void SdTbxCtlGlueEscDir::StateChanged( sal_uInt16 nSId,
- SfxItemState eState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem )
+ SfxItemState eState, const SfxPoolItem* pState, const Item::ItemBase* pSlotItem )
{
if( eState == SfxItemState::DEFAULT )
{
@@ -147,7 +147,7 @@ void SdTbxCtlGlueEscDir::StateChanged( sal_uInt16 nSId,
}
}
- SfxToolBoxControl::StateChanged( nSId, eState, pState, rSlotItem );
+ SfxToolBoxControl::StateChanged( nSId, eState, pState, pSlotItem );
}
VclPtr<vcl::Window> SdTbxCtlGlueEscDir::CreateItemWindow( vcl::Window *pParent )
diff --git a/sd/source/ui/dlg/navigatr.cxx b/sd/source/ui/dlg/navigatr.cxx
index 9a0e2afa1919..58c0e694ffe4 100644
--- a/sd/source/ui/dlg/navigatr.cxx
+++ b/sd/source/ui/dlg/navigatr.cxx
@@ -780,7 +780,7 @@ SdNavigatorControllerItem::SdNavigatorControllerItem(
}
void SdNavigatorControllerItem::StateChanged( sal_uInt16 nSId,
- SfxItemState eState, const SfxPoolItem* pItem, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/ )
+ SfxItemState eState, const SfxPoolItem* pItem, const Item::ItemBase* /*pSlotItem*/ )
{
if( !(eState >= SfxItemState::DEFAULT && nSId == SID_NAVIGATOR_STATE) )
return;
@@ -851,7 +851,7 @@ SdPageNameControllerItem::SdPageNameControllerItem(
}
void SdPageNameControllerItem::StateChanged( sal_uInt16 nSId,
- SfxItemState eState, const SfxPoolItem* pItem, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/ )
+ SfxItemState eState, const SfxPoolItem* pItem, const Item::ItemBase* /*pSlotItem*/ )
{
if( !(eState >= SfxItemState::DEFAULT && nSId == SID_NAVIGATOR_PAGENAME) )
return;
diff --git a/sd/source/ui/inc/animobjs.hxx b/sd/source/ui/inc/animobjs.hxx
index 28eef0418a75..d5714f09f96b 100644
--- a/sd/source/ui/inc/animobjs.hxx
+++ b/sd/source/ui/inc/animobjs.hxx
@@ -154,7 +154,7 @@ public:
protected:
virtual void StateChanged( sal_uInt16 nSId, SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ const SfxPoolItem* pState, const Item::ItemBase* pSlotItem ) override;
private:
VclPtr<AnimationWindow> pAnimationWin;
};
diff --git a/sd/source/ui/inc/diactrl.hxx b/sd/source/ui/inc/diactrl.hxx
index 602f15e1dc7d..703fed9df6d4 100644
--- a/sd/source/ui/inc/diactrl.hxx
+++ b/sd/source/ui/inc/diactrl.hxx
@@ -49,7 +49,7 @@ class SdTbxCtlDiaPages : public SfxToolBoxControl
{
public:
virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ const SfxPoolItem* pState, const Item::ItemBase* pSlotItem ) override;
virtual VclPtr<vcl::Window> CreateItemWindow( vcl::Window *pParent ) override;
SFX_DECL_TOOLBOX_CONTROL();
diff --git a/sd/source/ui/inc/gluectrl.hxx b/sd/source/ui/inc/gluectrl.hxx
index d40e2bbe485e..52408d155bf3 100644
--- a/sd/source/ui/inc/gluectrl.hxx
+++ b/sd/source/ui/inc/gluectrl.hxx
@@ -52,7 +52,7 @@ private:
public:
virtual void StateChanged( sal_uInt16 nSId, SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ const SfxPoolItem* pState, const Item::ItemBase* pSlotItem ) override;
virtual VclPtr<vcl::Window> CreateItemWindow( vcl::Window *pParent ) override;
SFX_DECL_TOOLBOX_CONTROL();
diff --git a/sd/source/ui/inc/navigatr.hxx b/sd/source/ui/inc/navigatr.hxx
index 557d9398961d..034ba08edbe0 100644
--- a/sd/source/ui/inc/navigatr.hxx
+++ b/sd/source/ui/inc/navigatr.hxx
@@ -159,7 +159,7 @@ public:
protected:
virtual void StateChanged( sal_uInt16 nSId, SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ const SfxPoolItem* pState, const Item::ItemBase* pSlotItem ) override;
private:
VclPtr<SdNavigatorWin> pNavigatorWin;
@@ -176,7 +176,7 @@ public:
protected:
virtual void StateChanged( sal_uInt16 nSId, SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ const SfxPoolItem* pState, const Item::ItemBase* pSlotItem ) override;
private:
VclPtr<SdNavigatorWin> pNavigatorWin;
diff --git a/sd/source/ui/inc/tmplctrl.hxx b/sd/source/ui/inc/tmplctrl.hxx
index 7416adafb265..05c82969b724 100644
--- a/sd/source/ui/inc/tmplctrl.hxx
+++ b/sd/source/ui/inc/tmplctrl.hxx
@@ -27,7 +27,7 @@ public:
SdTemplateControl( sal_uInt16 nSlotId, sal_uInt16 nId, StatusBar& rStb );
virtual ~SdTemplateControl() override;
- virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const Item::ItemBase* pSlotItem ) override;
virtual void Paint( const UserDrawEvent& rEvt ) override;
SFX_DECL_STATUSBAR_CONTROL();
diff --git a/sd/source/ui/view/sdruler.cxx b/sd/source/ui/view/sdruler.cxx
index 9340989d8c5b..ae39833d5c84 100644
--- a/sd/source/ui/view/sdruler.cxx
+++ b/sd/source/ui/view/sdruler.cxx
@@ -42,7 +42,7 @@ class RulerCtrlItem : public SfxControllerItem
protected:
virtual void StateChanged( sal_uInt16 nSId, SfxItemState eState,
- const SfxPoolItem* pItem, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ const SfxPoolItem* pItem, const Item::ItemBase* pSlotItem ) override;
public:
RulerCtrlItem(Ruler& rRlr, SfxBindings& rBind);
@@ -54,7 +54,7 @@ RulerCtrlItem::RulerCtrlItem(Ruler& rRlr, SfxBindings& rBind)
{
}
-void RulerCtrlItem::StateChanged( sal_uInt16 nSId, SfxItemState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/)
+void RulerCtrlItem::StateChanged( sal_uInt16 nSId, SfxItemState, const SfxPoolItem* pState, const Item::ItemBase* /*pSlotItem*/)
{
switch( nSId )
{
diff --git a/sfx2/inc/inettbc.hxx b/sfx2/inc/inettbc.hxx
index ba896256c103..9d8dbdfb5497 100644
--- a/sfx2/inc/inettbc.hxx
+++ b/sfx2/inc/inettbc.hxx
@@ -54,7 +54,7 @@ public:
virtual ~SfxURLToolBoxControl_Impl() override;
virtual VclPtr<vcl::Window> CreateItemWindow( vcl::Window* pParent ) override;
- virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const Item::ItemBase* pSlotItem ) override;
};
#endif
diff --git a/sfx2/source/control/ctrlitem.cxx b/sfx2/source/control/ctrlitem.cxx
index bb0775758027..28480e962211 100644
--- a/sfx2/source/control/ctrlitem.cxx
+++ b/sfx2/source/control/ctrlitem.cxx
@@ -212,7 +212,7 @@ void SfxControllerItem::StateChanged
sal_uInt16, // <SID> of the triggering slot
SfxItemState, // <SfxItemState> of 'pState'
const SfxPoolItem*, // Slot-Status, NULL or IsInvalidItem()
- const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/
+ const Item::ItemBase* /*pSlotItem*/
)
/* [Description]
@@ -241,11 +241,11 @@ void SfxStatusForwarder::StateChanged
sal_uInt16 nSID, // <SID> of the triggering slot
SfxItemState eState, // <SfxItemState> of 'pState'
const SfxPoolItem* pState, // Slot-Status, NULL or IsInvalidItem()
- const std::unique_ptr<const Item::ItemBase>& rSlotItem
+ const Item::ItemBase* pSlotItem
)
{
- pMaster->StateChanged( nSID, eState, pState, rSlotItem );
+ pMaster->StateChanged( nSID, eState, pState, pSlotItem );
}
diff --git a/sfx2/source/control/sfxstatuslistener.cxx b/sfx2/source/control/sfxstatuslistener.cxx
index 06c216579530..5e69886ced4e 100644
--- a/sfx2/source/control/sfxstatuslistener.cxx
+++ b/sfx2/source/control/sfxstatuslistener.cxx
@@ -65,7 +65,7 @@ SfxStatusListener::~SfxStatusListener()
}
// old sfx controller item C++ API
-void SfxStatusListener::StateChanged( sal_uInt16, SfxItemState, const SfxPoolItem*, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/)
+void SfxStatusListener::StateChanged( sal_uInt16, SfxItemState, const SfxPoolItem*, const Item::ItemBase* /*pSlotItem*/)
{
// must be implemented by sub class
}
@@ -241,7 +241,7 @@ void SAL_CALL SfxStatusListener::statusChanged( const FeatureStateEvent& rEvent)
}
}
- StateChanged( m_nSlotID, eState, pItem.get(), aSlotItem );
+ StateChanged( m_nSlotID, eState, pItem.get(), aSlotItem.get() );
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sfx2/source/control/statcach.cxx b/sfx2/source/control/statcach.cxx
index da0c210cb18f..59750ae7df01 100644
--- a/sfx2/source/control/statcach.cxx
+++ b/sfx2/source/control/statcach.cxx
@@ -155,7 +155,7 @@ void SAL_CALL BindDispatch_Impl::statusChanged( const css::frame::FeatureStateE
for ( SfxControllerItem *pCtrl = pCache->GetItemLink();
pCtrl;
pCtrl = pCtrl->GetItemLink() )
- pCtrl->StateChanged( nId, eState, pItem.get(), aSlotItem );
+ pCtrl->StateChanged( nId, eState, pItem.get(), aSlotItem.get() );
}
}
@@ -375,17 +375,15 @@ void SfxStateCache::SetVisibleState( bool bShow )
// Update Controller
if ( !mxDispatch.is() && pController )
{
- const std::unique_ptr<const Item::ItemBase> aSlotItem;
for ( SfxControllerItem *pCtrl = pController;
pCtrl;
pCtrl = pCtrl->GetItemLink() )
- pCtrl->StateChanged( nId, eState, pState, aSlotItem );
+ pCtrl->StateChanged( nId, eState, pState, nullptr );
}
if ( pInternalController )
{
- const std::unique_ptr<const Item::ItemBase> aSlotItem;
- pInternalController->StateChanged( nId, eState, pState, aSlotItem );
+ pInternalController->StateChanged( nId, eState, pState, nullptr );
}
if ( bDeleteItem )
@@ -427,11 +425,10 @@ void SfxStateCache::SetState_Impl
// Update Controller
if ( !mxDispatch.is() && pController )
{
- const std::unique_ptr<const Item::ItemBase> aSlotItem;
for ( SfxControllerItem *pCtrl = pController;
pCtrl;
pCtrl = pCtrl->GetItemLink() )
- pCtrl->StateChanged( nId, eState, pState, aSlotItem );
+ pCtrl->StateChanged( nId, eState, pState, nullptr );
}
if ( pInternalController )
@@ -467,11 +464,10 @@ void SfxStateCache::SetCachedState( bool bAlways )
// Update Controller
if ( !mxDispatch.is() && pController )
{
- const std::unique_ptr<const Item::ItemBase> aSlotItem;
for ( SfxControllerItem *pCtrl = pController;
pCtrl;
pCtrl = pCtrl->GetItemLink() )
- pCtrl->StateChanged( nId, eLastState, pLastItem, aSlotItem );
+ pCtrl->StateChanged( nId, eLastState, pLastItem, nullptr );
}
if ( pInternalController )
diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx
index 37aa874a0e8a..72acacf472cd 100644
--- a/sfx2/source/control/unoctitm.cxx
+++ b/sfx2/source/control/unoctitm.cxx
@@ -782,9 +782,9 @@ void SfxDispatchController_Impl::dispatch( const css::util::URL& aURL,
if ( pAppDispat )
{
const SfxPoolItem* pState=nullptr;
- const std::unique_ptr<const Item::ItemBase> aSlotItem;
+ const Item::ItemBase* pSlotItem=nullptr;
SfxItemState eState = pDispatcher->QueryState( GetId(), pState );
- StateChanged( GetId(), eState, pState, aSlotItem );
+ StateChanged( GetId(), eState, pState, pSlotItem );
}
}
@@ -967,9 +967,9 @@ void SfxDispatchController_Impl::StateChanged( sal_uInt16 nSID, SfxItemState eSt
}
}
-void SfxDispatchController_Impl::StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/)
+void SfxDispatchController_Impl::StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const Item::ItemBase* pSlotItem)
{
- StateChanged( nSID, eState, pState, nullptr );
+ StateChanged( nSID, eState, pState, pSlotItem );
}
static void InterceptLOKStateChangeEvent(const SfxViewFrame* pViewFrame, const css::frame::FeatureStateEvent& aEvent, const SfxPoolItem* pState)
diff --git a/sfx2/source/dialog/tplcitem.cxx b/sfx2/source/dialog/tplcitem.cxx
index 44a520f46c57..c027de0f2ff8 100644
--- a/sfx2/source/dialog/tplcitem.cxx
+++ b/sfx2/source/dialog/tplcitem.cxx
@@ -53,7 +53,7 @@ SfxTemplateControllerItem::~SfxTemplateControllerItem()
// passed on by the constructor
void SfxTemplateControllerItem::StateChanged( sal_uInt16 nSID, SfxItemState eState,
- const SfxPoolItem* pItem, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/ )
+ const SfxPoolItem* pItem, const Item::ItemBase* /*pSlotItem*/ )
{
switch(nSID)
{
diff --git a/sfx2/source/inc/tplcitem.hxx b/sfx2/source/inc/tplcitem.hxx
index c628b23d84a5..324412cf58bb 100644
--- a/sfx2/source/inc/tplcitem.hxx
+++ b/sfx2/source/inc/tplcitem.hxx
@@ -32,7 +32,7 @@ class SfxTemplateControllerItem : public SfxControllerItem {
DECL_LINK(SetWaterCanStateHdl_Impl, void*, void);
protected:
- virtual void StateChanged(sal_uInt16, SfxItemState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem) override;
+ virtual void StateChanged(sal_uInt16, SfxItemState, const SfxPoolItem* pState, const Item::ItemBase* pSlotItem) override;
public:
SfxTemplateControllerItem(sal_uInt16 nId, SfxCommonTemplateDialog_Impl& rDialog, SfxBindings& rBindings);
diff --git a/sfx2/source/inet/inettbc.cxx b/sfx2/source/inet/inettbc.cxx
index 8d8b43a41feb..f7ff1509f88c 100644
--- a/sfx2/source/inet/inettbc.cxx
+++ b/sfx2/source/inet/inettbc.cxx
@@ -183,7 +183,7 @@ void SfxURLToolBoxControl_Impl::StateChanged
(
sal_uInt16 nSID,
SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/
+ const SfxPoolItem* pState, const Item::ItemBase* /*pSlotItem*/
)
{
if ( nSID == SID_OPENURL )
diff --git a/sfx2/source/sidebar/ControllerItem.cxx b/sfx2/source/sidebar/ControllerItem.cxx
index 1ded3bfdc2b3..34713204d4cb 100644
--- a/sfx2/source/sidebar/ControllerItem.cxx
+++ b/sfx2/source/sidebar/ControllerItem.cxx
@@ -62,7 +62,7 @@ void ControllerItem::dispose()
void ControllerItem::StateChanged (
sal_uInt16 nSID,
SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/)
+ const SfxPoolItem* pState, const Item::ItemBase* /*pSlotItem*/)
{
mrItemUpdateReceiver.NotifyItemUpdate(nSID, eState, pState, IsEnabled(eState));
}
diff --git a/sfx2/source/statbar/stbitem.cxx b/sfx2/source/statbar/stbitem.cxx
index 5d7be483e65b..e8ee610e67d0 100644
--- a/sfx2/source/statbar/stbitem.cxx
+++ b/sfx2/source/statbar/stbitem.cxx
@@ -301,7 +301,7 @@ void SAL_CALL SfxStatusBarControl::statusChanged( const frame::FeatureStateEvent
}
}
- StateChanged( nSlotID, eState, pItem.get(), aSlotItem );
+ StateChanged( nSlotID, eState, pItem.get(), aSlotItem.get() );
}
}
@@ -404,7 +404,7 @@ void SfxStatusBarControl::StateChanged
(
sal_uInt16 nSID,
SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/ /* Pointer to SfxPoolItem, is only valid
+ const SfxPoolItem* pState, const Item::ItemBase* /*pSlotItem*/ /* Pointer to SfxPoolItem, is only valid
within this Method call. This can be a
Null-Pointer, a Pointer to SfxVoidItem
or of this Type found registered by the
diff --git a/sfx2/source/toolbox/tbxitem.cxx b/sfx2/source/toolbox/tbxitem.cxx
index 4f23e833ce84..7d619cc0f66c 100644
--- a/sfx2/source/toolbox/tbxitem.cxx
+++ b/sfx2/source/toolbox/tbxitem.cxx
@@ -537,7 +537,7 @@ void SAL_CALL SfxToolBoxControl::statusChanged( const FeatureStateEvent& rEvent
}
}
- StateChanged( nSlotId, eState, pItem.get(), aSlotItem );
+ StateChanged( nSlotId, eState, pItem.get(), aSlotItem.get() );
}
}
@@ -619,7 +619,7 @@ void SfxToolBoxControl::StateChanged
(
sal_uInt16 nId,
SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/
+ const SfxPoolItem* pState, const Item::ItemBase* /*pSlotItem*/
)
{
DBG_ASSERT( pImpl->pBox != nullptr, "setting state to dangling ToolBox" );
diff --git a/sfx2/source/view/viewfrm2.cxx b/sfx2/source/view/viewfrm2.cxx
index ceade3641cd3..b5248ef45216 100644
--- a/sfx2/source/view/viewfrm2.cxx
+++ b/sfx2/source/view/viewfrm2.cxx
@@ -345,8 +345,7 @@ void SfxViewFrame::INetExecute_Impl( SfxRequest &rRequest )
SfxControllerItem* pCtrl = pCache->GetItemLink();
while( pCtrl )
{
- const std::unique_ptr<const Item::ItemBase> aSlotItem;
- pCtrl->StateChanged( SID_FOCUSURLBOX, SfxItemState::UNKNOWN, nullptr, aSlotItem );
+ pCtrl->StateChanged( SID_FOCUSURLBOX, SfxItemState::UNKNOWN, nullptr, nullptr );
pCtrl = pCtrl->GetItemLink();
}
}
diff --git a/starmath/inc/view.hxx b/starmath/inc/view.hxx
index 3a9c8c3ebd28..365d68b17849 100644
--- a/starmath/inc/view.hxx
+++ b/starmath/inc/view.hxx
@@ -138,7 +138,7 @@ public:
SmGraphicController(SmGraphicWindow &, sal_uInt16, SfxBindings & );
virtual void StateChanged(sal_uInt16 nSID,
SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem) override;
+ const SfxPoolItem* pState, const Item::ItemBase* pSlotItem) override;
};
class SmEditController final : public SfxControllerItem
@@ -148,7 +148,7 @@ class SmEditController final : public SfxControllerItem
public:
SmEditController(SmEditWindow &, sal_uInt16, SfxBindings & );
- virtual void StateChanged(sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem) override;
+ virtual void StateChanged(sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const Item::ItemBase* pSlotItem) override;
};
class SmCmdBoxWindow : public SfxDockingWindow
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx
index c4b1f921e8bf..229fd75bf873 100644
--- a/starmath/source/view.cxx
+++ b/starmath/source/view.cxx
@@ -632,11 +632,11 @@ SmGraphicController::SmGraphicController(SmGraphicWindow &rSmGraphic,
}
-void SmGraphicController::StateChanged(sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem)
+void SmGraphicController::StateChanged(sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const Item::ItemBase* pSlotItem)
{
rGraphic.SetTotalSize();
rGraphic.Invalidate();
- SfxControllerItem::StateChanged (nSID, eState, pState, rSlotItem);
+ SfxControllerItem::StateChanged (nSID, eState, pState, pSlotItem);
}
@@ -653,13 +653,13 @@ SmEditController::SmEditController(SmEditWindow &rSmEdit,
-void SmEditController::StateChanged(sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem)
+void SmEditController::StateChanged(sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const Item::ItemBase* pSlotItem)
{
const SfxStringItem *pItem = dynamic_cast<const SfxStringItem*>( pState);
if ((pItem != nullptr) && (rEdit.GetText() != pItem->GetValue()))
rEdit.SetText(pItem->GetValue());
- SfxControllerItem::StateChanged (nSID, eState, pState, rSlotItem);
+ SfxControllerItem::StateChanged (nSID, eState, pState, pSlotItem);
}
/**************************************************************************/
diff --git a/svx/source/dialog/_bmpmask.cxx b/svx/source/dialog/_bmpmask.cxx
index d79c39de2cf2..77e166575c89 100644
--- a/svx/source/dialog/_bmpmask.cxx
+++ b/svx/source/dialog/_bmpmask.cxx
@@ -327,7 +327,7 @@ SvxBmpMaskSelectItem::SvxBmpMaskSelectItem( SvxBmpMask& rMask,
}
void SvxBmpMaskSelectItem::StateChanged( sal_uInt16 nSID, SfxItemState /*eState*/,
- const SfxPoolItem* pItem, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/ )
+ const SfxPoolItem* pItem, const Item::ItemBase* /*pSlotItem*/ )
{
if ( ( nSID == SID_BMPMASK_EXEC ) && pItem )
{
diff --git a/svx/source/dialog/_contdlg.cxx b/svx/source/dialog/_contdlg.cxx
index 704cebbeb8e7..3aa1823cdf81 100644
--- a/svx/source/dialog/_contdlg.cxx
+++ b/svx/source/dialog/_contdlg.cxx
@@ -51,7 +51,7 @@ SvxContourDlgItem::SvxContourDlgItem( SvxSuperContourDlg& rContourDlg, SfxBindin
{
}
-void SvxContourDlgItem::StateChanged( sal_uInt16 nSID, SfxItemState /*eState*/, const SfxPoolItem* pItem, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/)
+void SvxContourDlgItem::StateChanged( sal_uInt16 nSID, SfxItemState /*eState*/, const SfxPoolItem* pItem, const Item::ItemBase* /*pSlotItem*/)
{
if ( pItem && ( SID_CONTOUR_EXEC == nSID ) )
{
diff --git a/svx/source/dialog/contimp.hxx b/svx/source/dialog/contimp.hxx
index f0d095f8dc4e..481f746d109e 100644
--- a/svx/source/dialog/contimp.hxx
+++ b/svx/source/dialog/contimp.hxx
@@ -33,7 +33,7 @@ class SvxContourDlgItem : public SfxControllerItem
protected:
- virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const Item::ItemBase* pSlotItem ) override;
public:
diff --git a/svx/source/dialog/fontwork.cxx b/svx/source/dialog/fontwork.cxx
index dfe397314629..7ac8c197485e 100644
--- a/svx/source/dialog/fontwork.cxx
+++ b/svx/source/dialog/fontwork.cxx
@@ -65,7 +65,7 @@ SvxFontWorkControllerItem::SvxFontWorkControllerItem
// StateChanged method for FontWork items
void SvxFontWorkControllerItem::StateChanged( sal_uInt16 /*nSID*/, SfxItemState /*eState*/,
- const SfxPoolItem* pItem, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/ )
+ const SfxPoolItem* pItem, const Item::ItemBase* /*pSlotItem*/ )
{
switch ( GetId() )
{
diff --git a/svx/source/dialog/imapdlg.cxx b/svx/source/dialog/imapdlg.cxx
index 21cfd9fcdd36..ae3b76739920 100644
--- a/svx/source/dialog/imapdlg.cxx
+++ b/svx/source/dialog/imapdlg.cxx
@@ -73,7 +73,7 @@ SvxIMapDlgItem::SvxIMapDlgItem( SvxIMapDlg& rIMapDlg, SfxBindings& rBindings ) :
}
void SvxIMapDlgItem::StateChanged( sal_uInt16 nSID, SfxItemState /*eState*/,
- const SfxPoolItem* pItem, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/ )
+ const SfxPoolItem* pItem, const Item::ItemBase* /*pSlotItem*/ )
{
if ( ( nSID == SID_IMAP_EXEC ) && pItem )
{
diff --git a/svx/source/dialog/rlrcitem.cxx b/svx/source/dialog/rlrcitem.cxx
index 18862816a5c8..87636655243f 100644
--- a/svx/source/dialog/rlrcitem.cxx
+++ b/svx/source/dialog/rlrcitem.cxx
@@ -40,7 +40,7 @@ SvxRulerItem::SvxRulerItem(sal_uInt16 _nId, SvxRuler &rRul, SfxBindings &rBindin
void SvxRulerItem::StateChanged( sal_uInt16 nSID, SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/)
+ const SfxPoolItem* pState, const Item::ItemBase* /*pSlotItem*/)
{
// SfxItemState::DONTCARE => pState == -1 => PTR_CAST buff
if ( eState != SfxItemState::DEFAULT )
diff --git a/svx/source/dialog/rlrcitem.hxx b/svx/source/dialog/rlrcitem.hxx
index ba222f2d82bb..537c91af592a 100644
--- a/svx/source/dialog/rlrcitem.hxx
+++ b/svx/source/dialog/rlrcitem.hxx
@@ -30,7 +30,7 @@ private:
protected:
virtual void StateChanged( sal_uInt16,
- SfxItemState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ SfxItemState, const SfxPoolItem* pState, const Item::ItemBase* pSlotItem ) override;
public:
SvxRulerItem( sal_uInt16 nId, SvxRuler&, SfxBindings& );
diff --git a/svx/source/dialog/srchctrl.cxx b/svx/source/dialog/srchctrl.cxx
index 88e8a320e1ea..dbcba8679725 100644
--- a/svx/source/dialog/srchctrl.cxx
+++ b/svx/source/dialog/srchctrl.cxx
@@ -40,7 +40,7 @@ SvxSearchController::SvxSearchController
void SvxSearchController::StateChanged( sal_uInt16 nSID, SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/ )
+ const SfxPoolItem* pState, const Item::ItemBase* /*pSlotItem*/ )
{
if ( SfxItemState::DEFAULT == eState )
{
diff --git a/svx/source/dialog/srchctrl.hxx b/svx/source/dialog/srchctrl.hxx
index a4edcbb0cd87..fdc5991f50e8 100644
--- a/svx/source/dialog/srchctrl.hxx
+++ b/svx/source/dialog/srchctrl.hxx
@@ -27,7 +27,7 @@ class SvxSearchController : public SfxControllerItem
SvxSearchDialog& rSrchDlg;
protected:
- virtual void StateChanged( sal_uInt16, SfxItemState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ virtual void StateChanged( sal_uInt16, SfxItemState, const SfxPoolItem* pState, const Item::ItemBase* pSlotItem ) override;
public:
SvxSearchController( sal_uInt16 nId, SfxBindings& rBnd, SvxSearchDialog& rDlg );
diff --git a/svx/source/engine3d/float3d.cxx b/svx/source/engine3d/float3d.cxx
index 7fd395369e93..9ed2c3b8ef52 100644
--- a/svx/source/engine3d/float3d.cxx
+++ b/svx/source/engine3d/float3d.cxx
@@ -2924,7 +2924,7 @@ Svx3DCtrlItem::Svx3DCtrlItem( sal_uInt16 _nId,
void Svx3DCtrlItem::StateChanged( sal_uInt16 /*nSId*/,
- SfxItemState /*eState*/, const SfxPoolItem* /*pItem*/, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/ )
+ SfxItemState /*eState*/, const SfxPoolItem* /*pItem*/, const Item::ItemBase* /*pSlotItem*/ )
{
}
@@ -2936,7 +2936,7 @@ SvxConvertTo3DItem::SvxConvertTo3DItem(sal_uInt16 _nId, SfxBindings* _pBindings)
{
}
-void SvxConvertTo3DItem::StateChanged(sal_uInt16 /*_nId*/, SfxItemState eState, const SfxPoolItem* /*pState*/, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/)
+void SvxConvertTo3DItem::StateChanged(sal_uInt16 /*_nId*/, SfxItemState eState, const SfxPoolItem* /*pState*/, const Item::ItemBase* /*pSlotItem*/)
{
bool bNewState = (eState != SfxItemState::DISABLED);
if(bNewState != bState)
diff --git a/svx/source/form/datanavi.cxx b/svx/source/form/datanavi.cxx
index f4ac72812a71..746a6d03db4b 100644
--- a/svx/source/form/datanavi.cxx
+++ b/svx/source/form/datanavi.cxx
@@ -2202,7 +2202,7 @@ namespace svxform
SfxDockingWindow::dispose();
}
- void DataNavigator::StateChanged( sal_uInt16 , SfxItemState , const SfxPoolItem*, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/)
+ void DataNavigator::StateChanged( sal_uInt16 , SfxItemState , const SfxPoolItem*, const Item::ItemBase* /*pSlotItem*/)
{
}
diff --git a/svx/source/form/filtnav.cxx b/svx/source/form/filtnav.cxx
index 46052649b657..a4178a0b3248 100644
--- a/svx/source/form/filtnav.cxx
+++ b/svx/source/form/filtnav.cxx
@@ -1822,7 +1822,7 @@ void FmFilterNavigatorWin::UpdateContent(FmFormShell const * pFormShell)
}
-void FmFilterNavigatorWin::StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/)
+void FmFilterNavigatorWin::StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const Item::ItemBase* /*pSlotItem*/)
{
if( !pState || SID_FM_FILTER_NAVIGATOR_CONTROL != nSID )
return;
diff --git a/svx/source/form/fmPropBrw.cxx b/svx/source/form/fmPropBrw.cxx
index 75da1f54fd89..f726646a3324 100644
--- a/svx/source/form/fmPropBrw.cxx
+++ b/svx/source/form/fmPropBrw.cxx
@@ -617,7 +617,7 @@ void FmPropBrw::impl_ensurePropertyBrowser_nothrow( FmFormShell* _pFormShell )
}
-void FmPropBrw::StateChanged(sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/)
+void FmPropBrw::StateChanged(sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const Item::ItemBase* /*pSlotItem*/)
{
if (!pState || SID_FM_PROPERTY_CONTROL != nSID)
return;
diff --git a/svx/source/form/fmexpl.cxx b/svx/source/form/fmexpl.cxx
index 53db16fa2c12..222f2a7b320c 100644
--- a/svx/source/form/fmexpl.cxx
+++ b/svx/source/form/fmexpl.cxx
@@ -488,7 +488,7 @@ namespace svxform
}
- void NavigatorFrame::StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/)
+ void NavigatorFrame::StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const Item::ItemBase* /*pSlotItem*/)
{
if( !pState || SID_FM_FMEXPLORER_CONTROL != nSID )
return;
diff --git a/svx/source/form/tabwin.cxx b/svx/source/form/tabwin.cxx
index 9840e2b84efe..151be2e973ab 100644
--- a/svx/source/form/tabwin.cxx
+++ b/svx/source/form/tabwin.cxx
@@ -265,7 +265,7 @@ void FmFieldWin::_propertyChanged(const css::beans::PropertyChangeEvent& evt)
}
-void FmFieldWin::StateChanged(sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/)
+void FmFieldWin::StateChanged(sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const Item::ItemBase* /*pSlotItem*/)
{
if (!pState || SID_FM_FIELDS_CONTROL != nSID)
return;
diff --git a/svx/source/form/tbxform.cxx b/svx/source/form/tbxform.cxx
index b35cb26dedb5..7ec653681e91 100644
--- a/svx/source/form/tbxform.cxx
+++ b/svx/source/form/tbxform.cxx
@@ -108,7 +108,7 @@ SvxFmTbxCtlAbsRec::~SvxFmTbxCtlAbsRec()
}
-void SvxFmTbxCtlAbsRec::StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem)
+void SvxFmTbxCtlAbsRec::StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const Item::ItemBase* pSlotItem)
{
sal_uInt16 nId = GetId();
ToolBox* pToolBox = &GetToolBox();
@@ -130,7 +130,7 @@ void SvxFmTbxCtlAbsRec::StateChanged( sal_uInt16 nSID, SfxItemState eState, cons
// enabling/disabling of the window
pToolBox->EnableItem(nId, bEnable);
- SfxToolBoxControl::StateChanged( nSID, eState, pState, rSlotItem );
+ SfxToolBoxControl::StateChanged( nSID, eState, pState, pSlotItem );
}
VclPtr<vcl::Window> SvxFmTbxCtlAbsRec::CreateItemWindow( vcl::Window* pParent )
@@ -215,7 +215,7 @@ VclPtr<vcl::Window> SvxFmTbxCtlRecTotal::CreateItemWindow( vcl::Window* pParent
}
-void SvxFmTbxCtlRecTotal::StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem)
+void SvxFmTbxCtlRecTotal::StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const Item::ItemBase* pSlotItem)
{
// setting the FixedText
@@ -232,7 +232,7 @@ void SvxFmTbxCtlRecTotal::StateChanged( sal_uInt16 nSID, SfxItemState eState, co
pFixedText->Update();
pFixedText->Flush();
- SfxToolBoxControl::StateChanged( nSID, eState, pState, rSlotItem );
+ SfxToolBoxControl::StateChanged( nSID, eState, pState, pSlotItem );
}
SFX_IMPL_TOOLBOX_CONTROL( SvxFmTbxNextRec, SfxBoolItem );
diff --git a/svx/source/inc/datanavi.hxx b/svx/source/inc/datanavi.hxx
index 3e69a8c00f48..398fd4af3f29 100644
--- a/svx/source/inc/datanavi.hxx
+++ b/svx/source/inc/datanavi.hxx
@@ -367,7 +367,7 @@ namespace svxform
using SfxDockingWindow::StateChanged;
void StateChanged( sal_uInt16 nSID, SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ const SfxPoolItem* pState, const Item::ItemBase* pSlotItem ) override;
};
class SVX_DLLPUBLIC DataNavigatorManager : public SfxChildWindow
diff --git a/svx/source/inc/filtnav.hxx b/svx/source/inc/filtnav.hxx
index e82604a25f34..3b14e43a0dda 100644
--- a/svx/source/inc/filtnav.hxx
+++ b/svx/source/inc/filtnav.hxx
@@ -315,7 +315,7 @@ public:
virtual void dispose() override;
void UpdateContent( FmFormShell const * pFormShell );
- void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const Item::ItemBase* pSlotItem ) override;
void FillInfo( SfxChildWinInfo& rInfo ) const override;
using SfxDockingWindow::StateChanged;
diff --git a/svx/source/inc/fmPropBrw.hxx b/svx/source/inc/fmPropBrw.hxx
index b7feb94c0e96..a10c7c3d82e8 100644
--- a/svx/source/inc/fmPropBrw.hxx
+++ b/svx/source/inc/fmPropBrw.hxx
@@ -61,7 +61,7 @@ class FmPropBrw final : public SfxFloatingWindow, public SfxControllerItem
css::uno::Reference< css::awt::XWindow >
m_xFrameContainerWindow;
- virtual void StateChanged(sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem) override;
+ virtual void StateChanged(sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const Item::ItemBase* pSlotItem) override;
virtual void FillInfo( SfxChildWinInfo& rInfo ) const override;
virtual bool Close() override;
diff --git a/svx/source/inc/fmexpl.hxx b/svx/source/inc/fmexpl.hxx
index 474975af4bc5..79a5b7be7ea7 100644
--- a/svx/source/inc/fmexpl.hxx
+++ b/svx/source/inc/fmexpl.hxx
@@ -529,7 +529,7 @@ namespace svxform
virtual void dispose() override;
void UpdateContent( FmFormShell* pFormShell );
- void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const Item::ItemBase* pSlotItem ) override;
void FillInfo( SfxChildWinInfo& rInfo ) const override;
};
diff --git a/svx/source/inc/tabwin.hxx b/svx/source/inc/tabwin.hxx
index c95fbdc63d71..93c57ec94ef0 100644
--- a/svx/source/inc/tabwin.hxx
+++ b/svx/source/inc/tabwin.hxx
@@ -87,7 +87,7 @@ public:
virtual void GetFocus() override;
virtual bool PreNotify( NotifyEvent& _rNEvt ) override;
virtual void StateChanged(sal_uInt16 nSID, SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem) override;
+ const SfxPoolItem* pState, const Item::ItemBase* pSlotItem) override;
void UpdateContent(FmFormShell const *);
void UpdateContent(const css::uno::Reference< css::form::XForm > &);
diff --git a/svx/source/inc/tbxform.hxx b/svx/source/inc/tbxform.hxx
index 958010fbca46..a8d8a3d8d619 100644
--- a/svx/source/inc/tbxform.hxx
+++ b/svx/source/inc/tbxform.hxx
@@ -50,7 +50,7 @@ public:
virtual VclPtr<vcl::Window> CreateItemWindow( vcl::Window* pParent ) override;
virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ const SfxPoolItem* pState, const Item::ItemBase* pSlotItem ) override;
};
@@ -90,7 +90,7 @@ public:
virtual VclPtr<vcl::Window> CreateItemWindow( vcl::Window* pParent ) override;
virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ const SfxPoolItem* pState, const Item::ItemBase* pSlotItem ) override;
};
diff --git a/svx/source/mnuctrls/clipboardctl.cxx b/svx/source/mnuctrls/clipboardctl.cxx
index 403a43ab13e6..9d566d36f753 100644
--- a/svx/source/mnuctrls/clipboardctl.cxx
+++ b/svx/source/mnuctrls/clipboardctl.cxx
@@ -106,7 +106,7 @@ VclPtr<SfxPopupWindow> SvxClipBoardControl::CreatePopupWindow()
}
-void SvxClipBoardControl::StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/)
+void SvxClipBoardControl::StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const Item::ItemBase* /*pSlotItem*/)
{
if ( SID_CLIPBOARD_FORMAT_ITEMS == nSID )
{
diff --git a/svx/source/sidebar/paragraph/ParaSpacingControl.cxx b/svx/source/sidebar/paragraph/ParaSpacingControl.cxx
index 469e7a4380d4..8fd471b7db19 100644
--- a/svx/source/sidebar/paragraph/ParaSpacingControl.cxx
+++ b/svx/source/sidebar/paragraph/ParaSpacingControl.cxx
@@ -51,7 +51,7 @@ ParaULSpacingControl::~ParaULSpacingControl()
}
void ParaULSpacingControl::StateChanged(sal_uInt16 nSID, SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/)
+ const SfxPoolItem* pState, const Item::ItemBase* /*pSlotItem*/)
{
sal_uInt16 nId = GetId();
ToolBox& rTbx = GetToolBox();
@@ -132,7 +132,7 @@ void SAL_CALL ParaLRSpacingControl::dispose()
}
void ParaLRSpacingControl::StateChanged(sal_uInt16 nSID, SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/)
+ const SfxPoolItem* pState, const Item::ItemBase* /*pSlotItem*/)
{
sal_uInt16 nId = GetId();
ToolBox& rTbx = GetToolBox();
diff --git a/svx/source/stbctrls/insctrl.cxx b/svx/source/stbctrls/insctrl.cxx
index 49f54ad3a8cf..fdf7aaa90f24 100644
--- a/svx/source/stbctrls/insctrl.cxx
+++ b/svx/source/stbctrls/insctrl.cxx
@@ -44,7 +44,7 @@ SvxInsertStatusBarControl::~SvxInsertStatusBarControl()
}
void SvxInsertStatusBarControl::StateChanged( sal_uInt16 , SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/ )
+ const SfxPoolItem* pState, const Item::ItemBase* /*pSlotItem*/ )
{
if ( SfxItemState::DEFAULT != eState )
GetStatusBar().SetItemText( GetId(), "" );
diff --git a/svx/source/stbctrls/modctrl.cxx b/svx/source/stbctrls/modctrl.cxx
index 22233c55ef8b..4547aca0001f 100644
--- a/svx/source/stbctrls/modctrl.cxx
+++ b/svx/source/stbctrls/modctrl.cxx
@@ -75,7 +75,7 @@ SvxModifyControl::SvxModifyControl( sal_uInt16 _nSlotId, sal_uInt16 _nId, Status
void SvxModifyControl::StateChanged( sal_uInt16, SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/ )
+ const SfxPoolItem* pState, const Item::ItemBase* /*pSlotItem*/ )
{
if ( SfxItemState::DEFAULT != eState )
return;
diff --git a/svx/source/stbctrls/pszctrl.cxx b/svx/source/stbctrls/pszctrl.cxx
index 054de6c7f533..260c38981462 100644
--- a/svx/source/stbctrls/pszctrl.cxx
+++ b/svx/source/stbctrls/pszctrl.cxx
@@ -261,7 +261,7 @@ SvxPosSizeStatusBarControl::~SvxPosSizeStatusBarControl()
*/
void SvxPosSizeStatusBarControl::StateChanged( sal_uInt16 nSID, SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/ )
+ const SfxPoolItem* pState, const Item::ItemBase* /*pSlotItem*/ )
{
// Because the combi-controller, always sets the current Id as HelpId
// first clean the cached HelpText
diff --git a/svx/source/stbctrls/selctrl.cxx b/svx/source/stbctrls/selctrl.cxx
index 5f3983e6e431..4c59caf30d5e 100644
--- a/svx/source/stbctrls/selctrl.cxx
+++ b/svx/source/stbctrls/selctrl.cxx
@@ -90,7 +90,7 @@ SvxSelectionModeControl::SvxSelectionModeControl( sal_uInt16 _nSlotId,
}
void SvxSelectionModeControl::StateChanged( sal_uInt16, SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/ )
+ const SfxPoolItem* pState, const Item::ItemBase* /*pSlotItem*/ )
{
if ( SfxItemState::DEFAULT == eState )
{
diff --git a/svx/source/stbctrls/xmlsecctrl.cxx b/svx/source/stbctrls/xmlsecctrl.cxx
index 76936bd67b91..3749b9db0732 100644
--- a/svx/source/stbctrls/xmlsecctrl.cxx
+++ b/svx/source/stbctrls/xmlsecctrl.cxx
@@ -70,7 +70,7 @@ XmlSecStatusBarControl::~XmlSecStatusBarControl()
{
}
-void XmlSecStatusBarControl::StateChanged( sal_uInt16, SfxItemState eState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/)
+void XmlSecStatusBarControl::StateChanged( sal_uInt16, SfxItemState eState, const SfxPoolItem* pState, const Item::ItemBase* /*pSlotItem*/)
{
if( SfxItemState::DEFAULT != eState )
{
diff --git a/svx/source/stbctrls/zoomctrl.cxx b/svx/source/stbctrls/zoomctrl.cxx
index 6c60ef61738a..55a1b6faa2da 100644
--- a/svx/source/stbctrls/zoomctrl.cxx
+++ b/svx/source/stbctrls/zoomctrl.cxx
@@ -114,7 +114,7 @@ SvxZoomStatusBarControl::SvxZoomStatusBarControl( sal_uInt16 _nSlotId,
}
void SvxZoomStatusBarControl::StateChanged( sal_uInt16, SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/ )
+ const SfxPoolItem* pState, const Item::ItemBase* /*pSlotItem*/ )
{
if( SfxItemState::DEFAULT != eState )
{
diff --git a/svx/source/stbctrls/zoomsliderctrl.cxx b/svx/source/stbctrls/zoomsliderctrl.cxx
index fb96f2c0459d..71071c70d444 100644
--- a/svx/source/stbctrls/zoomsliderctrl.cxx
+++ b/svx/source/stbctrls/zoomsliderctrl.cxx
@@ -164,7 +164,7 @@ SvxZoomSliderControl::~SvxZoomSliderControl()
{
}
-void SvxZoomSliderControl::StateChanged( sal_uInt16 /*nSID*/, SfxItemState eState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/)
+void SvxZoomSliderControl::StateChanged( sal_uInt16 /*nSID*/, SfxItemState eState, const SfxPoolItem* pState, const Item::ItemBase* /*pSlotItem*/)
{
if ( (SfxItemState::DEFAULT != eState) || pState->IsVoidItem() )
{
diff --git a/svx/source/tbxctrls/fillctrl.cxx b/svx/source/tbxctrls/fillctrl.cxx
index 4f2fbaa10f24..722746a26750 100644
--- a/svx/source/tbxctrls/fillctrl.cxx
+++ b/svx/source/tbxctrls/fillctrl.cxx
@@ -88,7 +88,7 @@ SvxFillToolBoxControl::~SvxFillToolBoxControl()
void SvxFillToolBoxControl::StateChanged(
sal_uInt16 nSID,
SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/)
+ const SfxPoolItem* pState, const Item::ItemBase* /*pSlotItem*/)
{
const bool bDisabled(SfxItemState::DISABLED == eState);
diff --git a/svx/source/tbxctrls/formatpaintbrushctrl.cxx b/svx/source/tbxctrls/formatpaintbrushctrl.cxx
index 33051bb72e00..f016b999712b 100644
--- a/svx/source/tbxctrls/formatpaintbrushctrl.cxx
+++ b/svx/source/tbxctrls/formatpaintbrushctrl.cxx
@@ -92,11 +92,11 @@ void FormatPaintBrushToolBoxControl::Select(sal_uInt16 /*nSelectModifier*/)
void FormatPaintBrushToolBoxControl::StateChanged( sal_uInt16 nSID, SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem )
+ const SfxPoolItem* pState, const Item::ItemBase* pSlotItem )
{
if( eState != SfxItemState::DEFAULT && eState != SfxItemState::SET )
m_bPersistentCopy = false;
- SfxToolBoxControl::StateChanged( nSID, eState, pState, rSlotItem );
+ SfxToolBoxControl::StateChanged( nSID, eState, pState, pSlotItem );
}
diff --git a/svx/source/tbxctrls/grafctrl.cxx b/svx/source/tbxctrls/grafctrl.cxx
index 1070baa0c2a5..58622d22d9d5 100644
--- a/svx/source/tbxctrls/grafctrl.cxx
+++ b/svx/source/tbxctrls/grafctrl.cxx
@@ -433,7 +433,7 @@ SvxGrafToolBoxControl::~SvxGrafToolBoxControl()
{
}
-void SvxGrafToolBoxControl::StateChanged( sal_uInt16, SfxItemState eState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/)
+void SvxGrafToolBoxControl::StateChanged( sal_uInt16, SfxItemState eState, const SfxPoolItem* pState, const Item::ItemBase* /*pSlotItem*/)
{
ImplGrafControl* pCtrl = static_cast<ImplGrafControl*>( GetToolBox().GetItemWindow( GetId() ) );
@@ -520,7 +520,7 @@ SvxGrafModeToolBoxControl::~SvxGrafModeToolBoxControl()
{
}
-void SvxGrafModeToolBoxControl::StateChanged( sal_uInt16, SfxItemState eState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/)
+void SvxGrafModeToolBoxControl::StateChanged( sal_uInt16, SfxItemState eState, const SfxPoolItem* pState, const Item::ItemBase* /*pSlotItem*/)
{
ImplGrafModeControl* pCtrl = static_cast<ImplGrafModeControl*>( GetToolBox().GetItemWindow( GetId() ) );
diff --git a/svx/source/tbxctrls/layctrl.cxx b/svx/source/tbxctrls/layctrl.cxx
index c6922cb51b22..567d790b1779 100644
--- a/svx/source/tbxctrls/layctrl.cxx
+++ b/svx/source/tbxctrls/layctrl.cxx
@@ -698,7 +698,7 @@ VclPtr<SfxPopupWindow> SvxTableToolBoxControl::CreatePopupWindow()
return nullptr;
}
-void SvxTableToolBoxControl::StateChanged( sal_uInt16, SfxItemState eState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/)
+void SvxTableToolBoxControl::StateChanged( sal_uInt16, SfxItemState eState, const SfxPoolItem* pState, const Item::ItemBase* /*pSlotItem*/)
{
if ( auto pUInt16Item = dynamic_cast<const SfxUInt16Item* >(pState) )
{
@@ -745,10 +745,10 @@ VclPtr<SfxPopupWindow> SvxColumnsToolBoxControl::CreatePopupWindow()
void SvxColumnsToolBoxControl::StateChanged( sal_uInt16 nSID,
SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem )
+ const SfxPoolItem* pState, const Item::ItemBase* pSlotItem )
{
bEnabled = SfxItemState::DISABLED != eState;
- SfxToolBoxControl::StateChanged(nSID, eState, pState, rSlotItem );
+ SfxToolBoxControl::StateChanged(nSID, eState, pState, pSlotItem );
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svx/source/tbxctrls/lboxctrl.cxx b/svx/source/tbxctrls/lboxctrl.cxx
index ce3de8873fec..c1f4a6fea5a8 100644
--- a/svx/source/tbxctrls/lboxctrl.cxx
+++ b/svx/source/tbxctrls/lboxctrl.cxx
@@ -188,7 +188,7 @@ SvxUndoRedoControl::~SvxUndoRedoControl()
}
void SvxUndoRedoControl::StateChanged(
- sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& /* rSlotItem */ )
+ sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const Item::ItemBase* /* pSlotItem */ )
{
if ( nSID == SID_UNDO || nSID == SID_REDO )
{
diff --git a/svx/source/tbxctrls/linectrl.cxx b/svx/source/tbxctrls/linectrl.cxx
index 9ac5e894b95c..bc175bb899e6 100644
--- a/svx/source/tbxctrls/linectrl.cxx
+++ b/svx/source/tbxctrls/linectrl.cxx
@@ -75,7 +75,7 @@ SvxLineStyleToolBoxControl::~SvxLineStyleToolBoxControl()
void SvxLineStyleToolBoxControl::StateChanged (
- sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& /* rSlotItem */ )
+ sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const Item::ItemBase* /* pSlotItem */ )
{
SvxLineBox* pBox = static_cast<SvxLineBox*>( GetToolBox().GetItemWindow( GetId() ) );
@@ -199,7 +199,7 @@ SvxLineWidthToolBoxControl::~SvxLineWidthToolBoxControl()
void SvxLineWidthToolBoxControl::StateChanged(
- sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& /* rSlotItem */ )
+ sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const Item::ItemBase* /* pSlotItem */ )
{
SvxMetricField* pFld = static_cast<SvxMetricField*>(
GetToolBox().GetItemWindow( GetId() ));
diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx
index 7f5bc578881c..98fd8d6b5079 100644
--- a/svx/source/tbxctrls/tbcontrl.cxx
+++ b/svx/source/tbxctrls/tbcontrl.cxx
@@ -651,7 +651,7 @@ class SfxStyleControllerItem_Impl : public SfxStatusListener
SvxStyleToolBoxControl& rTbxCtl );
protected:
- virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const Item::ItemBase* pSlotItem ) override;
private:
SvxStyleToolBoxControl& rControl;
@@ -2739,7 +2739,7 @@ SfxStyleControllerItem_Impl::SfxStyleControllerItem_Impl(
}
void SfxStyleControllerItem_Impl::StateChanged(
- sal_uInt16, SfxItemState eState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/ )
+ sal_uInt16, SfxItemState eState, const SfxPoolItem* pState, const Item::ItemBase* /*pSlotItem*/ )
{
switch ( GetId() )
{
@@ -3176,7 +3176,7 @@ IMPL_LINK_NOARG(SvxStyleToolBoxControl, VisibilityNotification, SvxStyleBox_Impl
}
void SvxStyleToolBoxControl::StateChanged(
- sal_uInt16 , SfxItemState eState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/ )
+ sal_uInt16 , SfxItemState eState, const SfxPoolItem* pState, const Item::ItemBase* /*pSlotItem*/ )
{
sal_uInt16 nId = GetId();
ToolBox& rTbx = GetToolBox();
@@ -3631,7 +3631,7 @@ SvxSimpleUndoRedoController::~SvxSimpleUndoRedoController()
{
}
-void SvxSimpleUndoRedoController::StateChanged( sal_uInt16, SfxItemState eState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/)
+void SvxSimpleUndoRedoController::StateChanged( sal_uInt16, SfxItemState eState, const SfxPoolItem* pState, const Item::ItemBase* /*pSlotItem*/)
{
const SfxStringItem* pItem = dynamic_cast<const SfxStringItem*>( pState );
ToolBox& rBox = GetToolBox();
diff --git a/svx/source/tbxctrls/tbxdrctl.cxx b/svx/source/tbxctrls/tbxdrctl.cxx
index a23bdf0364f5..72c743e42adb 100644
--- a/svx/source/tbxctrls/tbxdrctl.cxx
+++ b/svx/source/tbxctrls/tbxdrctl.cxx
@@ -61,10 +61,10 @@ void SAL_CALL SvxTbxCtlDraw::initialize( const css::uno::Sequence< css::uno::Any
void SvxTbxCtlDraw::StateChanged( sal_uInt16 nSID, SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem )
+ const SfxPoolItem* pState, const Item::ItemBase* pSlotItem )
{
GetToolBox().EnableItem( GetId(), ( eState != SfxItemState::DISABLED ) );
- SfxToolBoxControl::StateChanged( nSID, eState, pState, rSlotItem );
+ SfxToolBoxControl::StateChanged( nSID, eState, pState, pSlotItem );
Reference< XLayoutManager > xLayoutMgr = getLayoutManager();
if ( xLayoutMgr.is() )
diff --git a/svx/source/tbxctrls/verttexttbxctrl.cxx b/svx/source/tbxctrls/verttexttbxctrl.cxx
index 3392afd30ee1..0ac848796b8e 100644
--- a/svx/source/tbxctrls/verttexttbxctrl.cxx
+++ b/svx/source/tbxctrls/verttexttbxctrl.cxx
@@ -59,7 +59,7 @@ void SvxVertCTLTextTbxCtrl::initialize(const css::uno::Sequence<css::uno::Any>&
void SvxVertCTLTextTbxCtrl::StateChanged(
sal_uInt16 nSID,
SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem )
+ const SfxPoolItem* pState, const Item::ItemBase* pSlotItem )
{
SvtLanguageOptions aLangOptions;
bool bCalc = false;
@@ -70,7 +70,7 @@ void SvxVertCTLTextTbxCtrl::StateChanged(
bEnabled = aLangOptions.IsCTLFontEnabled();
else
{
- SfxToolBoxControl::StateChanged(nSID, eState, pState, rSlotItem);
+ SfxToolBoxControl::StateChanged(nSID, eState, pState, pSlotItem);
return;
}
diff --git a/sw/source/uibase/inc/bookctrl.hxx b/sw/source/uibase/inc/bookctrl.hxx
index 1a0ec36f7aec..b55f5847b97f 100644
--- a/sw/source/uibase/inc/bookctrl.hxx
+++ b/sw/source/uibase/inc/bookctrl.hxx
@@ -28,7 +28,7 @@ class SwBookmarkControl : public SfxStatusBarControl
public:
virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ const SfxPoolItem* pState, const Item::ItemBase* pSlotItem ) override;
virtual void Paint( const UserDrawEvent& rEvt ) override;
SFX_DECL_STATUSBAR_CONTROL();
diff --git a/sw/source/uibase/inc/navipi.hxx b/sw/source/uibase/inc/navipi.hxx
index e66e6432e29a..7e816f920aba 100644
--- a/sw/source/uibase/inc/navipi.hxx
+++ b/sw/source/uibase/inc/navipi.hxx
@@ -141,7 +141,7 @@ public:
void MoveOutline(SwOutlineNodes::size_type nSource, SwOutlineNodes::size_type nTarget, bool bWithCilds);
virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ const SfxPoolItem* pState, const Item::ItemBase* pSlotItem ) override;
virtual void StateChanged(StateChangedType nStateChange) override;
diff --git a/sw/source/uibase/inc/tmplctrl.hxx b/sw/source/uibase/inc/tmplctrl.hxx
index 0beb0ca6a32e..055a779afbf1 100644
--- a/sw/source/uibase/inc/tmplctrl.hxx
+++ b/sw/source/uibase/inc/tmplctrl.hxx
@@ -27,7 +27,7 @@ protected:
virtual void Command( const CommandEvent& rCEvt ) override;
public:
virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ const SfxPoolItem* pState, const Item::ItemBase* pSlotItem ) override;
virtual void Paint( const UserDrawEvent& rEvt ) override;
SFX_DECL_STATUSBAR_CONTROL();
diff --git a/sw/source/uibase/inc/viewlayoutctrl.hxx b/sw/source/uibase/inc/viewlayoutctrl.hxx
index b282fe529a94..e52c611ee15d 100644
--- a/sw/source/uibase/inc/viewlayoutctrl.hxx
+++ b/sw/source/uibase/inc/viewlayoutctrl.hxx
@@ -36,7 +36,7 @@ public:
SwViewLayoutControl( sal_uInt16 nSlotId, sal_uInt16 nId, StatusBar& rStb );
virtual ~SwViewLayoutControl() override;
- virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, const Item::ItemBase* pSlotItem ) override;
virtual void Paint( const UserDrawEvent& rEvt ) override;
virtual bool MouseButtonDown( const MouseEvent & ) override;
virtual bool MouseMove( const MouseEvent & ) override;
diff --git a/sw/source/uibase/inc/wordcountctrl.hxx b/sw/source/uibase/inc/wordcountctrl.hxx
index b17a208697f9..349702466dc2 100644
--- a/sw/source/uibase/inc/wordcountctrl.hxx
+++ b/sw/source/uibase/inc/wordcountctrl.hxx
@@ -28,7 +28,7 @@ public:
virtual ~SwWordCountStatusBarControl() override;
virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ const SfxPoolItem* pState, const Item::ItemBase* pSlotItem ) override;
};
diff --git a/sw/source/uibase/inc/workctrl.hxx b/sw/source/uibase/inc/workctrl.hxx
index 56d6f51c7c7f..c577685c8d7e 100644
--- a/sw/source/uibase/inc/workctrl.hxx
+++ b/sw/source/uibase/inc/workctrl.hxx
@@ -62,7 +62,7 @@ public:
virtual VclPtr<SfxPopupWindow> CreatePopupWindow() override;
virtual void StateChanged( sal_uInt16 nSID,
SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ const SfxPoolItem* pState, const Item::ItemBase* pSlotItem ) override;
DECL_STATIC_LINK(SwTbxAutoTextCtrl, PopupHdl, Menu*, bool);
};
@@ -118,7 +118,7 @@ public:
virtual void StateChanged( sal_uInt16 nSID,
SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ const SfxPoolItem* pState, const Item::ItemBase* pSlotItem ) override;
virtual VclPtr<vcl::Window> CreateItemWindow( vcl::Window *pParent ) override;
};
diff --git a/sw/source/uibase/inc/zoomctrl.hxx b/sw/source/uibase/inc/zoomctrl.hxx
index 301c055fac0a..e99ea80d0357 100644
--- a/sw/source/uibase/inc/zoomctrl.hxx
+++ b/sw/source/uibase/inc/zoomctrl.hxx
@@ -28,7 +28,7 @@ private:
public:
virtual void Command( const CommandEvent& rCEvt ) override;
virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& rSlotItem ) override;
+ const SfxPoolItem* pState, const Item::ItemBase* pSlotItem ) override;
virtual void Paint( const UserDrawEvent& rEvt ) override;
SFX_DECL_STATUSBAR_CONTROL();
diff --git a/sw/source/uibase/ribbar/workctrl.cxx b/sw/source/uibase/ribbar/workctrl.cxx
index ee2b568b65a0..9e0ef41c6596 100644
--- a/sw/source/uibase/ribbar/workctrl.cxx
+++ b/sw/source/uibase/ribbar/workctrl.cxx
@@ -133,7 +133,7 @@ VclPtr<SfxPopupWindow> SwTbxAutoTextCtrl::CreatePopupWindow()
void SwTbxAutoTextCtrl::StateChanged( sal_uInt16,
SfxItemState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/ )
+ const SfxPoolItem* pState, const Item::ItemBase* /*pSlotItem*/ )
{
GetToolBox().EnableItem( GetId(), (GetItemState(pState) != SfxItemState::DISABLED) );
}
@@ -581,7 +581,7 @@ SwPreviewZoomControl::~SwPreviewZoomControl()
void SwPreviewZoomControl::StateChanged( sal_uInt16 /*nSID*/,
SfxItemState eState,
- const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/ )
+ const SfxPoolItem* pState, const Item::ItemBase* /*pSlotItem*/ )
{
sal_uInt16 nId = GetId();
GetToolBox().EnableItem( nId, (GetItemState(pState) != SfxItemState::DISABLED) );
diff --git a/sw/source/uibase/utlui/bookctrl.cxx b/sw/source/uibase/utlui/bookctrl.cxx
index b16aa67f7e9e..62f68f14e425 100644
--- a/sw/source/uibase/utlui/bookctrl.cxx
+++ b/sw/source/uibase/utlui/bookctrl.cxx
@@ -75,7 +75,7 @@ SwBookmarkControl::~SwBookmarkControl()
}
void SwBookmarkControl::StateChanged(
- sal_uInt16 /*nSID*/, SfxItemState eState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/ )
+ sal_uInt16 /*nSID*/, SfxItemState eState, const SfxPoolItem* pState, const Item::ItemBase* /*pSlotItem*/ )
{
if( eState != SfxItemState::DEFAULT || pState->IsVoidItem() )
GetStatusBar().SetItemText( GetId(), OUString() );
diff --git a/sw/source/uibase/utlui/navipi.cxx b/sw/source/uibase/utlui/navipi.cxx
index 31a49d824e51..e7bae760eb5f 100644
--- a/sw/source/uibase/utlui/navipi.cxx
+++ b/sw/source/uibase/utlui/navipi.cxx
@@ -837,7 +837,7 @@ IMPL_LINK( SwNavigationPI, ClosePopupWindow, SfxPopupWindow *, pWindow, void )
}
void SwNavigationPI::StateChanged( sal_uInt16 nSID, SfxItemState /*eState*/,
- const SfxPoolItem* /*pState*/, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/ )
+ const SfxPoolItem* /*pState*/, const Item::ItemBase* /*pSlotItem*/ )
{
if(nSID == SID_DOCFULLNAME)
{
diff --git a/sw/source/uibase/utlui/tmplctrl.cxx b/sw/source/uibase/utlui/tmplctrl.cxx
index 8d6bc6737a46..4c1b3dae15b9 100644
--- a/sw/source/uibase/utlui/tmplctrl.cxx
+++ b/sw/source/uibase/utlui/tmplctrl.cxx
@@ -74,7 +74,7 @@ SwTemplateControl::~SwTemplateControl()
}
void SwTemplateControl::StateChanged(
- sal_uInt16 /*nSID*/, SfxItemState eState, const SfxPoolItem* pState, const std::unique_ptr<const Item::ItemBase>& /*rSlotItem*/ )
+ sal_uInt16 /*nSID*/, SfxItemState eState, const SfxPoolItem* pState, const Item::ItemBase* /*pSlotItem*/ )
{
const SfxStringItem* pItem = nullptr;
if (SfxItemState::DEFAULT == eState && (pItem = dynamic_cast<const SfxStringItem*>(pState)))
diff --git a/sw/source/uibase/utlui/viewlayoutctrl.cxx b/sw/source/uibase/utlui/viewlayoutctrl.cxx
index 2e3fa5a27b7f..cad7547b1b4e 100644
--- a/sw/source/uibase/utlui/viewlayoutctrl.cxx
+++ b/sw/source/uibase/utlui/viewlayoutctrl.cxx
... etc. - the rest is truncated
More information about the Libreoffice-commits
mailing list