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
a4f4a8cb
Kaydet (Commit)
a4f4a8cb
authored
Mar 06, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert SfxChildIdentifier to enum class
Change-Id: I7fb7b76d0642653efb9f3cfe2b55e3a7c5972c5e
üst
5eea85ec
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
19 deletions
+19
-19
workwin.cxx
sfx2/source/appl/workwin.cxx
+4
-4
basedlgs.cxx
sfx2/source/dialog/basedlgs.cxx
+2
-2
dockwin.cxx
sfx2/source/dialog/dockwin.cxx
+8
-8
workwin.hxx
sfx2/source/inc/workwin.hxx
+5
-5
No files found.
sfx2/source/appl/workwin.cxx
Dosyayı görüntüle @
a4f4a8cb
...
@@ -1693,7 +1693,7 @@ void SfxWorkWindow::ConfigChild_Impl(SfxChildIdentifier eChild,
...
@@ -1693,7 +1693,7 @@ void SfxWorkWindow::ConfigChild_Impl(SfxChildIdentifier eChild,
vcl
::
Window
*
pWin
=
0
;
vcl
::
Window
*
pWin
=
0
;
SfxChildWin_Impl
*
pCW
=
0
;
SfxChildWin_Impl
*
pCW
=
0
;
if
(
eChild
==
S
FX_CHILDWIN_
OBJECTBAR
)
if
(
eChild
==
S
fxChildIdentifier
::
OBJECTBAR
)
return
;
return
;
// configure direct childwindow
// configure direct childwindow
...
@@ -1718,9 +1718,9 @@ void SfxWorkWindow::ConfigChild_Impl(SfxChildIdentifier eChild,
...
@@ -1718,9 +1718,9 @@ void SfxWorkWindow::ConfigChild_Impl(SfxChildIdentifier eChild,
if
(
pDockWin
)
if
(
pDockWin
)
{
{
if
(
eChild
==
S
FX_CHILDWIN_
DOCKINGWINDOW
||
pDockWin
->
GetAlignment
()
==
SFX_ALIGN_NOALIGNMENT
)
if
(
eChild
==
S
fxChildIdentifier
::
DOCKINGWINDOW
||
pDockWin
->
GetAlignment
()
==
SFX_ALIGN_NOALIGNMENT
)
{
{
if
(
eChild
==
S
FX_CHILDWIN_
SPLITWINDOW
&&
eConfig
==
SFX_TOGGLEFLOATMODE
)
if
(
eChild
==
S
fxChildIdentifier
::
SPLITWINDOW
&&
eConfig
==
SFX_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
());
...
@@ -1878,7 +1878,7 @@ void SfxWorkWindow::ConfigChild_Impl(SfxChildIdentifier eChild,
...
@@ -1878,7 +1878,7 @@ void SfxWorkWindow::ConfigChild_Impl(SfxChildIdentifier eChild,
if
(
pCli
&&
pDockWin
)
if
(
pCli
&&
pDockWin
)
{
{
eAlign
=
pDockWin
->
GetAlignment
();
eAlign
=
pDockWin
->
GetAlignment
();
if
(
eChild
==
S
FX_CHILDWIN_
DOCKINGWINDOW
||
eAlign
==
SFX_ALIGN_NOALIGNMENT
)
if
(
eChild
==
S
fxChildIdentifier
::
DOCKINGWINDOW
||
eAlign
==
SFX_ALIGN_NOALIGNMENT
)
{
{
// configuration inside the SplitWindow, no change for the SplitWindows' configuration
// configuration inside the SplitWindow, no change for the SplitWindows' configuration
pCli
->
bResize
=
true
;
pCli
->
bResize
=
true
;
...
...
sfx2/source/dialog/basedlgs.cxx
Dosyayı görüntüle @
a4f4a8cb
...
@@ -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
(
S
FX_CHILDWIN_
DOCKINGWINDOW
,
SFX_ALIGNDOCKINGWINDOW
,
pImp
->
pMgr
->
GetType
()
);
GetBindings
().
GetWorkWindow_Impl
()
->
ConfigChild_Impl
(
S
fxChildIdentifier
::
DOCKINGWINDOW
,
SFX_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
(
S
FX_CHILDWIN_
DOCKINGWINDOW
,
SFX_ALIGNDOCKINGWINDOW
,
pImp
->
pMgr
->
GetType
()
);
GetBindings
().
GetWorkWindow_Impl
()
->
ConfigChild_Impl
(
S
fxChildIdentifier
::
DOCKINGWINDOW
,
SFX_ALIGNDOCKINGWINDOW
,
pImp
->
pMgr
->
GetType
()
);
}
}
return
0
;
return
0
;
}
}
...
...
sfx2/source/dialog/dockwin.cxx
Dosyayı görüntüle @
a4f4a8cb
...
@@ -556,9 +556,9 @@ void SfxDockingWindow::ToggleFloatingMode()
...
@@ -556,9 +556,9 @@ void SfxDockingWindow::ToggleFloatingMode()
SfxChildAlignment
eLastAlign
=
GetAlignment
();
SfxChildAlignment
eLastAlign
=
GetAlignment
();
SfxWorkWindow
*
pWorkWin
=
pBindings
->
GetWorkWindow_Impl
();
SfxWorkWindow
*
pWorkWin
=
pBindings
->
GetWorkWindow_Impl
();
SfxChildIdentifier
eIdent
=
S
FX_CHILDWIN_
DOCKINGWINDOW
;
SfxChildIdentifier
eIdent
=
S
fxChildIdentifier
::
DOCKINGWINDOW
;
if
(
pImp
->
bSplitable
)
if
(
pImp
->
bSplitable
)
eIdent
=
S
FX_CHILDWIN_
SPLITWINDOW
;
eIdent
=
S
fxChildIdentifier
::
SPLITWINDOW
;
if
(
IsFloatingMode
())
if
(
IsFloatingMode
())
{
{
...
@@ -633,9 +633,9 @@ void SfxDockingWindow::StartDocking()
...
@@ -633,9 +633,9 @@ void SfxDockingWindow::StartDocking()
{
{
if
(
!
pImp
->
bConstructed
||
!
pMgr
)
if
(
!
pImp
->
bConstructed
||
!
pMgr
)
return
;
return
;
SfxChildIdentifier
eIdent
=
S
FX_CHILDWIN_
DOCKINGWINDOW
;
SfxChildIdentifier
eIdent
=
S
fxChildIdentifier
::
DOCKINGWINDOW
;
if
(
pImp
->
bSplitable
)
if
(
pImp
->
bSplitable
)
eIdent
=
S
FX_CHILDWIN_
SPLITWINDOW
;
eIdent
=
S
fxChildIdentifier
::
SPLITWINDOW
;
SfxWorkWindow
*
pWorkWin
=
pBindings
->
GetWorkWindow_Impl
();
SfxWorkWindow
*
pWorkWin
=
pBindings
->
GetWorkWindow_Impl
();
pWorkWin
->
ConfigChild_Impl
(
eIdent
,
SFX_SETDOCKINGRECTS
,
pMgr
->
GetType
()
);
pWorkWin
->
ConfigChild_Impl
(
eIdent
,
SFX_SETDOCKINGRECTS
,
pMgr
->
GetType
()
);
pImp
->
SetDockAlignment
(
GetAlignment
());
pImp
->
SetDockAlignment
(
GetAlignment
());
...
@@ -1861,9 +1861,9 @@ void SfxDockingWindow::SetItemSize_Impl( const Size& rSize )
...
@@ -1861,9 +1861,9 @@ void SfxDockingWindow::SetItemSize_Impl( const Size& rSize )
pImp
->
aSplitSize
=
rSize
;
pImp
->
aSplitSize
=
rSize
;
SfxWorkWindow
*
pWorkWin
=
pBindings
->
GetWorkWindow_Impl
();
SfxWorkWindow
*
pWorkWin
=
pBindings
->
GetWorkWindow_Impl
();
SfxChildIdentifier
eIdent
=
S
FX_CHILDWIN_
DOCKINGWINDOW
;
SfxChildIdentifier
eIdent
=
S
fxChildIdentifier
::
DOCKINGWINDOW
;
if
(
pImp
->
bSplitable
)
if
(
pImp
->
bSplitable
)
eIdent
=
S
FX_CHILDWIN_
SPLITWINDOW
;
eIdent
=
S
fxChildIdentifier
::
SPLITWINDOW
;
pWorkWin
->
ConfigChild_Impl
(
eIdent
,
SFX_ALIGNDOCKINGWINDOW
,
pMgr
->
GetType
()
);
pWorkWin
->
ConfigChild_Impl
(
eIdent
,
SFX_ALIGNDOCKINGWINDOW
,
pMgr
->
GetType
()
);
}
}
...
@@ -1926,9 +1926,9 @@ IMPL_LINK_NOARG(SfxDockingWindow, TimerHdl)
...
@@ -1926,9 +1926,9 @@ IMPL_LINK_NOARG(SfxDockingWindow, TimerHdl)
if
(
!
GetFloatingWindow
()
->
IsRollUp
()
)
if
(
!
GetFloatingWindow
()
->
IsRollUp
()
)
SetFloatingSize
(
GetOutputSizePixel
()
);
SetFloatingSize
(
GetOutputSizePixel
()
);
pImp
->
aWinState
=
GetFloatingWindow
()
->
GetWindowState
();
pImp
->
aWinState
=
GetFloatingWindow
()
->
GetWindowState
();
SfxChildIdentifier
eIdent
=
S
FX_CHILDWIN_
DOCKINGWINDOW
;
SfxChildIdentifier
eIdent
=
S
fxChildIdentifier
::
DOCKINGWINDOW
;
if
(
pImp
->
bSplitable
)
if
(
pImp
->
bSplitable
)
eIdent
=
S
FX_CHILDWIN_
SPLITWINDOW
;
eIdent
=
S
fxChildIdentifier
::
SPLITWINDOW
;
SfxWorkWindow
*
pWorkWin
=
pBindings
->
GetWorkWindow_Impl
();
SfxWorkWindow
*
pWorkWin
=
pBindings
->
GetWorkWindow_Impl
();
pWorkWin
->
ConfigChild_Impl
(
eIdent
,
SFX_ALIGNDOCKINGWINDOW
,
pMgr
->
GetType
()
);
pWorkWin
->
ConfigChild_Impl
(
eIdent
,
SFX_ALIGNDOCKINGWINDOW
,
pMgr
->
GetType
()
);
}
}
...
...
sfx2/source/inc/workwin.hxx
Dosyayı görüntüle @
a4f4a8cb
...
@@ -131,12 +131,12 @@ struct SfxChildWin_Impl
...
@@ -131,12 +131,12 @@ struct SfxChildWin_Impl
{}
{}
};
};
enum
SfxChildIdentifier
enum
class
SfxChildIdentifier
{
{
S
FX_CHILDWIN_S
TATBAR
,
STATBAR
,
SFX_CHILDWIN_
OBJECTBAR
,
OBJECTBAR
,
SFX_CHILDWIN_
DOCKINGWINDOW
,
DOCKINGWINDOW
,
S
FX_CHILDWIN_S
PLITWINDOW
SPLITWINDOW
};
};
enum
SfxDockingConfig
enum
SfxDockingConfig
...
...
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