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
b56dab64
Kaydet (Commit)
b56dab64
authored
May 28, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert PRESENTATION constants to scoped enum
Change-Id: Ic7b0b1d433456f1a27a76314a5890b9ae7f70a69
üst
6c1cabe6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
26 deletions
+35
-26
wrkwin.hxx
include/vcl/wrkwin.hxx
+24
-15
slideshow.cxx
sd/source/ui/slideshow/slideshow.cxx
+2
-2
wrkwin.cxx
vcl/source/window/wrkwin.cxx
+9
-9
No files found.
include/vcl/wrkwin.hxx
Dosyayı görüntüle @
b56dab64
...
...
@@ -23,6 +23,7 @@
#include <tools/solar.h>
#include <vcl/dllapi.h>
#include <vcl/syswin.hxx>
#include <o3tl/typed_flags_set.hxx>
namespace
com
{
namespace
sun
{
namespace
star
{
namespace
uno
{
class
Any
;
}}}}
struct
SystemParentData
;
...
...
@@ -32,9 +33,17 @@ struct SystemParentData;
// Presentation Flags
#define PRESENTATION_HIDEALLAPPS ((sal_uInt16)0x0001)
#define PRESENTATION_NOFULLSCREEN ((sal_uInt16)0x0002)
#define PRESENTATION_NOAUTOSHOW ((sal_uInt16)0x0004)
enum
class
PresentationFlags
{
NONE
=
0x0000
,
HideAllApps
=
0x0001
,
NoFullScreen
=
0x0002
,
NoAutoShow
=
0x0004
,
};
namespace
o3tl
{
template
<>
struct
typed_flags
<
PresentationFlags
>
:
is_typed_flags
<
PresentationFlags
,
0x0007
>
{};
}
// - WorkWindow -
...
...
@@ -43,11 +52,11 @@ struct SystemParentData;
class
VCL_DLLPUBLIC
WorkWindow
:
public
SystemWindow
{
private
:
sal_uInt16
mnPresentationFlags
;
bool
mbPresentationMode
:
1
,
mbPresentationVisible
:
1
,
mbPresentationFull
:
1
,
mbFullScreenMode
:
1
;
PresentationFlags
mnPresentationFlags
;
bool
mbPresentationMode
:
1
,
mbPresentationVisible
:
1
,
mbPresentationFull
:
1
,
mbFullScreenMode
:
1
;
SAL_DLLPRIVATE
void
ImplInitWorkWindowData
();
SAL_DLLPRIVATE
void
ImplInit
(
vcl
::
Window
*
pParent
,
WinBits
nStyle
,
const
::
com
::
sun
::
star
::
uno
::
Any
&
aSystemWorkWindowToken
);
...
...
@@ -77,28 +86,28 @@ public:
*/
void
ShowFullScreenMode
(
bool
bFullScreenMode
=
true
);
void
EndFullScreenMode
()
{
ShowFullScreenMode
(
false
);
}
bool
IsFullScreenMode
()
const
{
return
mbFullScreenMode
;
}
bool
IsFullScreenMode
()
const
{
return
mbFullScreenMode
;
}
void
StartPresentationMode
(
bool
bPresentation
,
sal_uInt16
nFlags
,
PresentationFlags
nFlags
,
sal_Int32
nDisplayScreen
);
/**
@overload void StartPresentationMode( bool bPresentation, sal_uInt16 nFlags, sal_uInt32 nDisplayScreen)
*/
void
StartPresentationMode
(
bool
bPresentation
=
true
,
sal_uInt16
nFlags
=
0
);
PresentationFlags
nFlags
=
PresentationFlags
::
NONE
);
void
EndPresentationMode
()
{
StartPresentationMode
(
false
);
}
bool
IsPresentationMode
()
const
{
return
mbPresentationMode
;
}
bool
IsPresentationMode
()
const
{
return
mbPresentationMode
;
}
bool
IsMinimized
()
const
;
bool
IsMinimized
()
const
;
bool
SetPluginParent
(
SystemParentData
*
pParent
);
bool
SetPluginParent
(
SystemParentData
*
pParent
);
void
Minimize
();
void
Restore
();
void
Maximize
(
bool
bMaximize
=
true
);
bool
IsMaximized
()
const
;
bool
IsMaximized
()
const
;
};
#endif // INCLUDED_VCL_WRKWIN_HXX
...
...
sd/source/ui/slideshow/slideshow.cxx
Dosyayı görüntüle @
b56dab64
...
...
@@ -689,7 +689,7 @@ void SAL_CALL SlideShow::end()
WorkWindow
*
pWorkWindow
=
dynamic_cast
<
WorkWindow
*>
(
pShell
->
GetViewFrame
()
->
GetTopFrame
().
GetWindow
().
GetParent
());
if
(
pWorkWindow
)
{
pWorkWindow
->
StartPresentationMode
(
false
,
isAlwaysOnTop
()
?
P
RESENTATION_HIDEALLAPPS
:
0
);
pWorkWindow
->
StartPresentationMode
(
false
,
isAlwaysOnTop
()
?
P
resentationFlags
::
HideAllApps
:
PresentationFlags
::
NONE
);
}
}
}
...
...
@@ -1161,7 +1161,7 @@ void SlideShow::StartFullscreenPresentation( )
const
sal_Int32
nDisplay
(
GetDisplay
());
VclPtr
<
WorkWindow
>
pWorkWindow
=
VclPtr
<
FullScreenWorkWindow
>::
Create
(
this
,
mpCurrentViewShellBase
);
pWorkWindow
->
SetBackground
(
Wallpaper
(
COL_BLACK
));
pWorkWindow
->
StartPresentationMode
(
true
,
mpDoc
->
getPresentationSettings
().
mbAlwaysOnTop
?
P
RESENTATION_HIDEALLAPPS
:
0
,
nDisplay
);
pWorkWindow
->
StartPresentationMode
(
true
,
mpDoc
->
getPresentationSettings
().
mbAlwaysOnTop
?
P
resentationFlags
::
HideAllApps
:
PresentationFlags
::
NONE
,
nDisplay
);
// pWorkWindow->ShowFullScreenMode(sal_False, nDisplay);
if
(
pWorkWindow
->
IsVisible
())
...
...
vcl/source/window/wrkwin.cxx
Dosyayı görüntüle @
b56dab64
...
...
@@ -36,7 +36,7 @@ void WorkWindow::ImplInitWorkWindowData()
{
mnIcon
=
0
;
// Should be removed in the next top level update - now in SystemWindow
mnPresentationFlags
=
0
;
mnPresentationFlags
=
PresentationFlags
::
NONE
;
mbPresentationMode
=
false
;
mbPresentationVisible
=
false
;
mbPresentationFull
=
false
;
...
...
@@ -157,12 +157,12 @@ void WorkWindow::ShowFullScreenMode( bool bFullScreenMode, sal_Int32 nDisplayScr
}
}
void
WorkWindow
::
StartPresentationMode
(
bool
bPresentation
,
sal_uInt16
nFlags
)
void
WorkWindow
::
StartPresentationMode
(
bool
bPresentation
,
PresentationFlags
nFlags
)
{
return
StartPresentationMode
(
bPresentation
,
nFlags
,
GetScreenNumber
());
}
void
WorkWindow
::
StartPresentationMode
(
bool
bPresentation
,
sal_uInt16
nFlags
,
sal_Int32
nDisplayScreen
)
void
WorkWindow
::
StartPresentationMode
(
bool
bPresentation
,
PresentationFlags
nFlags
,
sal_Int32
nDisplayScreen
)
{
if
(
!
bPresentation
==
!
mbPresentationMode
)
return
;
...
...
@@ -174,18 +174,18 @@ void WorkWindow::StartPresentationMode( bool bPresentation, sal_uInt16 nFlags, s
mbPresentationFull
=
mbFullScreenMode
;
mnPresentationFlags
=
nFlags
;
if
(
!
(
mnPresentationFlags
&
P
RESENTATION_NOFULLSCREEN
)
)
if
(
!
(
mnPresentationFlags
&
P
resentationFlags
::
NoFullScreen
)
)
ShowFullScreenMode
(
true
,
nDisplayScreen
);
if
(
!
mbSysChild
)
{
if
(
mnPresentationFlags
&
P
RESENTATION_HIDEALLAPPS
)
if
(
mnPresentationFlags
&
P
resentationFlags
::
HideAllApps
)
mpWindowImpl
->
mpFrame
->
SetAlwaysOnTop
(
true
);
if
(
!
(
mnPresentationFlags
&
P
RESENTATION_NOAUTOSHOW
)
)
if
(
!
(
mnPresentationFlags
&
P
resentationFlags
::
NoAutoShow
)
)
ToTop
();
mpWindowImpl
->
mpFrame
->
StartPresentation
(
true
);
}
if
(
!
(
mnPresentationFlags
&
P
RESENTATION_NOAUTOSHOW
)
)
if
(
!
(
mnPresentationFlags
&
P
resentationFlags
::
NoAutoShow
)
)
Show
();
}
else
...
...
@@ -194,7 +194,7 @@ void WorkWindow::StartPresentationMode( bool bPresentation, sal_uInt16 nFlags, s
if
(
!
mbSysChild
)
{
mpWindowImpl
->
mpFrame
->
StartPresentation
(
false
);
if
(
mnPresentationFlags
&
P
RESENTATION_HIDEALLAPPS
)
if
(
mnPresentationFlags
&
P
resentationFlags
::
HideAllApps
)
mpWindowImpl
->
mpFrame
->
SetAlwaysOnTop
(
false
);
}
ShowFullScreenMode
(
mbPresentationFull
,
nDisplayScreen
);
...
...
@@ -202,7 +202,7 @@ void WorkWindow::StartPresentationMode( bool bPresentation, sal_uInt16 nFlags, s
mbPresentationMode
=
false
;
mbPresentationVisible
=
false
;
mbPresentationFull
=
false
;
mnPresentationFlags
=
0
;
mnPresentationFlags
=
PresentationFlags
::
NONE
;
}
}
...
...
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