Kaydet (Commit) eba9e9f8 authored tarafından Noel Grandin's avatar Noel Grandin

convert SfxPopupAction to enum class

and move it out of the header file, because it's only used inside one
.cxx file

Change-Id: I94b8cb957b86b1ee51e654b2d247269ef2cec88a
üst 61831eb8
......@@ -85,13 +85,6 @@ inline SfxCallMode& operator&= (SfxCallMode& lhs, SfxCallMode rhs)
}
enum SfxPopupAction
{
SFX_POPUP_DELETE,
SFX_POPUP_HIDE,
SFX_POPUP_SHOW
};
class SFX2_DLLPUBLIC SfxBindings: public SfxBroadcaster
/* [Description]
......
......@@ -194,6 +194,14 @@ IMPL_LINK(SfxAsyncExec_Impl, TimerHdl, Timer*, pTimer)
return 0L;
}
enum class SfxPopupAction
{
DELETE,
HIDE,
SHOW
};
class SfxBindings_Impl
{
public:
......@@ -233,7 +241,7 @@ SfxBindings::SfxBindings()
pImp->bContextChanged = false;
pImp->bMsgDirty = true;
pImp->bAllDirty = true;
pImp->ePopupAction = SFX_POPUP_DELETE;
pImp->ePopupAction = SfxPopupAction::DELETE;
pImp->nCachedFunc1 = 0;
pImp->nCachedFunc2 = 0;
pImp->bCtrlReleased = false;
......@@ -374,15 +382,15 @@ void SfxBindings::HidePopupCtrls_Impl( bool bHide )
if ( bHide )
{
// Hide SfxPopupWindows
pImp->ePopupAction = SFX_POPUP_HIDE;
pImp->ePopupAction = SfxPopupAction::HIDE;
}
else
{
// Show SfxPopupWindows
pImp->ePopupAction = SFX_POPUP_SHOW;
pImp->ePopupAction = SfxPopupAction::SHOW;
}
pImp->ePopupAction = SFX_POPUP_DELETE;
pImp->ePopupAction = SfxPopupAction::DELETE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment