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>
This commit is contained in:
Noel Grandin 2016-06-05 15:15:56 +02:00
parent 7d1b01070c
commit 11b4a6ddce
136 changed files with 339 additions and 344 deletions

View File

@ -276,12 +276,12 @@ void AxisPositionsTabPage::Reset(const SfxItemSet* rInAttrs)
} }
} }
SfxTabPage::sfxpg AxisPositionsTabPage::DeactivatePage(SfxItemSet* pItemSet) DeactivateRC AxisPositionsTabPage::DeactivatePage(SfxItemSet* pItemSet)
{ {
if( pItemSet ) if( pItemSet )
FillItemSet( pItemSet ); FillItemSet( pItemSet );
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }
void AxisPositionsTabPage::SetNumFormatter( SvNumberFormatter* pFormatter ) void AxisPositionsTabPage::SetNumFormatter( SvNumberFormatter* pFormatter )

View File

@ -40,7 +40,7 @@ public:
virtual bool FillItemSet( SfxItemSet* rOutAttrs ) override; virtual bool FillItemSet( SfxItemSet* rOutAttrs ) override;
virtual void Reset( const SfxItemSet* rInAttrs ) override; virtual void Reset( const SfxItemSet* rInAttrs ) override;
using TabPage::DeactivatePage; using TabPage::DeactivatePage;
virtual sfxpg DeactivatePage( SfxItemSet* pItemSet = nullptr ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pItemSet = nullptr ) override;
void SetNumFormatter( SvNumberFormatter* pFormatter ); void SetNumFormatter( SvNumberFormatter* pFormatter );

View File

@ -416,12 +416,12 @@ void ScaleTabPage::Reset(const SfxItemSet* rInAttrs)
SetNumFormat(); SetNumFormat();
} }
SfxTabPage::sfxpg ScaleTabPage::DeactivatePage(SfxItemSet* pItemSet) DeactivateRC ScaleTabPage::DeactivatePage(SfxItemSet* pItemSet)
{ {
if( !pNumFormatter ) if( !pNumFormatter )
{ {
OSL_FAIL( "No NumberFormatter available" ); OSL_FAIL( "No NumberFormatter available" );
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }
bool bDateAxis = chart2::AxisType::DATE == m_nAxisType; bool bDateAxis = chart2::AxisType::DATE == m_nAxisType;
@ -527,12 +527,12 @@ SfxTabPage::sfxpg ScaleTabPage::DeactivatePage(SfxItemSet* pItemSet)
} }
if( ShowWarning( nErrStrId, pControl ) ) if( ShowWarning( nErrStrId, pControl ) )
return KEEP_PAGE; return DeactivateRC::KeepPage;
if( pItemSet ) if( pItemSet )
FillItemSet( pItemSet ); FillItemSet( pItemSet );
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }
void ScaleTabPage::SetNumFormatter( SvNumberFormatter* pFormatter ) void ScaleTabPage::SetNumFormatter( SvNumberFormatter* pFormatter )

View File

@ -40,7 +40,7 @@ public:
virtual bool FillItemSet( SfxItemSet* rOutAttrs ) override; virtual bool FillItemSet( SfxItemSet* rOutAttrs ) override;
virtual void Reset( const SfxItemSet* rInAttrs ) override; virtual void Reset( const SfxItemSet* rInAttrs ) override;
using TabPage::DeactivatePage; using TabPage::DeactivatePage;
virtual sfxpg DeactivatePage( SfxItemSet* pItemSet = nullptr ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pItemSet = nullptr ) override;
void SetNumFormatter( SvNumberFormatter* pFormatter ); void SetNumFormatter( SvNumberFormatter* pFormatter );
void SetNumFormat(); void SetNumFormat();

View File

@ -525,7 +525,7 @@ void SvxHyperlinkTabPageBase::ActivatePage( const SfxItemSet& rItemSet )
ShowMarkWnd (); ShowMarkWnd ();
} }
int SvxHyperlinkTabPageBase::DeactivatePage( SfxItemSet* _pSet) DeactivateRC SvxHyperlinkTabPageBase::DeactivatePage( SfxItemSet* _pSet)
{ {
// hide mark-wnd // hide mark-wnd
SetMarkWndShouldOpen( IsMarkWndVisible () ); SetMarkWndShouldOpen( IsMarkWndVisible () );
@ -547,7 +547,7 @@ int SvxHyperlinkTabPageBase::DeactivatePage( SfxItemSet* _pSet)
_pSet->Put( aItem ); _pSet->Put( aItem );
} }
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }
bool SvxHyperlinkTabPageBase::ShouldOpenMarkWnd() bool SvxHyperlinkTabPageBase::ShouldOpenMarkWnd()

View File

@ -75,9 +75,9 @@ void IconChoicePage::ActivatePage( const SfxItemSet& )
} }
int IconChoicePage::DeactivatePage( SfxItemSet* ) DeactivateRC IconChoicePage::DeactivatePage( SfxItemSet* )
{ {
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }
bool IconChoicePage::QueryClose() bool IconChoicePage::QueryClose()
@ -484,7 +484,7 @@ void IconChoiceDialog::DeActivatePageImpl ()
{ {
IconChoicePageData *pData = GetPageData ( mnCurrentPageId ); IconChoicePageData *pData = GetPageData ( mnCurrentPageId );
int nRet = IconChoicePage::LEAVE_PAGE; DeactivateRC nRet = DeactivateRC::LeavePage;
if ( pData ) if ( pData )
{ {
@ -500,7 +500,7 @@ void IconChoiceDialog::DeActivatePageImpl ()
if ( pPage->HasExchangeSupport() ) if ( pPage->HasExchangeSupport() )
nRet = pPage->DeactivatePage( &aTmp ); nRet = pPage->DeactivatePage( &aTmp );
if ( ( IconChoicePage::LEAVE_PAGE & nRet ) == IconChoicePage::LEAVE_PAGE && if ( ( DeactivateRC::LeavePage & nRet ) &&
aTmp.Count() ) aTmp.Count() )
{ {
pExampleSet->Put( aTmp ); pExampleSet->Put( aTmp );
@ -523,7 +523,7 @@ void IconChoiceDialog::DeActivatePageImpl ()
nRet = pPage->DeactivatePage( nullptr ); nRet = pPage->DeactivatePage( nullptr );
} }
if ( nRet & IconChoicePage::REFRESH_SET ) if ( nRet & DeactivateRC::RefreshSet )
{ {
RefreshInputSet(); RefreshInputSet();
// flag all pages to be newly initialized // flag all pages to be newly initialized
@ -720,7 +720,7 @@ bool IconChoiceDialog::OK_Impl()
bool bEnd = !pPage; bool bEnd = !pPage;
if ( pPage ) if ( pPage )
{ {
int nRet = IconChoicePage::LEAVE_PAGE; DeactivateRC nRet = DeactivateRC::LeavePage;
if ( pSet ) if ( pSet )
{ {
SfxItemSet aTmp( *pSet->GetPool(), pSet->GetRanges() ); SfxItemSet aTmp( *pSet->GetPool(), pSet->GetRanges() );
@ -728,7 +728,7 @@ bool IconChoiceDialog::OK_Impl()
if ( pPage->HasExchangeSupport() ) if ( pPage->HasExchangeSupport() )
nRet = pPage->DeactivatePage( &aTmp ); nRet = pPage->DeactivatePage( &aTmp );
if ( ( IconChoicePage::LEAVE_PAGE & nRet ) == IconChoicePage::LEAVE_PAGE if ( ( DeactivateRC::LeavePage & nRet )
&& aTmp.Count() ) && aTmp.Count() )
{ {
pExampleSet->Put( aTmp ); pExampleSet->Put( aTmp );
@ -737,7 +737,7 @@ bool IconChoiceDialog::OK_Impl()
} }
else else
nRet = pPage->DeactivatePage( nullptr ); nRet = pPage->DeactivatePage( nullptr );
bEnd = nRet; bEnd = nRet != DeactivateRC::KeepPage;
} }
return bEnd; return bEnd;

View File

@ -65,7 +65,7 @@ public:
virtual bool FillItemSet( SfxItemSet* rSet ) override; virtual bool FillItemSet( SfxItemSet* rSet ) override;
virtual void Reset( const SfxItemSet* rSet ) override; virtual void Reset( const SfxItemSet* rSet ) override;
virtual sfxpg DeactivatePage( SfxItemSet* pSet ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
virtual void DataChanged( const DataChangedEvent& rDCEvt ) override; virtual void DataChanged( const DataChangedEvent& rDCEvt ) override;
private: private:

View File

@ -283,7 +283,7 @@ public:
virtual bool FillItemSet( SfxItemSet* rSet ) override; virtual bool FillItemSet( SfxItemSet* rSet ) override;
virtual void Reset( const SfxItemSet* rSet ) override; virtual void Reset( const SfxItemSet* rSet ) override;
virtual void ActivatePage( const SfxItemSet& ) override; virtual void ActivatePage( const SfxItemSet& ) override;
virtual sfxpg DeactivatePage( SfxItemSet* pSet = nullptr ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pSet = nullptr ) override;
void SetLanguage(LanguageType eSet); void SetLanguage(LanguageType eSet);
void DeleteEntry(const OUString& sShort, const OUString& sLong); void DeleteEntry(const OUString& sShort, const OUString& sLong);
@ -343,7 +343,7 @@ public:
virtual bool FillItemSet( SfxItemSet* rSet ) override; virtual bool FillItemSet( SfxItemSet* rSet ) override;
virtual void Reset( const SfxItemSet* rSet ) override; virtual void Reset( const SfxItemSet* rSet ) override;
virtual void ActivatePage( const SfxItemSet& ) override; virtual void ActivatePage( const SfxItemSet& ) override;
virtual sfxpg DeactivatePage( SfxItemSet* pSet = nullptr ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pSet = nullptr ) override;
void SetLanguage(LanguageType eSet); void SetLanguage(LanguageType eSet);
}; };

View File

@ -64,7 +64,7 @@ public:
virtual void PageCreated(const SfxAllItemSet& aSet) override; virtual void PageCreated(const SfxAllItemSet& aSet) override;
protected: protected:
virtual sfxpg DeactivatePage( SfxItemSet* pSet = nullptr ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pSet = nullptr ) override;
private: private:
SvxBackgroundTabPage( vcl::Window* pParent, const SfxItemSet& rCoreSet ); SvxBackgroundTabPage( vcl::Window* pParent, const SfxItemSet& rCoreSet );

View File

@ -60,7 +60,7 @@ public:
virtual void PageCreated(const SfxAllItemSet& aSet) override; virtual void PageCreated(const SfxAllItemSet& aSet) override;
void SetTableMode(); void SetTableMode();
protected: protected:
virtual sfxpg DeactivatePage( SfxItemSet* pSet = nullptr ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pSet = nullptr ) override;
virtual void DataChanged( const DataChangedEvent& rDCEvt ) override; virtual void DataChanged( const DataChangedEvent& rDCEvt ) override;
private: private:

View File

@ -143,7 +143,7 @@ public:
using SfxTabPage::DeactivatePage; using SfxTabPage::DeactivatePage;
virtual void ActivatePage( const SfxItemSet& rSet ) override; virtual void ActivatePage( const SfxItemSet& rSet ) override;
virtual sfxpg DeactivatePage( SfxItemSet* pSet = nullptr ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pSet = nullptr ) override;
public: public:
virtual ~SvxCharNamePage(); virtual ~SvxCharNamePage();
@ -230,7 +230,7 @@ public:
virtual void dispose() override; virtual void dispose() override;
using SfxTabPage::DeactivatePage; using SfxTabPage::DeactivatePage;
virtual sfxpg DeactivatePage( SfxItemSet* pSet = nullptr ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pSet = nullptr ) override;
public: public:
static VclPtr<SfxTabPage> Create( vcl::Window* pParent, const SfxItemSet* rSet ); static VclPtr<SfxTabPage> Create( vcl::Window* pParent, const SfxItemSet* rSet );
@ -310,7 +310,7 @@ public:
using SfxTabPage::DeactivatePage; using SfxTabPage::DeactivatePage;
virtual sfxpg DeactivatePage( SfxItemSet* pSet = nullptr ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pSet = nullptr ) override;
public: public:
static VclPtr<SfxTabPage> Create( vcl::Window* pParent, const SfxItemSet* rSet ); static VclPtr<SfxTabPage> Create( vcl::Window* pParent, const SfxItemSet* rSet );
@ -358,7 +358,7 @@ public:
using SfxTabPage::DeactivatePage; using SfxTabPage::DeactivatePage;
virtual void ActivatePage( const SfxItemSet& rSet ) override; virtual void ActivatePage( const SfxItemSet& rSet ) override;
virtual sfxpg DeactivatePage( SfxItemSet* pSet = nullptr ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pSet = nullptr ) override;
static VclPtr<SfxTabPage> Create( vcl::Window* pParent, const SfxItemSet* rSet ); static VclPtr<SfxTabPage> Create( vcl::Window* pParent, const SfxItemSet* rSet );
static const sal_uInt16* GetRanges() { return pTwoLinesRanges; } static const sal_uInt16* GetRanges() { return pTwoLinesRanges; }

View File

@ -59,7 +59,7 @@ private:
void SetLinks (); void SetLinks ();
protected: protected:
virtual sfxpg DeactivatePage( SfxItemSet* pSet ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
public: public:
SvxGeneralTabPage( vcl::Window* pParent, const SfxItemSet& rSet ); SvxGeneralTabPage( vcl::Window* pParent, const SfxItemSet& rSet );

View File

@ -168,7 +168,7 @@ public:
virtual void Reset(const SfxItemSet*) override; virtual void Reset(const SfxItemSet*) override;
virtual void ChangesApplied() override; virtual void ChangesApplied() override;
virtual void ActivatePage(const SfxItemSet& rSet) override; virtual void ActivatePage(const SfxItemSet& rSet) override;
virtual sfxpg DeactivatePage(SfxItemSet* pSet) override; virtual DeactivateRC DeactivatePage(SfxItemSet* pSet) override;
virtual void PointChanged(vcl::Window* pWindow, RECT_POINT eRP) override; virtual void PointChanged(vcl::Window* pWindow, RECT_POINT eRP) override;
void SetPageType(sal_uInt16 nInType) { nPageType = nInType; } void SetPageType(sal_uInt16 nInType) { nPageType = nInType; }
@ -290,7 +290,7 @@ public:
virtual void Reset( const SfxItemSet * ) override; virtual void Reset( const SfxItemSet * ) override;
virtual void ChangesApplied() override; virtual void ChangesApplied() override;
virtual void ActivatePage( const SfxItemSet& rSet ) override; virtual void ActivatePage( const SfxItemSet& rSet ) override;
virtual sfxpg DeactivatePage( SfxItemSet* pSet ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
virtual void PointChanged( vcl::Window* pWindow, RECT_POINT eRP ) override; virtual void PointChanged( vcl::Window* pWindow, RECT_POINT eRP ) override;
void SetColorList( XColorListRef pColorList ) { m_pColorList = pColorList; } void SetColorList( XColorListRef pColorList ) { m_pColorList = pColorList; }
@ -358,7 +358,7 @@ public:
virtual bool FillItemSet( SfxItemSet* ) override; virtual bool FillItemSet( SfxItemSet* ) override;
virtual void Reset( const SfxItemSet * ) override; virtual void Reset( const SfxItemSet * ) override;
virtual void ActivatePage( const SfxItemSet& rSet ) override; virtual void ActivatePage( const SfxItemSet& rSet ) override;
virtual sfxpg DeactivatePage( SfxItemSet* pSet ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
virtual void PointChanged( vcl::Window* pWindow, RECT_POINT eRP ) override; virtual void PointChanged( vcl::Window* pWindow, RECT_POINT eRP ) override;
void SetColorList( XColorListRef pColorList ) { m_pColorList = pColorList; } void SetColorList( XColorListRef pColorList ) { m_pColorList = pColorList; }
@ -441,7 +441,7 @@ public:
virtual void Reset( const SfxItemSet * ) override; virtual void Reset( const SfxItemSet * ) override;
virtual void ActivatePage( const SfxItemSet& rSet ) override; virtual void ActivatePage( const SfxItemSet& rSet ) override;
virtual sfxpg DeactivatePage( SfxItemSet* pSet ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
void SetColorList( XColorListRef pColorList ) { m_pColorList = pColorList; } void SetColorList( XColorListRef pColorList ) { m_pColorList = pColorList; }
void SetGradientList( XGradientListRef pGrdLst) void SetGradientList( XGradientListRef pGrdLst)
@ -523,7 +523,7 @@ public:
virtual void Reset( const SfxItemSet * ) override; virtual void Reset( const SfxItemSet * ) override;
virtual void ActivatePage( const SfxItemSet& rSet ) override; virtual void ActivatePage( const SfxItemSet& rSet ) override;
virtual sfxpg DeactivatePage( SfxItemSet* pSet ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
virtual void PointChanged( vcl::Window* pWindow, RECT_POINT eRP ) override; virtual void PointChanged( vcl::Window* pWindow, RECT_POINT eRP ) override;
@ -609,7 +609,7 @@ public:
virtual void Reset( const SfxItemSet * ) override; virtual void Reset( const SfxItemSet * ) override;
virtual void ActivatePage( const SfxItemSet& rSet ) override; virtual void ActivatePage( const SfxItemSet& rSet ) override;
virtual sfxpg DeactivatePage( SfxItemSet* pSet ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
virtual void PointChanged( vcl::Window* pWindow, RECT_POINT eRP ) override; virtual void PointChanged( vcl::Window* pWindow, RECT_POINT eRP ) override;
@ -743,7 +743,7 @@ public:
virtual void Reset( const SfxItemSet * ) override; virtual void Reset( const SfxItemSet * ) override;
virtual void ActivatePage( const SfxItemSet& rSet ) override; virtual void ActivatePage( const SfxItemSet& rSet ) override;
virtual sfxpg DeactivatePage( SfxItemSet* pSet ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
void SetPropertyList( XPropertyListType t, const XPropertyListRef &xRef ); void SetPropertyList( XPropertyListType t, const XPropertyListRef &xRef );

View File

@ -213,7 +213,7 @@ public:
virtual void Reset( const SfxItemSet* ) override; virtual void Reset( const SfxItemSet* ) override;
virtual void ActivatePage( const SfxItemSet& rSet ) override; virtual void ActivatePage( const SfxItemSet& rSet ) override;
virtual sfxpg DeactivatePage( SfxItemSet* pSet ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
virtual void PointChanged( vcl::Window* pWindow, RECT_POINT eRP ) override; virtual void PointChanged( vcl::Window* pWindow, RECT_POINT eRP ) override;
@ -312,7 +312,7 @@ public:
virtual void Reset( const SfxItemSet * ) override; virtual void Reset( const SfxItemSet * ) override;
virtual void ActivatePage( const SfxItemSet& rSet ) override; virtual void ActivatePage( const SfxItemSet& rSet ) override;
virtual sfxpg DeactivatePage( SfxItemSet* pSet ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
void SetDashList( XDashListRef pDshLst ) { pDashList = pDshLst; } void SetDashList( XDashListRef pDshLst ) { pDashList = pDshLst; }
void SetObjSelected( bool bHasObj ) { bObjSelected = bHasObj; } void SetObjSelected( bool bHasObj ) { bObjSelected = bHasObj; }
@ -382,7 +382,7 @@ public:
virtual void Reset( const SfxItemSet * ) override; virtual void Reset( const SfxItemSet * ) override;
virtual void ActivatePage( const SfxItemSet& rSet ) override; virtual void ActivatePage( const SfxItemSet& rSet ) override;
virtual sfxpg DeactivatePage( SfxItemSet* pSet ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
void SetLineEndList( XLineEndListRef pInList ) { pLineEndList = pInList; } void SetLineEndList( XLineEndListRef pInList ) { pLineEndList = pInList; }
void SetPolyObj( const SdrObject* pObj ) { pPolyObj = pObj; } void SetPolyObj( const SdrObject* pObj ) { pPolyObj = pObj; }

View File

@ -114,7 +114,7 @@ public:
virtual bool FillItemSet( SfxItemSet *rSet ) override; virtual bool FillItemSet( SfxItemSet *rSet ) override;
virtual void Reset( const SfxItemSet *rSet ) override; virtual void Reset( const SfxItemSet *rSet ) override;
virtual sfxpg DeactivatePage( SfxItemSet *pSet ) override; virtual DeactivateRC DeactivatePage( SfxItemSet *pSet ) override;
}; };

View File

@ -130,7 +130,7 @@ public:
virtual void Reset( const SfxItemSet& ) override; virtual void Reset( const SfxItemSet& ) override;
virtual bool FillItemSet( SfxItemSet* ) override; virtual bool FillItemSet( SfxItemSet* ) override;
virtual void ActivatePage( const SfxItemSet& rItemSet ) override; virtual void ActivatePage( const SfxItemSet& rItemSet ) override;
virtual int DeactivatePage( SfxItemSet* pSet = nullptr ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pSet = nullptr ) override;
bool IsMarkWndVisible () { return static_cast<vcl::Window*>(mpMarkWnd)->IsVisible(); } bool IsMarkWndVisible () { return static_cast<vcl::Window*>(mpMarkWnd)->IsVisible(); }
Size GetSizeExtraWnd () { return ( mpMarkWnd->GetSizePixel() ); } Size GetSizeExtraWnd () { return ( mpMarkWnd->GetSizePixel() ); }

View File

@ -29,6 +29,7 @@
#include <vcl/button.hxx> #include <vcl/button.hxx>
#include <vcl/image.hxx> #include <vcl/image.hxx>
#include <vcl/layout.hxx> #include <vcl/layout.hxx>
#include <sfx2/tabdlg.hxx>
#include <vector> #include <vector>
// forward-declarations // forward-declarations
@ -89,17 +90,8 @@ public:
bool HasExchangeSupport() const { return bHasExchangeSupport; } bool HasExchangeSupport() const { return bHasExchangeSupport; }
void SetExchangeSupport() { bHasExchangeSupport = true; } void SetExchangeSupport() { bHasExchangeSupport = true; }
enum {
KEEP_PAGE = 0x0000, ///< error handling
/** 2nd filling of an ItemSet for updating superior examples;
this pointer can always be NULL!! */
LEAVE_PAGE = 0x0001,
/// refresh set and update other pages
REFRESH_SET = 0x0002
};
virtual void ActivatePage( const SfxItemSet& ); virtual void ActivatePage( const SfxItemSet& );
virtual int DeactivatePage( SfxItemSet* pSet ); virtual DeactivateRC DeactivatePage( SfxItemSet* pSet );
const OUString& GetUserData() { return aUserString; } const OUString& GetUserData() { return aUserString; }
virtual bool QueryClose(); virtual bool QueryClose();

View File

@ -76,7 +76,7 @@ public:
virtual bool FillItemSet( SfxItemSet* rSet ) override; virtual bool FillItemSet( SfxItemSet* rSet ) override;
virtual void Reset( const SfxItemSet* rSet ) override; virtual void Reset( const SfxItemSet* rSet ) override;
virtual sfxpg DeactivatePage ( SfxItemSet* pSet = nullptr ) override; virtual DeactivateRC DeactivatePage ( SfxItemSet* pSet = nullptr ) override;
void SetInfoItem( const SvxNumberInfoItem& rItem ); void SetInfoItem( const SvxNumberInfoItem& rItem );
void SetNumberFormatList( const SvxNumberInfoItem& rItem ) void SetNumberFormatList( const SvxNumberInfoItem& rItem )

View File

@ -109,7 +109,7 @@ public:
const SfxItemSet* rAttrSet); const SfxItemSet* rAttrSet);
virtual void ActivatePage(const SfxItemSet& rSet) override; virtual void ActivatePage(const SfxItemSet& rSet) override;
virtual sfxpg DeactivatePage(SfxItemSet *pSet) override; virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override;
virtual bool FillItemSet( SfxItemSet* rSet ) override; virtual bool FillItemSet( SfxItemSet* rSet ) override;
virtual void Reset( const SfxItemSet* rSet ) override; virtual void Reset( const SfxItemSet* rSet ) override;
}; };
@ -142,7 +142,7 @@ public:
const SfxItemSet* rAttrSet); const SfxItemSet* rAttrSet);
virtual void ActivatePage(const SfxItemSet& rSet) override; virtual void ActivatePage(const SfxItemSet& rSet) override;
virtual sfxpg DeactivatePage(SfxItemSet *pSet) override; virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override;
virtual bool FillItemSet( SfxItemSet* rSet ) override; virtual bool FillItemSet( SfxItemSet* rSet ) override;
virtual void Reset( const SfxItemSet* rSet ) override; virtual void Reset( const SfxItemSet* rSet ) override;
@ -186,7 +186,7 @@ public:
const SfxItemSet* rAttrSet); const SfxItemSet* rAttrSet);
virtual void ActivatePage(const SfxItemSet& rSet) override; virtual void ActivatePage(const SfxItemSet& rSet) override;
virtual sfxpg DeactivatePage(SfxItemSet *pSet) override; virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override;
virtual bool FillItemSet( SfxItemSet* rSet ) override; virtual bool FillItemSet( SfxItemSet* rSet ) override;
virtual void Reset( const SfxItemSet* rSet ) override; virtual void Reset( const SfxItemSet* rSet ) override;
@ -233,7 +233,7 @@ public:
const SfxItemSet* rAttrSet); const SfxItemSet* rAttrSet);
virtual void ActivatePage(const SfxItemSet& rSet) override; virtual void ActivatePage(const SfxItemSet& rSet) override;
virtual sfxpg DeactivatePage(SfxItemSet *pSet) override; virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override;
virtual bool FillItemSet( SfxItemSet* rSet ) override; virtual bool FillItemSet( SfxItemSet* rSet ) override;
virtual void Reset( const SfxItemSet* rSet ) override; virtual void Reset( const SfxItemSet* rSet ) override;
}; };
@ -344,7 +344,7 @@ public:
const SfxItemSet* rAttrSet); const SfxItemSet* rAttrSet);
virtual void ActivatePage(const SfxItemSet& rSet) override; virtual void ActivatePage(const SfxItemSet& rSet) override;
virtual sfxpg DeactivatePage(SfxItemSet *pSet) override; virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override;
virtual bool FillItemSet( SfxItemSet* rSet ) override; virtual bool FillItemSet( SfxItemSet* rSet ) override;
virtual void Reset( const SfxItemSet* rSet ) override; virtual void Reset( const SfxItemSet* rSet ) override;
@ -449,7 +449,7 @@ public:
virtual void dispose() override; virtual void dispose() override;
virtual void ActivatePage(const SfxItemSet& rSet) override; virtual void ActivatePage(const SfxItemSet& rSet) override;
virtual sfxpg DeactivatePage(SfxItemSet *pSet) override; virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override;
virtual bool FillItemSet( SfxItemSet* rSet ) override; virtual bool FillItemSet( SfxItemSet* rSet ) override;
virtual void Reset( const SfxItemSet* rSet ) override; virtual void Reset( const SfxItemSet* rSet ) override;

View File

@ -187,7 +187,7 @@ private:
protected: protected:
virtual void ActivatePage( const SfxItemSet& rSet ) override; virtual void ActivatePage( const SfxItemSet& rSet ) override;
virtual sfxpg DeactivatePage( SfxItemSet* pSet = nullptr ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pSet = nullptr ) override;
public: public:
static VclPtr<SfxTabPage> Create( vcl::Window* pParent, const SfxItemSet* rSet ); static VclPtr<SfxTabPage> Create( vcl::Window* pParent, const SfxItemSet* rSet );

View File

@ -95,7 +95,7 @@ private:
DECL_LINK_TYPED( AutoHdl_Impl, Button*, void ); DECL_LINK_TYPED( AutoHdl_Impl, Button*, void );
protected: protected:
virtual sfxpg DeactivatePage( SfxItemSet* pSet = nullptr ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pSet = nullptr ) override;
public: public:
@ -162,7 +162,7 @@ class SvxParaAlignTabPage : public SfxTabPage
SvxParaAlignTabPage( vcl::Window* pParent, const SfxItemSet& rSet ); SvxParaAlignTabPage( vcl::Window* pParent, const SfxItemSet& rSet );
protected: protected:
virtual sfxpg DeactivatePage( SfxItemSet* pSet = nullptr ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pSet = nullptr ) override;
public: public:
virtual ~SvxParaAlignTabPage(); virtual ~SvxParaAlignTabPage();
@ -214,7 +214,7 @@ public:
void DisablePageBreak(); void DisablePageBreak();
protected: protected:
virtual sfxpg DeactivatePage( SfxItemSet* pSet = nullptr ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pSet = nullptr ) override;
private: private:
SvxExtParagraphTabPage( vcl::Window* pParent, const SfxItemSet& rSet ); SvxExtParagraphTabPage( vcl::Window* pParent, const SfxItemSet& rSet );

View File

@ -134,7 +134,7 @@ public:
virtual bool FillItemSet( SfxItemSet* ) override; virtual bool FillItemSet( SfxItemSet* ) override;
virtual void Reset( const SfxItemSet * ) override; virtual void Reset( const SfxItemSet * ) override;
virtual sfxpg DeactivatePage( SfxItemSet* pSet ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
void EnableAnchorTypes(sal_uInt16 nAnchorEnable); void EnableAnchorTypes(sal_uInt16 nAnchorEnable);

View File

@ -61,7 +61,7 @@ public:
void DisableControls( const TabulatorDisableFlags nFlag ); void DisableControls( const TabulatorDisableFlags nFlag );
protected: protected:
virtual sfxpg DeactivatePage( SfxItemSet* pSet = nullptr ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pSet = nullptr ) override;
private: private:
SvxTabulatorTabPage( vcl::Window* pParent, const SfxItemSet& rSet ); SvxTabulatorTabPage( vcl::Window* pParent, const SfxItemSet& rSet );

View File

@ -154,7 +154,7 @@ public:
virtual void Reset( const SfxItemSet * ) override; virtual void Reset( const SfxItemSet * ) override;
virtual void ActivatePage( const SfxItemSet& rSet ) override; virtual void ActivatePage( const SfxItemSet& rSet ) override;
virtual sfxpg DeactivatePage( SfxItemSet* pSet ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
virtual void PointChanged( vcl::Window* pWindow, RECT_POINT eRP ) override; virtual void PointChanged( vcl::Window* pWindow, RECT_POINT eRP ) override;
@ -212,7 +212,7 @@ public:
virtual void Reset( const SfxItemSet * ) override; virtual void Reset( const SfxItemSet * ) override;
virtual void ActivatePage( const SfxItemSet& rSet ) override; virtual void ActivatePage( const SfxItemSet& rSet ) override;
virtual sfxpg DeactivatePage( SfxItemSet* pSet ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
virtual void PointChanged( vcl::Window* pWindow, RECT_POINT eRP ) override; virtual void PointChanged( vcl::Window* pWindow, RECT_POINT eRP ) override;
@ -265,7 +265,7 @@ public:
virtual void Reset( const SfxItemSet * ) override; virtual void Reset( const SfxItemSet * ) override;
virtual void ActivatePage( const SfxItemSet& rSet ) override; virtual void ActivatePage( const SfxItemSet& rSet ) override;
virtual sfxpg DeactivatePage( SfxItemSet* pSet ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
virtual void PointChanged( vcl::Window* pWindow, RECT_POINT eRP ) override; virtual void PointChanged( vcl::Window* pWindow, RECT_POINT eRP ) override;

View File

@ -1158,11 +1158,11 @@ void SvxColorOptionsTabPage::Reset( const SfxItemSet* )
UpdateColorConfig(); UpdateColorConfig();
} }
SfxTabPage::sfxpg SvxColorOptionsTabPage::DeactivatePage( SfxItemSet* pSet_ ) DeactivateRC SvxColorOptionsTabPage::DeactivatePage( SfxItemSet* pSet_ )
{ {
if ( pSet_ ) if ( pSet_ )
FillItemSet( pSet_ ); FillItemSet( pSet_ );
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }
void SvxColorOptionsTabPage::UpdateColorConfig() void SvxColorOptionsTabPage::UpdateColorConfig()

View File

@ -56,7 +56,7 @@ public:
virtual bool FillItemSet( SfxItemSet* rSet ) override; virtual bool FillItemSet( SfxItemSet* rSet ) override;
virtual void Reset( const SfxItemSet* rSet ) override; virtual void Reset( const SfxItemSet* rSet ) override;
virtual sfxpg DeactivatePage( SfxItemSet* pSet ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
virtual void FillUserData() override; virtual void FillUserData() override;
}; };

View File

@ -189,11 +189,11 @@ void OpenGLCfg::setForceOpenGL(bool bOpenGL)
// class OfaMiscTabPage -------------------------------------------------- // class OfaMiscTabPage --------------------------------------------------
SvxGeneralTabPage::sfxpg OfaMiscTabPage::DeactivatePage( SfxItemSet* pSet_ ) DeactivateRC OfaMiscTabPage::DeactivatePage( SfxItemSet* pSet_ )
{ {
if ( pSet_ ) if ( pSet_ )
FillItemSet( pSet_ ); FillItemSet( pSet_ );
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }
namespace namespace

View File

@ -61,7 +61,7 @@ private:
DECL_LINK_TYPED( TwoFigureConfigHdl, SpinField&, void ); DECL_LINK_TYPED( TwoFigureConfigHdl, SpinField&, void );
DECL_LINK_TYPED( TwoFigureConfigFocusHdl, Control&, void ); DECL_LINK_TYPED( TwoFigureConfigFocusHdl, Control&, void );
protected: protected:
virtual sfxpg DeactivatePage( SfxItemSet* pSet = nullptr ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pSet = nullptr ) override;
public: public:
OfaMiscTabPage( vcl::Window* pParent, const SfxItemSet& rSet ); OfaMiscTabPage( vcl::Window* pParent, const SfxItemSet& rSet );

View File

@ -416,11 +416,11 @@ void SvxGeneralTabPage::SetAddress_Impl()
} }
SvxGeneralTabPage::sfxpg SvxGeneralTabPage::DeactivatePage( SfxItemSet* pSet_ ) DeactivateRC SvxGeneralTabPage::DeactivatePage( SfxItemSet* pSet_ )
{ {
if ( pSet_ ) if ( pSet_ )
FillItemSet( pSet_ ); FillItemSet( pSet_ );
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@ -867,11 +867,11 @@ void SvxSecurityTabPage::ActivatePage( const SfxItemSet& )
{ {
} }
SfxTabPage::sfxpg SvxSecurityTabPage::DeactivatePage( SfxItemSet* _pSet ) DeactivateRC SvxSecurityTabPage::DeactivatePage( SfxItemSet* _pSet )
{ {
if( _pSet ) if( _pSet )
FillItemSet( _pSet ); FillItemSet( _pSet );
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }
namespace namespace

View File

@ -150,7 +150,7 @@ private:
protected: protected:
virtual void ActivatePage( const SfxItemSet& rSet ) override; virtual void ActivatePage( const SfxItemSet& rSet ) override;
virtual sfxpg DeactivatePage( SfxItemSet* pSet = nullptr ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pSet = nullptr ) override;
public: public:
static VclPtr<SfxTabPage> Create( vcl::Window* pParent, const SfxItemSet* rAttrSet ); static VclPtr<SfxTabPage> Create( vcl::Window* pParent, const SfxItemSet* rAttrSet );

View File

@ -102,11 +102,11 @@ inline void OfaMemoryOptionsPage::SetNfGraphicObjectCacheLast( long nSizeInBytes
m_pNfGraphicObjectCache->SetLast( long( double( nSizeInBytes ) * BYTES2NF ) ); m_pNfGraphicObjectCache->SetLast( long( double( nSizeInBytes ) * BYTES2NF ) );
} }
SfxTabPage::sfxpg OfaMemoryOptionsPage::DeactivatePage( SfxItemSet* _pSet ) DeactivateRC OfaMemoryOptionsPage::DeactivatePage( SfxItemSet* _pSet )
{ {
if ( _pSet ) if ( _pSet )
FillItemSet( _pSet ); FillItemSet( _pSet );
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }

View File

@ -52,7 +52,7 @@ private:
inline void SetNfGraphicObjectCacheMax( long nSizeInBytes ); inline void SetNfGraphicObjectCacheMax( long nSizeInBytes );
inline void SetNfGraphicObjectCacheLast( long nSizeInBytes ); inline void SetNfGraphicObjectCacheLast( long nSizeInBytes );
protected: protected:
virtual sfxpg DeactivatePage( SfxItemSet* pSet = nullptr ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pSet = nullptr ) override;
public: public:
OfaMemoryOptionsPage( vcl::Window* pParent, const SfxItemSet& rSet ); OfaMemoryOptionsPage( vcl::Window* pParent, const SfxItemSet& rSet );

View File

@ -685,8 +685,8 @@ IMPL_LINK_NOARG_TYPED(OfaTreeOptionsDialog, OKHdl_Impl, Button*, void)
if ( RID_SVXPAGE_COLOR != pPageInfo->m_nPageId if ( RID_SVXPAGE_COLOR != pPageInfo->m_nPageId
&& pPageInfo->m_pPage->HasExchangeSupport() ) && pPageInfo->m_pPage->HasExchangeSupport() )
{ {
int nLeave = pPageInfo->m_pPage->DeactivatePage(pGroupInfo->m_pOutItemSet); DeactivateRC nLeave = pPageInfo->m_pPage->DeactivatePage(pGroupInfo->m_pOutItemSet);
if ( nLeave == SfxTabPage::KEEP_PAGE ) if ( nLeave == DeactivateRC::KeepPage )
{ {
// the page mustn't be left // the page mustn't be left
pTreeLB->Select(pCurrentPageEntry); pTreeLB->Select(pCurrentPageEntry);
@ -951,11 +951,11 @@ void OfaTreeOptionsDialog::SelectHdl_Impl()
{ {
pOldPage = pOptPageInfo->m_pPage; pOldPage = pOptPageInfo->m_pPage;
OptionsGroupInfo* pGroupInfo = static_cast<OptionsGroupInfo*>(pTreeLB->GetParent(pCurrentPageEntry)->GetUserData()); OptionsGroupInfo* pGroupInfo = static_cast<OptionsGroupInfo*>(pTreeLB->GetParent(pCurrentPageEntry)->GetUserData());
int nLeave = SfxTabPage::LEAVE_PAGE; DeactivateRC nLeave = DeactivateRC::LeavePage;
if ( RID_SVXPAGE_COLOR != pOptPageInfo->m_nPageId && pOptPageInfo->m_pPage->HasExchangeSupport() ) if ( RID_SVXPAGE_COLOR != pOptPageInfo->m_nPageId && pOptPageInfo->m_pPage->HasExchangeSupport() )
nLeave = pOptPageInfo->m_pPage->DeactivatePage( pGroupInfo->m_pOutItemSet ); nLeave = pOptPageInfo->m_pPage->DeactivatePage( pGroupInfo->m_pOutItemSet );
if ( nLeave == SfxTabPage::KEEP_PAGE ) if ( nLeave == DeactivateRC::KeepPage )
{ {
// we cannot leave this page // we cannot leave this page
pBox->Select( pCurrentPageEntry ); pBox->Select( pCurrentPageEntry );

View File

@ -316,11 +316,11 @@ void AlignmentTabPage::Reset( const SfxItemSet* rCoreAttrs )
UpdateEnableControls(); UpdateEnableControls();
} }
SfxTabPage::sfxpg AlignmentTabPage::DeactivatePage( SfxItemSet* _pSet ) DeactivateRC AlignmentTabPage::DeactivatePage( SfxItemSet* _pSet )
{ {
if( _pSet ) if( _pSet )
FillItemSet( _pSet ); FillItemSet( _pSet );
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }
void AlignmentTabPage::DataChanged( const DataChangedEvent& rDCEvt ) void AlignmentTabPage::DataChanged( const DataChangedEvent& rDCEvt )

View File

@ -945,9 +945,9 @@ void OfaAutocorrReplacePage::ActivatePage( const SfxItemSet& )
static_cast<OfaAutoCorrDlg*>(GetTabDialog())->EnableLanguage(true); static_cast<OfaAutoCorrDlg*>(GetTabDialog())->EnableLanguage(true);
} }
SfxTabPage::sfxpg OfaAutocorrReplacePage::DeactivatePage( SfxItemSet* ) DeactivateRC OfaAutocorrReplacePage::DeactivatePage( SfxItemSet* )
{ {
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }
bool OfaAutocorrReplacePage::FillItemSet( SfxItemSet* ) bool OfaAutocorrReplacePage::FillItemSet( SfxItemSet* )
@ -1464,9 +1464,9 @@ void OfaAutocorrExceptPage::ActivatePage( const SfxItemSet& )
static_cast<OfaAutoCorrDlg*>(GetTabDialog())->EnableLanguage(true); static_cast<OfaAutoCorrDlg*>(GetTabDialog())->EnableLanguage(true);
} }
SfxTabPage::sfxpg OfaAutocorrExceptPage::DeactivatePage( SfxItemSet* ) DeactivateRC OfaAutocorrExceptPage::DeactivatePage( SfxItemSet* )
{ {
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }
bool OfaAutocorrExceptPage::FillItemSet( SfxItemSet* ) bool OfaAutocorrExceptPage::FillItemSet( SfxItemSet* )

View File

@ -919,15 +919,15 @@ bool SvxBackgroundTabPage::FillItemSetWithWallpaperItem( SfxItemSet& rCoreSet, s
} }
/** virtual method; is called on deactivation */ /** virtual method; is called on deactivation */
SfxTabPage::sfxpg SvxBackgroundTabPage::DeactivatePage( SfxItemSet* _pSet ) DeactivateRC SvxBackgroundTabPage::DeactivatePage( SfxItemSet* _pSet )
{ {
if ( pPageImpl->bIsImportDlgInExecute ) if ( pPageImpl->bIsImportDlgInExecute )
return KEEP_PAGE; return DeactivateRC::KeepPage;
if ( _pSet ) if ( _pSet )
FillItemSet( _pSet ); FillItemSet( _pSet );
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }
void SvxBackgroundTabPage::PointChanged( vcl::Window* , RECT_POINT ) void SvxBackgroundTabPage::PointChanged( vcl::Window* , RECT_POINT )

View File

@ -632,12 +632,12 @@ void SvxBorderTabPage::ChangesApplied()
} }
SfxTabPage::sfxpg SvxBorderTabPage::DeactivatePage( SfxItemSet* _pSet ) DeactivateRC SvxBorderTabPage::DeactivatePage( SfxItemSet* _pSet )
{ {
if ( _pSet ) if ( _pSet )
FillItemSet( _pSet ); FillItemSet( _pSet );
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }

View File

@ -1202,11 +1202,11 @@ void SvxCharNamePage::ActivatePage( const SfxItemSet& rSet )
} }
SfxTabPage::sfxpg SvxCharNamePage::DeactivatePage( SfxItemSet* _pSet ) DeactivateRC SvxCharNamePage::DeactivatePage( SfxItemSet* _pSet )
{ {
if ( _pSet ) if ( _pSet )
FillItemSet( _pSet ); FillItemSet( _pSet );
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }
@ -1767,11 +1767,11 @@ IMPL_LINK_TYPED( SvxCharEffectsPage, ColorBoxSelectHdl_Impl, ListBox&, rListBox,
} }
SfxTabPage::sfxpg SvxCharEffectsPage::DeactivatePage( SfxItemSet* _pSet ) DeactivateRC SvxCharEffectsPage::DeactivatePage( SfxItemSet* _pSet )
{ {
if ( _pSet ) if ( _pSet )
FillItemSet( _pSet ); FillItemSet( _pSet );
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }
@ -2865,11 +2865,11 @@ IMPL_LINK_NOARG_TYPED(SvxCharPositionPage, ScaleWidthModifyHdl_Impl, Edit&, void
m_pPreviewWin->SetFontWidthScale( sal_uInt16( m_pScaleWidthMF->GetValue() ) ); m_pPreviewWin->SetFontWidthScale( sal_uInt16( m_pScaleWidthMF->GetValue() ) );
} }
SfxTabPage::sfxpg SvxCharPositionPage::DeactivatePage( SfxItemSet* _pSet ) DeactivateRC SvxCharPositionPage::DeactivatePage( SfxItemSet* _pSet )
{ {
if ( _pSet ) if ( _pSet )
FillItemSet( _pSet ); FillItemSet( _pSet );
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }
@ -3402,11 +3402,11 @@ void SvxCharTwoLinesPage::ActivatePage( const SfxItemSet& rSet )
} }
SfxTabPage::sfxpg SvxCharTwoLinesPage::DeactivatePage( SfxItemSet* _pSet ) DeactivateRC SvxCharTwoLinesPage::DeactivatePage( SfxItemSet* _pSet )
{ {
if ( _pSet ) if ( _pSet )
FillItemSet( _pSet ); FillItemSet( _pSet );
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }

View File

@ -403,11 +403,11 @@ void SvxGrfCropPage::ActivatePage(const SfxItemSet& rSet)
CalcZoom(); CalcZoom();
} }
SfxTabPage::sfxpg SvxGrfCropPage::DeactivatePage(SfxItemSet *_pSet) DeactivateRC SvxGrfCropPage::DeactivatePage(SfxItemSet *_pSet)
{ {
if ( _pSet ) if ( _pSet )
FillItemSet( _pSet ); FillItemSet( _pSet );
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }
/*-------------------------------------------------------------------- /*--------------------------------------------------------------------

View File

@ -815,11 +815,11 @@ bool SvxNumberFormatTabPage::FillItemSet( SfxItemSet* rCoreAttrs )
} }
SfxTabPage::sfxpg SvxNumberFormatTabPage::DeactivatePage( SfxItemSet* _pSet ) DeactivateRC SvxNumberFormatTabPage::DeactivatePage( SfxItemSet* _pSet )
{ {
if ( _pSet ) if ( _pSet )
FillItemSet( _pSet ); FillItemSet( _pSet );
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }
void SvxNumberFormatTabPage::SetInfoItem( const SvxNumberInfoItem& rItem ) void SvxNumberFormatTabPage::SetInfoItem( const SvxNumberInfoItem& rItem )

View File

@ -292,11 +292,11 @@ void SvxSingleNumPickTabPage::ActivatePage(const SfxItemSet& rSet)
bModified = false; bModified = false;
} }
SfxTabPage::sfxpg SvxSingleNumPickTabPage::DeactivatePage(SfxItemSet *_pSet) DeactivateRC SvxSingleNumPickTabPage::DeactivatePage(SfxItemSet *_pSet)
{ {
if(_pSet) if(_pSet)
FillItemSet(_pSet); FillItemSet(_pSet);
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }
void SvxSingleNumPickTabPage::Reset( const SfxItemSet* rSet ) void SvxSingleNumPickTabPage::Reset( const SfxItemSet* rSet )
@ -456,11 +456,11 @@ void SvxBulletPickTabPage::ActivatePage(const SfxItemSet& rSet)
bModified = false; bModified = false;
} }
SfxTabPage::sfxpg SvxBulletPickTabPage::DeactivatePage(SfxItemSet *_pSet) DeactivateRC SvxBulletPickTabPage::DeactivatePage(SfxItemSet *_pSet)
{ {
if(_pSet) if(_pSet)
FillItemSet(_pSet); FillItemSet(_pSet);
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }
void SvxBulletPickTabPage::Reset( const SfxItemSet* rSet ) void SvxBulletPickTabPage::Reset( const SfxItemSet* rSet )
@ -658,11 +658,11 @@ void SvxNumPickTabPage::ActivatePage(const SfxItemSet& rSet)
bModified = false; bModified = false;
} }
SfxTabPage::sfxpg SvxNumPickTabPage::DeactivatePage(SfxItemSet *_pSet) DeactivateRC SvxNumPickTabPage::DeactivatePage(SfxItemSet *_pSet)
{ {
if(_pSet) if(_pSet)
FillItemSet(_pSet); FillItemSet(_pSet);
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }
void SvxNumPickTabPage::Reset( const SfxItemSet* rSet ) void SvxNumPickTabPage::Reset( const SfxItemSet* rSet )
@ -900,11 +900,11 @@ void SvxBitmapPickTabPage::ActivatePage(const SfxItemSet& rSet)
bModified = false; bModified = false;
} }
SfxTabPage::sfxpg SvxBitmapPickTabPage::DeactivatePage(SfxItemSet *_pSet) DeactivateRC SvxBitmapPickTabPage::DeactivatePage(SfxItemSet *_pSet)
{ {
if(_pSet) if(_pSet)
FillItemSet(_pSet); FillItemSet(_pSet);
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }
bool SvxBitmapPickTabPage::FillItemSet( SfxItemSet* rSet ) bool SvxBitmapPickTabPage::FillItemSet( SfxItemSet* rSet )
@ -1362,11 +1362,11 @@ void SvxNumOptionsTabPage::ActivatePage(const SfxItemSet& rSet)
} }
SfxTabPage::sfxpg SvxNumOptionsTabPage::DeactivatePage(SfxItemSet * _pSet) DeactivateRC SvxNumOptionsTabPage::DeactivatePage(SfxItemSet * _pSet)
{ {
if(_pSet) if(_pSet)
FillItemSet(_pSet); FillItemSet(_pSet);
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }
bool SvxNumOptionsTabPage::FillItemSet( SfxItemSet* rSet ) bool SvxNumOptionsTabPage::FillItemSet( SfxItemSet* rSet )
@ -3134,7 +3134,7 @@ void SvxNumPositionTabPage::ActivatePage(const SfxItemSet& rSet)
m_pPreviewWIN->Invalidate(); m_pPreviewWIN->Invalidate();
} }
SfxTabPage::sfxpg SvxNumPositionTabPage::DeactivatePage(SfxItemSet *_pSet) DeactivateRC SvxNumPositionTabPage::DeactivatePage(SfxItemSet *_pSet)
{ {
if(_pSet) if(_pSet)
{ {
@ -3143,7 +3143,7 @@ SfxTabPage::sfxpg SvxNumPositionTabPage::DeactivatePage(SfxItemSet *_pSet)
DistanceHdl_Impl(*m_pIndentMF); DistanceHdl_Impl(*m_pIndentMF);
FillItemSet(_pSet); FillItemSet(_pSet);
} }
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }
bool SvxNumPositionTabPage::FillItemSet( SfxItemSet* rSet ) bool SvxNumPositionTabPage::FillItemSet( SfxItemSet* rSet )

View File

@ -1423,7 +1423,7 @@ void SvxPageDescPage::ActivatePage( const SfxItemSet& rSet )
} }
SfxTabPage::sfxpg SvxPageDescPage::DeactivatePage( SfxItemSet* _pSet ) DeactivateRC SvxPageDescPage::DeactivatePage( SfxItemSet* _pSet )
{ {
// Inquiry whether the page margins are beyond the printing area. // Inquiry whether the page margins are beyond the printing area.
// If not, ask user whether they shall be taken. // If not, ask user whether they shall be taken.
@ -1449,7 +1449,7 @@ SfxTabPage::sfxpg SvxPageDescPage::DeactivatePage( SfxItemSet* _pSet )
if ( pField ) if ( pField )
pField->GrabFocus(); pField->GrabFocus();
UpdateExample_Impl(); UpdateExample_Impl();
return KEEP_PAGE; return DeactivateRC::KeepPage;
} }
else else
CheckMarginEdits( false ); CheckMarginEdits( false );
@ -1471,7 +1471,7 @@ SfxTabPage::sfxpg SvxPageDescPage::DeactivatePage( SfxItemSet* _pSet )
_pSet->Put( SvxSizeItem( nWh, aSize ) ); _pSet->Put( SvxSizeItem( nWh, aSize ) );
} }
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }

View File

@ -611,13 +611,13 @@ void SvxStdParagraphTabPage::EnableRelativeMode()
bRelativeMode = true; bRelativeMode = true;
} }
SfxTabPage::sfxpg SvxStdParagraphTabPage::DeactivatePage( SfxItemSet* _pSet ) DeactivateRC SvxStdParagraphTabPage::DeactivatePage( SfxItemSet* _pSet )
{ {
ELRLoseFocusHdl( *m_pFLineIndent ); ELRLoseFocusHdl( *m_pFLineIndent );
if ( _pSet ) if ( _pSet )
FillItemSet( _pSet ); FillItemSet( _pSet );
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }
SvxStdParagraphTabPage::SvxStdParagraphTabPage( vcl::Window* pParent, const SfxItemSet& rAttr ) : SvxStdParagraphTabPage::SvxStdParagraphTabPage( vcl::Window* pParent, const SfxItemSet& rAttr ) :
@ -1067,11 +1067,11 @@ void SvxParaAlignTabPage::dispose()
SfxTabPage::dispose(); SfxTabPage::dispose();
} }
SfxTabPage::sfxpg SvxParaAlignTabPage::DeactivatePage( SfxItemSet* _pSet ) DeactivateRC SvxParaAlignTabPage::DeactivatePage( SfxItemSet* _pSet )
{ {
if ( _pSet ) if ( _pSet )
FillItemSet( _pSet ); FillItemSet( _pSet );
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }
VclPtr<SfxTabPage> SvxParaAlignTabPage::Create( vcl::Window* pParent, const SfxItemSet* rSet ) VclPtr<SfxTabPage> SvxParaAlignTabPage::Create( vcl::Window* pParent, const SfxItemSet* rSet )
@ -1844,11 +1844,11 @@ void SvxExtParagraphTabPage::ChangesApplied()
m_pWidowRowNo->SetValue(m_pWidowRowNo->GetValue()); m_pWidowRowNo->SetValue(m_pWidowRowNo->GetValue());
} }
SfxTabPage::sfxpg SvxExtParagraphTabPage::DeactivatePage( SfxItemSet* _pSet ) DeactivateRC SvxExtParagraphTabPage::DeactivatePage( SfxItemSet* _pSet )
{ {
if ( _pSet ) if ( _pSet )
FillItemSet( _pSet ); FillItemSet( _pSet );
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }
void SvxExtParagraphTabPage::DisablePageBreak() void SvxExtParagraphTabPage::DisablePageBreak()

View File

@ -1089,11 +1089,11 @@ void SvxSwPosSizeTabPage::Reset( const SfxItemSet* rSet)
} }
} }
SfxTabPage::sfxpg SvxSwPosSizeTabPage::DeactivatePage( SfxItemSet* _pSet ) DeactivateRC SvxSwPosSizeTabPage::DeactivatePage( SfxItemSet* _pSet )
{ {
if( _pSet ) if( _pSet )
FillItemSet( _pSet ); FillItemSet( _pSet );
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }
void SvxSwPosSizeTabPage::EnableAnchorTypes(sal_uInt16 nAnchorEnable) void SvxSwPosSizeTabPage::EnableAnchorTypes(sal_uInt16 nAnchorEnable)

View File

@ -356,11 +356,11 @@ void SvxTabulatorTabPage::DisableControls(const TabulatorDisableFlags nFlag)
m_pFillFrame->Disable(); m_pFillFrame->Disable();
} }
SfxTabPage::sfxpg SvxTabulatorTabPage::DeactivatePage( SfxItemSet* _pSet ) DeactivateRC SvxTabulatorTabPage::DeactivatePage( SfxItemSet* _pSet )
{ {
if ( _pSet ) if ( _pSet )
FillItemSet( _pSet ); FillItemSet( _pSet );
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }
void SvxTabulatorTabPage::InitTabPos_Impl( sal_uInt16 nTabPos ) void SvxTabulatorTabPage::InitTabPos_Impl( sal_uInt16 nTabPos )

View File

@ -419,7 +419,7 @@ void SvxAreaTabPage::ActivatePage( const SfxItemSet& rSet )
} }
SfxTabPage::sfxpg SvxAreaTabPage::DeactivatePage( SfxItemSet* _pSet ) DeactivateRC SvxAreaTabPage::DeactivatePage( SfxItemSet* _pSet )
{ {
if( m_nDlgType == 0 ) // area dialog if( m_nDlgType == 0 ) // area dialog
{ {
@ -466,7 +466,7 @@ SfxTabPage::sfxpg SvxAreaTabPage::DeactivatePage( SfxItemSet* _pSet )
if( _pSet ) if( _pSet )
FillItemSet( _pSet ); FillItemSet( _pSet );
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }

View File

@ -229,15 +229,15 @@ void SvxBitmapTabPage::ActivatePage( const SfxItemSet& )
} }
SfxTabPage::sfxpg SvxBitmapTabPage::DeactivatePage( SfxItemSet* _pSet) DeactivateRC SvxBitmapTabPage::DeactivatePage( SfxItemSet* _pSet)
{ {
if ( CheckChanges_Impl() == -1L ) if ( CheckChanges_Impl() == -1L )
return KEEP_PAGE; return DeactivateRC::KeepPage;
if( _pSet ) if( _pSet )
FillItemSet( _pSet ); FillItemSet( _pSet );
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }

View File

@ -505,15 +505,15 @@ void SvxColorTabPage::ActivatePage( const SfxItemSet& )
m_pBoxEmbed->Hide(); m_pBoxEmbed->Hide();
} }
SfxTabPage::sfxpg SvxColorTabPage::DeactivatePage( SfxItemSet* _pSet ) DeactivateRC SvxColorTabPage::DeactivatePage( SfxItemSet* _pSet )
{ {
if ( CheckChanges_Impl() == -1L ) if ( CheckChanges_Impl() == -1L )
return KEEP_PAGE; return DeactivateRC::KeepPage;
if( _pSet ) if( _pSet )
FillItemSet( _pSet ); FillItemSet( _pSet );
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }

View File

@ -264,15 +264,15 @@ void SvxGradientTabPage::ActivatePage( const SfxItemSet& )
} }
SfxTabPage::sfxpg SvxGradientTabPage::DeactivatePage( SfxItemSet* _pSet ) DeactivateRC SvxGradientTabPage::DeactivatePage( SfxItemSet* _pSet )
{ {
if( CheckChanges_Impl() == -1L ) if( CheckChanges_Impl() == -1L )
return KEEP_PAGE; return DeactivateRC::KeepPage;
if( _pSet ) if( _pSet )
FillItemSet( _pSet ); FillItemSet( _pSet );
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }

View File

@ -254,15 +254,15 @@ void SvxHatchTabPage::ActivatePage( const SfxItemSet& rSet )
} }
SfxTabPage::sfxpg SvxHatchTabPage::DeactivatePage( SfxItemSet* _pSet ) DeactivateRC SvxHatchTabPage::DeactivatePage( SfxItemSet* _pSet )
{ {
if ( CheckChanges_Impl() == -1L ) if ( CheckChanges_Impl() == -1L )
return KEEP_PAGE; return DeactivateRC::KeepPage;
if( _pSet ) if( _pSet )
FillItemSet( _pSet ); FillItemSet( _pSet );
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }

View File

@ -678,7 +678,7 @@ void SvxLineTabPage::ActivatePage( const SfxItemSet& rSet )
} }
SfxTabPage::sfxpg SvxLineTabPage::DeactivatePage( SfxItemSet* _pSet ) DeactivateRC SvxLineTabPage::DeactivatePage( SfxItemSet* _pSet )
{ {
if( m_nDlgType == 0 ) // Line dialog if( m_nDlgType == 0 ) // Line dialog
{ {
@ -693,7 +693,7 @@ SfxTabPage::sfxpg SvxLineTabPage::DeactivatePage( SfxItemSet* _pSet )
if( _pSet ) if( _pSet )
FillItemSet( _pSet ); FillItemSet( _pSet );
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }

View File

@ -215,14 +215,14 @@ void SvxLineDefTabPage::ActivatePage( const SfxItemSet& )
} }
SfxTabPage::sfxpg SvxLineDefTabPage::DeactivatePage( SfxItemSet* _pSet ) DeactivateRC SvxLineDefTabPage::DeactivatePage( SfxItemSet* _pSet )
{ {
CheckChanges_Impl(); CheckChanges_Impl();
if( _pSet ) if( _pSet )
FillItemSet( _pSet ); FillItemSet( _pSet );
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }

View File

@ -179,14 +179,14 @@ void SvxLineEndDefTabPage::ActivatePage( const SfxItemSet& )
} }
SfxTabPage::sfxpg SvxLineEndDefTabPage::DeactivatePage( SfxItemSet* _pSet ) DeactivateRC SvxLineEndDefTabPage::DeactivatePage( SfxItemSet* _pSet )
{ {
CheckChanges_Impl(); CheckChanges_Impl();
if( _pSet ) if( _pSet )
FillItemSet( _pSet ); FillItemSet( _pSet );
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }

View File

@ -255,12 +255,12 @@ void SvxShadowTabPage::ActivatePage( const SfxItemSet& rSet )
} }
SfxTabPage::sfxpg SvxShadowTabPage::DeactivatePage( SfxItemSet* _pSet ) DeactivateRC SvxShadowTabPage::DeactivatePage( SfxItemSet* _pSet )
{ {
if( _pSet ) if( _pSet )
FillItemSet( _pSet ); FillItemSet( _pSet );
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }

View File

@ -482,11 +482,11 @@ void SvxTransparenceTabPage::ActivatePage(const SfxItemSet& rSet)
InitPreview ( rSet ); InitPreview ( rSet );
} }
SfxTabPage::sfxpg SvxTransparenceTabPage::DeactivatePage(SfxItemSet* _pSet) DeactivateRC SvxTransparenceTabPage::DeactivatePage(SfxItemSet* _pSet)
{ {
if( _pSet ) if( _pSet )
FillItemSet( _pSet ); FillItemSet( _pSet );
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }
void SvxTransparenceTabPage::PointChanged(vcl::Window* , RECT_POINT eRcPt) void SvxTransparenceTabPage::PointChanged(vcl::Window* , RECT_POINT eRcPt)

View File

@ -333,14 +333,14 @@ void SvxAngleTabPage::ActivatePage(const SfxItemSet& /*rSet*/)
} }
SfxTabPage::sfxpg SvxAngleTabPage::DeactivatePage( SfxItemSet* _pSet ) DeactivateRC SvxAngleTabPage::DeactivatePage( SfxItemSet* _pSet )
{ {
if(_pSet) if(_pSet)
{ {
FillItemSet(_pSet); FillItemSet(_pSet);
} }
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }
@ -703,14 +703,14 @@ void SvxSlantTabPage::ActivatePage( const SfxItemSet& rSet )
} }
SfxTabPage::sfxpg SvxSlantTabPage::DeactivatePage( SfxItemSet* _pSet ) DeactivateRC SvxSlantTabPage::DeactivatePage( SfxItemSet* _pSet )
{ {
if(_pSet) if(_pSet)
{ {
FillItemSet(_pSet); FillItemSet(_pSet);
} }
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }
@ -1158,7 +1158,7 @@ void SvxPositionSizeTabPage::ActivatePage( const SfxItemSet& rSet )
} }
SfxTabPage::sfxpg SvxPositionSizeTabPage::DeactivatePage( SfxItemSet* _pSet ) DeactivateRC SvxPositionSizeTabPage::DeactivatePage( SfxItemSet* _pSet )
{ {
if( _pSet ) if( _pSet )
{ {
@ -1174,7 +1174,7 @@ SfxTabPage::sfxpg SvxPositionSizeTabPage::DeactivatePage( SfxItemSet* _pSet )
FillItemSet(_pSet); FillItemSet(_pSet);
} }
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }

View File

@ -66,16 +66,16 @@ namespace dbaui
SetExchangeSupport(); SetExchangeSupport();
} }
SfxTabPage::sfxpg OGenericAdministrationPage::DeactivatePage(SfxItemSet* _pSet) DeactivateRC OGenericAdministrationPage::DeactivatePage(SfxItemSet* _pSet)
{ {
if (_pSet) if (_pSet)
{ {
if (!prepareLeave()) if (!prepareLeave())
return KEEP_PAGE; return DeactivateRC::KeepPage;
FillItemSet(_pSet); FillItemSet(_pSet);
} }
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }
void OGenericAdministrationPage::Reset(const SfxItemSet* _rCoreAttrs) void OGenericAdministrationPage::Reset(const SfxItemSet* _rCoreAttrs)

View File

@ -125,7 +125,7 @@ namespace dbaui
protected: protected:
/// default implementation: call FillItemSet, call prepareLeave, /// default implementation: call FillItemSet, call prepareLeave,
virtual sfxpg DeactivatePage(SfxItemSet* pSet) override; virtual DeactivateRC DeactivatePage(SfxItemSet* pSet) override;
using SfxTabPage::DeactivatePage; using SfxTabPage::DeactivatePage;
/// default implementation: call implInitControls with the given item set and _bSaveValue = sal_False /// default implementation: call implInitControls with the given item set and _bSaveValue = sal_False
virtual void Reset(const SfxItemSet* _rCoreAttrs) override; virtual void Reset(const SfxItemSet* _rCoreAttrs) override;

View File

@ -650,7 +650,7 @@ bool ODbTypeWizDialogSetup::leaveState(WizardState _nState)
resetPages(m_pImpl->getCurrentDataSource()); resetPages(m_pImpl->getCurrentDataSource());
} }
SfxTabPage* pPage = static_cast<SfxTabPage*>(WizardDialog::GetPage(_nState)); SfxTabPage* pPage = static_cast<SfxTabPage*>(WizardDialog::GetPage(_nState));
return pPage && pPage->DeactivatePage(m_pOutSet) != 0; return pPage && pPage->DeactivatePage(m_pOutSet) != DeactivateRC::LeavePage;
} }
void ODbTypeWizDialogSetup::setTitle(const OUString& /*_sTitle*/) void ODbTypeWizDialogSetup::setTitle(const OUString& /*_sTitle*/)
@ -659,9 +659,8 @@ void ODbTypeWizDialogSetup::setTitle(const OUString& /*_sTitle*/)
// why? // why?
} }
void ODbTypeWizDialogSetup::enableConfirmSettings( bool _bEnable ) void ODbTypeWizDialogSetup::enableConfirmSettings( bool /*_bEnable*/ )
{ {
(void)_bEnable;
} }
namespace namespace

View File

@ -384,9 +384,9 @@ namespace dbaui
m_pTablesList->checkWildcard(m_pTablesList->getAllObjectsEntry()); m_pTablesList->checkWildcard(m_pTablesList->getAllObjectsEntry());
} }
SfxTabPage::sfxpg OTableSubscriptionPage::DeactivatePage(SfxItemSet* _pSet) DeactivateRC OTableSubscriptionPage::DeactivatePage(SfxItemSet* _pSet)
{ {
sfxpg nResult = OGenericAdministrationPage::DeactivatePage(_pSet); DeactivateRC nResult = OGenericAdministrationPage::DeactivatePage(_pSet);
// dispose the connection, we don't need it anymore, so we're not wasting resources // dispose the connection, we don't need it anymore, so we're not wasting resources
try try

View File

@ -50,7 +50,7 @@ namespace dbaui
public: public:
virtual bool FillItemSet(SfxItemSet* _rCoreAttrs) override; virtual bool FillItemSet(SfxItemSet* _rCoreAttrs) override;
virtual sfxpg DeactivatePage(SfxItemSet* _pSet) override; virtual DeactivateRC DeactivatePage(SfxItemSet* _pSet) override;
using OGenericAdministrationPage::DeactivatePage; using OGenericAdministrationPage::DeactivatePage;
virtual void StateChanged( StateChangedType nStateChange ) override; virtual void StateChanged( StateChangedType nStateChange ) override;

View File

@ -511,7 +511,7 @@ protected:
virtual bool FillItemSet( SfxItemSet* ) override; virtual bool FillItemSet( SfxItemSet* ) override;
virtual void Reset( const SfxItemSet* ) override; virtual void Reset( const SfxItemSet* ) override;
virtual sfxpg DeactivatePage( SfxItemSet* pSet = nullptr ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pSet = nullptr ) override;
public: public:
SfxCustomPropertiesPage( vcl::Window* pParent, const SfxItemSet& ); SfxCustomPropertiesPage( vcl::Window* pParent, const SfxItemSet& );
@ -630,7 +630,7 @@ private:
protected: protected:
virtual bool FillItemSet( SfxItemSet* ) override; virtual bool FillItemSet( SfxItemSet* ) override;
virtual void Reset( const SfxItemSet* ) override; virtual void Reset( const SfxItemSet* ) override;
virtual sfxpg DeactivatePage( SfxItemSet* pSet = nullptr ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pSet = nullptr ) override;
public: public:
SfxCmisPropertiesPage( vcl::Window* pParent, const SfxItemSet& ); SfxCmisPropertiesPage( vcl::Window* pParent, const SfxItemSet& );

View File

@ -93,7 +93,7 @@ protected:
using TabPage::ActivatePage; using TabPage::ActivatePage;
virtual void ActivatePage(const SfxItemSet &) override; virtual void ActivatePage(const SfxItemSet &) override;
using TabPage::DeactivatePage; using TabPage::DeactivatePage;
virtual sfxpg DeactivatePage(SfxItemSet * = nullptr) override; virtual DeactivateRC DeactivatePage(SfxItemSet * = nullptr) override;
public: public:
SfxManageStyleSheetPage(vcl::Window *pParent, const SfxItemSet &rAttrSet ); SfxManageStyleSheetPage(vcl::Window *pParent, const SfxItemSet &rAttrSet );

View File

@ -86,7 +86,7 @@ private:
protected: protected:
using TabPage::DeactivatePage; using TabPage::DeactivatePage;
virtual sfxpg DeactivatePage( SfxItemSet* pSet = nullptr ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pSet = nullptr ) override;
public: public:

View File

@ -30,6 +30,7 @@
#include <svl/itempool.hxx> #include <svl/itempool.hxx>
#include <svl/itemset.hxx> #include <svl/itemset.hxx>
#include <com/sun/star/frame/XFrame.hpp> #include <com/sun/star/frame/XFrame.hpp>
#include <o3tl/typed_flags_set.hxx>
class SfxPoolItem; class SfxPoolItem;
class SfxTabDialog; class SfxTabDialog;
@ -201,6 +202,18 @@ public:
namespace sfx { class ItemConnectionBase; } namespace sfx { class ItemConnectionBase; }
enum class DeactivateRC {
KeepPage = 0x00, // Error handling; page does not change
// 2. Fill an itemset for update
// parent examples, this pointer can be NULL all the time!
LeavePage = 0x01,
// Set, refresh and update other Page
RefreshSet = 0x02
};
namespace o3tl {
template<> struct typed_flags<DeactivateRC> : is_typed_flags<DeactivateRC, 0x03> {};
}
class SFX2_DLLPUBLIC SfxTabPage: public TabPage class SFX2_DLLPUBLIC SfxTabPage: public TabPage
{ {
friend class SfxTabDialog; friend class SfxTabDialog;
@ -235,19 +248,10 @@ public:
void SetExchangeSupport() void SetExchangeSupport()
{ bHasExchangeSupport = true; } { bHasExchangeSupport = true; }
enum sfxpg {
KEEP_PAGE = 0x0000, // Error handling; page does not change
// 2. Fill an itemset for update
// parent examples, this pointer can be NULL all the time!
LEAVE_PAGE = 0x0001,
// Set, refresh and update other Page
REFRESH_SET = 0x0002
};
using TabPage::ActivatePage; using TabPage::ActivatePage;
using TabPage::DeactivatePage; using TabPage::DeactivatePage;
virtual void ActivatePage( const SfxItemSet& ); virtual void ActivatePage( const SfxItemSet& );
virtual sfxpg DeactivatePage( SfxItemSet* pSet ); virtual DeactivateRC DeactivatePage( SfxItemSet* pSet );
void SetUserData(const OUString& rString) void SetUserData(const OUString& rString)
{ aUserString = rString; } { aUserString = rString; }
const OUString& GetUserData() { return aUserString; } const OUString& GetUserData() { return aUserString; }

View File

@ -65,7 +65,7 @@ protected:
static const sal_uInt16 pRanges[]; static const sal_uInt16 pRanges[];
virtual void ActivatePage( const SfxItemSet& rSet ) override; virtual void ActivatePage( const SfxItemSet& rSet ) override;
virtual sfxpg DeactivatePage( SfxItemSet* pSet = nullptr ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pSet = nullptr ) override;
SvxHFPage( vcl::Window* pParent, const SfxItemSet& rSet, sal_uInt16 nSetId ); SvxHFPage( vcl::Window* pParent, const SfxItemSet& rSet, sal_uInt16 nSetId );

View File

@ -110,7 +110,7 @@ public:
virtual void Reset( const SfxItemSet* rSet ) override; virtual void Reset( const SfxItemSet* rSet ) override;
virtual void ActivatePage( const SfxItemSet& rSet ) override; virtual void ActivatePage( const SfxItemSet& rSet ) override;
virtual sfxpg DeactivatePage( SfxItemSet* pSet ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
private: private:
VclPtr<CheckBox> pCbxUseGridsnap; VclPtr<CheckBox> pCbxUseGridsnap;

View File

@ -149,12 +149,12 @@ bool ScTabPageProtection::FillItemSet( SfxItemSet* rCoreAttrs )
return bAttrsChanged; return bAttrsChanged;
} }
SfxTabPage::sfxpg ScTabPageProtection::DeactivatePage( SfxItemSet* pSetP ) DeactivateRC ScTabPageProtection::DeactivatePage( SfxItemSet* pSetP )
{ {
if ( pSetP ) if ( pSetP )
FillItemSet( pSetP ); FillItemSet( pSetP );
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }
IMPL_LINK_TYPED( ScTabPageProtection, ButtonClickHdl, Button*, pBox, void ) IMPL_LINK_TYPED( ScTabPageProtection, ButtonClickHdl, Button*, pBox, void )

View File

@ -319,7 +319,7 @@ void ScTabPageSortFields::ActivatePage( const SfxItemSet& rSet )
} }
} }
SfxTabPage::sfxpg ScTabPageSortFields::DeactivatePage( SfxItemSet* pSetP ) DeactivateRC ScTabPageSortFields::DeactivatePage( SfxItemSet* pSetP )
{ {
if ( pDlg ) if ( pDlg )
{ {
@ -333,7 +333,7 @@ SfxTabPage::sfxpg ScTabPageSortFields::DeactivatePage( SfxItemSet* pSetP )
if ( pSetP ) if ( pSetP )
FillItemSet( pSetP ); FillItemSet( pSetP );
return SfxTabPage::LEAVE_PAGE; return DeactivateRC::LeavePage;
} }
void ScTabPageSortFields::FillFieldLists( sal_uInt16 nStartField ) void ScTabPageSortFields::FillFieldLists( sal_uInt16 nStartField )
@ -783,7 +783,7 @@ void ScTabPageSortOptions::ActivatePage( const SfxItemSet& rSet )
} }
} }
SfxTabPage::sfxpg ScTabPageSortOptions::DeactivatePage( SfxItemSet* pSetP ) DeactivateRC ScTabPageSortOptions::DeactivatePage( SfxItemSet* pSetP )
{ {
bool bPosInputOk = true; bool bPosInputOk = true;
@ -830,7 +830,7 @@ SfxTabPage::sfxpg ScTabPageSortOptions::DeactivatePage( SfxItemSet* pSetP )
if ( pSetP && bPosInputOk ) if ( pSetP && bPosInputOk )
FillItemSet( pSetP ); FillItemSet( pSetP );
return bPosInputOk ? SfxTabPage::LEAVE_PAGE : SfxTabPage::KEEP_PAGE; return bPosInputOk ? DeactivateRC::LeavePage : DeactivateRC::KeepPage;
} }
void ScTabPageSortOptions::FillUserSortListBox() void ScTabPageSortOptions::FillUserSortListBox()

View File

@ -40,7 +40,7 @@ public:
protected: protected:
using SfxTabPage::DeactivatePage; using SfxTabPage::DeactivatePage;
virtual sfxpg DeactivatePage ( SfxItemSet* pSet = nullptr ) override; virtual DeactivateRC DeactivatePage ( SfxItemSet* pSet = nullptr ) override;
private: private:
ScTabPageProtection( vcl::Window* pParent, ScTabPageProtection( vcl::Window* pParent,

View File

@ -38,7 +38,7 @@ public:
virtual bool FillItemSet ( SfxItemSet* rCoreSet ) override; virtual bool FillItemSet ( SfxItemSet* rCoreSet ) override;
virtual void Reset ( const SfxItemSet* rCoreSet ) override; virtual void Reset ( const SfxItemSet* rCoreSet ) override;
using SfxTabPage::DeactivatePage; using SfxTabPage::DeactivatePage;
virtual sfxpg DeactivatePage ( SfxItemSet* pSet = nullptr ) override; virtual DeactivateRC DeactivatePage ( SfxItemSet* pSet = nullptr ) override;
private: private:
ScTpCalcOptions( vcl::Window* pParent, ScTpCalcOptions( vcl::Window* pParent,

View File

@ -24,7 +24,7 @@ public:
virtual bool FillItemSet(SfxItemSet* rCoreAttrs) override; virtual bool FillItemSet(SfxItemSet* rCoreAttrs) override;
virtual void Reset(const SfxItemSet* rCoreAttrs) override; virtual void Reset(const SfxItemSet* rCoreAttrs) override;
virtual sfxpg DeactivatePage(SfxItemSet* pSet = nullptr) override; virtual DeactivateRC DeactivatePage(SfxItemSet* pSet = nullptr) override;
virtual ~ScTpCompatOptions(); virtual ~ScTpCompatOptions();
virtual void dispose() override; virtual void dispose() override;

View File

@ -24,7 +24,7 @@ public:
virtual bool FillItemSet(SfxItemSet* rCoreSet) override; virtual bool FillItemSet(SfxItemSet* rCoreSet) override;
virtual void Reset(const SfxItemSet* rCoreSet) override; virtual void Reset(const SfxItemSet* rCoreSet) override;
virtual sfxpg DeactivatePage(SfxItemSet* pSet = nullptr) override; virtual DeactivateRC DeactivatePage(SfxItemSet* pSet = nullptr) override;
private: private:
explicit ScTpDefaultsOptions(vcl::Window* pParent, const SfxItemSet& rCoreSet); explicit ScTpDefaultsOptions(vcl::Window* pParent, const SfxItemSet& rCoreSet);

View File

@ -39,7 +39,7 @@ public:
virtual bool FillItemSet(SfxItemSet* rCoreSet) override; virtual bool FillItemSet(SfxItemSet* rCoreSet) override;
virtual void Reset( const SfxItemSet* rCoreSet ) override; virtual void Reset( const SfxItemSet* rCoreSet ) override;
virtual sfxpg DeactivatePage(SfxItemSet* pSet = nullptr) override; virtual DeactivateRC DeactivatePage(SfxItemSet* pSet = nullptr) override;
private: private:
explicit ScTpFormulaOptions(vcl::Window* pParent, const SfxItemSet& rCoreSet); explicit ScTpFormulaOptions(vcl::Window* pParent, const SfxItemSet& rCoreSet);

View File

@ -44,7 +44,7 @@ protected:
virtual void ActivatePage() override; virtual void ActivatePage() override;
virtual void DeactivatePage() override; virtual void DeactivatePage() override;
virtual void ActivatePage( const SfxItemSet& rSet ) override; virtual void ActivatePage( const SfxItemSet& rSet ) override;
virtual sfxpg DeactivatePage( SfxItemSet* pSet = nullptr ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pSet = nullptr ) override;
private: private:
VclPtr<PushButton> m_pBtnEdit; VclPtr<PushButton> m_pBtnEdit;

View File

@ -38,7 +38,7 @@ public:
virtual bool FillItemSet( SfxItemSet* rCoreSet ) override; virtual bool FillItemSet( SfxItemSet* rCoreSet ) override;
virtual void Reset( const SfxItemSet* rCoreSet ) override; virtual void Reset( const SfxItemSet* rCoreSet ) override;
using SfxTabPage::DeactivatePage; using SfxTabPage::DeactivatePage;
virtual sfxpg DeactivatePage( SfxItemSet* pSet = nullptr ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pSet = nullptr ) override;
}; };
#endif #endif

View File

@ -64,7 +64,7 @@ protected:
virtual void ActivatePage ( const SfxItemSet& rSet ) override; virtual void ActivatePage ( const SfxItemSet& rSet ) override;
using SfxTabPage::ActivatePage; using SfxTabPage::ActivatePage;
using SfxTabPage::DeactivatePage; using SfxTabPage::DeactivatePage;
virtual sfxpg DeactivatePage ( SfxItemSet* pSet = nullptr) override; virtual DeactivateRC DeactivatePage ( SfxItemSet* pSet = nullptr) override;
private: private:
OUString aStrUndefined; OUString aStrUndefined;
@ -122,7 +122,7 @@ protected:
virtual void ActivatePage ( const SfxItemSet& rSet ) override; virtual void ActivatePage ( const SfxItemSet& rSet ) override;
using SfxTabPage::ActivatePage; using SfxTabPage::ActivatePage;
using SfxTabPage::DeactivatePage; using SfxTabPage::DeactivatePage;
virtual sfxpg DeactivatePage ( SfxItemSet* pSet = nullptr) override; virtual DeactivateRC DeactivatePage ( SfxItemSet* pSet = nullptr) override;
private: private:

View File

@ -36,7 +36,7 @@ public:
virtual bool FillItemSet ( SfxItemSet* rCoreSet ) override; virtual bool FillItemSet ( SfxItemSet* rCoreSet ) override;
virtual void Reset ( const SfxItemSet* rCoreSet ) override; virtual void Reset ( const SfxItemSet* rCoreSet ) override;
using SfxTabPage::DeactivatePage; using SfxTabPage::DeactivatePage;
virtual sfxpg DeactivatePage ( SfxItemSet* pSet = nullptr ) override; virtual DeactivateRC DeactivatePage ( SfxItemSet* pSet = nullptr ) override;
virtual void DataChanged ( const DataChangedEvent& rDCEvt ) override; virtual void DataChanged ( const DataChangedEvent& rDCEvt ) override;
virtual ~ScTablePage(); virtual ~ScTablePage();

View File

@ -39,7 +39,7 @@ public:
virtual bool FillItemSet ( SfxItemSet* rCoreAttrs ) override; virtual bool FillItemSet ( SfxItemSet* rCoreAttrs ) override;
virtual void Reset ( const SfxItemSet* rCoreAttrs ) override; virtual void Reset ( const SfxItemSet* rCoreAttrs ) override;
using SfxTabPage::DeactivatePage; using SfxTabPage::DeactivatePage;
virtual sfxpg DeactivatePage ( SfxItemSet* pSet = nullptr ) override; virtual DeactivateRC DeactivatePage ( SfxItemSet* pSet = nullptr ) override;
private: private:
ScTpUserLists( vcl::Window* pParent, ScTpUserLists( vcl::Window* pParent,

View File

@ -78,7 +78,7 @@ public:
using SfxTabPage::ActivatePage; using SfxTabPage::ActivatePage;
using SfxTabPage::DeactivatePage; using SfxTabPage::DeactivatePage;
virtual void ActivatePage( const SfxItemSet& ) override; virtual void ActivatePage( const SfxItemSet& ) override;
virtual sfxpg DeactivatePage( SfxItemSet* pSet = nullptr ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pSet = nullptr ) override;
}; };
@ -123,7 +123,7 @@ public:
using SfxTabPage::ActivatePage; using SfxTabPage::ActivatePage;
using SfxTabPage::DeactivatePage; using SfxTabPage::DeactivatePage;
virtual void ActivatePage( const SfxItemSet& ) override; virtual void ActivatePage( const SfxItemSet& ) override;
virtual sfxpg DeactivatePage( SfxItemSet* pSet = nullptr ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pSet = nullptr ) override;
void SetDocument(ScDocument* pPtr){pDoc = pPtr;} void SetDocument(ScDocument* pPtr){pDoc = pPtr;}

View File

@ -190,18 +190,18 @@ bool ScTpCalcOptions::FillItemSet( SfxItemSet* rCoreAttrs )
return false; return false;
} }
SfxTabPage::sfxpg ScTpCalcOptions::DeactivatePage( SfxItemSet* pSetP ) DeactivateRC ScTpCalcOptions::DeactivatePage( SfxItemSet* pSetP )
{ {
sfxpg nReturn = KEEP_PAGE; DeactivateRC nReturn = DeactivateRC::KeepPage;
double fEps; double fEps;
if( m_pEdEps->GetValue( fEps ) && (fEps > 0.0) ) if( m_pEdEps->GetValue( fEps ) && (fEps > 0.0) )
{ {
pLocalOptions->SetIterEps( fEps ); pLocalOptions->SetIterEps( fEps );
nReturn = LEAVE_PAGE; nReturn = DeactivateRC::LeavePage;
} }
if ( nReturn == KEEP_PAGE ) if ( nReturn == DeactivateRC::KeepPage )
{ {
ScopedVclPtr<MessageDialog>::Create( this, ScopedVclPtr<MessageDialog>::Create( this,
ScGlobal::GetRscString( STR_INVALID_EPS ) ScGlobal::GetRscString( STR_INVALID_EPS )

View File

@ -75,9 +75,9 @@ void ScTpCompatOptions::Reset(const SfxItemSet *rCoreAttrs)
m_pLbKeyBindings->SaveValue(); m_pLbKeyBindings->SaveValue();
} }
SfxTabPage::sfxpg ScTpCompatOptions::DeactivatePage(SfxItemSet* /*pSet*/) DeactivateRC ScTpCompatOptions::DeactivatePage(SfxItemSet* /*pSet*/)
{ {
return KEEP_PAGE; return DeactivateRC::KeepPage;
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@ -79,9 +79,9 @@ void ScTpDefaultsOptions::Reset(const SfxItemSet* rCoreSet)
m_pEdSheetPrefix->SaveValue(); m_pEdSheetPrefix->SaveValue();
} }
SfxTabPage::sfxpg ScTpDefaultsOptions::DeactivatePage(SfxItemSet* /*pSet*/) DeactivateRC ScTpDefaultsOptions::DeactivatePage(SfxItemSet* /*pSet*/)
{ {
return KEEP_PAGE; return DeactivateRC::KeepPage;
} }
void ScTpDefaultsOptions::CheckNumSheets() void ScTpDefaultsOptions::CheckNumSheets()

View File

@ -371,10 +371,10 @@ void ScTpFormulaOptions::Reset(const SfxItemSet* rCoreSet)
maCurrentDocOptions = maSavedDocOptions; maCurrentDocOptions = maSavedDocOptions;
} }
SfxTabPage::sfxpg ScTpFormulaOptions::DeactivatePage(SfxItemSet* /*pSet*/) DeactivateRC ScTpFormulaOptions::DeactivatePage(SfxItemSet* /*pSet*/)
{ {
// What's this method for ? // What's this method for ?
return KEEP_PAGE; return DeactivateRC::KeepPage;
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@ -57,12 +57,12 @@ VclPtr<SfxTabPage> ScTpPrintOptions::Create( vcl::Window* pParent, const SfxItem
return VclPtr<ScTpPrintOptions>::Create( pParent, *rAttrSet ); return VclPtr<ScTpPrintOptions>::Create( pParent, *rAttrSet );
} }
SfxTabPage::sfxpg ScTpPrintOptions::DeactivatePage( SfxItemSet* pSetP ) DeactivateRC ScTpPrintOptions::DeactivatePage( SfxItemSet* pSetP )
{ {
if ( pSetP ) if ( pSetP )
FillItemSet( pSetP ); FillItemSet( pSetP );
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }
void ScTpPrintOptions::Reset( const SfxItemSet* rCoreSet ) void ScTpPrintOptions::Reset( const SfxItemSet* rCoreSet )

View File

@ -243,12 +243,12 @@ bool ScTpUserLists::FillItemSet( SfxItemSet* rCoreAttrs )
return bDataModified; return bDataModified;
} }
SfxTabPage::sfxpg ScTpUserLists::DeactivatePage( SfxItemSet* pSetP ) DeactivateRC ScTpUserLists::DeactivatePage( SfxItemSet* pSetP )
{ {
if ( pSetP ) if ( pSetP )
FillItemSet( pSetP ); FillItemSet( pSetP );
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }
size_t ScTpUserLists::UpdateUserListBox() size_t ScTpUserLists::UpdateUserListBox()

View File

@ -235,11 +235,11 @@ void ScTpContentOptions::ActivatePage( const SfxItemSet& rSet)
*pLocalOptions = static_cast<const ScTpViewItem*>(pItem)->GetViewOptions(); *pLocalOptions = static_cast<const ScTpViewItem*>(pItem)->GetViewOptions();
} }
SfxTabPage::sfxpg ScTpContentOptions::DeactivatePage( SfxItemSet* pSetP ) DeactivateRC ScTpContentOptions::DeactivatePage( SfxItemSet* pSetP )
{ {
if(pSetP) if(pSetP)
FillItemSet(pSetP); FillItemSet(pSetP);
return SfxTabPage::LEAVE_PAGE; return DeactivateRC::LeavePage;
} }
IMPL_LINK_TYPED( ScTpContentOptions, SelLbObjHdl, ListBox&, rLb, void ) IMPL_LINK_TYPED( ScTpContentOptions, SelLbObjHdl, ListBox&, rLb, void )
@ -671,11 +671,11 @@ void ScTpLayoutOptions::ActivatePage( const SfxItemSet& /* rCoreSet */ )
{ {
} }
SfxTabPage::sfxpg ScTpLayoutOptions::DeactivatePage( SfxItemSet* pSetP ) DeactivateRC ScTpLayoutOptions::DeactivatePage( SfxItemSet* pSetP )
{ {
if(pSetP) if(pSetP)
FillItemSet(pSetP); FillItemSet(pSetP);
return SfxTabPage::LEAVE_PAGE; return DeactivateRC::LeavePage;
} }
IMPL_LINK_NOARG_TYPED(ScTpLayoutOptions, MetricHdl, ListBox&, void) IMPL_LINK_NOARG_TYPED(ScTpLayoutOptions, MetricHdl, ListBox&, void)

View File

@ -128,13 +128,13 @@ void ScHFPage::ActivatePage( const SfxItemSet& rSet )
SvxHFPage::ActivatePage( rSet ); SvxHFPage::ActivatePage( rSet );
} }
SfxTabPage::sfxpg ScHFPage::DeactivatePage( SfxItemSet* pSetP ) DeactivateRC ScHFPage::DeactivatePage( SfxItemSet* pSetP )
{ {
if ( LEAVE_PAGE == SvxHFPage::DeactivatePage( pSetP ) ) if ( DeactivateRC::LeavePage == SvxHFPage::DeactivatePage( pSetP ) )
if ( pSetP ) if ( pSetP )
FillItemSet( pSetP ); FillItemSet( pSetP );
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }
void ScHFPage::ActivatePage() void ScHFPage::ActivatePage()

View File

@ -341,12 +341,12 @@ bool ScTablePage::FillItemSet( SfxItemSet* rCoreSet )
return bDataChanged; return bDataChanged;
} }
SfxTabPage::sfxpg ScTablePage::DeactivatePage( SfxItemSet* pSetP ) DeactivateRC ScTablePage::DeactivatePage( SfxItemSet* pSetP )
{ {
if ( pSetP ) if ( pSetP )
FillItemSet( pSetP ); FillItemSet( pSetP );
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }
void ScTablePage::DataChanged( const DataChangedEvent& rDCEvt ) void ScTablePage::DataChanged( const DataChangedEvent& rDCEvt )

View File

@ -369,12 +369,12 @@ void SdTPAction::ActivatePage( const SfxItemSet& )
{ {
} }
SfxTabPage::sfxpg SdTPAction::DeactivatePage( SfxItemSet* pPageSet ) DeactivateRC SdTPAction::DeactivatePage( SfxItemSet* pPageSet )
{ {
if( pPageSet ) if( pPageSet )
FillItemSet( pPageSet ); FillItemSet( pPageSet );
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }
VclPtr<SfxTabPage> SdTPAction::Create( vcl::Window* pWindow, VclPtr<SfxTabPage> SdTPAction::Create( vcl::Window* pWindow,

View File

@ -363,7 +363,7 @@ void SdTpOptionsMisc::ActivatePage( const SfxItemSet& rSet )
} }
} }
SfxTabPage::sfxpg SdTpOptionsMisc::DeactivatePage( SfxItemSet* pActiveSet ) DeactivateRC SdTpOptionsMisc::DeactivatePage( SfxItemSet* pActiveSet )
{ {
// check parser // check parser
sal_Int32 nX, nY; sal_Int32 nX, nY;
@ -371,17 +371,17 @@ SfxTabPage::sfxpg SdTpOptionsMisc::DeactivatePage( SfxItemSet* pActiveSet )
{ {
if( pActiveSet ) if( pActiveSet )
FillItemSet( pActiveSet ); FillItemSet( pActiveSet );
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }
ScopedVclPtrInstance< WarningBox > aWarnBox( GetParent(), WB_YES_NO, SD_RESSTR( STR_WARN_SCALE_FAIL ) ); ScopedVclPtrInstance< WarningBox > aWarnBox( GetParent(), WB_YES_NO, SD_RESSTR( STR_WARN_SCALE_FAIL ) );
if( aWarnBox->Execute() == RET_YES ) if( aWarnBox->Execute() == RET_YES )
return KEEP_PAGE; return DeactivateRC::KeepPage;
if( pActiveSet ) if( pActiveSet )
FillItemSet( pActiveSet ); FillItemSet( pActiveSet );
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }
bool SdTpOptionsMisc::FillItemSet( SfxItemSet* rAttrs ) bool SdTpOptionsMisc::FillItemSet( SfxItemSet* rAttrs )

View File

@ -102,7 +102,7 @@ public:
virtual void Reset( const SfxItemSet * ) override; virtual void Reset( const SfxItemSet * ) override;
virtual void ActivatePage( const SfxItemSet& rSet ) override; virtual void ActivatePage( const SfxItemSet& rSet ) override;
virtual sfxpg DeactivatePage( SfxItemSet* pSet ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
void Construct(); void Construct();

View File

@ -127,7 +127,7 @@ private:
protected: protected:
virtual void ActivatePage( const SfxItemSet& rSet ) override; virtual void ActivatePage( const SfxItemSet& rSet ) override;
virtual sfxpg DeactivatePage( SfxItemSet* pSet ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
public: public:
SdTpOptionsMisc( vcl::Window* pParent, const SfxItemSet& rInAttrs ); SdTpOptionsMisc( vcl::Window* pParent, const SfxItemSet& rInAttrs );

View File

@ -629,8 +629,8 @@ IMPL_LINK_NOARG_TYPED(SfxSingleTabDialog, OKHdl_Impl, Button*, void)
if ( pImpl->m_pSfxPage->HasExchangeSupport() ) if ( pImpl->m_pSfxPage->HasExchangeSupport() )
{ {
int nRet = pImpl->m_pSfxPage->DeactivatePage( GetOutputSetImpl() ); DeactivateRC nRet = pImpl->m_pSfxPage->DeactivatePage( GetOutputSetImpl() );
if ( nRet != SfxTabPage::LEAVE_PAGE ) if ( nRet != DeactivateRC::LeavePage )
return; return;
else else
bModified = ( GetOutputItemSet()->Count() > 0 ); bModified = ( GetOutputItemSet()->Count() > 0 );

View File

@ -2261,11 +2261,11 @@ void SfxCustomPropertiesPage::Reset( const SfxItemSet* rItemSet )
} }
} }
SfxTabPage::sfxpg SfxCustomPropertiesPage::DeactivatePage( SfxItemSet* /*pSet*/ ) DeactivateRC SfxCustomPropertiesPage::DeactivatePage( SfxItemSet* /*pSet*/ )
{ {
sfxpg nRet = LEAVE_PAGE; DeactivateRC nRet = DeactivateRC::LeavePage;
if ( !m_pPropertiesCtrl->AreAllLinesValid() ) if ( !m_pPropertiesCtrl->AreAllLinesValid() )
nRet = KEEP_PAGE; nRet = DeactivateRC::KeepPage;
return nRet; return nRet;
} }
@ -2760,9 +2760,9 @@ void SfxCmisPropertiesPage::Reset( const SfxItemSet* rItemSet )
m_pPropertiesCtrl.setScrollRange(); m_pPropertiesCtrl.setScrollRange();
} }
SfxTabPage::sfxpg SfxCmisPropertiesPage::DeactivatePage( SfxItemSet* /*pSet*/ ) DeactivateRC SfxCmisPropertiesPage::DeactivatePage( SfxItemSet* /*pSet*/ )
{ {
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }
VclPtr<SfxTabPage> SfxCmisPropertiesPage::Create( vcl::Window* pParent, const SfxItemSet* rItemSet ) VclPtr<SfxTabPage> SfxCmisPropertiesPage::Create( vcl::Window* pParent, const SfxItemSet* rItemSet )

View File

@ -589,7 +589,7 @@ void SfxManageStyleSheetPage::ActivatePage( const SfxItemSet& rSet)
} }
SfxTabPage::sfxpg SfxManageStyleSheetPage::DeactivatePage( SfxItemSet* pItemSet ) DeactivateRC SfxManageStyleSheetPage::DeactivatePage( SfxItemSet* pItemSet )
/* [Description] /* [Description]
@ -606,7 +606,7 @@ SfxTabPage::sfxpg SfxManageStyleSheetPage::DeactivatePage( SfxItemSet* pItemSet
*/ */
{ {
sfxpg nRet = SfxTabPage::LEAVE_PAGE; DeactivateRC nRet = DeactivateRC::LeavePage;
if ( m_pNameRw->IsModified() ) if ( m_pNameRw->IsModified() )
{ {
@ -620,7 +620,7 @@ SfxTabPage::sfxpg SfxManageStyleSheetPage::DeactivatePage( SfxItemSet* pItemSet
aBox->Execute(); aBox->Execute();
m_pNameRw->GrabFocus(); m_pNameRw->GrabFocus();
m_pNameRw->SetSelection( Selection( SELECTION_MIN, SELECTION_MAX ) ); m_pNameRw->SetSelection( Selection( SELECTION_MIN, SELECTION_MAX ) );
return SfxTabPage::KEEP_PAGE; return DeactivateRC::KeepPage;
} }
bModified = true; bModified = true;
} }
@ -636,7 +636,7 @@ SfxTabPage::sfxpg SfxManageStyleSheetPage::DeactivatePage( SfxItemSet* pItemSet
ScopedVclPtrInstance< MessageDialog > aBox(this, SfxResId( STR_TABPAGE_INVALIDSTYLE ), VclMessageType::Info); ScopedVclPtrInstance< MessageDialog > aBox(this, SfxResId( STR_TABPAGE_INVALIDSTYLE ), VclMessageType::Info);
aBox->Execute(); aBox->Execute();
m_pFollowLb->GrabFocus(); m_pFollowLb->GrabFocus();
return SfxTabPage::KEEP_PAGE; return DeactivateRC::KeepPage;
} }
bModified = true; bModified = true;
} }
@ -656,10 +656,10 @@ SfxTabPage::sfxpg SfxManageStyleSheetPage::DeactivatePage( SfxItemSet* pItemSet
ScopedVclPtrInstance< MessageDialog > aBox(this, SfxResId( STR_TABPAGE_INVALIDPARENT ), VclMessageType::Info); ScopedVclPtrInstance< MessageDialog > aBox(this, SfxResId( STR_TABPAGE_INVALIDPARENT ), VclMessageType::Info);
aBox->Execute(); aBox->Execute();
m_pBaseLb->GrabFocus(); m_pBaseLb->GrabFocus();
return SfxTabPage::KEEP_PAGE; return DeactivateRC::KeepPage;
} }
bModified = true; bModified = true;
nRet = sfxpg(nRet | SfxTabPage::REFRESH_SET); nRet = nRet | DeactivateRC::RefreshSet;
} }
} }

View File

@ -185,12 +185,12 @@ void SfxCommonPrintOptionsTabPage::Reset( const SfxItemSet* /*rSet*/ )
ImplUpdateControls( m_pPrinterOutputRB->IsChecked() ? &maPrinterOptions : &maPrintFileOptions ); ImplUpdateControls( m_pPrinterOutputRB->IsChecked() ? &maPrinterOptions : &maPrintFileOptions );
} }
SfxTabPage::sfxpg SfxCommonPrintOptionsTabPage::DeactivatePage( SfxItemSet* pItemSet ) DeactivateRC SfxCommonPrintOptionsTabPage::DeactivatePage( SfxItemSet* pItemSet )
{ {
if( pItemSet ) if( pItemSet )
FillItemSet( pItemSet ); FillItemSet( pItemSet );
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }
void SfxCommonPrintOptionsTabPage::ImplUpdateControls( const PrinterOptions* pCurrentOptions ) void SfxCommonPrintOptionsTabPage::ImplUpdateControls( const PrinterOptions* pCurrentOptions )

View File

@ -93,7 +93,7 @@ void SfxStyleDialog::RefreshInputSet()
/* [Description] /* [Description]
This is called when <SfxTabPage::DeactivatePage(SfxItemSet *)> This is called when <SfxTabPage::DeactivatePage(SfxItemSet *)>
returns <SfxTabPage::REFRESH_SET>. returns <DeactivateRC::RefreshSet>.
*/ */
{ {

View File

@ -199,7 +199,7 @@ void SfxTabPage::ActivatePage( const SfxItemSet& )
{ {
} }
SfxTabPage::sfxpg SfxTabPage::DeactivatePage( SfxItemSet* ) DeactivateRC SfxTabPage::DeactivatePage( SfxItemSet* )
/* [Description] /* [Description]
@ -213,11 +213,11 @@ SfxTabPage::sfxpg SfxTabPage::DeactivatePage( SfxItemSet* )
[Return value] [Return value]
LEAVE_PAGE; Allow leaving the page DeactivateRC::LeavePage; Allow leaving the page
*/ */
{ {
return LEAVE_PAGE; return DeactivateRC::LeavePage;
} }
@ -827,7 +827,7 @@ void SfxTabDialog::RefreshInputSet()
Default implementation of the virtual Method. Default implementation of the virtual Method.
This is called, when <SfxTabPage::DeactivatePage(SfxItemSet *)> This is called, when <SfxTabPage::DeactivatePage(SfxItemSet *)>
returns <SfxTabPage::REFRESH_SET>. returns <DeactivateRC::RefreshSet>.
*/ */
{ {
@ -841,7 +841,7 @@ IMPL_LINK_NOARG_TYPED(SfxTabDialog, OkHdl, Button*, void)
Handler of the Ok-Buttons Handler of the Ok-Buttons
This calls the current page <SfxTabPage::DeactivatePage(SfxItemSet *)>. This calls the current page <SfxTabPage::DeactivatePage(SfxItemSet *)>.
Returns <SfxTabPage::LEAVE_PAGE>, <SfxTabDialog::Ok()> is called Returns <DeactivateRC::LeavePage>, <SfxTabDialog::Ok()> is called
and the Dialog is ended. and the Dialog is ended.
*/ */
@ -886,7 +886,7 @@ bool SfxTabDialog::PrepareLeaveCurrentPage()
if ( pPage ) if ( pPage )
{ {
int nRet = SfxTabPage::LEAVE_PAGE; DeactivateRC nRet = DeactivateRC::LeavePage;
if ( m_pSet ) if ( m_pSet )
{ {
SfxItemSet aTmp( *m_pSet->GetPool(), m_pSet->GetRanges() ); SfxItemSet aTmp( *m_pSet->GetPool(), m_pSet->GetRanges() );
@ -896,7 +896,7 @@ bool SfxTabDialog::PrepareLeaveCurrentPage()
else else
nRet = pPage->DeactivatePage( nullptr ); nRet = pPage->DeactivatePage( nullptr );
if ( ( SfxTabPage::LEAVE_PAGE & nRet ) == SfxTabPage::LEAVE_PAGE if ( ( DeactivateRC::LeavePage & nRet ) == DeactivateRC::LeavePage
&& aTmp.Count() ) && aTmp.Count() )
{ {
m_pExampleSet->Put( aTmp ); m_pExampleSet->Put( aTmp );
@ -905,7 +905,7 @@ bool SfxTabDialog::PrepareLeaveCurrentPage()
} }
else else
nRet = pPage->DeactivatePage( nullptr ); nRet = pPage->DeactivatePage( nullptr );
bEnd = nRet; bEnd = nRet != DeactivateRC::KeepPage;
} }
return bEnd; return bEnd;
@ -918,7 +918,7 @@ IMPL_LINK_NOARG_TYPED(SfxTabDialog, UserHdl, Button*, void)
Handler of the User-Buttons Handler of the User-Buttons
This calls the current page <SfxTabPage::DeactivatePage(SfxItemSet *)>. This calls the current page <SfxTabPage::DeactivatePage(SfxItemSet *)>.
returns this <SfxTabPage::LEAVE_PAGE> and <SfxTabDialog::Ok()> is called. returns this <DeactivateRC::LeavePage> and <SfxTabDialog::Ok()> is called.
Then the Dialog is ended with the Return value <SfxTabDialog::Ok()> Then the Dialog is ended with the Return value <SfxTabDialog::Ok()>
*/ */
@ -1153,7 +1153,7 @@ IMPL_LINK_TYPED( SfxTabDialog, DeactivatePageHdl, TabControl *, pTabCtrl, bool )
DBG_ASSERT( pDataObject, "no Data structure for current page" ); DBG_ASSERT( pDataObject, "no Data structure for current page" );
#endif #endif
int nRet = SfxTabPage::LEAVE_PAGE; DeactivateRC nRet = DeactivateRC::LeavePage;
if ( !m_pExampleSet && pPage->HasExchangeSupport() && m_pSet ) if ( !m_pExampleSet && pPage->HasExchangeSupport() && m_pSet )
m_pExampleSet = new SfxItemSet( *m_pSet->GetPool(), m_pSet->GetRanges() ); m_pExampleSet = new SfxItemSet( *m_pSet->GetPool(), m_pSet->GetRanges() );
@ -1166,7 +1166,7 @@ IMPL_LINK_TYPED( SfxTabDialog, DeactivatePageHdl, TabControl *, pTabCtrl, bool )
nRet = pPage->DeactivatePage( &aTmp ); nRet = pPage->DeactivatePage( &aTmp );
else else
nRet = pPage->DeactivatePage( nullptr ); nRet = pPage->DeactivatePage( nullptr );
if ( ( SfxTabPage::LEAVE_PAGE & nRet ) == SfxTabPage::LEAVE_PAGE && if ( ( DeactivateRC::LeavePage & nRet ) == DeactivateRC::LeavePage &&
aTmp.Count() ) aTmp.Count() )
{ {
m_pExampleSet->Put( aTmp ); m_pExampleSet->Put( aTmp );
@ -1189,7 +1189,7 @@ IMPL_LINK_TYPED( SfxTabDialog, DeactivatePageHdl, TabControl *, pTabCtrl, bool )
nRet = pPage->DeactivatePage( nullptr ); nRet = pPage->DeactivatePage( nullptr );
} }
if ( nRet & SfxTabPage::REFRESH_SET ) if ( nRet & DeactivateRC::RefreshSet )
{ {
RefreshInputSet(); RefreshInputSet();
// Flag all Pages as to be initialized as new // Flag all Pages as to be initialized as new
@ -1204,7 +1204,7 @@ IMPL_LINK_TYPED( SfxTabDialog, DeactivatePageHdl, TabControl *, pTabCtrl, bool )
pObj->bRefresh = false; pObj->bRefresh = false;
} }
} }
if ( nRet & SfxTabPage::LEAVE_PAGE ) if ( nRet & DeactivateRC::LeavePage )
return true; return true;
else else
return false; return false;

Some files were not shown because too many files have changed in this diff Show More