Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
9853d0fa
Kaydet (Commit)
9853d0fa
authored
Mar 06, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert SfxDockingConfig to enum class
Change-Id: I2cfc9f2f165f970daa2dc42ec4d733dde968b55a
üst
a4f4a8cb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
18 deletions
+18
-18
workwin.cxx
sfx2/source/appl/workwin.cxx
+7
-7
basedlgs.cxx
sfx2/source/dialog/basedlgs.cxx
+2
-2
dockwin.cxx
sfx2/source/dialog/dockwin.cxx
+4
-4
workwin.hxx
sfx2/source/inc/workwin.hxx
+5
-5
No files found.
sfx2/source/appl/workwin.cxx
Dosyayı görüntüle @
9853d0fa
...
@@ -1720,7 +1720,7 @@ void SfxWorkWindow::ConfigChild_Impl(SfxChildIdentifier eChild,
...
@@ -1720,7 +1720,7 @@ void SfxWorkWindow::ConfigChild_Impl(SfxChildIdentifier eChild,
{
{
if
(
eChild
==
SfxChildIdentifier
::
DOCKINGWINDOW
||
pDockWin
->
GetAlignment
()
==
SFX_ALIGN_NOALIGNMENT
)
if
(
eChild
==
SfxChildIdentifier
::
DOCKINGWINDOW
||
pDockWin
->
GetAlignment
()
==
SFX_ALIGN_NOALIGNMENT
)
{
{
if
(
eChild
==
SfxChildIdentifier
::
SPLITWINDOW
&&
eConfig
==
S
FX_
TOGGLEFLOATMODE
)
if
(
eChild
==
SfxChildIdentifier
::
SPLITWINDOW
&&
eConfig
==
S
fxDockingConfig
::
TOGGLEFLOATMODE
)
{
{
// DockingWindow was dragged out of a SplitWindow
// DockingWindow was dragged out of a SplitWindow
pCW
->
pCli
=
RegisterChild_Impl
(
*
pDockWin
,
pDockWin
->
GetAlignment
(),
pCW
->
pWin
->
CanGetFocus
());
pCW
->
pCli
=
RegisterChild_Impl
(
*
pDockWin
,
pDockWin
->
GetAlignment
(),
pCW
->
pWin
->
CanGetFocus
());
...
@@ -1734,7 +1734,7 @@ void SfxWorkWindow::ConfigChild_Impl(SfxChildIdentifier eChild,
...
@@ -1734,7 +1734,7 @@ void SfxWorkWindow::ConfigChild_Impl(SfxChildIdentifier eChild,
SfxSplitWindow
*
pSplitWin
=
GetSplitWindow_Impl
(
pDockWin
->
GetAlignment
());
SfxSplitWindow
*
pSplitWin
=
GetSplitWindow_Impl
(
pDockWin
->
GetAlignment
());
// configure DockingWindow inside a SplitWindow
// configure DockingWindow inside a SplitWindow
if
(
eConfig
==
S
FX_
TOGGLEFLOATMODE
)
if
(
eConfig
==
S
fxDockingConfig
::
TOGGLEFLOATMODE
)
{
{
// DockingWindow was dragged into a SplitWindow
// DockingWindow was dragged into a SplitWindow
pCW
->
pCli
=
0
;
pCW
->
pCli
=
0
;
...
@@ -1773,7 +1773,7 @@ void SfxWorkWindow::ConfigChild_Impl(SfxChildIdentifier eChild,
...
@@ -1773,7 +1773,7 @@ void SfxWorkWindow::ConfigChild_Impl(SfxChildIdentifier eChild,
switch
(
eConfig
)
switch
(
eConfig
)
{
{
case
S
FX_
SETDOCKINGRECTS
:
case
S
fxDockingConfig
:
:
SETDOCKINGRECTS
:
{
{
if
(
nPos
==
USHRT_MAX
||
!
pDockWin
)
if
(
nPos
==
USHRT_MAX
||
!
pDockWin
)
return
;
return
;
...
@@ -1866,9 +1866,9 @@ void SfxWorkWindow::ConfigChild_Impl(SfxChildIdentifier eChild,
...
@@ -1866,9 +1866,9 @@ void SfxWorkWindow::ConfigChild_Impl(SfxChildIdentifier eChild,
break
;
break
;
}
}
case
S
FX_
MOVEDOCKINGWINDOW
:
case
S
fxDockingConfig
:
:
MOVEDOCKINGWINDOW
:
case
S
FX_
ALIGNDOCKINGWINDOW
:
case
S
fxDockingConfig
:
:
ALIGNDOCKINGWINDOW
:
case
S
FX_
TOGGLEFLOATMODE
:
case
S
fxDockingConfig
:
:
TOGGLEFLOATMODE
:
{
{
if
(
nPos
==
USHRT_MAX
&&
!
pCW
)
if
(
nPos
==
USHRT_MAX
&&
!
pCW
)
return
;
return
;
...
@@ -1904,7 +1904,7 @@ void SfxWorkWindow::ConfigChild_Impl(SfxChildIdentifier eChild,
...
@@ -1904,7 +1904,7 @@ void SfxWorkWindow::ConfigChild_Impl(SfxChildIdentifier eChild,
SfxChildWindowFlags
nFlags
=
pCW
->
aInfo
.
nFlags
;
SfxChildWindowFlags
nFlags
=
pCW
->
aInfo
.
nFlags
;
pCW
->
aInfo
=
pCW
->
pWin
->
GetInfo
();
pCW
->
aInfo
=
pCW
->
pWin
->
GetInfo
();
pCW
->
aInfo
.
nFlags
|=
nFlags
;
pCW
->
aInfo
.
nFlags
|=
nFlags
;
if
(
eConfig
!=
S
FX_
MOVEDOCKINGWINDOW
)
if
(
eConfig
!=
S
fxDockingConfig
::
MOVEDOCKINGWINDOW
)
SaveStatus_Impl
(
pCW
->
pWin
,
pCW
->
aInfo
);
SaveStatus_Impl
(
pCW
->
pWin
,
pCW
->
aInfo
);
}
}
...
...
sfx2/source/dialog/basedlgs.cxx
Dosyayı görüntüle @
9853d0fa
...
@@ -297,7 +297,7 @@ IMPL_LINK_NOARG(SfxModelessDialog, TimerHdl)
...
@@ -297,7 +297,7 @@ IMPL_LINK_NOARG(SfxModelessDialog, TimerHdl)
if
(
GetStyle
()
&
WB_SIZEABLE
)
if
(
GetStyle
()
&
WB_SIZEABLE
)
nMask
|=
(
WINDOWSTATE_MASK_WIDTH
|
WINDOWSTATE_MASK_HEIGHT
);
nMask
|=
(
WINDOWSTATE_MASK_WIDTH
|
WINDOWSTATE_MASK_HEIGHT
);
pImp
->
aWinState
=
GetWindowState
(
nMask
);
pImp
->
aWinState
=
GetWindowState
(
nMask
);
GetBindings
().
GetWorkWindow_Impl
()
->
ConfigChild_Impl
(
SfxChildIdentifier
::
DOCKINGWINDOW
,
S
FX_
ALIGNDOCKINGWINDOW
,
pImp
->
pMgr
->
GetType
()
);
GetBindings
().
GetWorkWindow_Impl
()
->
ConfigChild_Impl
(
SfxChildIdentifier
::
DOCKINGWINDOW
,
S
fxDockingConfig
::
ALIGNDOCKINGWINDOW
,
pImp
->
pMgr
->
GetType
()
);
}
}
return
0
;
return
0
;
}
}
...
@@ -562,7 +562,7 @@ IMPL_LINK_NOARG(SfxFloatingWindow, TimerHdl)
...
@@ -562,7 +562,7 @@ IMPL_LINK_NOARG(SfxFloatingWindow, TimerHdl)
if
(
GetStyle
()
&
WB_SIZEABLE
)
if
(
GetStyle
()
&
WB_SIZEABLE
)
nMask
|=
(
WINDOWSTATE_MASK_WIDTH
|
WINDOWSTATE_MASK_HEIGHT
);
nMask
|=
(
WINDOWSTATE_MASK_WIDTH
|
WINDOWSTATE_MASK_HEIGHT
);
pImp
->
aWinState
=
GetWindowState
(
nMask
);
pImp
->
aWinState
=
GetWindowState
(
nMask
);
GetBindings
().
GetWorkWindow_Impl
()
->
ConfigChild_Impl
(
SfxChildIdentifier
::
DOCKINGWINDOW
,
S
FX_
ALIGNDOCKINGWINDOW
,
pImp
->
pMgr
->
GetType
()
);
GetBindings
().
GetWorkWindow_Impl
()
->
ConfigChild_Impl
(
SfxChildIdentifier
::
DOCKINGWINDOW
,
S
fxDockingConfig
::
ALIGNDOCKINGWINDOW
,
pImp
->
pMgr
->
GetType
()
);
}
}
return
0
;
return
0
;
}
}
...
...
sfx2/source/dialog/dockwin.cxx
Dosyayı görüntüle @
9853d0fa
...
@@ -616,7 +616,7 @@ void SfxDockingWindow::ToggleFloatingMode()
...
@@ -616,7 +616,7 @@ void SfxDockingWindow::ToggleFloatingMode()
pImp
->
SetDockAlignment
(
GetAlignment
());
pImp
->
SetDockAlignment
(
GetAlignment
());
// Dock or undock SfxChildWindow correctly.
// Dock or undock SfxChildWindow correctly.
pWorkWin
->
ConfigChild_Impl
(
eIdent
,
S
FX_
TOGGLEFLOATMODE
,
pMgr
->
GetType
()
);
pWorkWin
->
ConfigChild_Impl
(
eIdent
,
S
fxDockingConfig
::
TOGGLEFLOATMODE
,
pMgr
->
GetType
()
);
}
}
...
@@ -637,7 +637,7 @@ void SfxDockingWindow::StartDocking()
...
@@ -637,7 +637,7 @@ void SfxDockingWindow::StartDocking()
if
(
pImp
->
bSplitable
)
if
(
pImp
->
bSplitable
)
eIdent
=
SfxChildIdentifier
::
SPLITWINDOW
;
eIdent
=
SfxChildIdentifier
::
SPLITWINDOW
;
SfxWorkWindow
*
pWorkWin
=
pBindings
->
GetWorkWindow_Impl
();
SfxWorkWindow
*
pWorkWin
=
pBindings
->
GetWorkWindow_Impl
();
pWorkWin
->
ConfigChild_Impl
(
eIdent
,
S
FX_
SETDOCKINGRECTS
,
pMgr
->
GetType
()
);
pWorkWin
->
ConfigChild_Impl
(
eIdent
,
S
fxDockingConfig
::
SETDOCKINGRECTS
,
pMgr
->
GetType
()
);
pImp
->
SetDockAlignment
(
GetAlignment
());
pImp
->
SetDockAlignment
(
GetAlignment
());
if
(
pImp
->
pSplitWin
)
if
(
pImp
->
pSplitWin
)
...
@@ -1864,7 +1864,7 @@ void SfxDockingWindow::SetItemSize_Impl( const Size& rSize )
...
@@ -1864,7 +1864,7 @@ void SfxDockingWindow::SetItemSize_Impl( const Size& rSize )
SfxChildIdentifier
eIdent
=
SfxChildIdentifier
::
DOCKINGWINDOW
;
SfxChildIdentifier
eIdent
=
SfxChildIdentifier
::
DOCKINGWINDOW
;
if
(
pImp
->
bSplitable
)
if
(
pImp
->
bSplitable
)
eIdent
=
SfxChildIdentifier
::
SPLITWINDOW
;
eIdent
=
SfxChildIdentifier
::
SPLITWINDOW
;
pWorkWin
->
ConfigChild_Impl
(
eIdent
,
S
FX_
ALIGNDOCKINGWINDOW
,
pMgr
->
GetType
()
);
pWorkWin
->
ConfigChild_Impl
(
eIdent
,
S
fxDockingConfig
::
ALIGNDOCKINGWINDOW
,
pMgr
->
GetType
()
);
}
}
void
SfxDockingWindow
::
Disappear_Impl
()
void
SfxDockingWindow
::
Disappear_Impl
()
...
@@ -1930,7 +1930,7 @@ IMPL_LINK_NOARG(SfxDockingWindow, TimerHdl)
...
@@ -1930,7 +1930,7 @@ IMPL_LINK_NOARG(SfxDockingWindow, TimerHdl)
if
(
pImp
->
bSplitable
)
if
(
pImp
->
bSplitable
)
eIdent
=
SfxChildIdentifier
::
SPLITWINDOW
;
eIdent
=
SfxChildIdentifier
::
SPLITWINDOW
;
SfxWorkWindow
*
pWorkWin
=
pBindings
->
GetWorkWindow_Impl
();
SfxWorkWindow
*
pWorkWin
=
pBindings
->
GetWorkWindow_Impl
();
pWorkWin
->
ConfigChild_Impl
(
eIdent
,
S
FX_
ALIGNDOCKINGWINDOW
,
pMgr
->
GetType
()
);
pWorkWin
->
ConfigChild_Impl
(
eIdent
,
S
fxDockingConfig
::
ALIGNDOCKINGWINDOW
,
pMgr
->
GetType
()
);
}
}
return
0
;
return
0
;
}
}
...
...
sfx2/source/inc/workwin.hxx
Dosyayı görüntüle @
9853d0fa
...
@@ -139,12 +139,12 @@ enum class SfxChildIdentifier
...
@@ -139,12 +139,12 @@ enum class SfxChildIdentifier
SPLITWINDOW
SPLITWINDOW
};
};
enum
SfxDockingConfig
enum
class
SfxDockingConfig
{
{
S
FX_S
ETDOCKINGRECTS
,
SETDOCKINGRECTS
,
SFX_
ALIGNDOCKINGWINDOW
,
ALIGNDOCKINGWINDOW
,
SFX_
TOGGLEFLOATMODE
,
TOGGLEFLOATMODE
,
SFX_
MOVEDOCKINGWINDOW
MOVEDOCKINGWINDOW
};
};
typedef
std
::
vector
<
SfxChild_Impl
*>
SfxChildList_Impl
;
typedef
std
::
vector
<
SfxChild_Impl
*>
SfxChildList_Impl
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment