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
10b10580
Kaydet (Commit)
10b10580
authored
Ock 14, 2012
tarafından
Michael Meeks
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
vcl: rename methods to crisp up a 'DisplayScreen' naming concept
üst
ca93d983
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
56 additions
and
58 deletions
+56
-58
salsys.cxx
vcl/aqua/source/app/salsys.cxx
+2
-2
svpdummies.cxx
vcl/headless/svpdummies.cxx
+2
-2
salsys.h
vcl/inc/aqua/salsys.h
+2
-2
svpdummies.hxx
vcl/inc/headless/svpdummies.hxx
+2
-2
salsys.h
vcl/inc/ios/salsys.h
+2
-2
salsys.hxx
vcl/inc/salsys.hxx
+3
-5
gtkdata.hxx
vcl/inc/unx/gtk/gtkdata.hxx
+1
-1
gtksys.hxx
vcl/inc/unx/gtk/gtksys.hxx
+3
-3
x11sys.hxx
vcl/inc/unx/x11/x11sys.hxx
+4
-4
svapp.hxx
vcl/inc/vcl/svapp.hxx
+3
-3
syswin.hxx
vcl/inc/vcl/syswin.hxx
+4
-4
salsys.h
vcl/inc/win/salsys.h
+3
-3
salsys.cxx
vcl/ios/source/app/salsys.cxx
+2
-2
svapp.cxx
vcl/source/app/svapp.cxx
+6
-6
display.cxx
vcl/source/components/display.cxx
+8
-8
gtksys.cxx
vcl/unx/gtk/app/gtksys.cxx
+3
-3
x11sys.cxx
vcl/unx/x11/x11sys.cxx
+3
-3
salinfo.cxx
vcl/win/source/app/salinfo.cxx
+3
-3
No files found.
vcl/aqua/source/app/salsys.cxx
Dosyayı görüntüle @
10b10580
...
...
@@ -70,7 +70,7 @@ Rectangle AquaSalSystem::GetDisplayScreenPosSizePixel( unsigned int nScreen )
return
aRet
;
}
Rectangle
AquaSalSystem
::
GetDisplayWorkAreaPosSizePixel
(
unsigned
int
nScreen
)
Rectangle
AquaSalSystem
::
GetDisplay
Screen
WorkAreaPosSizePixel
(
unsigned
int
nScreen
)
{
NSArray
*
pScreens
=
[
NSScreen
screens
];
Rectangle
aRet
;
...
...
@@ -89,7 +89,7 @@ Rectangle AquaSalSystem::GetDisplayWorkAreaPosSizePixel( unsigned int nScreen )
return
aRet
;
}
rtl
::
OUString
AquaSalSystem
::
GetScreenName
(
unsigned
int
nScreen
)
rtl
::
OUString
AquaSalSystem
::
Get
Display
ScreenName
(
unsigned
int
nScreen
)
{
NSArray
*
pScreens
=
[
NSScreen
screens
];
OUString
aRet
;
...
...
vcl/headless/svpdummies.cxx
Dosyayı görüntüle @
10b10580
...
...
@@ -78,12 +78,12 @@ Rectangle SvpSalSystem::GetDisplayScreenPosSizePixel( unsigned int nScreen )
return
aRect
;
}
Rectangle
SvpSalSystem
::
GetDisplayWorkAreaPosSizePixel
(
unsigned
int
nScreen
)
Rectangle
SvpSalSystem
::
GetDisplay
Screen
WorkAreaPosSizePixel
(
unsigned
int
nScreen
)
{
return
GetDisplayScreenPosSizePixel
(
nScreen
);
}
rtl
::
OUString
SvpSalSystem
::
GetScreenName
(
unsigned
int
nScreen
)
rtl
::
OUString
SvpSalSystem
::
Get
Display
ScreenName
(
unsigned
int
nScreen
)
{
rtl
::
OUStringBuffer
aBuf
(
32
);
aBuf
.
appendAscii
(
"VirtualScreen "
);
...
...
vcl/inc/aqua/salsys.h
Dosyayı görüntüle @
10b10580
...
...
@@ -46,9 +46,9 @@ public:
// get info about the display
virtual
unsigned
int
GetDisplayScreenCount
();
virtual
Rectangle
GetDisplayScreenPosSizePixel
(
unsigned
int
nScreen
);
virtual
Rectangle
GetDisplayWorkAreaPosSizePixel
(
unsigned
int
nScreen
);
virtual
Rectangle
GetDisplay
Screen
WorkAreaPosSizePixel
(
unsigned
int
nScreen
);
virtual
rtl
::
OUString
GetScreenName
(
unsigned
int
nScreen
);
virtual
rtl
::
OUString
Get
Display
ScreenName
(
unsigned
int
nScreen
);
virtual
int
ShowNativeMessageBox
(
const
rtl
::
OUString
&
rTitle
,
const
rtl
::
OUString
&
rMessage
,
int
nButtonCombination
,
...
...
vcl/inc/headless/svpdummies.hxx
Dosyayı görüntüle @
10b10580
...
...
@@ -82,8 +82,8 @@ class SvpSalSystem : public SalSystem
// get info about the display
virtual
unsigned
int
GetDisplayScreenCount
();
virtual
Rectangle
GetDisplayScreenPosSizePixel
(
unsigned
int
nScreen
);
virtual
Rectangle
GetDisplayWorkAreaPosSizePixel
(
unsigned
int
nScreen
);
virtual
rtl
::
OUString
GetScreenName
(
unsigned
int
nScreen
);
virtual
Rectangle
GetDisplay
Screen
WorkAreaPosSizePixel
(
unsigned
int
nScreen
);
virtual
rtl
::
OUString
Get
Display
ScreenName
(
unsigned
int
nScreen
);
virtual
int
ShowNativeMessageBox
(
const
rtl
::
OUString
&
rTitle
,
...
...
vcl/inc/ios/salsys.h
Dosyayı görüntüle @
10b10580
...
...
@@ -40,9 +40,9 @@ public:
// get info about the display
virtual
unsigned
int
GetDisplayScreenCount
();
virtual
Rectangle
GetDisplayScreenPosSizePixel
(
unsigned
int
nScreen
);
virtual
Rectangle
GetDisplayWorkAreaPosSizePixel
(
unsigned
int
nScreen
);
virtual
Rectangle
GetDisplay
Screen
WorkAreaPosSizePixel
(
unsigned
int
nScreen
);
virtual
rtl
::
OUString
GetScreenName
(
unsigned
int
nScreen
);
virtual
rtl
::
OUString
Get
Display
ScreenName
(
unsigned
int
nScreen
);
virtual
int
ShowNativeMessageBox
(
const
String
&
rTitle
,
const
String
&
rMessage
,
int
nButtonCombination
,
...
...
vcl/inc/salsys.hxx
Dosyayı görüntüle @
10b10580
...
...
@@ -57,11 +57,9 @@ const int SALSYSTEM_SHOWNATIVEMSGBOX_BTN_YES = 6;
const
int
SALSYSTEM_SHOWNATIVEMSGBOX_BTN_NO
=
7
;
// -------------
// - SalSystem -
// -------------
class
VCL_PLUGIN_PUBLIC
SalSystem
{
public
:
...
...
@@ -88,7 +86,7 @@ public:
@returns the default screen number
*/
virtual
unsigned
int
GetD
efaultDisplayNumber
()
{
return
0
;
}
virtual
unsigned
int
GetD
isplayDefaultScreen
()
{
return
0
;
}
/* Gets relative position and size of the screens attached to the display
@param nScreen
...
...
@@ -106,7 +104,7 @@ public:
@returns position and size relative to the scree
*/
virtual
Rectangle
GetDisplayWorkAreaPosSizePixel
(
unsigned
int
nScreen
)
=
0
;
virtual
Rectangle
GetDisplay
Screen
WorkAreaPosSizePixel
(
unsigned
int
nScreen
)
=
0
;
/* Gets the name of a screen
@param nScreen
...
...
@@ -114,7 +112,7 @@ public:
@returns the name of the screen
*/
virtual
rtl
::
OUString
GetScreenName
(
unsigned
int
nScreen
)
=
0
;
virtual
rtl
::
OUString
Get
Display
ScreenName
(
unsigned
int
nScreen
)
=
0
;
/* Shows a native message box with the specified title, message and button
combination.
...
...
vcl/inc/unx/gtk/gtkdata.hxx
Dosyayı görüntüle @
10b10580
...
...
@@ -155,7 +155,7 @@ public:
virtual
int
CaptureMouse
(
SalFrame
*
pFrame
);
#if GTK_CHECK_VERSION(3,0,0)
int
GetDefaultScreenNumber
()
{
return
m_pSys
->
GetD
efaultDisplayNumber
();
}
int
GetDefaultScreenNumber
()
{
return
m_pSys
->
GetD
isplayDefaultScreen
();
}
int
GetScreenCount
()
{
return
m_pSys
->
GetDisplayScreenCount
();
}
Size
GetScreenSize
(
int
screen
);
#endif
...
...
vcl/inc/unx/gtk/gtksys.hxx
Dosyayı görüntüle @
10b10580
...
...
@@ -43,10 +43,10 @@ public:
virtual
bool
IsUnifiedDisplay
();
virtual
unsigned
int
GetDisplayScreenCount
();
virtual
unsigned
int
GetD
efaultDisplayNumber
();
virtual
rtl
::
OUString
GetScreenName
(
unsigned
int
nScreen
);
virtual
unsigned
int
GetD
isplayDefaultScreen
();
virtual
rtl
::
OUString
Get
Display
ScreenName
(
unsigned
int
nScreen
);
virtual
Rectangle
GetDisplayScreenPosSizePixel
(
unsigned
int
nScreen
);
virtual
Rectangle
GetDisplayWorkAreaPosSizePixel
(
unsigned
int
nScreen
);
virtual
Rectangle
GetDisplay
Screen
WorkAreaPosSizePixel
(
unsigned
int
nScreen
);
virtual
int
ShowNativeDialog
(
const
rtl
::
OUString
&
rTitle
,
const
rtl
::
OUString
&
rMessage
,
const
std
::
list
<
rtl
::
OUString
>&
rButtons
,
...
...
vcl/inc/unx/x11/x11sys.hxx
Dosyayı görüntüle @
10b10580
...
...
@@ -45,10 +45,10 @@ public:
// overload pure virtual methods
virtual
unsigned
int
GetDisplayScreenCount
();
virtual
bool
IsUnifiedDisplay
();
virtual
unsigned
int
GetD
efaultDisplayNumber
();
virtual
Rectangle
GetDisplayScreenPosSizePixel
(
unsigned
int
nScreen
);
virtual
Rectangle
GetDisplay
WorkAreaPosSizePixel
(
unsigned
int
nScreen
);
virtual
rtl
::
OUString
GetScreenName
(
unsigned
int
nScreen
);
virtual
unsigned
int
GetD
isplayDefaultScreen
();
virtual
Rectangle
GetDisplayScreenPosSizePixel
(
unsigned
int
nScreen
);
virtual
Rectangle
GetDisplayScreen
WorkAreaPosSizePixel
(
unsigned
int
nScreen
);
virtual
rtl
::
OUString
Get
Display
ScreenName
(
unsigned
int
nScreen
);
virtual
int
ShowNativeDialog
(
const
rtl
::
OUString
&
rTitle
,
const
rtl
::
OUString
&
rMessage
,
const
std
::
list
<
rtl
::
OUString
>&
rButtons
,
...
...
vcl/inc/vcl/svapp.hxx
Dosyayı görüntüle @
10b10580
...
...
@@ -292,11 +292,11 @@ public:
// if IsUnifiedDisplay() == true the return value will be
// nearest screen of the target rectangle
// in case of IsUnifiedDisplay() == false the return value
// will always be GetD
efaultDisplayNumber
()
// will always be GetD
isplayDefaultScreen
()
SAL_DLLPRIVATE
static
unsigned
int
GetBestScreen
(
const
Rectangle
&
);
SAL_DLLPRIVATE
static
Rectangle
GetWorkAreaPosSizePixel
(
unsigned
int
nScreen
);
SAL_DLLPRIVATE
static
unsigned
int
GetD
efaultDisplayNumber
();
SAL_DLLPRIVATE
static
rtl
::
OUString
GetScreenName
(
unsigned
int
nScreen
);
SAL_DLLPRIVATE
static
unsigned
int
GetD
isplayDefaultScreen
();
SAL_DLLPRIVATE
static
rtl
::
OUString
Get
Display
ScreenName
(
unsigned
int
nScreen
);
static
const
LocaleDataWrapper
&
GetAppLocaleDataWrapper
();
...
...
vcl/inc/vcl/syswin.hxx
Dosyayı görüntüle @
10b10580
...
...
@@ -241,10 +241,10 @@ public:
/**
Returns the screen number the window is on
The
s
creen number is counted the same way that
The
Display S
creen number is counted the same way that
<code>Application::GetScreenPosSizePixel</code>,
<code>Application::GetWorkAreaPosSizePixel</code>,
<code>Application::GetScreenName</code>
<code>Application::Get
Display
ScreenName</code>
and of course <code>SystemWindow::SetScreenNumber</code>
are counted in.
...
...
@@ -263,10 +263,10 @@ public:
Move the Window to a new screen. The same rules for
positioning apply as in <code>SystemWindow::GetScreenNumber</code>
The
s
creen number is counted the same way that
The
Display S
creen number is counted the same way that
<code>Application::GetScreenPosSizePixel</code>,
<code>Application::GetWorkAreaPosSizePixel</code>,
<code>Application::GetScreenName</code>
<code>Application::Get
Display
ScreenName</code>
and of course <code>SystemWindow::GetScreenNumber</code>
are counted in.
...
...
vcl/inc/win/salsys.h
Dosyayı görüntüle @
10b10580
...
...
@@ -69,10 +69,10 @@ public:
virtual
~
WinSalSystem
();
virtual
unsigned
int
GetDisplayScreenCount
();
virtual
unsigned
int
GetD
efaultDisplayNumber
();
virtual
unsigned
int
GetD
isplayDefaultScreen
();
virtual
Rectangle
GetDisplayScreenPosSizePixel
(
unsigned
int
nScreen
);
virtual
Rectangle
GetDisplayWorkAreaPosSizePixel
(
unsigned
int
nScreen
);
virtual
rtl
::
OUString
GetScreenName
(
unsigned
int
nScreen
);
virtual
Rectangle
GetDisplay
Screen
WorkAreaPosSizePixel
(
unsigned
int
nScreen
);
virtual
rtl
::
OUString
Get
Display
ScreenName
(
unsigned
int
nScreen
);
virtual
int
ShowNativeMessageBox
(
const
rtl
::
OUString
&
rTitle
,
const
rtl
::
OUString
&
rMessage
,
int
nButtonCombination
,
...
...
vcl/ios/source/app/salsys.cxx
Dosyayı görüntüle @
10b10580
...
...
@@ -70,7 +70,7 @@ Rectangle IosSalSystem::GetDisplayScreenPosSizePixel( unsigned int nScreen )
return
aRet
;
}
Rectangle
IosSalSystem
::
GetDisplayWorkAreaPosSizePixel
(
unsigned
int
nScreen
)
Rectangle
IosSalSystem
::
GetDisplay
Screen
WorkAreaPosSizePixel
(
unsigned
int
nScreen
)
{
NSArray
*
pScreens
=
[
UIScreen
screens
];
Rectangle
aRet
;
...
...
@@ -89,7 +89,7 @@ Rectangle IosSalSystem::GetDisplayWorkAreaPosSizePixel( unsigned int nScreen )
return
aRet
;
}
rtl
::
OUString
IosSalSystem
::
GetScreenName
(
unsigned
int
nScreen
)
rtl
::
OUString
IosSalSystem
::
Get
Display
ScreenName
(
unsigned
int
nScreen
)
{
NSArray
*
pScreens
=
[
UIScreen
screens
];
OUString
aRet
;
...
...
vcl/source/app/svapp.cxx
Dosyayı görüntüle @
10b10580
...
...
@@ -1252,10 +1252,10 @@ unsigned int Application::GetScreenCount()
return
pSys
?
pSys
->
GetDisplayScreenCount
()
:
0
;
}
rtl
::
OUString
Application
::
GetScreenName
(
unsigned
int
nScreen
)
rtl
::
OUString
Application
::
Get
Display
ScreenName
(
unsigned
int
nScreen
)
{
SalSystem
*
pSys
=
ImplGetSalSystem
();
return
pSys
?
pSys
->
GetScreenName
(
nScreen
)
:
rtl
::
OUString
();
return
pSys
?
pSys
->
Get
Display
ScreenName
(
nScreen
)
:
rtl
::
OUString
();
}
bool
Application
::
IsUnifiedDisplay
()
...
...
@@ -1264,10 +1264,10 @@ bool Application::IsUnifiedDisplay()
return
pSys
?
pSys
->
IsUnifiedDisplay
()
:
true
;
}
unsigned
int
Application
::
GetD
efaultDisplayNumber
()
unsigned
int
Application
::
GetD
isplayDefaultScreen
()
{
SalSystem
*
pSys
=
ImplGetSalSystem
();
return
pSys
?
pSys
->
GetD
efaultDisplayNumber
()
:
0
;
return
pSys
?
pSys
->
GetD
isplayDefaultScreen
()
:
0
;
}
Rectangle
Application
::
GetScreenPosSizePixel
(
unsigned
int
nScreen
)
...
...
@@ -1279,7 +1279,7 @@ Rectangle Application::GetScreenPosSizePixel( unsigned int nScreen )
Rectangle
Application
::
GetWorkAreaPosSizePixel
(
unsigned
int
nScreen
)
{
SalSystem
*
pSys
=
ImplGetSalSystem
();
return
pSys
?
pSys
->
GetDisplayWorkAreaPosSizePixel
(
nScreen
)
:
Rectangle
();
return
pSys
?
pSys
->
GetDisplay
Screen
WorkAreaPosSizePixel
(
nScreen
)
:
Rectangle
();
}
namespace
{
...
...
@@ -1296,7 +1296,7 @@ unsigned long calcDistSquare( const Point& i_rPoint, const Rectangle& i_rRect )
unsigned
int
Application
::
GetBestScreen
(
const
Rectangle
&
i_rRect
)
{
if
(
!
IsUnifiedDisplay
()
)
return
GetD
efaultDisplayNumber
();
return
GetD
isplayDefaultScreen
();
const
unsigned
int
nScreens
=
GetScreenCount
();
unsigned
int
nBestMatchScreen
=
0
;
...
...
vcl/source/components/display.cxx
Dosyayı görüntüle @
10b10580
...
...
@@ -55,7 +55,7 @@ namespace vcl
class
DisplayInfo
:
public
::
cppu
::
WeakAggImplHelper3
<
XPropertySet
,
XPropertySetInfo
,
XServiceInfo
>
{
public
:
DisplayInfo
(
sal_uInt32
nDisplay
);
DisplayInfo
(
sal_uInt32
nDisplay
Screen
);
// XPropertySet
virtual
Reference
<
XPropertySetInfo
>
SAL_CALL
getPropertySetInfo
()
throw
(
RuntimeException
);
...
...
@@ -77,7 +77,7 @@ public:
virtual
Sequence
<
OUString
>
SAL_CALL
getSupportedServiceNames
()
throw
(
RuntimeException
);
private
:
sal_uInt32
mnDisplay
;
sal_uInt32
mnDisplay
Screen
;
};
static
const
char
*
pScreenAreaName
=
"ScreenArea"
;
...
...
@@ -86,8 +86,8 @@ static const char* pScreenName = "ScreenName";
// --------------------------------------------------------------------
DisplayInfo
::
DisplayInfo
(
sal_uInt32
nDisplay
)
:
mnDisplay
(
nDisplay
)
DisplayInfo
::
DisplayInfo
(
sal_uInt32
nDisplay
Screen
)
:
mnDisplay
Screen
(
nDisplayScreen
)
{
}
...
...
@@ -107,15 +107,15 @@ Any SAL_CALL DisplayInfo::getPropertyValue( const OUString& PropertyName ) throw
Rectangle
aRect
;
if
(
PropertyName
.
equalsAscii
(
pScreenAreaName
)
)
{
aRect
=
Application
::
GetScreenPosSizePixel
(
mnDisplay
);
aRect
=
Application
::
GetScreenPosSizePixel
(
mnDisplay
Screen
);
}
else
if
(
PropertyName
.
equalsAscii
(
pWorkAreaName
)
)
{
aRect
=
Application
::
GetWorkAreaPosSizePixel
(
mnDisplay
);
aRect
=
Application
::
GetWorkAreaPosSizePixel
(
mnDisplay
Screen
);
}
else
if
(
PropertyName
.
equalsAscii
(
pScreenName
)
)
{
return
Any
(
Application
::
Get
ScreenName
(
mnDisplay
)
);
return
Any
(
Application
::
Get
DisplayScreenName
(
mnDisplayScreen
)
);
}
else
throw
UnknownPropertyException
();
...
...
@@ -252,7 +252,7 @@ Any SAL_CALL DisplayAccess::getPropertyValue( const OUString& PropertyName ) thr
}
else
if
(
PropertyName
.
equalsAscii
(
pDefaultDisplayName
)
)
{
aRet
<<=
sal_Int32
(
Application
::
GetD
efaultDisplayNumber
()
);
aRet
<<=
sal_Int32
(
Application
::
GetD
isplayDefaultScreen
()
);
}
else
throw
UnknownPropertyException
();
...
...
vcl/unx/gtk/app/gtksys.cxx
Dosyayı görüntüle @
10b10580
...
...
@@ -153,7 +153,7 @@ static int _get_primary_monitor (GdkScreen *pScreen)
}
}
// end anonymous namespace
unsigned
int
GtkSalSystem
::
GetD
efaultDisplayNumber
()
unsigned
int
GtkSalSystem
::
GetD
isplayDefaultScreen
()
{
GdkScreen
*
pDefault
=
gdk_display_get_default_screen
(
mpDisplay
);
int
idx
=
getScreenIdxFromPtr
(
mpDisplay
,
pDefault
);
...
...
@@ -172,7 +172,7 @@ Rectangle GtkSalSystem::GetDisplayScreenPosSizePixel (unsigned int nScreen)
return
Rectangle
(
aRect
.
x
,
aRect
.
y
,
aRect
.
width
,
aRect
.
height
);
}
Rectangle
GtkSalSystem
::
GetDisplayWorkAreaPosSizePixel
(
unsigned
int
nScreen
)
Rectangle
GtkSalSystem
::
GetDisplay
Screen
WorkAreaPosSizePixel
(
unsigned
int
nScreen
)
{
// FIXME: in theory we need extra code here to collect
// the work area, ignoring fixed panels etc. on the screen.
...
...
@@ -180,7 +180,7 @@ Rectangle GtkSalSystem::GetDisplayWorkAreaPosSizePixel (unsigned int nScreen)
return
GetDisplayScreenPosSizePixel
(
nScreen
);
}
rtl
::
OUString
GtkSalSystem
::
GetScreenName
(
unsigned
int
nScreen
)
rtl
::
OUString
GtkSalSystem
::
Get
Display
ScreenName
(
unsigned
int
nScreen
)
{
gchar
*
pStr
;
gint
nMonitor
;
...
...
vcl/unx/x11/x11sys.cxx
Dosyayı görüntüle @
10b10580
...
...
@@ -67,7 +67,7 @@ bool X11SalSystem::IsUnifiedDisplay()
return
pSalDisp
->
IsXinerama
()
?
true
:
(
nScreenCount
==
1
);
}
unsigned
int
X11SalSystem
::
GetD
efaultDisplayNumber
()
unsigned
int
X11SalSystem
::
GetD
isplayDefaultScreen
()
{
SalDisplay
*
pSalDisp
=
GetGenericData
()
->
GetSalDisplay
();
return
pSalDisp
->
GetDefaultScreenNumber
();
...
...
@@ -92,13 +92,13 @@ Rectangle X11SalSystem::GetDisplayScreenPosSizePixel( unsigned int nScreen )
return
aRet
;
}
Rectangle
X11SalSystem
::
GetDisplayWorkAreaPosSizePixel
(
unsigned
int
nScreen
)
Rectangle
X11SalSystem
::
GetDisplay
Screen
WorkAreaPosSizePixel
(
unsigned
int
nScreen
)
{
// FIXME: workareas
return
GetDisplayScreenPosSizePixel
(
nScreen
);
}
rtl
::
OUString
X11SalSystem
::
GetScreenName
(
unsigned
int
nScreen
)
rtl
::
OUString
X11SalSystem
::
Get
Display
ScreenName
(
unsigned
int
nScreen
)
{
rtl
::
OUString
aScreenName
;
SalDisplay
*
pSalDisp
=
GetGenericData
()
->
GetSalDisplay
();
...
...
vcl/win/source/app/salinfo.cxx
Dosyayı görüntüle @
10b10580
...
...
@@ -184,7 +184,7 @@ bool WinSalSystem::IsMultiDisplay()
return
false
;
}
unsigned
int
WinSalSystem
::
GetD
efaultDisplayNumber
()
unsigned
int
WinSalSystem
::
GetD
isplayDefaultScreen
()
{
initMonitors
();
return
m_nPrimary
;
...
...
@@ -196,13 +196,13 @@ Rectangle WinSalSystem::GetDisplayScreenPosSizePixel( unsigned int nScreen )
return
(
nScreen
<
m_aMonitors
.
size
())
?
m_aMonitors
[
nScreen
].
m_aArea
:
Rectangle
();
}
Rectangle
WinSalSystem
::
GetDisplayWorkAreaPosSizePixel
(
unsigned
int
nScreen
)
Rectangle
WinSalSystem
::
GetDisplay
Screen
WorkAreaPosSizePixel
(
unsigned
int
nScreen
)
{
initMonitors
();
return
(
nScreen
<
m_aMonitors
.
size
())
?
m_aMonitors
[
nScreen
].
m_aWorkArea
:
Rectangle
();
}
rtl
::
OUString
WinSalSystem
::
GetScreenName
(
unsigned
int
nScreen
)
rtl
::
OUString
WinSalSystem
::
Get
Display
ScreenName
(
unsigned
int
nScreen
)
{
initMonitors
();
return
(
nScreen
<
m_aMonitors
.
size
())
?
m_aMonitors
[
nScreen
].
m_aName
:
rtl
::
OUString
();
...
...
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