summaryrefslogtreecommitdiff
path: root/sfx2/source/appl/workwin.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-03-06 14:06:46 +0200
committerNoel Grandin <noel@peralex.com>2015-03-11 10:16:54 +0200
commit9853d0fa7ae50da40d384945afc8871b80194493 (patch)
treee238cea8581d22a352e831b2c6461861ed090858 /sfx2/source/appl/workwin.cxx
parenta4f4a8cb00d8b5f7cadef02afa9025e823384860 (diff)
convert SfxDockingConfig to enum class
Change-Id: I2cfc9f2f165f970daa2dc42ec4d733dde968b55a
Diffstat (limited to 'sfx2/source/appl/workwin.cxx')
-rw-r--r--sfx2/source/appl/workwin.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/sfx2/source/appl/workwin.cxx b/sfx2/source/appl/workwin.cxx
index d5e5cab33aef..5af1678b5924 100644
--- a/sfx2/source/appl/workwin.cxx
+++ b/sfx2/source/appl/workwin.cxx
@@ -1720,7 +1720,7 @@ void SfxWorkWindow::ConfigChild_Impl(SfxChildIdentifier eChild,
{
if ( eChild == SfxChildIdentifier::DOCKINGWINDOW || pDockWin->GetAlignment() == SFX_ALIGN_NOALIGNMENT )
{
- if ( eChild == SfxChildIdentifier::SPLITWINDOW && eConfig == SFX_TOGGLEFLOATMODE)
+ if ( eChild == SfxChildIdentifier::SPLITWINDOW && eConfig == SfxDockingConfig::TOGGLEFLOATMODE)
{
// DockingWindow was dragged out of a SplitWindow
pCW->pCli = RegisterChild_Impl(*pDockWin, pDockWin->GetAlignment(), pCW->pWin->CanGetFocus());
@@ -1734,7 +1734,7 @@ void SfxWorkWindow::ConfigChild_Impl(SfxChildIdentifier eChild,
SfxSplitWindow *pSplitWin = GetSplitWindow_Impl(pDockWin->GetAlignment());
// configure DockingWindow inside a SplitWindow
- if ( eConfig == SFX_TOGGLEFLOATMODE)
+ if ( eConfig == SfxDockingConfig::TOGGLEFLOATMODE)
{
// DockingWindow was dragged into a SplitWindow
pCW->pCli = 0;
@@ -1773,7 +1773,7 @@ void SfxWorkWindow::ConfigChild_Impl(SfxChildIdentifier eChild,
switch ( eConfig )
{
- case SFX_SETDOCKINGRECTS :
+ case SfxDockingConfig::SETDOCKINGRECTS :
{
if (nPos == USHRT_MAX || !pDockWin)
return;
@@ -1866,9 +1866,9 @@ void SfxWorkWindow::ConfigChild_Impl(SfxChildIdentifier eChild,
break;
}
- case SFX_MOVEDOCKINGWINDOW :
- case SFX_ALIGNDOCKINGWINDOW :
- case SFX_TOGGLEFLOATMODE:
+ case SfxDockingConfig::MOVEDOCKINGWINDOW :
+ case SfxDockingConfig::ALIGNDOCKINGWINDOW :
+ case SfxDockingConfig::TOGGLEFLOATMODE:
{
if ( nPos == USHRT_MAX && !pCW )
return;
@@ -1904,7 +1904,7 @@ void SfxWorkWindow::ConfigChild_Impl(SfxChildIdentifier eChild,
SfxChildWindowFlags nFlags = pCW->aInfo.nFlags;
pCW->aInfo = pCW->pWin->GetInfo();
pCW->aInfo.nFlags |= nFlags;
- if ( eConfig != SFX_MOVEDOCKINGWINDOW )
+ if ( eConfig != SfxDockingConfig::MOVEDOCKINGWINDOW )
SaveStatus_Impl( pCW->pWin, pCW->aInfo);
}