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
5b248f13
Kaydet (Commit)
5b248f13
authored
May 21, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert MENUBAR_MODE constants to scoped enum
Change-Id: Ie4cda46d02e82cca1710603cfb3af379c702d9d7
üst
d9ba1914
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
11 deletions
+13
-11
syswin.hxx
include/vcl/syswin.hxx
+7
-5
FullScreenPane.cxx
sd/source/ui/framework/factories/FullScreenPane.cxx
+1
-1
backingcomp.cxx
sfx2/source/dialog/backingcomp.cxx
+1
-1
viewfrm.cxx
sfx2/source/view/viewfrm.cxx
+1
-1
syswin.cxx
vcl/source/window/syswin.cxx
+3
-3
No files found.
include/vcl/syswin.hxx
Dosyayı görüntüle @
5b248f13
...
...
@@ -115,8 +115,10 @@ public:
// - SystemWindow-Types -
#define MENUBAR_MODE_NORMAL ((sal_uInt16)0)
#define MENUBAR_MODE_HIDE ((sal_uInt16)1)
enum
class
MenuBarMode
{
Normal
,
Hide
};
#define TITLE_BUTTON_DOCKING ((sal_uInt16)1)
#define TITLE_BUTTON_HIDE ((sal_uInt16)2)
...
...
@@ -143,7 +145,7 @@ private:
bool
mbSysChild
;
bool
mbIsCalculatingInitialLayoutSize
;
bool
mbInitialLayoutDone
;
sal_uInt16
mnMenuBarMode
;
MenuBarMode
mnMenuBarMode
;
sal_uInt16
mnIcon
;
ImplData
*
mpImplData
;
Idle
maLayoutIdle
;
...
...
@@ -222,8 +224,8 @@ public:
void
SetMenuBar
(
MenuBar
*
pMenuBar
,
const
css
::
uno
::
Reference
<
css
::
frame
::
XFrame
>&
rFrame
=
css
::
uno
::
Reference
<
css
::
frame
::
XFrame
>
());
MenuBar
*
GetMenuBar
()
const
{
return
mpMenuBar
;
}
void
SetMenuBarMode
(
sal_uInt16
nMode
);
sal_uInt16
GetMenuBarMode
()
const
{
return
mnMenuBarMode
;
}
void
SetMenuBarMode
(
MenuBarMode
nMode
);
MenuBarMode
GetMenuBarMode
()
const
{
return
mnMenuBarMode
;
}
TaskPaneList
*
GetTaskPaneList
();
void
GetWindowStateData
(
WindowStateData
&
rData
)
const
;
...
...
sd/source/ui/framework/factories/FullScreenPane.cxx
Dosyayı görüntüle @
5b248f13
...
...
@@ -63,7 +63,7 @@ FullScreenPane::FullScreenPane (
// Create a new top-leve window that is displayed full screen.
mpWorkWindow
->
ShowFullScreenMode
(
true
,
nScreenNumber
);
// For debugging (non-fullscreen) use mpWorkWindow->SetScreenNumber(nScreenNumber);
mpWorkWindow
->
SetMenuBarMode
(
M
ENUBAR_MODE_HIDE
);
mpWorkWindow
->
SetMenuBarMode
(
M
enuBarMode
::
Hide
);
mpWorkWindow
->
SetBorderStyle
(
WindowBorderStyle
::
REMOVEBORDER
);
mpWorkWindow
->
SetBackground
(
Wallpaper
());
// Don't show the window right now in order to allow the setting of an
...
...
sfx2/source/dialog/backingcomp.cxx
Dosyayı görüntüle @
5b248f13
...
...
@@ -410,7 +410,7 @@ void SAL_CALL BackingComp::attachFrame( /*IN*/ const css::uno::Reference< css::f
if
(
pParent
&&
pParent
->
IsFullScreenMode
())
{
pParent
->
ShowFullScreenMode
(
false
);
pParent
->
SetMenuBarMode
(
M
ENUBAR_MODE_NORMAL
);
pParent
->
SetMenuBarMode
(
M
enuBarMode
::
Normal
);
}
// create the menu bar for the backing component
...
...
sfx2/source/view/viewfrm.cxx
Dosyayı görüntüle @
5b248f13
...
...
@@ -2913,7 +2913,7 @@ void SfxViewFrame::MiscExec_Impl( SfxRequest& rReq )
}
}
pWork
->
ShowFullScreenMode
(
bNewFullScreenMode
);
pWork
->
SetMenuBarMode
(
bNewFullScreenMode
?
M
ENUBAR_MODE_HIDE
:
MENUBAR_MODE_NORMAL
);
pWork
->
SetMenuBarMode
(
bNewFullScreenMode
?
M
enuBarMode
::
Hide
:
MenuBarMode
::
Normal
);
GetFrame
().
GetWorkWindow_Impl
()
->
SetFullScreen_Impl
(
bNewFullScreenMode
);
if
(
!
pItem
)
rReq
.
AppendItem
(
SfxBoolItem
(
SID_WIN_FULLSCREEN
,
bNewFullScreenMode
)
);
...
...
vcl/source/window/syswin.cxx
Dosyayı görüntüle @
5b248f13
...
...
@@ -80,7 +80,7 @@ void SystemWindow::Init()
mbSysChild
=
false
;
mbIsCalculatingInitialLayoutSize
=
false
;
mbInitialLayoutDone
=
false
;
mnMenuBarMode
=
M
ENUBAR_MODE_NORMAL
;
mnMenuBarMode
=
M
enuBarMode
::
Normal
;
mnIcon
=
0
;
mpDialogParent
=
NULL
;
...
...
@@ -955,14 +955,14 @@ void SystemWindow::SetMenuBar(MenuBar* pMenuBar, const css::uno::Reference<css::
}
}
void
SystemWindow
::
SetMenuBarMode
(
sal_uInt16
nMode
)
void
SystemWindow
::
SetMenuBarMode
(
MenuBarMode
nMode
)
{
if
(
mnMenuBarMode
!=
nMode
)
{
mnMenuBarMode
=
nMode
;
if
(
mpWindowImpl
->
mpBorderWindow
&&
(
mpWindowImpl
->
mpBorderWindow
->
GetType
()
==
WINDOW_BORDERWINDOW
)
)
{
if
(
nMode
==
M
ENUBAR_MODE_HIDE
)
if
(
nMode
==
M
enuBarMode
::
Hide
)
static_cast
<
ImplBorderWindow
*>
(
mpWindowImpl
->
mpBorderWindow
.
get
())
->
SetMenuBarMode
(
true
);
else
static_cast
<
ImplBorderWindow
*>
(
mpWindowImpl
->
mpBorderWindow
.
get
())
->
SetMenuBarMode
(
false
);
...
...
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