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
e54e50b7
Kaydet (Commit)
e54e50b7
authored
Tem 04, 2008
tarafından
Rüdiger Timm
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
INTEGRATION: CWS iconupdate300u1 (1.74.26); FILE MERGED
2008/05/14 14:38:45 ka 1.74.26.1: #i89469#: added Classic theme
üst
a5cdf286
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
8 deletions
+39
-8
settings.cxx
vcl/source/app/settings.cxx
+39
-8
No files found.
vcl/source/app/settings.cxx
Dosyayı görüntüle @
e54e50b7
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
* OpenOffice.org - a multi-platform office productivity suite
*
*
* $RCSfile: settings.cxx,v $
* $RCSfile: settings.cxx,v $
* $Revision: 1.7
6
$
* $Revision: 1.7
7
$
*
*
* This file is part of OpenOffice.org.
* This file is part of OpenOffice.org.
*
*
...
@@ -43,6 +43,7 @@
...
@@ -43,6 +43,7 @@
#include "vcl/unohelp.hxx"
#include "vcl/unohelp.hxx"
#include "unotools/localedatawrapper.hxx"
#include "unotools/localedatawrapper.hxx"
#include "unotools/collatorwrapper.hxx"
#include "unotools/collatorwrapper.hxx"
#include "unotools/configmgr.hxx"
#include "unotools/confignode.hxx"
#include "unotools/confignode.hxx"
#ifdef WNT
#ifdef WNT
...
@@ -699,6 +700,7 @@ void StyleSettings::Set3DColors( const Color& rColor )
...
@@ -699,6 +700,7 @@ void StyleSettings::Set3DColors( const Color& rColor )
case
STYLE_SYMBOLS_INDUSTRIAL
:
return
::
rtl
::
OUString
::
createFromAscii
(
"industrial"
);
case
STYLE_SYMBOLS_INDUSTRIAL
:
return
::
rtl
::
OUString
::
createFromAscii
(
"industrial"
);
case
STYLE_SYMBOLS_CRYSTAL
:
return
::
rtl
::
OUString
::
createFromAscii
(
"crystal"
);
case
STYLE_SYMBOLS_CRYSTAL
:
return
::
rtl
::
OUString
::
createFromAscii
(
"crystal"
);
case
STYLE_SYMBOLS_TANGO
:
return
::
rtl
::
OUString
::
createFromAscii
(
"tango"
);
case
STYLE_SYMBOLS_TANGO
:
return
::
rtl
::
OUString
::
createFromAscii
(
"tango"
);
case
STYLE_SYMBOLS_CLASSIC
:
return
::
rtl
::
OUString
::
createFromAscii
(
"classic"
);
}
}
return
::
rtl
::
OUString
::
createFromAscii
(
"auto"
);
return
::
rtl
::
OUString
::
createFromAscii
(
"auto"
);
...
@@ -718,6 +720,8 @@ ULONG StyleSettings::ImplNameToSymbolsStyle( const ::rtl::OUString &rName ) cons
...
@@ -718,6 +720,8 @@ ULONG StyleSettings::ImplNameToSymbolsStyle( const ::rtl::OUString &rName ) cons
return
STYLE_SYMBOLS_CRYSTAL
;
return
STYLE_SYMBOLS_CRYSTAL
;
else
if
(
rName
==
::
rtl
::
OUString
::
createFromAscii
(
"tango"
)
)
else
if
(
rName
==
::
rtl
::
OUString
::
createFromAscii
(
"tango"
)
)
return
STYLE_SYMBOLS_TANGO
;
return
STYLE_SYMBOLS_TANGO
;
else
if
(
rName
==
::
rtl
::
OUString
::
createFromAscii
(
"classic"
)
)
return
STYLE_SYMBOLS_CLASSIC
;
return
STYLE_SYMBOLS_AUTO
;
return
STYLE_SYMBOLS_AUTO
;
}
}
...
@@ -763,13 +767,7 @@ ULONG StyleSettings::GetCurrentSymbolsStyle() const
...
@@ -763,13 +767,7 @@ ULONG StyleSettings::GetCurrentSymbolsStyle() const
if
(
!
sbFallbackDesktopChecked
)
if
(
!
sbFallbackDesktopChecked
)
{
{
const
::
rtl
::
OUString
&
rDesktopEnvironment
=
Application
::
GetDesktopEnvironment
();
snFallbackDesktopStyle
=
GetAutoSymbolsStyle
();
if
(
rDesktopEnvironment
.
equalsIgnoreAsciiCaseAscii
(
"gnome"
)
)
snFallbackDesktopStyle
=
STYLE_SYMBOLS_TANGO
;
else
if
(
rDesktopEnvironment
.
equalsIgnoreAsciiCaseAscii
(
"kde"
)
)
snFallbackDesktopStyle
=
STYLE_SYMBOLS_CRYSTAL
;
sbFallbackDesktopChecked
=
true
;
sbFallbackDesktopChecked
=
true
;
}
}
...
@@ -784,6 +782,39 @@ ULONG StyleSettings::GetCurrentSymbolsStyle() const
...
@@ -784,6 +782,39 @@ ULONG StyleSettings::GetCurrentSymbolsStyle() const
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
ULONG
StyleSettings
::
GetAutoSymbolsStyle
()
const
{
const
::
rtl
::
OUString
&
rDesktopEnvironment
=
Application
::
GetDesktopEnvironment
();
ULONG
nRet
=
STYLE_SYMBOLS_DEFAULT
;
bool
bCont
=
true
;
try
{
const
::
com
::
sun
::
star
::
uno
::
Any
aAny
(
::
utl
::
ConfigManager
::
GetDirectConfigProperty
(
::
utl
::
ConfigManager
::
OPENSOURCECONTEXT
)
);
sal_Int32
nValue
(
0
);
aAny
>>=
nValue
;
if
(
0
==
nValue
)
bCont
=
false
;
}
catch
(
::
com
::
sun
::
star
::
uno
::
Exception
&
)
{
}
if
(
bCont
)
{
if
(
rDesktopEnvironment
.
equalsIgnoreAsciiCaseAscii
(
"gnome"
)
)
nRet
=
STYLE_SYMBOLS_TANGO
;
else
if
(
rDesktopEnvironment
.
equalsIgnoreAsciiCaseAscii
(
"kde"
)
)
nRet
=
STYLE_SYMBOLS_CRYSTAL
;
}
return
nRet
;
}
// -----------------------------------------------------------------------
void
StyleSettings
::
SetStandardStyles
()
void
StyleSettings
::
SetStandardStyles
()
{
{
CopyData
();
CopyData
();
...
...
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