summaryrefslogtreecommitdiff
path: root/cui/source/tabpages/labdlg.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-09-20 20:29:36 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-09-26 09:54:18 +0200
commita37e559ed123789f6bc8f7972242d6461ce692ab (patch)
tree7c6304b4541335b2bb706efda58b882132fe3819 /cui/source/tabpages/labdlg.cxx
parentb3f249c1351642be6f2774230ff80a6d20bd1401 (diff)
disinherit OWizardPage and SfxTabPage from vcl TabPage
Now that there's no need to support weld/unwelded mixes of pages in dialog any more. inherit from a BuilderPage which contains a Builder and Toplevel container BuilderPage Activate and Deactivate replace TabPage ActivatePage and DeactivatePage, allowing disambiguation wrt SfxTabPage ActivatePage and DeactivatePage. Change-Id: I5706e50fd92f712a25328ee9791e054bb9ad9812 Reviewed-on: https://gerrit.libreoffice.org/79317 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui/source/tabpages/labdlg.cxx')
-rw-r--r--cui/source/tabpages/labdlg.cxx17
1 files changed, 2 insertions, 15 deletions
diff --git a/cui/source/tabpages/labdlg.cxx b/cui/source/tabpages/labdlg.cxx
index 8b60ac8501d8..7480e488cbaa 100644
--- a/cui/source/tabpages/labdlg.cxx
+++ b/cui/source/tabpages/labdlg.cxx
@@ -134,14 +134,8 @@ SvxCaptionTabPage::SvxCaptionTabPage(TabPageParent pParent, const SfxItemSet& rI
SvxCaptionTabPage::~SvxCaptionTabPage()
{
- disposeOnce();
-}
-
-void SvxCaptionTabPage::dispose()
-{
m_xCT_CAPTTYPEWin.reset();
m_xCT_CAPTTYPE.reset();
- SfxTabPage::dispose();
}
void SvxCaptionTabPage::Construct()
@@ -338,10 +332,10 @@ void SvxCaptionTabPage::Reset( const SfxItemSet* )
SetupType_Impl( nCaptionType );
}
-VclPtr<SfxTabPage> SvxCaptionTabPage::Create(TabPageParent pParent,
+std::unique_ptr<SfxTabPage> SvxCaptionTabPage::Create(TabPageParent pParent,
const SfxItemSet* rOutAttrs)
{
- return VclPtr<SvxCaptionTabPage>::Create(pParent, *rOutAttrs);
+ return std::make_unique<SvxCaptionTabPage>(pParent, *rOutAttrs);
}
void SvxCaptionTabPage::SetupExtension_Impl( sal_uInt16 nType )
@@ -457,13 +451,6 @@ void SvxCaptionTabPage::SetupType_Impl( SdrCaptionType nType )
}
}
-void SvxCaptionTabPage::DataChanged( const DataChangedEvent& rDCEvt )
-{
- SfxTabPage::DataChanged( rDCEvt );
-
- if ( (rDCEvt.GetType() == DataChangedEventType::SETTINGS) && (rDCEvt.GetFlags() & AllSettingsFlags::STYLE) )
- FillValueSet();
-}
void SvxCaptionTabPage::FillValueSet()
{
m_xCT_CAPTTYPE->SetItemImage(BMP_CAPTTYPE_1, m_aBmpCapTypes[0] );