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
955b18d4
Kaydet (Commit)
955b18d4
authored
Ock 15, 2012
tarafından
Michael Meeks
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
vcl: second part of fix for fdo#43458 - get xrandr / y positioning right
üst
8d151e0e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
20 deletions
+23
-20
wrkwin.hxx
vcl/inc/vcl/wrkwin.hxx
+14
-11
wrkwin.cxx
vcl/source/window/wrkwin.cxx
+8
-8
gtkframe.cxx
vcl/unx/gtk/window/gtkframe.cxx
+1
-1
No files found.
vcl/inc/vcl/wrkwin.hxx
Dosyayı görüntüle @
955b18d4
...
...
@@ -80,30 +80,33 @@ public:
virtual
sal_Bool
Close
();
/** The default value of nDisplay = -1 means "don't care" and
allows to backends to use any screen
[** or display? terminology!]
the
y like (most probably the
current one).
/** The default value of nDisplay
Screen
= -1 means "don't care" and
allows to backends to use any screen
they like (most probably
the current one).
NOTE: The default value cannot be 0, because 0 is a legitimate
s
creen number.
Display S
creen number.
*/
void
ShowFullScreenMode
(
sal_Bool
bFullScreenMode
=
sal_True
,
sal_Int32
nDisplay
=
-
1
);
void
ShowFullScreenMode
(
sal_Bool
bFullScreenMode
=
sal_True
,
sal_Int32
nDisplayScreen
=
-
1
);
void
EndFullScreenMode
()
{
ShowFullScreenMode
(
sal_False
);
}
sal_Bool
IsFullScreenMode
()
const
{
return
mbFullScreenMode
;
}
sal_Bool
IsFullScreenMode
()
const
{
return
mbFullScreenMode
;
}
void
StartPresentationMode
(
sal_Bool
bPresentation
=
sal_True
,
sal_uInt16
nFlags
=
0
,
sal_Int32
nDisplay
=
0
);
void
StartPresentationMode
(
sal_Bool
bPresentation
=
sal_True
,
sal_uInt16
nFlags
=
0
,
sal_Int32
nDisplayScreen
=
0
);
void
EndPresentationMode
()
{
StartPresentationMode
(
sal_False
);
}
sal_Bool
IsPresentationMode
()
const
{
return
mbPresentationMode
;
}
sal_Bool
IsPresentationMode
()
const
{
return
mbPresentationMode
;
}
sal_Bool
IsMinimized
()
const
;
sal_Bool
IsMinimized
()
const
;
sal_Bool
SetPluginParent
(
SystemParentData
*
pParent
);
sal_Bool
SetPluginParent
(
SystemParentData
*
pParent
);
void
Minimize
();
void
Restore
();
void
Maximize
(
sal_Bool
bMaximize
=
sal_True
);
sal_Bool
IsMaximized
()
const
;
sal_Bool
IsMaximized
()
const
;
};
#endif // _SV_WRKWIN_HXX
...
...
vcl/source/window/wrkwin.cxx
Dosyayı görüntüle @
955b18d4
...
...
@@ -178,15 +178,15 @@ WorkWindow::~WorkWindow()
// -----------------------------------------------------------------------
void
WorkWindow
::
ShowFullScreenMode
(
sal_Bool
bFullScreenMode
,
sal_Int32
nDisplay
)
void
WorkWindow
::
ShowFullScreenMode
(
sal_Bool
bFullScreenMode
,
sal_Int32
nDisplay
Screen
)
{
if
(
!
mbFullScreenMode
==
!
bFullScreenMode
)
return
;
if
(
(
nDisplay
<
0
)
||
(
nDisplay
>=
static_cast
<
sal_Int32
>
(
Application
::
GetScreenCount
())
)
)
if
(
(
nDisplay
Screen
<
0
)
||
(
nDisplay
Screen
>=
static_cast
<
sal_Int32
>
(
Application
::
GetScreenCount
())
)
)
{
nDisplay
=
GetScreenNumber
();
nDisplay
Screen
=
GetScreenNumber
();
}
mbFullScreenMode
=
bFullScreenMode
!=
0
;
...
...
@@ -205,13 +205,13 @@ void WorkWindow::ShowFullScreenMode( sal_Bool bFullScreenMode, sal_Int32 nDispla
}
mpWindowImpl
->
mpFrameWindow
->
mpWindowImpl
->
mbWaitSystemResize
=
sal_True
;
ImplGetFrame
()
->
ShowFullScreen
(
bFullScreenMode
,
nDisplay
);
ImplGetFrame
()
->
ShowFullScreen
(
bFullScreenMode
,
nDisplay
Screen
);
}
}
// -----------------------------------------------------------------------
void
WorkWindow
::
StartPresentationMode
(
sal_Bool
bPresentation
,
sal_uInt16
nFlags
,
sal_Int32
nDisplay
)
void
WorkWindow
::
StartPresentationMode
(
sal_Bool
bPresentation
,
sal_uInt16
nFlags
,
sal_Int32
nDisplay
Screen
)
{
if
(
!
bPresentation
==
!
mbPresentationMode
)
return
;
...
...
@@ -224,7 +224,7 @@ void WorkWindow::StartPresentationMode( sal_Bool bPresentation, sal_uInt16 nFlag
mnPresentationFlags
=
nFlags
;
if
(
!
(
mnPresentationFlags
&
PRESENTATION_NOFULLSCREEN
)
)
ShowFullScreenMode
(
sal_True
,
nDisplay
);
ShowFullScreenMode
(
sal_True
,
nDisplay
Screen
);
if
(
!
mbSysChild
)
{
if
(
mnPresentationFlags
&
PRESENTATION_HIDEALLAPPS
)
...
...
@@ -246,7 +246,7 @@ void WorkWindow::StartPresentationMode( sal_Bool bPresentation, sal_uInt16 nFlag
if
(
mnPresentationFlags
&
PRESENTATION_HIDEALLAPPS
)
mpWindowImpl
->
mpFrame
->
SetAlwaysOnTop
(
sal_False
);
}
ShowFullScreenMode
(
mbPresentationFull
,
nDisplay
);
ShowFullScreenMode
(
mbPresentationFull
,
nDisplay
Screen
);
mbPresentationMode
=
sal_False
;
mbPresentationVisible
=
sal_False
;
...
...
vcl/unx/gtk/window/gtkframe.cxx
Dosyayı görüntüle @
955b18d4
...
...
@@ -1880,7 +1880,7 @@ void GtkSalFrame::SetScreen( unsigned int nNewScreen, int eType, Rectangle *pSiz
if
(
eType
==
SET_FULLSCREEN
)
{
maGeometry
.
nX
=
aNewMonitor
.
x
;
maGeometry
.
nY
=
aNewMonitor
.
x
;
maGeometry
.
nY
=
aNewMonitor
.
y
;
maGeometry
.
nWidth
=
aNewMonitor
.
width
;
maGeometry
.
nHeight
=
aNewMonitor
.
height
;
m_nStyle
|=
SAL_FRAME_STYLE_PARTIAL_FULLSCREEN
;
...
...
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