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
1893585d
Kaydet (Commit)
1893585d
authored
Şub 15, 2012
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
I can't see the point of these masses of vcl settings which go nowhere
üst
029b5734
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
489 deletions
+10
-489
settings.hxx
vcl/inc/vcl/settings.hxx
+9
-182
settings.cxx
vcl/source/app/settings.cxx
+1
-307
No files found.
vcl/inc/vcl/settings.hxx
Dosyayı görüntüle @
1893585d
...
@@ -45,66 +45,6 @@ namespace vcl {
...
@@ -45,66 +45,6 @@ namespace vcl {
class
I18nHelper
;
class
I18nHelper
;
}
}
// -------------------
// - ImplMachineData -
// -------------------
class
ImplMachineData
{
friend
class
MachineSettings
;
ImplMachineData
();
ImplMachineData
(
const
ImplMachineData
&
rData
);
private
:
sal_uLong
mnRefCount
;
sal_uLong
mnOptions
;
sal_uLong
mnScreenOptions
;
sal_uLong
mnPrintOptions
;
long
mnScreenRasterFontDeviation
;
};
// -------------------
// - MachineSettings -
// -------------------
class
VCL_DLLPUBLIC
MachineSettings
{
void
CopyData
();
private
:
ImplMachineData
*
mpData
;
public
:
MachineSettings
();
MachineSettings
(
const
MachineSettings
&
rSet
);
~
MachineSettings
();
void
SetOptions
(
sal_uLong
nOptions
)
{
CopyData
();
mpData
->
mnOptions
=
nOptions
;
}
sal_uLong
GetOptions
()
const
{
return
mpData
->
mnOptions
;
}
void
SetScreenOptions
(
sal_uLong
nOptions
)
{
CopyData
();
mpData
->
mnScreenOptions
=
nOptions
;
}
sal_uLong
GetScreenOptions
()
const
{
return
mpData
->
mnScreenOptions
;
}
void
SetPrintOptions
(
sal_uLong
nOptions
)
{
CopyData
();
mpData
->
mnPrintOptions
=
nOptions
;
}
sal_uLong
GetPrintOptions
()
const
{
return
mpData
->
mnPrintOptions
;
}
void
SetScreenRasterFontDeviation
(
long
nDeviation
)
{
CopyData
();
mpData
->
mnScreenRasterFontDeviation
=
nDeviation
;
}
long
GetScreenRasterFontDeviation
()
const
{
return
mpData
->
mnScreenRasterFontDeviation
;
}
const
MachineSettings
&
operator
=
(
const
MachineSettings
&
rSet
);
sal_Bool
operator
==
(
const
MachineSettings
&
rSet
)
const
;
sal_Bool
operator
!=
(
const
MachineSettings
&
rSet
)
const
{
return
!
(
*
this
==
rSet
);
}
};
// -----------------
// -----------------
// - ImplMouseData -
// - ImplMouseData -
// -----------------
// -----------------
...
@@ -272,52 +212,6 @@ public:
...
@@ -272,52 +212,6 @@ public:
{
return
!
(
*
this
==
rSet
);
}
{
return
!
(
*
this
==
rSet
);
}
};
};
// --------------------
// - ImplKeyboardData -
// --------------------
class
ImplKeyboardData
{
friend
class
KeyboardSettings
;
ImplKeyboardData
();
ImplKeyboardData
(
const
ImplKeyboardData
&
rData
);
private
:
sal_uLong
mnRefCount
;
Accelerator
maStandardAccel
;
sal_uLong
mnOptions
;
};
// --------------------
// - KeyboardSettings -
// --------------------
#define KEYBOARD_OPTION_QUICKCURSOR ((sal_uLong)0x00000001)
class
VCL_DLLPUBLIC
KeyboardSettings
{
private
:
ImplKeyboardData
*
mpData
;
public
:
KeyboardSettings
();
KeyboardSettings
(
const
KeyboardSettings
&
rSet
);
~
KeyboardSettings
();
const
Accelerator
&
GetStandardAccel
()
const
{
return
mpData
->
maStandardAccel
;
}
sal_uLong
GetOptions
()
const
{
return
mpData
->
mnOptions
;
}
const
KeyboardSettings
&
operator
=
(
const
KeyboardSettings
&
rSet
);
sal_Bool
operator
==
(
const
KeyboardSettings
&
rSet
)
const
;
sal_Bool
operator
!=
(
const
KeyboardSettings
&
rSet
)
const
{
return
!
(
*
this
==
rSet
);
}
};
// -----------------
// -----------------
// - ImplStyleData -
// - ImplStyleData -
// -----------------
// -----------------
...
@@ -998,50 +892,6 @@ public:
...
@@ -998,50 +892,6 @@ public:
{
return
!
(
*
this
==
rSet
);
}
{
return
!
(
*
this
==
rSet
);
}
};
};
// ------------------------
// - ImplNotificationData -
// ------------------------
class
ImplNotificationData
{
friend
class
NotificationSettings
;
ImplNotificationData
();
ImplNotificationData
(
const
ImplNotificationData
&
rData
);
private
:
sal_uLong
mnRefCount
;
sal_uLong
mnOptions
;
};
// ------------------------
// - NotificationSettings -
// ------------------------
class
VCL_DLLPUBLIC
NotificationSettings
{
void
CopyData
();
private
:
ImplNotificationData
*
mpData
;
public
:
NotificationSettings
();
NotificationSettings
(
const
NotificationSettings
&
rSet
);
~
NotificationSettings
();
void
SetOptions
(
sal_uLong
nOptions
)
{
CopyData
();
mpData
->
mnOptions
=
nOptions
;
}
sal_uLong
GetOptions
()
const
{
return
mpData
->
mnOptions
;
}
const
NotificationSettings
&
operator
=
(
const
NotificationSettings
&
rSet
);
sal_Bool
operator
==
(
const
NotificationSettings
&
rSet
)
const
;
sal_Bool
operator
!=
(
const
NotificationSettings
&
rSet
)
const
{
return
!
(
*
this
==
rSet
);
}
};
// ----------------
// ----------------
// - ImplHelpData -
// - ImplHelpData -
// ----------------
// ----------------
...
@@ -1118,12 +968,9 @@ class ImplAllSettingsData
...
@@ -1118,12 +968,9 @@ class ImplAllSettingsData
private
:
private
:
sal_uLong
mnRefCount
;
sal_uLong
mnRefCount
;
MachineSettings
maMachineSettings
;
MouseSettings
maMouseSettings
;
MouseSettings
maMouseSettings
;
KeyboardSettings
maKeyboardSettings
;
StyleSettings
maStyleSettings
;
StyleSettings
maStyleSettings
;
MiscSettings
maMiscSettings
;
MiscSettings
maMiscSettings
;
NotificationSettings
maNotificationSettings
;
HelpSettings
maHelpSettings
;
HelpSettings
maHelpSettings
;
::
com
::
sun
::
star
::
lang
::
Locale
maLocale
;
::
com
::
sun
::
star
::
lang
::
Locale
maLocale
;
sal_uLong
mnSystemUpdate
;
sal_uLong
mnSystemUpdate
;
...
@@ -1143,21 +990,16 @@ private:
...
@@ -1143,21 +990,16 @@ private:
// - AllSettings -
// - AllSettings -
// ---------------
// ---------------
#define SETTINGS_MACHINE ((sal_uLong)0x00000001)
#define SETTINGS_MOUSE ((sal_uLong)0x00000001)
#define SETTINGS_MOUSE ((sal_uLong)0x00000002)
#define SETTINGS_STYLE ((sal_uLong)0x00000002)
#define SETTINGS_KEYBOARD ((sal_uLong)0x00000004)
#define SETTINGS_MISC ((sal_uLong)0x00000004)
#define SETTINGS_STYLE ((sal_uLong)0x00000008)
#define SETTINGS_SOUND ((sal_uLong)0x00000008)
#define SETTINGS_MISC ((sal_uLong)0x00000010)
#define SETTINGS_HELP ((sal_uLong)0x00000010)
#define SETTINGS_SOUND ((sal_uLong)0x00000020)
#define SETTINGS_LOCALE ((sal_uLong)0x00000020)
#define SETTINGS_NOTIFICATION ((sal_uLong)0x00000040)
#define SETTINGS_UILOCALE ((sal_uLong)0x00000040)
#define SETTINGS_HELP ((sal_uLong)0x00000080)
#define SETTINGS_ALLSETTINGS (SETTINGS_MOUSE |\
#define SETTINGS_INTERNATIONAL ((sal_uLong)0x00000100)
/* was for class International, has no effect anymore */
#define SETTINGS_LOCALE ((sal_uLong)0x00000200)
#define SETTINGS_UILOCALE ((sal_uLong)0x00000400)
#define SETTINGS_ALLSETTINGS (SETTINGS_MACHINE |\
SETTINGS_MOUSE | SETTINGS_KEYBOARD |\
SETTINGS_STYLE | SETTINGS_MISC |\
SETTINGS_STYLE | SETTINGS_MISC |\
SETTINGS_SOUND |
SETTINGS_NOTIFICATION |
\
SETTINGS_SOUND |\
SETTINGS_HELP |\
SETTINGS_HELP |\
SETTINGS_LOCALE | SETTINGS_UILOCALE )
SETTINGS_LOCALE | SETTINGS_UILOCALE )
#define SETTINGS_IN_UPDATE_SETTINGS ((sal_uLong)0x00000800) // this flag indicates that the data changed event was created
#define SETTINGS_IN_UPDATE_SETTINGS ((sal_uLong)0x00000800) // this flag indicates that the data changed event was created
...
@@ -1176,21 +1018,11 @@ public:
...
@@ -1176,21 +1018,11 @@ public:
AllSettings
(
const
AllSettings
&
rSet
);
AllSettings
(
const
AllSettings
&
rSet
);
~
AllSettings
();
~
AllSettings
();
void
SetMachineSettings
(
const
MachineSettings
&
rSet
)
{
CopyData
();
mpData
->
maMachineSettings
=
rSet
;
}
const
MachineSettings
&
GetMachineSettings
()
const
{
return
mpData
->
maMachineSettings
;
}
void
SetMouseSettings
(
const
MouseSettings
&
rSet
)
void
SetMouseSettings
(
const
MouseSettings
&
rSet
)
{
CopyData
();
mpData
->
maMouseSettings
=
rSet
;
}
{
CopyData
();
mpData
->
maMouseSettings
=
rSet
;
}
const
MouseSettings
&
GetMouseSettings
()
const
const
MouseSettings
&
GetMouseSettings
()
const
{
return
mpData
->
maMouseSettings
;
}
{
return
mpData
->
maMouseSettings
;
}
void
SetKeyboardSettings
(
const
KeyboardSettings
&
rSet
)
{
CopyData
();
mpData
->
maKeyboardSettings
=
rSet
;
}
const
KeyboardSettings
&
GetKeyboardSettings
()
const
{
return
mpData
->
maKeyboardSettings
;
}
void
SetStyleSettings
(
const
StyleSettings
&
rSet
)
void
SetStyleSettings
(
const
StyleSettings
&
rSet
)
{
CopyData
();
mpData
->
maStyleSettings
=
rSet
;
}
{
CopyData
();
mpData
->
maStyleSettings
=
rSet
;
}
const
StyleSettings
&
GetStyleSettings
()
const
const
StyleSettings
&
GetStyleSettings
()
const
...
@@ -1201,11 +1033,6 @@ public:
...
@@ -1201,11 +1033,6 @@ public:
const
MiscSettings
&
GetMiscSettings
()
const
const
MiscSettings
&
GetMiscSettings
()
const
{
return
mpData
->
maMiscSettings
;
}
{
return
mpData
->
maMiscSettings
;
}
void
SetNotificationSettings
(
const
NotificationSettings
&
rSet
)
{
CopyData
();
mpData
->
maNotificationSettings
=
rSet
;
}
const
NotificationSettings
&
GetNotificationSettings
()
const
{
return
mpData
->
maNotificationSettings
;
}
void
SetHelpSettings
(
const
HelpSettings
&
rSet
)
void
SetHelpSettings
(
const
HelpSettings
&
rSet
)
{
CopyData
();
mpData
->
maHelpSettings
=
rSet
;
}
{
CopyData
();
mpData
->
maHelpSettings
=
rSet
;
}
const
HelpSettings
&
GetHelpSettings
()
const
const
HelpSettings
&
GetHelpSettings
()
const
...
...
vcl/source/app/settings.cxx
Dosyayı görüntüle @
1893585d
...
@@ -61,104 +61,6 @@ DBG_NAME( AllSettings )
...
@@ -61,104 +61,6 @@ DBG_NAME( AllSettings )
STYLE_OPTION_SPINUPDOWN | \
STYLE_OPTION_SPINUPDOWN | \
STYLE_OPTION_NOMNEMONICS)
STYLE_OPTION_NOMNEMONICS)
// =======================================================================
ImplMachineData
::
ImplMachineData
()
{
mnRefCount
=
1
;
mnOptions
=
0
;
mnScreenOptions
=
0
;
mnPrintOptions
=
0
;
mnScreenRasterFontDeviation
=
0
;
}
// -----------------------------------------------------------------------
ImplMachineData
::
ImplMachineData
(
const
ImplMachineData
&
rData
)
{
mnRefCount
=
1
;
mnOptions
=
rData
.
mnOptions
;
mnScreenOptions
=
rData
.
mnScreenOptions
;
mnPrintOptions
=
rData
.
mnPrintOptions
;
mnScreenRasterFontDeviation
=
rData
.
mnScreenRasterFontDeviation
;
}
// -----------------------------------------------------------------------
MachineSettings
::
MachineSettings
()
{
mpData
=
new
ImplMachineData
();
}
// -----------------------------------------------------------------------
MachineSettings
::
MachineSettings
(
const
MachineSettings
&
rSet
)
{
DBG_ASSERT
(
rSet
.
mpData
->
mnRefCount
<
0xFFFFFFFE
,
"MachineSettings: RefCount overflow"
);
// shared Instance Daten uebernehmen und Referenzcounter erhoehen
mpData
=
rSet
.
mpData
;
mpData
->
mnRefCount
++
;
}
// -----------------------------------------------------------------------
MachineSettings
::~
MachineSettings
()
{
// Daten loeschen, wenn letzte Referenz
if
(
mpData
->
mnRefCount
==
1
)
delete
mpData
;
else
mpData
->
mnRefCount
--
;
}
// -----------------------------------------------------------------------
const
MachineSettings
&
MachineSettings
::
operator
=
(
const
MachineSettings
&
rSet
)
{
DBG_ASSERT
(
rSet
.
mpData
->
mnRefCount
<
0xFFFFFFFE
,
"MachineSettings: RefCount overflow"
);
// Zuerst Referenzcounter erhoehen, damit man sich selbst zuweisen kann
rSet
.
mpData
->
mnRefCount
++
;
// Daten loeschen, wenn letzte Referenz
if
(
mpData
->
mnRefCount
==
1
)
delete
mpData
;
else
mpData
->
mnRefCount
--
;
mpData
=
rSet
.
mpData
;
return
*
this
;
}
// -----------------------------------------------------------------------
void
MachineSettings
::
CopyData
()
{
// Falls noch andere Referenzen bestehen, dann kopieren
if
(
mpData
->
mnRefCount
!=
1
)
{
mpData
->
mnRefCount
--
;
mpData
=
new
ImplMachineData
(
*
mpData
);
}
}
// -----------------------------------------------------------------------
sal_Bool
MachineSettings
::
operator
==
(
const
MachineSettings
&
rSet
)
const
{
if
(
mpData
==
rSet
.
mpData
)
return
sal_True
;
if
(
(
mpData
->
mnOptions
==
rSet
.
mpData
->
mnOptions
)
&&
(
mpData
->
mnScreenOptions
==
rSet
.
mpData
->
mnScreenOptions
)
&&
(
mpData
->
mnPrintOptions
==
rSet
.
mpData
->
mnPrintOptions
)
&&
(
mpData
->
mnScreenRasterFontDeviation
==
rSet
.
mpData
->
mnScreenRasterFontDeviation
)
)
return
sal_True
;
else
return
sal_False
;
}
// =======================================================================
// =======================================================================
ImplMouseData
::
ImplMouseData
()
ImplMouseData
::
ImplMouseData
()
...
@@ -311,79 +213,6 @@ sal_Bool MouseSettings::operator ==( const MouseSettings& rSet ) const
...
@@ -311,79 +213,6 @@ sal_Bool MouseSettings::operator ==( const MouseSettings& rSet ) const
// =======================================================================
// =======================================================================
ImplKeyboardData
::
ImplKeyboardData
()
{
mnRefCount
=
1
;
mnOptions
=
0
;
}
// -----------------------------------------------------------------------
ImplKeyboardData
::
ImplKeyboardData
(
const
ImplKeyboardData
&
rData
)
{
mnRefCount
=
1
;
mnOptions
=
rData
.
mnOptions
;
}
// -----------------------------------------------------------------------
KeyboardSettings
::
KeyboardSettings
()
{
mpData
=
new
ImplKeyboardData
();
}
// -----------------------------------------------------------------------
KeyboardSettings
::
KeyboardSettings
(
const
KeyboardSettings
&
rSet
)
{
DBG_ASSERT
(
rSet
.
mpData
->
mnRefCount
<
0xFFFFFFFE
,
"KeyboardSettings: RefCount overflow"
);
// shared Instance Daten uebernehmen und Referenzcounter erhoehen
mpData
=
rSet
.
mpData
;
mpData
->
mnRefCount
++
;
}
// -----------------------------------------------------------------------
KeyboardSettings
::~
KeyboardSettings
()
{
// Daten loeschen, wenn letzte Referenz
if
(
mpData
->
mnRefCount
==
1
)
delete
mpData
;
else
mpData
->
mnRefCount
--
;
}
// -----------------------------------------------------------------------
const
KeyboardSettings
&
KeyboardSettings
::
operator
=
(
const
KeyboardSettings
&
rSet
)
{
DBG_ASSERT
(
rSet
.
mpData
->
mnRefCount
<
0xFFFFFFFE
,
"KeyboardSettings: RefCount overflow"
);
// Zuerst Referenzcounter erhoehen, damit man sich selbst zuweisen kann
rSet
.
mpData
->
mnRefCount
++
;
// Daten loeschen, wenn letzte Referenz
if
(
mpData
->
mnRefCount
==
1
)
delete
mpData
;
else
mpData
->
mnRefCount
--
;
mpData
=
rSet
.
mpData
;
return
*
this
;
}
// -----------------------------------------------------------------------
sal_Bool
KeyboardSettings
::
operator
==
(
const
KeyboardSettings
&
rSet
)
const
{
return
mpData
==
rSet
.
mpData
||
mpData
->
mnOptions
==
rSet
.
mpData
->
mnOptions
;
}
// =======================================================================
ImplStyleData
::
ImplStyleData
()
ImplStyleData
::
ImplStyleData
()
{
{
mnRefCount
=
1
;
mnRefCount
=
1
;
...
@@ -1271,91 +1100,6 @@ sal_Bool MiscSettings::GetEnableLocalizedDecimalSep() const
...
@@ -1271,91 +1100,6 @@ sal_Bool MiscSettings::GetEnableLocalizedDecimalSep() const
// =======================================================================
// =======================================================================
ImplNotificationData
::
ImplNotificationData
()
{
mnRefCount
=
1
;
mnOptions
=
0
;
}
// -----------------------------------------------------------------------
ImplNotificationData
::
ImplNotificationData
(
const
ImplNotificationData
&
rData
)
{
mnRefCount
=
1
;
mnOptions
=
rData
.
mnOptions
;
}
// -----------------------------------------------------------------------
NotificationSettings
::
NotificationSettings
()
{
mpData
=
new
ImplNotificationData
();
}
// -----------------------------------------------------------------------
NotificationSettings
::
NotificationSettings
(
const
NotificationSettings
&
rSet
)
{
DBG_ASSERT
(
rSet
.
mpData
->
mnRefCount
<
0xFFFFFFFE
,
"NotificationSettings: RefCount overflow"
);
// shared Instance Daten uebernehmen und Referenzcounter erhoehen
mpData
=
rSet
.
mpData
;
mpData
->
mnRefCount
++
;
}
// -----------------------------------------------------------------------
NotificationSettings
::~
NotificationSettings
()
{
// Daten loeschen, wenn letzte Referenz
if
(
mpData
->
mnRefCount
==
1
)
delete
mpData
;
else
mpData
->
mnRefCount
--
;
}
// -----------------------------------------------------------------------
const
NotificationSettings
&
NotificationSettings
::
operator
=
(
const
NotificationSettings
&
rSet
)
{
DBG_ASSERT
(
rSet
.
mpData
->
mnRefCount
<
0xFFFFFFFE
,
"NotificationSettings: RefCount overflow"
);
// Zuerst Referenzcounter erhoehen, damit man sich selbst zuweisen kann
rSet
.
mpData
->
mnRefCount
++
;
// Daten loeschen, wenn letzte Referenz
if
(
mpData
->
mnRefCount
==
1
)
delete
mpData
;
else
mpData
->
mnRefCount
--
;
mpData
=
rSet
.
mpData
;
return
*
this
;
}
// -----------------------------------------------------------------------
void
NotificationSettings
::
CopyData
()
{
// Falls noch andere Referenzen bestehen, dann kopieren
if
(
mpData
->
mnRefCount
!=
1
)
{
mpData
->
mnRefCount
--
;
mpData
=
new
ImplNotificationData
(
*
mpData
);
}
}
// -----------------------------------------------------------------------
sal_Bool
NotificationSettings
::
operator
==
(
const
NotificationSettings
&
rSet
)
const
{
return
mpData
==
rSet
.
mpData
||
mpData
->
mnOptions
==
rSet
.
mpData
->
mnOptions
;
}
// =======================================================================
ImplHelpData
::
ImplHelpData
()
ImplHelpData
::
ImplHelpData
()
{
{
mnRefCount
=
1
;
mnRefCount
=
1
;
...
@@ -1473,10 +1217,8 @@ ImplAllSettingsData::ImplAllSettingsData()
...
@@ -1473,10 +1217,8 @@ ImplAllSettingsData::ImplAllSettingsData()
ImplAllSettingsData
::
ImplAllSettingsData
(
const
ImplAllSettingsData
&
rData
)
:
ImplAllSettingsData
::
ImplAllSettingsData
(
const
ImplAllSettingsData
&
rData
)
:
maMouseSettings
(
rData
.
maMouseSettings
),
maMouseSettings
(
rData
.
maMouseSettings
),
maKeyboardSettings
(
rData
.
maKeyboardSettings
),
maStyleSettings
(
rData
.
maStyleSettings
),
maStyleSettings
(
rData
.
maStyleSettings
),
maMiscSettings
(
rData
.
maMiscSettings
),
maMiscSettings
(
rData
.
maMiscSettings
),
maNotificationSettings
(
rData
.
maNotificationSettings
),
maHelpSettings
(
rData
.
maHelpSettings
),
maHelpSettings
(
rData
.
maHelpSettings
),
maLocale
(
rData
.
maLocale
)
maLocale
(
rData
.
maLocale
)
{
{
...
@@ -1584,16 +1326,6 @@ sal_uLong AllSettings::Update( sal_uLong nFlags, const AllSettings& rSet )
...
@@ -1584,16 +1326,6 @@ sal_uLong AllSettings::Update( sal_uLong nFlags, const AllSettings& rSet )
sal_uLong
nChangeFlags
=
0
;
sal_uLong
nChangeFlags
=
0
;
if
(
nFlags
&
SETTINGS_MACHINE
)
{
if
(
mpData
->
maMachineSettings
!=
rSet
.
mpData
->
maMachineSettings
)
{
CopyData
();
mpData
->
maMachineSettings
=
rSet
.
mpData
->
maMachineSettings
;
nChangeFlags
|=
SETTINGS_MACHINE
;
}
}
if
(
nFlags
&
SETTINGS_MOUSE
)
if
(
nFlags
&
SETTINGS_MOUSE
)
{
{
if
(
mpData
->
maMouseSettings
!=
rSet
.
mpData
->
maMouseSettings
)
if
(
mpData
->
maMouseSettings
!=
rSet
.
mpData
->
maMouseSettings
)
...
@@ -1604,16 +1336,6 @@ sal_uLong AllSettings::Update( sal_uLong nFlags, const AllSettings& rSet )
...
@@ -1604,16 +1336,6 @@ sal_uLong AllSettings::Update( sal_uLong nFlags, const AllSettings& rSet )
}
}
}
}
if
(
nFlags
&
SETTINGS_KEYBOARD
)
{
if
(
mpData
->
maKeyboardSettings
!=
rSet
.
mpData
->
maKeyboardSettings
)
{
CopyData
();
mpData
->
maKeyboardSettings
=
rSet
.
mpData
->
maKeyboardSettings
;
nChangeFlags
|=
SETTINGS_KEYBOARD
;
}
}
if
(
nFlags
&
SETTINGS_STYLE
)
if
(
nFlags
&
SETTINGS_STYLE
)
{
{
if
(
mpData
->
maStyleSettings
!=
rSet
.
mpData
->
maStyleSettings
)
if
(
mpData
->
maStyleSettings
!=
rSet
.
mpData
->
maStyleSettings
)
...
@@ -1634,16 +1356,6 @@ sal_uLong AllSettings::Update( sal_uLong nFlags, const AllSettings& rSet )
...
@@ -1634,16 +1356,6 @@ sal_uLong AllSettings::Update( sal_uLong nFlags, const AllSettings& rSet )
}
}
}
}
if
(
nFlags
&
SETTINGS_NOTIFICATION
)
{
if
(
mpData
->
maNotificationSettings
!=
rSet
.
mpData
->
maNotificationSettings
)
{
CopyData
();
mpData
->
maNotificationSettings
=
rSet
.
mpData
->
maNotificationSettings
;
nChangeFlags
|=
SETTINGS_NOTIFICATION
;
}
}
if
(
nFlags
&
SETTINGS_HELP
)
if
(
nFlags
&
SETTINGS_HELP
)
{
{
if
(
mpData
->
maHelpSettings
!=
rSet
.
mpData
->
maHelpSettings
)
if
(
mpData
->
maHelpSettings
!=
rSet
.
mpData
->
maHelpSettings
)
...
@@ -1654,12 +1366,6 @@ sal_uLong AllSettings::Update( sal_uLong nFlags, const AllSettings& rSet )
...
@@ -1654,12 +1366,6 @@ sal_uLong AllSettings::Update( sal_uLong nFlags, const AllSettings& rSet )
}
}
}
}
if
(
nFlags
&
SETTINGS_INTERNATIONAL
)
{
// Nothing, class International is gone.
SAL_WARN
(
"vcl.app"
,
"AllSettings::Update: who calls with SETTINGS_INTERNATIONAL and why? You're flogging a dead horse."
);
}
if
(
nFlags
&
SETTINGS_LOCALE
)
if
(
nFlags
&
SETTINGS_LOCALE
)
{
{
if
(
mpData
->
meLanguage
||
rSet
.
mpData
->
meLanguage
)
if
(
mpData
->
meLanguage
||
rSet
.
mpData
->
meLanguage
)
...
@@ -1686,24 +1392,15 @@ sal_uLong AllSettings::GetChangeFlags( const AllSettings& rSet ) const
...
@@ -1686,24 +1392,15 @@ sal_uLong AllSettings::GetChangeFlags( const AllSettings& rSet ) const
sal_uLong
nChangeFlags
=
0
;
sal_uLong
nChangeFlags
=
0
;
if
(
mpData
->
maMachineSettings
!=
rSet
.
mpData
->
maMachineSettings
)
nChangeFlags
|=
SETTINGS_MACHINE
;
if
(
mpData
->
maMouseSettings
!=
rSet
.
mpData
->
maMouseSettings
)
if
(
mpData
->
maMouseSettings
!=
rSet
.
mpData
->
maMouseSettings
)
nChangeFlags
|=
SETTINGS_MOUSE
;
nChangeFlags
|=
SETTINGS_MOUSE
;
if
(
mpData
->
maKeyboardSettings
!=
rSet
.
mpData
->
maKeyboardSettings
)
nChangeFlags
|=
SETTINGS_KEYBOARD
;
if
(
mpData
->
maStyleSettings
!=
rSet
.
mpData
->
maStyleSettings
)
if
(
mpData
->
maStyleSettings
!=
rSet
.
mpData
->
maStyleSettings
)
nChangeFlags
|=
SETTINGS_STYLE
;
nChangeFlags
|=
SETTINGS_STYLE
;
if
(
mpData
->
maMiscSettings
!=
rSet
.
mpData
->
maMiscSettings
)
if
(
mpData
->
maMiscSettings
!=
rSet
.
mpData
->
maMiscSettings
)
nChangeFlags
|=
SETTINGS_MISC
;
nChangeFlags
|=
SETTINGS_MISC
;
if
(
mpData
->
maNotificationSettings
!=
rSet
.
mpData
->
maNotificationSettings
)
nChangeFlags
|=
SETTINGS_NOTIFICATION
;
if
(
mpData
->
maHelpSettings
!=
rSet
.
mpData
->
maHelpSettings
)
if
(
mpData
->
maHelpSettings
!=
rSet
.
mpData
->
maHelpSettings
)
nChangeFlags
|=
SETTINGS_HELP
;
nChangeFlags
|=
SETTINGS_HELP
;
...
@@ -1723,12 +1420,9 @@ sal_Bool AllSettings::operator ==( const AllSettings& rSet ) const
...
@@ -1723,12 +1420,9 @@ sal_Bool AllSettings::operator ==( const AllSettings& rSet ) const
if
(
mpData
==
rSet
.
mpData
)
if
(
mpData
==
rSet
.
mpData
)
return
sal_True
;
return
sal_True
;
if
(
(
mpData
->
maMachineSettings
==
rSet
.
mpData
->
maMachineSettings
)
&&
if
(
(
mpData
->
maMouseSettings
==
rSet
.
mpData
->
maMouseSettings
)
&&
(
mpData
->
maMouseSettings
==
rSet
.
mpData
->
maMouseSettings
)
&&
(
mpData
->
maKeyboardSettings
==
rSet
.
mpData
->
maKeyboardSettings
)
&&
(
mpData
->
maStyleSettings
==
rSet
.
mpData
->
maStyleSettings
)
&&
(
mpData
->
maStyleSettings
==
rSet
.
mpData
->
maStyleSettings
)
&&
(
mpData
->
maMiscSettings
==
rSet
.
mpData
->
maMiscSettings
)
&&
(
mpData
->
maMiscSettings
==
rSet
.
mpData
->
maMiscSettings
)
&&
(
mpData
->
maNotificationSettings
==
rSet
.
mpData
->
maNotificationSettings
)
&&
(
mpData
->
maHelpSettings
==
rSet
.
mpData
->
maHelpSettings
)
&&
(
mpData
->
maHelpSettings
==
rSet
.
mpData
->
maHelpSettings
)
&&
(
mpData
->
mnSystemUpdate
==
rSet
.
mpData
->
mnSystemUpdate
)
&&
(
mpData
->
mnSystemUpdate
==
rSet
.
mpData
->
mnSystemUpdate
)
&&
(
mpData
->
maLocale
==
rSet
.
mpData
->
maLocale
)
&&
(
mpData
->
maLocale
==
rSet
.
mpData
->
maLocale
)
&&
...
...
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