diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2016-06-05 15:15:56 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-06-06 07:02:20 +0000 |
commit | 11b4a6ddce31f173f10b703eb63fde2c88c0bc70 (patch) | |
tree | 5f635db51172fd421dffbcadfa021530634567cd /sw/source/ui | |
parent | 7d1b01070c330d45212cd69ea692b2263c23c2a6 (diff) |
Convert DeactivePage return code to scoped enum
Change-Id: Idd5372ad20fc6676864b31b3796f8b9bc0ad73dd
Reviewed-on: https://gerrit.libreoffice.org/25918
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sw/source/ui')
-rw-r--r-- | sw/source/ui/chrdlg/drpcps.cxx | 4 | ||||
-rw-r--r-- | sw/source/ui/chrdlg/swuiccoll.cxx | 4 | ||||
-rw-r--r-- | sw/source/ui/envelp/envfmt.cxx | 4 | ||||
-rw-r--r-- | sw/source/ui/envelp/envfmt.hxx | 2 | ||||
-rw-r--r-- | sw/source/ui/envelp/envlop1.cxx | 4 | ||||
-rw-r--r-- | sw/source/ui/envelp/envprt.cxx | 4 | ||||
-rw-r--r-- | sw/source/ui/envelp/envprt.hxx | 2 | ||||
-rw-r--r-- | sw/source/ui/envelp/label1.cxx | 16 | ||||
-rw-r--r-- | sw/source/ui/envelp/labfmt.cxx | 4 | ||||
-rw-r--r-- | sw/source/ui/envelp/labfmt.hxx | 2 | ||||
-rw-r--r-- | sw/source/ui/envelp/labprt.cxx | 4 | ||||
-rw-r--r-- | sw/source/ui/envelp/labprt.hxx | 2 | ||||
-rw-r--r-- | sw/source/ui/envelp/swuilabimp.hxx | 8 | ||||
-rw-r--r-- | sw/source/ui/frmdlg/column.cxx | 4 | ||||
-rw-r--r-- | sw/source/ui/frmdlg/frmpage.cxx | 8 | ||||
-rw-r--r-- | sw/source/ui/frmdlg/wrap.cxx | 4 | ||||
-rw-r--r-- | sw/source/ui/index/cnttab.cxx | 12 | ||||
-rw-r--r-- | sw/source/ui/misc/num.cxx | 4 | ||||
-rw-r--r-- | sw/source/ui/misc/outline.cxx | 4 | ||||
-rw-r--r-- | sw/source/ui/misc/pgfnote.cxx | 4 | ||||
-rw-r--r-- | sw/source/ui/misc/pggrid.cxx | 4 | ||||
-rw-r--r-- | sw/source/ui/table/tabledlg.cxx | 10 |
22 files changed, 57 insertions, 57 deletions
diff --git a/sw/source/ui/chrdlg/drpcps.cxx b/sw/source/ui/chrdlg/drpcps.cxx index 31fc121f6ebd..725c69b8e0d0 100644 --- a/sw/source/ui/chrdlg/drpcps.cxx +++ b/sw/source/ui/chrdlg/drpcps.cxx @@ -610,12 +610,12 @@ void SwDropCapsPage::dispose() SfxTabPage::dispose(); } -SfxTabPage::sfxpg SwDropCapsPage::DeactivatePage(SfxItemSet * _pSet) +DeactivateRC SwDropCapsPage::DeactivatePage(SfxItemSet * _pSet) { if (_pSet) FillSet(*_pSet); - return LEAVE_PAGE; + return DeactivateRC::LeavePage; } VclPtr<SfxTabPage> SwDropCapsPage::Create(vcl::Window *pParent, diff --git a/sw/source/ui/chrdlg/swuiccoll.cxx b/sw/source/ui/chrdlg/swuiccoll.cxx index a3d24473ad8b..30449f073e7c 100644 --- a/sw/source/ui/chrdlg/swuiccoll.cxx +++ b/sw/source/ui/chrdlg/swuiccoll.cxx @@ -145,12 +145,12 @@ void SwCondCollPage::dispose() SfxTabPage::dispose(); } -SfxTabPage::sfxpg SwCondCollPage::DeactivatePage(SfxItemSet * _pSet) +DeactivateRC SwCondCollPage::DeactivatePage(SfxItemSet * _pSet) { if( _pSet ) FillItemSet(_pSet); - return LEAVE_PAGE; + return DeactivateRC::LeavePage; } VclPtr<SfxTabPage> SwCondCollPage::Create(vcl::Window *pParent, const SfxItemSet *rSet) diff --git a/sw/source/ui/envelp/envfmt.cxx b/sw/source/ui/envelp/envfmt.cxx index d7cccbf14e8e..55e762c1dfbb 100644 --- a/sw/source/ui/envelp/envfmt.cxx +++ b/sw/source/ui/envelp/envfmt.cxx @@ -473,11 +473,11 @@ void SwEnvFormatPage::ActivatePage(const SfxItemSet& rSet) Reset(&aSet); } -SfxTabPage::sfxpg SwEnvFormatPage::DeactivatePage(SfxItemSet* _pSet) +DeactivateRC SwEnvFormatPage::DeactivatePage(SfxItemSet* _pSet) { if( _pSet ) FillItemSet(_pSet); - return SfxTabPage::LEAVE_PAGE; + return DeactivateRC::LeavePage; } void SwEnvFormatPage::FillItem(SwEnvItem& rItem) diff --git a/sw/source/ui/envelp/envfmt.hxx b/sw/source/ui/envelp/envfmt.hxx index 51a98ae6c716..ef2226613fca 100644 --- a/sw/source/ui/envelp/envfmt.hxx +++ b/sw/source/ui/envelp/envfmt.hxx @@ -65,7 +65,7 @@ public: static VclPtr<SfxTabPage> Create(vcl::Window* pParent, const SfxItemSet* rSet); virtual void ActivatePage(const SfxItemSet& rSet) override; - virtual sfxpg DeactivatePage(SfxItemSet* pSet = nullptr) override; + virtual DeactivateRC DeactivatePage(SfxItemSet* pSet = nullptr) override; void FillItem(SwEnvItem& rItem); virtual bool FillItemSet(SfxItemSet* rSet) override; virtual void Reset(const SfxItemSet* rSet) override; diff --git a/sw/source/ui/envelp/envlop1.cxx b/sw/source/ui/envelp/envlop1.cxx index 4aeb134907c4..41efae3a3dbd 100644 --- a/sw/source/ui/envelp/envlop1.cxx +++ b/sw/source/ui/envelp/envlop1.cxx @@ -328,12 +328,12 @@ void SwEnvPage::ActivatePage(const SfxItemSet& rSet) Reset(&aSet); } -SfxTabPage::sfxpg SwEnvPage::DeactivatePage(SfxItemSet* _pSet) +DeactivateRC SwEnvPage::DeactivatePage(SfxItemSet* _pSet) { FillItem(GetParentSwEnvDlg()->aEnvItem); if( _pSet ) FillItemSet(_pSet); - return SfxTabPage::LEAVE_PAGE; + return DeactivateRC::LeavePage; } void SwEnvPage::FillItem(SwEnvItem& rItem) diff --git a/sw/source/ui/envelp/envprt.cxx b/sw/source/ui/envelp/envprt.cxx index 2b8516d0c425..5ff8a10eeef6 100644 --- a/sw/source/ui/envelp/envprt.cxx +++ b/sw/source/ui/envelp/envprt.cxx @@ -151,11 +151,11 @@ void SwEnvPrtPage::ActivatePage(const SfxItemSet&) m_pPrinterInfo->SetText(pPrt->GetName()); } -SfxTabPage::sfxpg SwEnvPrtPage::DeactivatePage(SfxItemSet* _pSet) +DeactivateRC SwEnvPrtPage::DeactivatePage(SfxItemSet* _pSet) { if( _pSet ) FillItemSet(_pSet); - return SfxTabPage::LEAVE_PAGE; + return DeactivateRC::LeavePage; } void SwEnvPrtPage::FillItem(SwEnvItem& rItem) diff --git a/sw/source/ui/envelp/envprt.hxx b/sw/source/ui/envelp/envprt.hxx index d68991d311e8..6f76a48b8d20 100644 --- a/sw/source/ui/envelp/envprt.hxx +++ b/sw/source/ui/envelp/envprt.hxx @@ -64,7 +64,7 @@ public: static VclPtr<SfxTabPage> Create(vcl::Window* pParent, const SfxItemSet* rSet); virtual void ActivatePage(const SfxItemSet& rSet) override; - virtual sfxpg DeactivatePage(SfxItemSet* pSet = nullptr) override; + virtual DeactivateRC DeactivatePage(SfxItemSet* pSet = nullptr) override; void FillItem(SwEnvItem& rItem); virtual bool FillItemSet(SfxItemSet* rSet) override; virtual void Reset(const SfxItemSet* rSet) override; diff --git a/sw/source/ui/envelp/label1.cxx b/sw/source/ui/envelp/label1.cxx index 66bf387b26f3..d7d67aa0da57 100644 --- a/sw/source/ui/envelp/label1.cxx +++ b/sw/source/ui/envelp/label1.cxx @@ -488,12 +488,12 @@ void SwLabPage::ActivatePage(const SfxItemSet& rSet) Reset( &rSet ); } -SfxTabPage::sfxpg SwLabPage::DeactivatePage(SfxItemSet* _pSet) +DeactivateRC SwLabPage::DeactivatePage(SfxItemSet* _pSet) { if (_pSet) FillItemSet(_pSet); - return LEAVE_PAGE; + return DeactivateRC::LeavePage; } void SwLabPage::FillItem(SwLabItem& rItem) @@ -634,11 +634,11 @@ void SwVisitingCardPage::ActivatePage(const SfxItemSet& rSet) UpdateFields(); } -SfxTabPage::sfxpg SwVisitingCardPage::DeactivatePage(SfxItemSet* _pSet) +DeactivateRC SwVisitingCardPage::DeactivatePage(SfxItemSet* _pSet) { if (_pSet) FillItemSet(_pSet); - return LEAVE_PAGE; + return DeactivateRC::LeavePage; } bool SwVisitingCardPage::FillItemSet(SfxItemSet* rSet) @@ -795,11 +795,11 @@ void SwPrivateDataPage::ActivatePage(const SfxItemSet& rSet) Reset(&rSet); } -SfxTabPage::sfxpg SwPrivateDataPage::DeactivatePage(SfxItemSet* _pSet) +DeactivateRC SwPrivateDataPage::DeactivatePage(SfxItemSet* _pSet) { if (_pSet) FillItemSet(_pSet); - return LEAVE_PAGE; + return DeactivateRC::LeavePage; } bool SwPrivateDataPage::FillItemSet(SfxItemSet* rSet) @@ -908,11 +908,11 @@ void SwBusinessDataPage::ActivatePage(const SfxItemSet& rSet) Reset(&rSet); } -SfxTabPage::sfxpg SwBusinessDataPage::DeactivatePage(SfxItemSet* _pSet) +DeactivateRC SwBusinessDataPage::DeactivatePage(SfxItemSet* _pSet) { if (_pSet) FillItemSet(_pSet); - return LEAVE_PAGE; + return DeactivateRC::LeavePage; } bool SwBusinessDataPage::FillItemSet(SfxItemSet* rSet) diff --git a/sw/source/ui/envelp/labfmt.cxx b/sw/source/ui/envelp/labfmt.cxx index b1aa3308bada..8a889e042106 100644 --- a/sw/source/ui/envelp/labfmt.cxx +++ b/sw/source/ui/envelp/labfmt.cxx @@ -495,12 +495,12 @@ void SwLabFormatPage::ActivatePage(const SfxItemSet& rSet) Reset(&aSet); } -SfxTabPage::sfxpg SwLabFormatPage::DeactivatePage(SfxItemSet* _pSet) +DeactivateRC SwLabFormatPage::DeactivatePage(SfxItemSet* _pSet) { if (_pSet) FillItemSet(_pSet); - return LEAVE_PAGE; + return DeactivateRC::LeavePage; } void SwLabFormatPage::FillItem(SwLabItem& rItem) diff --git a/sw/source/ui/envelp/labfmt.hxx b/sw/source/ui/envelp/labfmt.hxx index 2e87bbd76c98..1e3a63f5df0b 100644 --- a/sw/source/ui/envelp/labfmt.hxx +++ b/sw/source/ui/envelp/labfmt.hxx @@ -105,7 +105,7 @@ public: static VclPtr<SfxTabPage> Create(vcl::Window* pParent, const SfxItemSet* rSet); virtual void ActivatePage(const SfxItemSet& rSet) override; - virtual sfxpg DeactivatePage(SfxItemSet* pSet = nullptr) override; + virtual DeactivateRC DeactivatePage(SfxItemSet* pSet = nullptr) override; void FillItem(SwLabItem& rItem); virtual bool FillItemSet(SfxItemSet* rSet) override; virtual void Reset(const SfxItemSet* rSet) override; diff --git a/sw/source/ui/envelp/labprt.cxx b/sw/source/ui/envelp/labprt.cxx index d5a95de387ca..64b75d0d9a41 100644 --- a/sw/source/ui/envelp/labprt.cxx +++ b/sw/source/ui/envelp/labprt.cxx @@ -116,12 +116,12 @@ void SwLabPrtPage::ActivatePage( const SfxItemSet& rSet ) Reset(&rSet); } -SfxTabPage::sfxpg SwLabPrtPage::DeactivatePage(SfxItemSet* _pSet) +DeactivateRC SwLabPrtPage::DeactivatePage(SfxItemSet* _pSet) { if ( _pSet ) FillItemSet(_pSet); - return LEAVE_PAGE; + return DeactivateRC::LeavePage; } void SwLabPrtPage::FillItem(SwLabItem& rItem) diff --git a/sw/source/ui/envelp/labprt.hxx b/sw/source/ui/envelp/labprt.hxx index d7dbc5b78b93..fa4454bc7c1a 100644 --- a/sw/source/ui/envelp/labprt.hxx +++ b/sw/source/ui/envelp/labprt.hxx @@ -59,7 +59,7 @@ public: static VclPtr<SfxTabPage> Create(vcl::Window* pParent, const SfxItemSet* rSet); virtual void ActivatePage(const SfxItemSet& rSet) override; - virtual sfxpg DeactivatePage(SfxItemSet* pSet = nullptr) override; + virtual DeactivateRC DeactivatePage(SfxItemSet* pSet = nullptr) override; void FillItem(SwLabItem& rItem); virtual bool FillItemSet(SfxItemSet* rSet) override; virtual void Reset(const SfxItemSet* rSet) override; diff --git a/sw/source/ui/envelp/swuilabimp.hxx b/sw/source/ui/envelp/swuilabimp.hxx index 896502cdccfb..14f817a0880f 100644 --- a/sw/source/ui/envelp/swuilabimp.hxx +++ b/sw/source/ui/envelp/swuilabimp.hxx @@ -69,7 +69,7 @@ public: static VclPtr<SfxTabPage> Create(vcl::Window* pParent, const SfxItemSet* rSet); virtual void ActivatePage(const SfxItemSet& rSet) override; - virtual sfxpg DeactivatePage(SfxItemSet* pSet = nullptr) override; + virtual DeactivateRC DeactivatePage(SfxItemSet* pSet = nullptr) override; void FillItem(SwLabItem& rItem); virtual bool FillItemSet(SfxItemSet* rSet) override; virtual void Reset(const SfxItemSet* rSet) override; @@ -121,7 +121,7 @@ public: static VclPtr<SfxTabPage> Create(vcl::Window* pParent, const SfxItemSet* rSet); virtual void ActivatePage(const SfxItemSet& rSet) override; - virtual sfxpg DeactivatePage(SfxItemSet* pSet = nullptr) override; + virtual DeactivateRC DeactivatePage(SfxItemSet* pSet = nullptr) override; virtual bool FillItemSet(SfxItemSet* rSet) override; virtual void Reset(const SfxItemSet* rSet) override; }; @@ -160,7 +160,7 @@ public: static VclPtr<SfxTabPage> Create(vcl::Window* pParent, const SfxItemSet* rSet); virtual void ActivatePage(const SfxItemSet& rSet) override; - virtual sfxpg DeactivatePage(SfxItemSet* pSet = nullptr) override; + virtual DeactivateRC DeactivatePage(SfxItemSet* pSet = nullptr) override; virtual bool FillItemSet(SfxItemSet* rSet) override; virtual void Reset(const SfxItemSet* rSet) override; }; @@ -197,7 +197,7 @@ public: static VclPtr<SfxTabPage> Create(vcl::Window* pParent, const SfxItemSet* rSet); virtual void ActivatePage(const SfxItemSet& rSet) override; - virtual sfxpg DeactivatePage(SfxItemSet* pSet = nullptr) override; + virtual DeactivateRC DeactivatePage(SfxItemSet* pSet = nullptr) override; virtual bool FillItemSet(SfxItemSet* rSet) override; virtual void Reset(const SfxItemSet* rSet) override; }; diff --git a/sw/source/ui/frmdlg/column.cxx b/sw/source/ui/frmdlg/column.cxx index ebed2f3fe5ee..5f9737aed922 100644 --- a/sw/source/ui/frmdlg/column.cxx +++ b/sw/source/ui/frmdlg/column.cxx @@ -1329,12 +1329,12 @@ void SwColumnPage::ActivatePage(const SfxItemSet& rSet) Update(nullptr); } -SfxTabPage::sfxpg SwColumnPage::DeactivatePage(SfxItemSet *_pSet) +DeactivateRC SwColumnPage::DeactivatePage(SfxItemSet *_pSet) { if(_pSet) FillItemSet(_pSet); - return LEAVE_PAGE; + return DeactivateRC::LeavePage; } IMPL_LINK_TYPED( SwColumnPage, SetDefaultsHdl, ValueSet *, pVS, void ) diff --git a/sw/source/ui/frmdlg/frmpage.cxx b/sw/source/ui/frmdlg/frmpage.cxx index ecd238d24af7..ac5956ff4184 100644 --- a/sw/source/ui/frmdlg/frmpage.cxx +++ b/sw/source/ui/frmdlg/frmpage.cxx @@ -1736,7 +1736,7 @@ void SwFramePage::ActivatePage(const SfxItemSet& rSet) m_pFollowTextFlowCB->SaveValue(); } -SfxTabPage::sfxpg SwFramePage::DeactivatePage(SfxItemSet * _pSet) +DeactivateRC SwFramePage::DeactivatePage(SfxItemSet * _pSet) { if ( _pSet ) { @@ -1751,7 +1751,7 @@ SfxTabPage::sfxpg SwFramePage::DeactivatePage(SfxItemSet * _pSet) _pSet->Put( aAnc ); } - return LEAVE_PAGE; + return DeactivateRC::LeavePage; } // swap left/right with inside/outside @@ -2554,11 +2554,11 @@ bool SwGrfExtPage::FillItemSet( SfxItemSet *rSet ) return bModified; } -SfxTabPage::sfxpg SwGrfExtPage::DeactivatePage(SfxItemSet *_pSet) +DeactivateRC SwGrfExtPage::DeactivatePage(SfxItemSet *_pSet) { if( _pSet ) FillItemSet( _pSet ); - return LEAVE_PAGE; + return DeactivateRC::LeavePage; } IMPL_LINK_NOARG_TYPED(SwGrfExtPage, BrowseHdl, Button*, void) diff --git a/sw/source/ui/frmdlg/wrap.cxx b/sw/source/ui/frmdlg/wrap.cxx index 533c7b1e4888..7d0fe614f921 100644 --- a/sw/source/ui/frmdlg/wrap.cxx +++ b/sw/source/ui/frmdlg/wrap.cxx @@ -578,12 +578,12 @@ void SwWrapTabPage::ActivatePage(const SfxItemSet& rSet) ContourHdl(nullptr); } -SfxTabPage::sfxpg SwWrapTabPage::DeactivatePage(SfxItemSet* _pSet) +DeactivateRC SwWrapTabPage::DeactivatePage(SfxItemSet* _pSet) { if(_pSet) FillItemSet(_pSet); - return LEAVE_PAGE; + return DeactivateRC::LeavePage; } // range check diff --git a/sw/source/ui/index/cnttab.cxx b/sw/source/ui/index/cnttab.cxx index 95e6a97b53d0..d8383ce90a3c 100644 --- a/sw/source/ui/index/cnttab.cxx +++ b/sw/source/ui/index/cnttab.cxx @@ -1302,13 +1302,13 @@ void SwTOXSelectTabPage::ActivatePage( const SfxItemSet& ) //nothing to do } -SfxTabPage::sfxpg SwTOXSelectTabPage::DeactivatePage( SfxItemSet* _pSet ) +DeactivateRC SwTOXSelectTabPage::DeactivatePage( SfxItemSet* _pSet ) { if(_pSet) _pSet->Put(SfxUInt16Item(FN_PARAM_TOX_TYPE, (sal_uInt16)reinterpret_cast<sal_IntPtr>(m_pTypeLB->GetSelectEntryData()))); FillTOXDescription(); - return LEAVE_PAGE; + return DeactivateRC::LeavePage; } VclPtr<SfxTabPage> SwTOXSelectTabPage::Create( vcl::Window* pParent, const SfxItemSet* rAttrSet) @@ -2212,10 +2212,10 @@ void SwTOXEntryTabPage::UpdateDescriptor() pCurrentForm->SetCommaSeparated(m_pCommaSeparatedCB->IsChecked()); } -SfxTabPage::sfxpg SwTOXEntryTabPage::DeactivatePage( SfxItemSet* /*pSet*/) +DeactivateRC SwTOXEntryTabPage::DeactivatePage( SfxItemSet* /*pSet*/) { UpdateDescriptor(); - return LEAVE_PAGE; + return DeactivateRC::LeavePage; } VclPtr<SfxTabPage> SwTOXEntryTabPage::Create( vcl::Window* pParent, const SfxItemSet* rAttrSet) @@ -3721,10 +3721,10 @@ void SwTOXStylesTabPage::ActivatePage( const SfxItemSet& ) EnableSelectHdl(*m_pParaLayLB); } -SfxTabPage::sfxpg SwTOXStylesTabPage::DeactivatePage( SfxItemSet* /*pSet*/ ) +DeactivateRC SwTOXStylesTabPage::DeactivatePage( SfxItemSet* /*pSet*/ ) { GetForm() = *m_pCurrentForm; - return LEAVE_PAGE; + return DeactivateRC::LeavePage; } VclPtr<SfxTabPage> SwTOXStylesTabPage::Create( vcl::Window* pParent, diff --git a/sw/source/ui/misc/num.cxx b/sw/source/ui/misc/num.cxx index 50db6dc257f5..3cbe02204b8d 100644 --- a/sw/source/ui/misc/num.cxx +++ b/sw/source/ui/misc/num.cxx @@ -431,12 +431,12 @@ void SwNumPositionTabPage::ActivatePage(const SfxItemSet& ) m_pPreviewWIN->Invalidate(); } -SfxTabPage::sfxpg SwNumPositionTabPage::DeactivatePage(SfxItemSet *_pSet) +DeactivateRC SwNumPositionTabPage::DeactivatePage(SfxItemSet *_pSet) { SwOutlineTabDialog::SetActNumLevel(nActNumLvl); if(_pSet) FillItemSet(_pSet); - return LEAVE_PAGE; + return DeactivateRC::LeavePage; } diff --git a/sw/source/ui/misc/outline.cxx b/sw/source/ui/misc/outline.cxx index c676566e2e2d..4bc1439f9680 100644 --- a/sw/source/ui/misc/outline.cxx +++ b/sw/source/ui/misc/outline.cxx @@ -832,10 +832,10 @@ void SwOutlineSettingsTabPage::ActivatePage(const SfxItemSet& ) LevelHdl(*m_pLevelLB); } -SfxTabPage::sfxpg SwOutlineSettingsTabPage::DeactivatePage(SfxItemSet*) +DeactivateRC SwOutlineSettingsTabPage::DeactivatePage(SfxItemSet*) { SwOutlineTabDialog::SetActNumLevel(nActLevel); - return LEAVE_PAGE; + return DeactivateRC::LeavePage; } bool SwOutlineSettingsTabPage::FillItemSet( SfxItemSet* ) diff --git a/sw/source/ui/misc/pgfnote.cxx b/sw/source/ui/misc/pgfnote.cxx index 2ab8e3cd5b83..88cd797ffd7f 100644 --- a/sw/source/ui/misc/pgfnote.cxx +++ b/sw/source/ui/misc/pgfnote.cxx @@ -358,12 +358,12 @@ void SwFootNotePage::ActivatePage(const SfxItemSet& rSet) HeightModify(*m_pMaxHeightEdit); } -SfxTabPage::sfxpg SwFootNotePage::DeactivatePage( SfxItemSet* _pSet) +DeactivateRC SwFootNotePage::DeactivatePage( SfxItemSet* _pSet) { if(_pSet) FillItemSet(_pSet); - return LEAVE_PAGE; + return DeactivateRC::LeavePage; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/misc/pggrid.cxx b/sw/source/ui/misc/pggrid.cxx index 1ce914db8290..3614c8899bad 100644 --- a/sw/source/ui/misc/pggrid.cxx +++ b/sw/source/ui/misc/pggrid.cxx @@ -267,9 +267,9 @@ void SwTextGridPage::ActivatePage( const SfxItemSet& rSet ) m_pExampleWN->Invalidate(); } -SfxTabPage::sfxpg SwTextGridPage::DeactivatePage( SfxItemSet* ) +DeactivateRC SwTextGridPage::DeactivatePage( SfxItemSet* ) { - return LEAVE_PAGE; + return DeactivateRC::LeavePage; } void SwTextGridPage::PutGridItem(SfxItemSet& rSet) diff --git a/sw/source/ui/table/tabledlg.cxx b/sw/source/ui/table/tabledlg.cxx index ff04a0f6e637..139712ad4946 100644 --- a/sw/source/ui/table/tabledlg.cxx +++ b/sw/source/ui/table/tabledlg.cxx @@ -619,7 +619,7 @@ void SwFormatTablePage::ActivatePage( const SfxItemSet& rSet ) } -SfxTabPage::sfxpg SwFormatTablePage::DeactivatePage( SfxItemSet* _pSet ) +DeactivateRC SwFormatTablePage::DeactivatePage( SfxItemSet* _pSet ) { //os: VCL doesn't take care of making the active widget //in the dialog lose the focus @@ -630,7 +630,7 @@ SfxTabPage::sfxpg SwFormatTablePage::DeactivatePage( SfxItemSet* _pSet ) { ScopedVclPtrInstance<MessageDialog>::Create(this, SW_RES(STR_WRONG_TABLENAME), VclMessageType::Info)->Execute(); m_pNameED->GrabFocus(); - return KEEP_PAGE; + return DeactivateRC::KeepPage; } if(_pSet) { @@ -730,7 +730,7 @@ SfxTabPage::sfxpg SwFormatTablePage::DeactivatePage( SfxItemSet* _pSet ) _pSet->Put(SwPtrItem(FN_TABLE_REP, pTableData)); } } - return LEAVE_PAGE; + return DeactivateRC::LeavePage; } //Description: Page column configuration @@ -1136,7 +1136,7 @@ void SwTableColumnPage::ActivatePage( const SfxItemSet& ) } -SfxTabPage::sfxpg SwTableColumnPage::DeactivatePage( SfxItemSet* _pSet ) +DeactivateRC SwTableColumnPage::DeactivatePage( SfxItemSet* _pSet ) { if(_pSet) { @@ -1195,7 +1195,7 @@ SfxTabPage::sfxpg SwTableColumnPage::DeactivatePage( SfxItemSet* _pSet ) } _pSet->Put(SwPtrItem( FN_TABLE_REP, pTableData )); } - return LEAVE_PAGE; + return DeactivateRC::LeavePage; } SwTwips SwTableColumnPage::GetVisibleWidth(sal_uInt16 nPos) |