Kaydet (Commit) b41badb8 authored tarafından Noel Grandin's avatar Noel Grandin

svtools: sal_Bool->bool

Change-Id: I37352e90a5304e75ce0c8ae922a167b1e70625e8
üst f7074d8d
...@@ -41,7 +41,7 @@ void FirebirdTest::setUp() ...@@ -41,7 +41,7 @@ void FirebirdTest::setUp()
{ {
DBTestBase::setUp(); DBTestBase::setUp();
SvtMiscOptions aMiscOptions; SvtMiscOptions aMiscOptions;
aMiscOptions.SetExperimentalMode(sal_True); aMiscOptions.SetExperimentalMode(true);
} }
/** /**
......
...@@ -1565,7 +1565,7 @@ int Desktop::Main() ...@@ -1565,7 +1565,7 @@ int Desktop::Main()
// which does only work for VCL dialogs!! // which does only work for VCL dialogs!!
SvtMiscOptions aMiscOptions; SvtMiscOptions aMiscOptions;
pExecGlobals->bUseSystemFileDialog = aMiscOptions.UseSystemFileDialog(); pExecGlobals->bUseSystemFileDialog = aMiscOptions.UseSystemFileDialog();
aMiscOptions.SetUseSystemFileDialog( sal_False ); aMiscOptions.SetUseSystemFileDialog( false );
} }
pExecGlobals->bRestartRequested = xRestartManager->isRestartRequested( pExecGlobals->bRestartRequested = xRestartManager->isRestartRequested(
......
...@@ -60,7 +60,7 @@ namespace svt ...@@ -60,7 +60,7 @@ namespace svt
FreeResource(); FreeResource();
} }
inline sal_Bool IsAvailableRes( const ResId& _rId ) const inline bool IsAvailableRes( const ResId& _rId ) const
{ {
return Resource::IsAvailableRes( _rId ); return Resource::IsAvailableRes( _rId );
} }
......
...@@ -87,7 +87,7 @@ class SVT_DLLPUBLIC SAL_WARN_UNUSED SvtMenuOptions: public utl::detail::Options ...@@ -87,7 +87,7 @@ class SVT_DLLPUBLIC SAL_WARN_UNUSED SvtMenuOptions: public utl::detail::Options
@seealso configuration package "org.openoffice.Office.Common/View/Menu" @seealso configuration package "org.openoffice.Office.Common/View/Menu"
*//*-*****************************************************************************************************/ *//*-*****************************************************************************************************/
sal_Bool IsEntryHidingEnabled() const; bool IsEntryHidingEnabled() const;
TriState GetMenuIconsState() const; TriState GetMenuIconsState() const;
void SetMenuIconsState(TriState eState); void SetMenuIconsState(TriState eState);
......
...@@ -73,13 +73,13 @@ class SVT_DLLPUBLIC SvtMiscOptions: public utl::detail::Options ...@@ -73,13 +73,13 @@ class SVT_DLLPUBLIC SvtMiscOptions: public utl::detail::Options
void AddListenerLink( const Link& rLink ); void AddListenerLink( const Link& rLink );
void RemoveListenerLink( const Link& rLink ); void RemoveListenerLink( const Link& rLink );
sal_Bool UseSystemFileDialog() const; bool UseSystemFileDialog() const;
void SetUseSystemFileDialog( sal_Bool bSet ); void SetUseSystemFileDialog( bool bSet );
sal_Bool IsUseSystemFileDialogReadOnly() const; bool IsUseSystemFileDialogReadOnly() const;
sal_Bool DisableUICustomization() const; bool DisableUICustomization() const;
sal_Bool IsPluginsEnabled() const; bool IsPluginsEnabled() const;
sal_Int16 GetSymbolsSize() const; sal_Int16 GetSymbolsSize() const;
void SetSymbolsSize( sal_Int16 eSet ); void SetSymbolsSize( sal_Int16 eSet );
...@@ -94,24 +94,24 @@ class SVT_DLLPUBLIC SvtMiscOptions: public utl::detail::Options ...@@ -94,24 +94,24 @@ class SVT_DLLPUBLIC SvtMiscOptions: public utl::detail::Options
sal_Int16 GetToolboxStyle() const; sal_Int16 GetToolboxStyle() const;
void SetToolboxStyle( sal_Int16 nStyle ); void SetToolboxStyle( sal_Int16 nStyle );
sal_Bool IsModifyByPrinting() const; bool IsModifyByPrinting() const;
void SetModifyByPrinting(sal_Bool bSet ); void SetModifyByPrinting(bool bSet );
sal_Bool UseSystemPrintDialog() const; bool UseSystemPrintDialog() const;
void SetUseSystemPrintDialog( sal_Bool bSet ); void SetUseSystemPrintDialog( bool bSet );
sal_Bool ShowLinkWarningDialog() const; bool ShowLinkWarningDialog() const;
void SetShowLinkWarningDialog( sal_Bool bSet ); void SetShowLinkWarningDialog( bool bSet );
sal_Bool IsShowLinkWarningDialogReadOnly() const; bool IsShowLinkWarningDialogReadOnly() const;
void SetSaveAlwaysAllowed( sal_Bool bSet ); void SetSaveAlwaysAllowed( bool bSet );
sal_Bool IsSaveAlwaysAllowed() const; bool IsSaveAlwaysAllowed() const;
void SetExperimentalMode( sal_Bool bSet ); void SetExperimentalMode( bool bSet );
sal_Bool IsExperimentalMode() const; bool IsExperimentalMode() const;
void SetMacroRecorderMode( sal_Bool bSet ); void SetMacroRecorderMode( bool bSet );
sal_Bool IsMacroRecorderMode() const; bool IsMacroRecorderMode() const;
private: private:
......
...@@ -2466,7 +2466,7 @@ bool SfxHelpTextWindow_Impl::PreNotify( NotifyEvent& rNEvt ) ...@@ -2466,7 +2466,7 @@ bool SfxHelpTextWindow_Impl::PreNotify( NotifyEvent& rNEvt )
aMenu.InsertItem( TBI_SOURCEVIEW, SfxResId(STR_HELP_BUTTON_SOURCEVIEW).toString() ); aMenu.InsertItem( TBI_SOURCEVIEW, SfxResId(STR_HELP_BUTTON_SOURCEVIEW).toString() );
} }
if( SvtMenuOptions().IsEntryHidingEnabled() == sal_False ) if( ! SvtMenuOptions().IsEntryHidingEnabled() )
aMenu.SetMenuFlags( aMenu.GetMenuFlags() | MENU_FLAG_HIDEDISABLEDENTRIES ); aMenu.SetMenuFlags( aMenu.GetMenuFlags() | MENU_FLAG_HIDEDISABLEDENTRIES );
sal_uInt16 nId = aMenu.Execute( this, aPos ); sal_uInt16 nId = aMenu.Execute( this, aPos );
......
...@@ -72,7 +72,7 @@ using namespace com::sun::star; ...@@ -72,7 +72,7 @@ using namespace com::sun::star;
void TryToHideDisabledEntries_Impl( Menu* pMenu ) void TryToHideDisabledEntries_Impl( Menu* pMenu )
{ {
DBG_ASSERT( pMenu, "invalid menu" ); DBG_ASSERT( pMenu, "invalid menu" );
if( SvtMenuOptions().IsEntryHidingEnabled() == sal_False ) if( ! SvtMenuOptions().IsEntryHidingEnabled() )
{ {
pMenu->SetMenuFlags( pMenu->GetMenuFlags() | MENU_FLAG_HIDEDISABLEDENTRIES ); pMenu->SetMenuFlags( pMenu->GetMenuFlags() | MENU_FLAG_HIDEDISABLEDENTRIES );
} }
......
...@@ -41,8 +41,8 @@ using namespace ::osl ; ...@@ -41,8 +41,8 @@ using namespace ::osl ;
using namespace ::com::sun::star::uno ; using namespace ::com::sun::star::uno ;
#define ROOTNODE_MENU OUString("Office.Common/View/Menu" ) #define ROOTNODE_MENU OUString("Office.Common/View/Menu" )
#define DEFAULT_DONTHIDEDISABLEDENTRIES sal_False #define DEFAULT_DONTHIDEDISABLEDENTRIES false
#define DEFAULT_FOLLOWMOUSE sal_True #define DEFAULT_FOLLOWMOUSE true
#define DEFAULT_MENUICONS TRISTATE_INDET #define DEFAULT_MENUICONS TRISTATE_INDET
#define PROPERTYNAME_DONTHIDEDISABLEDENTRIES OUString("DontHideDisabledEntry" ) #define PROPERTYNAME_DONTHIDEDISABLEDENTRIES OUString("DontHideDisabledEntry" )
...@@ -71,8 +71,8 @@ class SvtMenuOptions_Impl : public ConfigItem ...@@ -71,8 +71,8 @@ class SvtMenuOptions_Impl : public ConfigItem
private: private:
::std::list<Link> aList; ::std::list<Link> aList;
sal_Bool m_bDontHideDisabledEntries ; /// cache "DontHideDisabledEntries" of Menu section bool m_bDontHideDisabledEntries ; /// cache "DontHideDisabledEntries" of Menu section
sal_Bool m_bFollowMouse ; /// cache "FollowMouse" of Menu section bool m_bFollowMouse ; /// cache "FollowMouse" of Menu section
TriState m_eMenuIcons ; /// cache "MenuIcons" of Menu section TriState m_eMenuIcons ; /// cache "MenuIcons" of Menu section
...@@ -143,16 +143,16 @@ class SvtMenuOptions_Impl : public ConfigItem ...@@ -143,16 +143,16 @@ class SvtMenuOptions_Impl : public ConfigItem
@onerror - @onerror -
*//*-*****************************************************************************************************/ *//*-*****************************************************************************************************/
sal_Bool IsEntryHidingEnabled() const bool IsEntryHidingEnabled() const
{ return m_bDontHideDisabledEntries; } { return m_bDontHideDisabledEntries; }
sal_Bool IsFollowMouseEnabled() const bool IsFollowMouseEnabled() const
{ return m_bFollowMouse; } { return m_bFollowMouse; }
TriState GetMenuIconsState() const TriState GetMenuIconsState() const
{ return m_eMenuIcons; } { return m_eMenuIcons; }
void SetEntryHidingState ( sal_Bool bState ) void SetEntryHidingState ( bool bState )
{ {
m_bDontHideDisabledEntries = bState; m_bDontHideDisabledEntries = bState;
SetModified(); SetModified();
...@@ -161,7 +161,7 @@ class SvtMenuOptions_Impl : public ConfigItem ...@@ -161,7 +161,7 @@ class SvtMenuOptions_Impl : public ConfigItem
Commit(); Commit();
} }
void SetFollowMouseState ( sal_Bool bState ) void SetFollowMouseState ( bool bState )
{ {
m_bFollowMouse = bState; m_bFollowMouse = bState;
SetModified(); SetModified();
...@@ -221,13 +221,13 @@ SvtMenuOptions_Impl::SvtMenuOptions_Impl() ...@@ -221,13 +221,13 @@ SvtMenuOptions_Impl::SvtMenuOptions_Impl()
// Follow assignment use order of values in relation to our list of key names! // Follow assignment use order of values in relation to our list of key names!
DBG_ASSERT( !(seqNames.getLength()!=seqValues.getLength()), "SvtMenuOptions_Impl::SvtMenuOptions_Impl()\nI miss some values of configuration keys!\n" ); DBG_ASSERT( !(seqNames.getLength()!=seqValues.getLength()), "SvtMenuOptions_Impl::SvtMenuOptions_Impl()\nI miss some values of configuration keys!\n" );
sal_Bool bMenuIcons = sal_True; bool bMenuIcons = true;
sal_Bool bSystemMenuIcons = sal_True; bool bSystemMenuIcons = true;
if (m_eMenuIcons == TRISTATE_INDET) if (m_eMenuIcons == TRISTATE_INDET)
bMenuIcons = (sal_Bool)(Application::GetSettings().GetStyleSettings().GetPreferredUseImagesInMenus()); bMenuIcons = Application::GetSettings().GetStyleSettings().GetPreferredUseImagesInMenus();
else else
{ {
bSystemMenuIcons = sal_False; bSystemMenuIcons = false;
bMenuIcons = m_eMenuIcons ? sal_True : sal_False; bMenuIcons = m_eMenuIcons ? sal_True : sal_False;
} }
...@@ -299,13 +299,13 @@ void SvtMenuOptions_Impl::Notify( const Sequence< OUString >& seqPropertyNames ) ...@@ -299,13 +299,13 @@ void SvtMenuOptions_Impl::Notify( const Sequence< OUString >& seqPropertyNames )
DBG_ASSERT( !(seqPropertyNames.getLength()!=seqValues.getLength()), "SvtMenuOptions_Impl::Notify()\nI miss some values of configuration keys!\n" ); DBG_ASSERT( !(seqPropertyNames.getLength()!=seqValues.getLength()), "SvtMenuOptions_Impl::Notify()\nI miss some values of configuration keys!\n" );
bool bMenuSettingsChanged = false; bool bMenuSettingsChanged = false;
sal_Bool bMenuIcons = sal_True; bool bMenuIcons = true;
sal_Bool bSystemMenuIcons = sal_True; bool bSystemMenuIcons = true;
if (m_eMenuIcons == TRISTATE_INDET) if (m_eMenuIcons == TRISTATE_INDET)
bMenuIcons = (sal_Bool)(Application::GetSettings().GetStyleSettings().GetUseImagesInMenus()); bMenuIcons = Application::GetSettings().GetStyleSettings().GetUseImagesInMenus();
else else
{ {
bSystemMenuIcons = sal_False; bSystemMenuIcons = false;
bMenuIcons = m_eMenuIcons ? sal_True : sal_False; bMenuIcons = m_eMenuIcons ? sal_True : sal_False;
} }
...@@ -468,7 +468,7 @@ SvtMenuOptions::~SvtMenuOptions() ...@@ -468,7 +468,7 @@ SvtMenuOptions::~SvtMenuOptions()
// public method // public method
sal_Bool SvtMenuOptions::IsEntryHidingEnabled() const bool SvtMenuOptions::IsEntryHidingEnabled() const
{ {
MutexGuard aGuard( GetOwnStaticMutex() ); MutexGuard aGuard( GetOwnStaticMutex() );
return m_pDataContainer->IsEntryHidingEnabled(); return m_pDataContainer->IsEntryHidingEnabled();
......
...@@ -72,24 +72,24 @@ class SvtMiscOptions_Impl : public ConfigItem ...@@ -72,24 +72,24 @@ class SvtMiscOptions_Impl : public ConfigItem
{ {
private: private:
::std::list<Link> aList; ::std::list<Link> aList;
sal_Bool m_bUseSystemFileDialog; bool m_bUseSystemFileDialog;
sal_Bool m_bIsUseSystemFileDialogRO; bool m_bIsUseSystemFileDialogRO;
sal_Bool m_bPluginsEnabled; bool m_bPluginsEnabled;
sal_Bool m_bIsPluginsEnabledRO; bool m_bIsPluginsEnabledRO;
sal_Int16 m_nSymbolsSize; sal_Int16 m_nSymbolsSize;
sal_Bool m_bIsSymbolsSizeRO; bool m_bIsSymbolsSizeRO;
sal_Bool m_bIsSymbolsStyleRO; bool m_bIsSymbolsStyleRO;
sal_Int16 m_nToolboxStyle; sal_Int16 m_nToolboxStyle;
sal_Bool m_bIsToolboxStyleRO; bool m_bIsToolboxStyleRO;
sal_Bool m_bUseSystemPrintDialog; bool m_bUseSystemPrintDialog;
sal_Bool m_bIsUseSystemPrintDialogRO; bool m_bIsUseSystemPrintDialogRO;
sal_Bool m_bShowLinkWarningDialog; bool m_bShowLinkWarningDialog;
sal_Bool m_bIsShowLinkWarningDialogRO; bool m_bIsShowLinkWarningDialogRO;
sal_Bool m_bDisableUICustomization; bool m_bDisableUICustomization;
sal_Bool m_bAlwaysAllowSave; bool m_bAlwaysAllowSave;
sal_Bool m_bExperimentalMode; bool m_bExperimentalMode;
sal_Bool m_bMacroRecorderMode; bool m_bMacroRecorderMode;
sal_Bool m_bIconThemeWasSetAutomatically; bool m_bIconThemeWasSetAutomatically;
public: public:
...@@ -137,40 +137,40 @@ class SvtMiscOptions_Impl : public ConfigItem ...@@ -137,40 +137,40 @@ class SvtMiscOptions_Impl : public ConfigItem
// public interface // public interface
inline sal_Bool UseSystemFileDialog() const inline bool UseSystemFileDialog() const
{ return m_bUseSystemFileDialog; } { return m_bUseSystemFileDialog; }
inline void SetUseSystemFileDialog( sal_Bool bSet ) inline void SetUseSystemFileDialog( bool bSet )
{ m_bUseSystemFileDialog = bSet; SetModified(); } { m_bUseSystemFileDialog = bSet; SetModified(); }
inline sal_Bool IsUseSystemFileDialogReadOnly() const inline bool IsUseSystemFileDialogReadOnly() const
{ return m_bIsUseSystemFileDialogRO; } { return m_bIsUseSystemFileDialogRO; }
inline sal_Bool DisableUICustomization() const inline bool DisableUICustomization() const
{ return m_bDisableUICustomization; } { return m_bDisableUICustomization; }
inline void SetSaveAlwaysAllowed( sal_Bool bSet ) inline void SetSaveAlwaysAllowed( bool bSet )
{ m_bAlwaysAllowSave = bSet; SetModified(); } { m_bAlwaysAllowSave = bSet; SetModified(); }
inline sal_Bool IsSaveAlwaysAllowed() const inline bool IsSaveAlwaysAllowed() const
{ return m_bAlwaysAllowSave; } { return m_bAlwaysAllowSave; }
inline void SetExperimentalMode( sal_Bool bSet ) inline void SetExperimentalMode( bool bSet )
{ m_bExperimentalMode = bSet; SetModified(); } { m_bExperimentalMode = bSet; SetModified(); }
inline sal_Bool IsExperimentalMode() const inline bool IsExperimentalMode() const
{ return m_bExperimentalMode; } { return m_bExperimentalMode; }
inline void SetMacroRecorderMode( sal_Bool bSet ) inline void SetMacroRecorderMode( bool bSet )
{ m_bMacroRecorderMode = bSet; SetModified(); } { m_bMacroRecorderMode = bSet; SetModified(); }
inline sal_Bool IsMacroRecorderMode() const inline bool IsMacroRecorderMode() const
{ return m_bMacroRecorderMode; } { return m_bMacroRecorderMode; }
inline sal_Bool IsPluginsEnabled() const inline bool IsPluginsEnabled() const
{ return m_bPluginsEnabled; } { return m_bPluginsEnabled; }
inline sal_Bool IsPluginsEnabledReadOnly() const inline bool IsPluginsEnabledReadOnly() const
{ return m_bIsPluginsEnabledRO; } { return m_bIsPluginsEnabledRO; }
inline sal_Int16 GetSymbolsSize() inline sal_Int16 GetSymbolsSize()
...@@ -178,7 +178,7 @@ class SvtMiscOptions_Impl : public ConfigItem ...@@ -178,7 +178,7 @@ class SvtMiscOptions_Impl : public ConfigItem
void SetSymbolsSize( sal_Int16 nSet ); void SetSymbolsSize( sal_Int16 nSet );
inline sal_Bool IsGetSymbolsSizeReadOnly() inline bool IsGetSymbolsSizeReadOnly()
{ return m_bIsSymbolsSizeRO; } { return m_bIsSymbolsSizeRO; }
OUString GetIconTheme() const; OUString GetIconTheme() const;
...@@ -208,7 +208,7 @@ class SvtMiscOptions_Impl : public ConfigItem ...@@ -208,7 +208,7 @@ class SvtMiscOptions_Impl : public ConfigItem
*/ */
void SetIconThemeAutomatically(SetModifiedFlag = SET_MODIFIED); void SetIconThemeAutomatically(SetModifiedFlag = SET_MODIFIED);
inline sal_Bool IsGetSymbolsStyleReadOnly() inline bool IsGetSymbolsStyleReadOnly()
{ return m_bIsSymbolsStyleRO; } { return m_bIsSymbolsStyleRO; }
// translate to VCL settings ( "0" = 3D, "1" = FLAT ) // translate to VCL settings ( "0" = 3D, "1" = FLAT )
...@@ -218,25 +218,25 @@ class SvtMiscOptions_Impl : public ConfigItem ...@@ -218,25 +218,25 @@ class SvtMiscOptions_Impl : public ConfigItem
// translate from VCL settings // translate from VCL settings
void SetToolboxStyle( sal_Int16 nStyle, bool _bSetModified ); void SetToolboxStyle( sal_Int16 nStyle, bool _bSetModified );
inline sal_Bool IsGetToolboxStyleReadOnly() inline bool IsGetToolboxStyleReadOnly()
{ return m_bIsToolboxStyleRO; } { return m_bIsToolboxStyleRO; }
inline sal_Bool UseSystemPrintDialog() const inline bool UseSystemPrintDialog() const
{ return m_bUseSystemPrintDialog; } { return m_bUseSystemPrintDialog; }
inline void SetUseSystemPrintDialog( sal_Bool bSet ) inline void SetUseSystemPrintDialog( bool bSet )
{ m_bUseSystemPrintDialog = bSet; SetModified(); } { m_bUseSystemPrintDialog = bSet; SetModified(); }
inline sal_Bool IsUseSystemPrintDialogReadOnly() const inline bool IsUseSystemPrintDialogReadOnly() const
{ return m_bIsUseSystemPrintDialogRO; } { return m_bIsUseSystemPrintDialogRO; }
inline sal_Bool ShowLinkWarningDialog() const inline bool ShowLinkWarningDialog() const
{ return m_bShowLinkWarningDialog; } { return m_bShowLinkWarningDialog; }
void SetShowLinkWarningDialog( sal_Bool bSet ) void SetShowLinkWarningDialog( bool bSet )
{ m_bShowLinkWarningDialog = bSet; SetModified(); } { m_bShowLinkWarningDialog = bSet; SetModified(); }
sal_Bool IsShowLinkWarningDialogReadOnly() const bool IsShowLinkWarningDialogReadOnly() const
{ return m_bIsShowLinkWarningDialogRO; } { return m_bIsShowLinkWarningDialogRO; }
void AddListenerLink( const Link& rLink ); void AddListenerLink( const Link& rLink );
...@@ -276,23 +276,23 @@ SvtMiscOptions_Impl::SvtMiscOptions_Impl() ...@@ -276,23 +276,23 @@ SvtMiscOptions_Impl::SvtMiscOptions_Impl()
// Init baseclasses first // Init baseclasses first
: ConfigItem( ROOTNODE_MISC ) : ConfigItem( ROOTNODE_MISC )
, m_bUseSystemFileDialog( sal_False ) , m_bUseSystemFileDialog( false )
, m_bIsUseSystemFileDialogRO( sal_False ) , m_bIsUseSystemFileDialogRO( false )
, m_bPluginsEnabled( sal_False ) , m_bPluginsEnabled( false )
, m_bIsPluginsEnabledRO( sal_False ) , m_bIsPluginsEnabledRO( false )
, m_nSymbolsSize( 0 ) , m_nSymbolsSize( 0 )
, m_bIsSymbolsSizeRO( sal_False ) , m_bIsSymbolsSizeRO( false )
, m_bIsSymbolsStyleRO( sal_False ) , m_bIsSymbolsStyleRO( false )
, m_nToolboxStyle( 1 ) , m_nToolboxStyle( 1 )
, m_bIsToolboxStyleRO( sal_False ) , m_bIsToolboxStyleRO( false )
, m_bUseSystemPrintDialog( sal_False ) , m_bUseSystemPrintDialog( false )
, m_bIsUseSystemPrintDialogRO( sal_False ) , m_bIsUseSystemPrintDialogRO( false )
, m_bShowLinkWarningDialog( sal_True ) , m_bShowLinkWarningDialog( true )
, m_bIsShowLinkWarningDialogRO( sal_False ) , m_bIsShowLinkWarningDialogRO( false )
, m_bAlwaysAllowSave( sal_False ) , m_bAlwaysAllowSave( false )
, m_bExperimentalMode( sal_False ) , m_bExperimentalMode( false )
, m_bMacroRecorderMode( sal_False ) , m_bMacroRecorderMode( false )
, m_bIconThemeWasSetAutomatically( sal_False ) , m_bIconThemeWasSetAutomatically( false )
{ {
// Use our static list of configuration keys to get his values. // Use our static list of configuration keys to get his values.
Sequence< OUString > seqNames = GetPropertyNames ( ); Sequence< OUString > seqNames = GetPropertyNames ( );
...@@ -776,22 +776,22 @@ SvtMiscOptions::~SvtMiscOptions() ...@@ -776,22 +776,22 @@ SvtMiscOptions::~SvtMiscOptions()
} }
} }
sal_Bool SvtMiscOptions::UseSystemFileDialog() const bool SvtMiscOptions::UseSystemFileDialog() const
{ {
return m_pDataContainer->UseSystemFileDialog(); return m_pDataContainer->UseSystemFileDialog();
} }
void SvtMiscOptions::SetUseSystemFileDialog( sal_Bool bEnable ) void SvtMiscOptions::SetUseSystemFileDialog( bool bEnable )
{ {
m_pDataContainer->SetUseSystemFileDialog( bEnable ); m_pDataContainer->SetUseSystemFileDialog( bEnable );
} }
sal_Bool SvtMiscOptions::IsUseSystemFileDialogReadOnly() const bool SvtMiscOptions::IsUseSystemFileDialogReadOnly() const
{ {
return m_pDataContainer->IsUseSystemFileDialogReadOnly(); return m_pDataContainer->IsUseSystemFileDialogReadOnly();
} }
sal_Bool SvtMiscOptions::IsPluginsEnabled() const bool SvtMiscOptions::IsPluginsEnabled() const
{ {
return m_pDataContainer->IsPluginsEnabled(); return m_pDataContainer->IsPluginsEnabled();
} }
...@@ -839,7 +839,7 @@ void SvtMiscOptions::SetIconTheme(const OUString& iconTheme) ...@@ -839,7 +839,7 @@ void SvtMiscOptions::SetIconTheme(const OUString& iconTheme)
m_pDataContainer->SetIconTheme(iconTheme); m_pDataContainer->SetIconTheme(iconTheme);
} }
sal_Bool SvtMiscOptions::DisableUICustomization() const bool SvtMiscOptions::DisableUICustomization() const
{ {
return m_pDataContainer->DisableUICustomization(); return m_pDataContainer->DisableUICustomization();
} }
...@@ -854,57 +854,57 @@ void SvtMiscOptions::SetToolboxStyle( sal_Int16 nStyle ) ...@@ -854,57 +854,57 @@ void SvtMiscOptions::SetToolboxStyle( sal_Int16 nStyle )
m_pDataContainer->SetToolboxStyle( nStyle, true ); m_pDataContainer->SetToolboxStyle( nStyle, true );
} }
sal_Bool SvtMiscOptions::UseSystemPrintDialog() const bool SvtMiscOptions::UseSystemPrintDialog() const
{ {
return m_pDataContainer->UseSystemPrintDialog(); return m_pDataContainer->UseSystemPrintDialog();
} }
void SvtMiscOptions::SetUseSystemPrintDialog( sal_Bool bEnable ) void SvtMiscOptions::SetUseSystemPrintDialog( bool bEnable )
{ {
m_pDataContainer->SetUseSystemPrintDialog( bEnable ); m_pDataContainer->SetUseSystemPrintDialog( bEnable );
} }
sal_Bool SvtMiscOptions::ShowLinkWarningDialog() const bool SvtMiscOptions::ShowLinkWarningDialog() const
{ {
return m_pDataContainer->ShowLinkWarningDialog(); return m_pDataContainer->ShowLinkWarningDialog();
} }
void SvtMiscOptions::SetShowLinkWarningDialog( sal_Bool bSet ) void SvtMiscOptions::SetShowLinkWarningDialog( bool bSet )
{ {
m_pDataContainer->SetShowLinkWarningDialog( bSet ); m_pDataContainer->SetShowLinkWarningDialog( bSet );
} }
sal_Bool SvtMiscOptions::IsShowLinkWarningDialogReadOnly() const bool SvtMiscOptions::IsShowLinkWarningDialogReadOnly() const
{ {
return m_pDataContainer->IsShowLinkWarningDialogReadOnly(); return m_pDataContainer->IsShowLinkWarningDialogReadOnly();
} }
void SvtMiscOptions::SetSaveAlwaysAllowed( sal_Bool bSet ) void SvtMiscOptions::SetSaveAlwaysAllowed( bool bSet )
{ {
m_pDataContainer->SetSaveAlwaysAllowed( bSet ); m_pDataContainer->SetSaveAlwaysAllowed( bSet );
} }
sal_Bool SvtMiscOptions::IsSaveAlwaysAllowed() const bool SvtMiscOptions::IsSaveAlwaysAllowed() const
{ {
return m_pDataContainer->IsSaveAlwaysAllowed(); return m_pDataContainer->IsSaveAlwaysAllowed();
} }
void SvtMiscOptions::SetExperimentalMode( sal_Bool bSet ) void SvtMiscOptions::SetExperimentalMode( bool bSet )
{ {
m_pDataContainer->SetExperimentalMode( bSet ); m_pDataContainer->SetExperimentalMode( bSet );
} }
sal_Bool SvtMiscOptions::IsExperimentalMode() const bool SvtMiscOptions::IsExperimentalMode() const
{ {
return m_pDataContainer->IsExperimentalMode(); return m_pDataContainer->IsExperimentalMode();
} }
void SvtMiscOptions::SetMacroRecorderMode( sal_Bool bSet ) void SvtMiscOptions::SetMacroRecorderMode( bool bSet )
{ {
m_pDataContainer->SetMacroRecorderMode( bSet ); m_pDataContainer->SetMacroRecorderMode( bSet );
} }
sal_Bool SvtMiscOptions::IsMacroRecorderMode() const bool SvtMiscOptions::IsMacroRecorderMode() const
{ {
return m_pDataContainer->IsMacroRecorderMode(); return m_pDataContainer->IsMacroRecorderMode();
} }
......
...@@ -32,7 +32,7 @@ SvxLinkWarningDialog::SvxLinkWarningDialog( Window* pParent, const OUString& _rF ...@@ -32,7 +32,7 @@ SvxLinkWarningDialog::SvxLinkWarningDialog( Window* pParent, const OUString& _rF
// load state of "warning on" checkbox from misc options // load state of "warning on" checkbox from misc options
SvtMiscOptions aMiscOpt; SvtMiscOptions aMiscOpt;
m_pWarningOnBox->Check( aMiscOpt.ShowLinkWarningDialog() == sal_True ); m_pWarningOnBox->Check( aMiscOpt.ShowLinkWarningDialog() );
if( aMiscOpt.IsShowLinkWarningDialogReadOnly() ) if( aMiscOpt.IsShowLinkWarningDialogReadOnly() )
m_pWarningOnBox->Disable(); m_pWarningOnBox->Disable();
} }
...@@ -41,7 +41,7 @@ SvxLinkWarningDialog::~SvxLinkWarningDialog() ...@@ -41,7 +41,7 @@ SvxLinkWarningDialog::~SvxLinkWarningDialog()
{ {
// save value of "warning off" checkbox, if necessary // save value of "warning off" checkbox, if necessary
SvtMiscOptions aMiscOpt; SvtMiscOptions aMiscOpt;
sal_Bool bChecked = m_pWarningOnBox->IsChecked(); bool bChecked = m_pWarningOnBox->IsChecked();
if ( aMiscOpt.ShowLinkWarningDialog() != bChecked ) if ( aMiscOpt.ShowLinkWarningDialog() != bChecked )
aMiscOpt.SetShowLinkWarningDialog( bChecked ); aMiscOpt.SetShowLinkWarningDialog( bChecked );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment