summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xunusedcode.easy1
-rw-r--r--vcl/inc/vcl/settings.hxx8
-rw-r--r--vcl/source/app/settings.cxx6
3 files changed, 7 insertions, 8 deletions
diff --git a/unusedcode.easy b/unusedcode.easy
index 61b121ed6432..238240136b47 100755
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -89,7 +89,6 @@ MetaCommentAction::MetaCommentAction(unsigned char const*, unsigned int)
MetricBox::RemoveValue(long, FieldUnit)
MetricField::ConvertValue(long, unsigned short, FieldUnit, MapUnit)
MiscSettings::SetDisablePrinting(unsigned char)
-MiscSettings::SetEnableATToolSupport(unsigned char)
MoreButton::RemoveWindow(Window*)
MultiLineEdit::GetHScrollBar() const
MultiLineEdit::GetLeftMargin() const
diff --git a/vcl/inc/vcl/settings.hxx b/vcl/inc/vcl/settings.hxx
index 2494f4fa5d08..ba961b1f8356 100644
--- a/vcl/inc/vcl/settings.hxx
+++ b/vcl/inc/vcl/settings.hxx
@@ -990,12 +990,14 @@ public:
MiscSettings( const MiscSettings& rSet );
~MiscSettings();
+#ifdef WNT
void SetEnableATToolSupport( sal_Bool bEnable );
- sal_Bool GetEnableATToolSupport() const;
+#endif
+ sal_Bool GetEnableATToolSupport() const;
void SetDisablePrinting( sal_Bool bEnable );
- sal_Bool GetDisablePrinting() const;
+ sal_Bool GetDisablePrinting() const;
void SetEnableLocalizedDecimalSep( sal_Bool bEnable );
- sal_Bool GetEnableLocalizedDecimalSep() const;
+ sal_Bool GetEnableLocalizedDecimalSep() const;
const MiscSettings& operator =( const MiscSettings& rSet );
sal_Bool operator ==( const MiscSettings& rSet ) const;
diff --git a/vcl/source/app/settings.cxx b/vcl/source/app/settings.cxx
index 2a3a5ca00cce..1502d063b47b 100644
--- a/vcl/source/app/settings.cxx
+++ b/vcl/source/app/settings.cxx
@@ -1230,8 +1230,7 @@ void MiscSettings::SetDisablePrinting( sal_Bool bEnable )
}
}
-// -----------------------------------------------------------------------
-
+#ifdef WNT
void MiscSettings::SetEnableATToolSupport( sal_Bool bEnable )
{
if ( bEnable != mpData->mnEnableATT )
@@ -1240,7 +1239,6 @@ void MiscSettings::SetEnableATToolSupport( sal_Bool bEnable )
if( bEnable && !ImplInitAccessBridge(false, bDummy) )
return;
-#ifdef WNT
HKEY hkey;
// If the accessibility key in the Windows registry exists, change it synchronously
@@ -1277,7 +1275,6 @@ void MiscSettings::SetEnableATToolSupport( sal_Bool bEnable )
RegCloseKey(hkey);
}
-#endif
vcl::SettingsConfigItem::get()->
setValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Accessibility" ) ),
rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "EnableATToolSupport" ) ),
@@ -1285,6 +1282,7 @@ void MiscSettings::SetEnableATToolSupport( sal_Bool bEnable )
mpData->mnEnableATT = bEnable ? 1 : 0;
}
}
+#endif
void MiscSettings::SetEnableLocalizedDecimalSep( sal_Bool bEnable )
{