diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-02-12 16:16:59 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-04-26 15:33:47 +0200 |
commit | 61391c43f5808aadfa5fafb25a1bd7c2ae541b70 (patch) | |
tree | acbf5580b38ff5f11c7c1eabb61a6b34b675db41 /svx | |
parent | d9938d4d585ba4493050464e58dc9c785a1ee3b9 (diff) |
all ItemWindows are now welded
where native widgetery is hostable in a vcl toolbar or a native one
Change-Id: I942ada335bb4bd6ced0f3352f632e25787f68597
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88598
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/form/tbxform.cxx | 8 | ||||
-rw-r--r-- | svx/source/inc/tbxform.hxx | 8 | ||||
-rw-r--r-- | svx/source/sidebar/paragraph/ParaSpacingControl.cxx | 10 | ||||
-rw-r--r-- | svx/source/tbxctrls/fillctrl.cxx | 4 | ||||
-rw-r--r-- | svx/source/tbxctrls/grafctrl.cxx | 4 | ||||
-rw-r--r-- | svx/source/tbxctrls/linewidthctrl.cxx | 2 |
6 files changed, 18 insertions, 18 deletions
diff --git a/svx/source/form/tbxform.cxx b/svx/source/form/tbxform.cxx index 292030cb4793..035dfca802bf 100644 --- a/svx/source/form/tbxform.cxx +++ b/svx/source/form/tbxform.cxx @@ -140,7 +140,7 @@ void SvxFmTbxCtlAbsRec::StateChanged( sal_uInt16 nSID, SfxItemState eState, cons SfxToolBoxControl::StateChanged( nSID, eState,pState ); } -VclPtr<vcl::Window> SvxFmTbxCtlAbsRec::CreateItemWindow( vcl::Window* pParent ) +VclPtr<InterimItemWindow> SvxFmTbxCtlAbsRec::CreateItemWindow( vcl::Window* pParent ) { return VclPtrInstance<SvxFmAbsRecWin>(pParent, this); } @@ -197,7 +197,7 @@ LabelItemWindow::~LabelItemWindow() disposeOnce(); } -VclPtr<vcl::Window> SvxFmTbxCtlRecText::CreateItemWindow( vcl::Window* pParent ) +VclPtr<InterimItemWindow> SvxFmTbxCtlRecText::CreateItemWindow( vcl::Window* pParent ) { OUString aText(SvxResId(RID_STR_REC_TEXT)); VclPtrInstance<LabelItemWindow> xFixedText(pParent, aText); @@ -219,7 +219,7 @@ SvxFmTbxCtlRecFromText::~SvxFmTbxCtlRecFromText() { } -VclPtr<vcl::Window> SvxFmTbxCtlRecFromText::CreateItemWindow( vcl::Window* pParent ) +VclPtr<InterimItemWindow> SvxFmTbxCtlRecFromText::CreateItemWindow( vcl::Window* pParent ) { OUString aText(SvxResId(RID_STR_REC_FROM_TEXT)); VclPtrInstance<LabelItemWindow> xFixedText(pParent, aText); @@ -241,7 +241,7 @@ SvxFmTbxCtlRecTotal::~SvxFmTbxCtlRecTotal() { } -VclPtr<vcl::Window> SvxFmTbxCtlRecTotal::CreateItemWindow( vcl::Window* pParent ) +VclPtr<InterimItemWindow> SvxFmTbxCtlRecTotal::CreateItemWindow( vcl::Window* pParent ) { OUString const aSample("123456"); m_xFixedText.reset(VclPtr<LabelItemWindow>::Create(pParent, aSample)); diff --git a/svx/source/inc/tbxform.hxx b/svx/source/inc/tbxform.hxx index 394bf22a2547..4b0d1534076c 100644 --- a/svx/source/inc/tbxform.hxx +++ b/svx/source/inc/tbxform.hxx @@ -53,7 +53,7 @@ public: SvxFmTbxCtlAbsRec( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx ); virtual ~SvxFmTbxCtlAbsRec() override; - virtual VclPtr<vcl::Window> CreateItemWindow( vcl::Window* pParent ) override; + virtual VclPtr<InterimItemWindow> CreateItemWindow( vcl::Window* pParent ) override; virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState ) override; @@ -67,7 +67,7 @@ public: SvxFmTbxCtlRecText( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx ); virtual ~SvxFmTbxCtlRecText() override; - virtual VclPtr<vcl::Window> CreateItemWindow( vcl::Window* pParent ) override; + virtual VclPtr<InterimItemWindow> CreateItemWindow( vcl::Window* pParent ) override; }; class SvxFmTbxCtlRecFromText : public SfxToolBoxControl @@ -78,7 +78,7 @@ public: SvxFmTbxCtlRecFromText( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx ); virtual ~SvxFmTbxCtlRecFromText() override; - virtual VclPtr<vcl::Window> CreateItemWindow( vcl::Window* pParent ) override; + virtual VclPtr<InterimItemWindow> CreateItemWindow( vcl::Window* pParent ) override; }; class LabelItemWindow; @@ -93,7 +93,7 @@ public: SvxFmTbxCtlRecTotal( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx ); virtual ~SvxFmTbxCtlRecTotal() override; - virtual VclPtr<vcl::Window> CreateItemWindow( vcl::Window* pParent ) override; + virtual VclPtr<InterimItemWindow> CreateItemWindow( vcl::Window* pParent ) override; virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState ) override; }; diff --git a/svx/source/sidebar/paragraph/ParaSpacingControl.cxx b/svx/source/sidebar/paragraph/ParaSpacingControl.cxx index d7c0b3538dd0..118d1401083f 100644 --- a/svx/source/sidebar/paragraph/ParaSpacingControl.cxx +++ b/svx/source/sidebar/paragraph/ParaSpacingControl.cxx @@ -87,7 +87,7 @@ ParaAboveSpacingControl::ParaAboveSpacingControl(sal_uInt16 nSlotId, sal_uInt16 { } -VclPtr<vcl::Window> ParaAboveSpacingControl::CreateItemWindow(vcl::Window* pParent) +VclPtr<InterimItemWindow> ParaAboveSpacingControl::CreateItemWindow(vcl::Window* pParent) { VclPtr<ParaAboveSpacingWindow> pWindow = VclPtr<ParaAboveSpacingWindow>::Create(pParent); pWindow->Show(); @@ -102,7 +102,7 @@ ParaBelowSpacingControl::ParaBelowSpacingControl(sal_uInt16 nSlotId, sal_uInt16 { } -VclPtr<vcl::Window> ParaBelowSpacingControl::CreateItemWindow(vcl::Window* pParent) +VclPtr<InterimItemWindow> ParaBelowSpacingControl::CreateItemWindow(vcl::Window* pParent) { VclPtr<ParaBelowSpacingWindow> pWindow = VclPtr<ParaBelowSpacingWindow>::Create(pParent); pWindow->Show(); @@ -216,7 +216,7 @@ ParaLeftSpacingControl::ParaLeftSpacingControl(sal_uInt16 nSlotId, sal_uInt16 nI { } -VclPtr<vcl::Window> ParaLeftSpacingControl::CreateItemWindow(vcl::Window* pParent) +VclPtr<InterimItemWindow> ParaLeftSpacingControl::CreateItemWindow(vcl::Window* pParent) { VclPtr<ParaLeftSpacingWindow> pWindow = VclPtr<ParaLeftSpacingWindow>::Create(pParent); pWindow->Show(); @@ -231,7 +231,7 @@ ParaRightSpacingControl::ParaRightSpacingControl(sal_uInt16 nSlotId, sal_uInt16 { } -VclPtr<vcl::Window> ParaRightSpacingControl::CreateItemWindow(vcl::Window* pParent) +VclPtr<InterimItemWindow> ParaRightSpacingControl::CreateItemWindow(vcl::Window* pParent) { VclPtr<ParaRightSpacingWindow> pWindow = VclPtr<ParaRightSpacingWindow>::Create(pParent); pWindow->Show(); @@ -246,7 +246,7 @@ ParaFirstLineSpacingControl::ParaFirstLineSpacingControl(sal_uInt16 nSlotId, sal { } -VclPtr<vcl::Window> ParaFirstLineSpacingControl::CreateItemWindow(vcl::Window* pParent) +VclPtr<InterimItemWindow> ParaFirstLineSpacingControl::CreateItemWindow(vcl::Window* pParent) { VclPtr<ParaFirstLineSpacingWindow> pWindow = VclPtr<ParaFirstLineSpacingWindow>::Create(pParent); pWindow->Show(); diff --git a/svx/source/tbxctrls/fillctrl.cxx b/svx/source/tbxctrls/fillctrl.cxx index 8b1339ad3e7b..588e77f07439 100644 --- a/svx/source/tbxctrls/fillctrl.cxx +++ b/svx/source/tbxctrls/fillctrl.cxx @@ -537,7 +537,7 @@ void SvxFillToolBoxControl::Update() } -VclPtr<vcl::Window> SvxFillToolBoxControl::CreateItemWindow(vcl::Window *pParent) +VclPtr<InterimItemWindow> SvxFillToolBoxControl::CreateItemWindow(vcl::Window *pParent) { if(GetSlotId() == SID_ATTR_FILL_STYLE) { @@ -553,7 +553,7 @@ VclPtr<vcl::Window> SvxFillToolBoxControl::CreateItemWindow(vcl::Window *pParent return mxFillControl; } - return VclPtr<vcl::Window>(); + return VclPtr<InterimItemWindow>(); } FillControl::FillControl(vcl::Window* pParent, const css::uno::Reference<css::frame::XFrame>& rFrame) diff --git a/svx/source/tbxctrls/grafctrl.cxx b/svx/source/tbxctrls/grafctrl.cxx index e073dcf60028..8f81f01ede64 100644 --- a/svx/source/tbxctrls/grafctrl.cxx +++ b/svx/source/tbxctrls/grafctrl.cxx @@ -417,7 +417,7 @@ void SvxGrafToolBoxControl::StateChanged( sal_uInt16, SfxItemState eState, const } } -VclPtr<vcl::Window> SvxGrafToolBoxControl::CreateItemWindow( vcl::Window *pParent ) +VclPtr<InterimItemWindow> SvxGrafToolBoxControl::CreateItemWindow( vcl::Window *pParent ) { return VclPtr<ImplGrafControl>::Create( pParent, m_aCommandURL, m_xFrame ).get(); } @@ -504,7 +504,7 @@ void SvxGrafModeToolBoxControl::StateChanged( sal_uInt16, SfxItemState eState, c } } -VclPtr<vcl::Window> SvxGrafModeToolBoxControl::CreateItemWindow( vcl::Window *pParent ) +VclPtr<InterimItemWindow> SvxGrafModeToolBoxControl::CreateItemWindow( vcl::Window *pParent ) { return VclPtr<ImplGrafModeControl>::Create( pParent, m_xFrame ).get(); } diff --git a/svx/source/tbxctrls/linewidthctrl.cxx b/svx/source/tbxctrls/linewidthctrl.cxx index fb20d71ce2f7..90d2b1299917 100644 --- a/svx/source/tbxctrls/linewidthctrl.cxx +++ b/svx/source/tbxctrls/linewidthctrl.cxx @@ -84,7 +84,7 @@ void SvxLineWidthToolBoxControl::StateChanged( } } -VclPtr<vcl::Window> SvxLineWidthToolBoxControl::CreateItemWindow(vcl::Window *pParent) +VclPtr<InterimItemWindow> SvxLineWidthToolBoxControl::CreateItemWindow(vcl::Window *pParent) { VclPtr<SvxMetricField> pWindow = VclPtr<SvxMetricField>::Create(pParent, m_xFrame); pWindow->Show(); |