diff options
-rw-r--r-- | dbaccess/qa/unit/firebird.cxx | 2 | ||||
-rw-r--r-- | desktop/source/app/app.cxx | 2 | ||||
-rw-r--r-- | include/svtools/localresaccess.hxx | 2 | ||||
-rw-r--r-- | include/svtools/menuoptions.hxx | 2 | ||||
-rw-r--r-- | include/svtools/miscopt.hxx | 40 | ||||
-rw-r--r-- | sfx2/source/appl/newhelp.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/menu/mnumgr.cxx | 2 | ||||
-rw-r--r-- | svtools/source/config/menuoptions.cxx | 34 | ||||
-rw-r--r-- | svtools/source/config/miscopt.cxx | 136 | ||||
-rw-r--r-- | svx/source/dialog/linkwarn.cxx | 4 |
10 files changed, 113 insertions, 113 deletions
diff --git a/dbaccess/qa/unit/firebird.cxx b/dbaccess/qa/unit/firebird.cxx index a5852703dee6..1a868bb1b865 100644 --- a/dbaccess/qa/unit/firebird.cxx +++ b/dbaccess/qa/unit/firebird.cxx @@ -41,7 +41,7 @@ void FirebirdTest::setUp() { DBTestBase::setUp(); SvtMiscOptions aMiscOptions; - aMiscOptions.SetExperimentalMode(sal_True); + aMiscOptions.SetExperimentalMode(true); } /** diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx index 402dbb231f31..1220094c0508 100644 --- a/desktop/source/app/app.cxx +++ b/desktop/source/app/app.cxx @@ -1565,7 +1565,7 @@ int Desktop::Main() // which does only work for VCL dialogs!! SvtMiscOptions aMiscOptions; pExecGlobals->bUseSystemFileDialog = aMiscOptions.UseSystemFileDialog(); - aMiscOptions.SetUseSystemFileDialog( sal_False ); + aMiscOptions.SetUseSystemFileDialog( false ); } pExecGlobals->bRestartRequested = xRestartManager->isRestartRequested( diff --git a/include/svtools/localresaccess.hxx b/include/svtools/localresaccess.hxx index 43368b4c6899..f9707727dfe5 100644 --- a/include/svtools/localresaccess.hxx +++ b/include/svtools/localresaccess.hxx @@ -60,7 +60,7 @@ namespace svt FreeResource(); } - inline sal_Bool IsAvailableRes( const ResId& _rId ) const + inline bool IsAvailableRes( const ResId& _rId ) const { return Resource::IsAvailableRes( _rId ); } diff --git a/include/svtools/menuoptions.hxx b/include/svtools/menuoptions.hxx index 788dcc250723..917915d1faad 100644 --- a/include/svtools/menuoptions.hxx +++ b/include/svtools/menuoptions.hxx @@ -87,7 +87,7 @@ class SVT_DLLPUBLIC SAL_WARN_UNUSED SvtMenuOptions: public utl::detail::Options @seealso configuration package "org.openoffice.Office.Common/View/Menu" *//*-*****************************************************************************************************/ - sal_Bool IsEntryHidingEnabled() const; + bool IsEntryHidingEnabled() const; TriState GetMenuIconsState() const; void SetMenuIconsState(TriState eState); diff --git a/include/svtools/miscopt.hxx b/include/svtools/miscopt.hxx index 8d0e1db477b0..e9c6fada6c79 100644 --- a/include/svtools/miscopt.hxx +++ b/include/svtools/miscopt.hxx @@ -70,16 +70,16 @@ class SVT_DLLPUBLIC SvtMiscOptions: public utl::detail::Options SvtMiscOptions(); virtual ~SvtMiscOptions(); - void AddListenerLink( const Link& rLink ); - void RemoveListenerLink( const Link& rLink ); + void AddListenerLink( const Link& rLink ); + void RemoveListenerLink( const Link& rLink ); - sal_Bool UseSystemFileDialog() const; - void SetUseSystemFileDialog( sal_Bool bSet ); - sal_Bool IsUseSystemFileDialogReadOnly() const; + bool UseSystemFileDialog() const; + void SetUseSystemFileDialog( bool bSet ); + bool IsUseSystemFileDialogReadOnly() const; - sal_Bool DisableUICustomization() const; + bool DisableUICustomization() const; - sal_Bool IsPluginsEnabled() const; + bool IsPluginsEnabled() const; sal_Int16 GetSymbolsSize() const; void SetSymbolsSize( sal_Int16 eSet ); @@ -94,24 +94,24 @@ class SVT_DLLPUBLIC SvtMiscOptions: public utl::detail::Options sal_Int16 GetToolboxStyle() const; void SetToolboxStyle( sal_Int16 nStyle ); - sal_Bool IsModifyByPrinting() const; - void SetModifyByPrinting(sal_Bool bSet ); + bool IsModifyByPrinting() const; + void SetModifyByPrinting(bool bSet ); - sal_Bool UseSystemPrintDialog() const; - void SetUseSystemPrintDialog( sal_Bool bSet ); + bool UseSystemPrintDialog() const; + void SetUseSystemPrintDialog( bool bSet ); - sal_Bool ShowLinkWarningDialog() const; - void SetShowLinkWarningDialog( sal_Bool bSet ); - sal_Bool IsShowLinkWarningDialogReadOnly() const; + bool ShowLinkWarningDialog() const; + void SetShowLinkWarningDialog( bool bSet ); + bool IsShowLinkWarningDialogReadOnly() const; - void SetSaveAlwaysAllowed( sal_Bool bSet ); - sal_Bool IsSaveAlwaysAllowed() const; + void SetSaveAlwaysAllowed( bool bSet ); + bool IsSaveAlwaysAllowed() const; - void SetExperimentalMode( sal_Bool bSet ); - sal_Bool IsExperimentalMode() const; + void SetExperimentalMode( bool bSet ); + bool IsExperimentalMode() const; - void SetMacroRecorderMode( sal_Bool bSet ); - sal_Bool IsMacroRecorderMode() const; + void SetMacroRecorderMode( bool bSet ); + bool IsMacroRecorderMode() const; private: diff --git a/sfx2/source/appl/newhelp.cxx b/sfx2/source/appl/newhelp.cxx index 569c2d7ac185..216d53a5acf8 100644 --- a/sfx2/source/appl/newhelp.cxx +++ b/sfx2/source/appl/newhelp.cxx @@ -2466,7 +2466,7 @@ bool SfxHelpTextWindow_Impl::PreNotify( NotifyEvent& rNEvt ) 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 ); sal_uInt16 nId = aMenu.Execute( this, aPos ); diff --git a/sfx2/source/menu/mnumgr.cxx b/sfx2/source/menu/mnumgr.cxx index 500af4453999..f4ef62a0e606 100644 --- a/sfx2/source/menu/mnumgr.cxx +++ b/sfx2/source/menu/mnumgr.cxx @@ -72,7 +72,7 @@ using namespace com::sun::star; void TryToHideDisabledEntries_Impl( Menu* pMenu ) { DBG_ASSERT( pMenu, "invalid menu" ); - if( SvtMenuOptions().IsEntryHidingEnabled() == sal_False ) + if( ! SvtMenuOptions().IsEntryHidingEnabled() ) { pMenu->SetMenuFlags( pMenu->GetMenuFlags() | MENU_FLAG_HIDEDISABLEDENTRIES ); } diff --git a/svtools/source/config/menuoptions.cxx b/svtools/source/config/menuoptions.cxx index f95f0a42a06d..4089969a31b6 100644 --- a/svtools/source/config/menuoptions.cxx +++ b/svtools/source/config/menuoptions.cxx @@ -41,8 +41,8 @@ using namespace ::osl ; using namespace ::com::sun::star::uno ; #define ROOTNODE_MENU OUString("Office.Common/View/Menu" ) -#define DEFAULT_DONTHIDEDISABLEDENTRIES sal_False -#define DEFAULT_FOLLOWMOUSE sal_True +#define DEFAULT_DONTHIDEDISABLEDENTRIES false +#define DEFAULT_FOLLOWMOUSE true #define DEFAULT_MENUICONS TRISTATE_INDET #define PROPERTYNAME_DONTHIDEDISABLEDENTRIES OUString("DontHideDisabledEntry" ) @@ -71,8 +71,8 @@ class SvtMenuOptions_Impl : public ConfigItem private: ::std::list<Link> aList; - sal_Bool m_bDontHideDisabledEntries ; /// cache "DontHideDisabledEntries" of Menu section - sal_Bool m_bFollowMouse ; /// cache "FollowMouse" of Menu section + bool m_bDontHideDisabledEntries ; /// cache "DontHideDisabledEntries" of Menu section + bool m_bFollowMouse ; /// cache "FollowMouse" of Menu section TriState m_eMenuIcons ; /// cache "MenuIcons" of Menu section @@ -143,16 +143,16 @@ class SvtMenuOptions_Impl : public ConfigItem @onerror - *//*-*****************************************************************************************************/ - sal_Bool IsEntryHidingEnabled() const + bool IsEntryHidingEnabled() const { return m_bDontHideDisabledEntries; } - sal_Bool IsFollowMouseEnabled() const + bool IsFollowMouseEnabled() const { return m_bFollowMouse; } TriState GetMenuIconsState() const { return m_eMenuIcons; } - void SetEntryHidingState ( sal_Bool bState ) + void SetEntryHidingState ( bool bState ) { m_bDontHideDisabledEntries = bState; SetModified(); @@ -161,7 +161,7 @@ class SvtMenuOptions_Impl : public ConfigItem Commit(); } - void SetFollowMouseState ( sal_Bool bState ) + void SetFollowMouseState ( bool bState ) { m_bFollowMouse = bState; SetModified(); @@ -221,13 +221,13 @@ SvtMenuOptions_Impl::SvtMenuOptions_Impl() // 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" ); - sal_Bool bMenuIcons = sal_True; - sal_Bool bSystemMenuIcons = sal_True; + bool bMenuIcons = true; + bool bSystemMenuIcons = true; if (m_eMenuIcons == TRISTATE_INDET) - bMenuIcons = (sal_Bool)(Application::GetSettings().GetStyleSettings().GetPreferredUseImagesInMenus()); + bMenuIcons = Application::GetSettings().GetStyleSettings().GetPreferredUseImagesInMenus(); else { - bSystemMenuIcons = sal_False; + bSystemMenuIcons = false; bMenuIcons = m_eMenuIcons ? sal_True : sal_False; } @@ -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" ); bool bMenuSettingsChanged = false; - sal_Bool bMenuIcons = sal_True; - sal_Bool bSystemMenuIcons = sal_True; + bool bMenuIcons = true; + bool bSystemMenuIcons = true; if (m_eMenuIcons == TRISTATE_INDET) - bMenuIcons = (sal_Bool)(Application::GetSettings().GetStyleSettings().GetUseImagesInMenus()); + bMenuIcons = Application::GetSettings().GetStyleSettings().GetUseImagesInMenus(); else { - bSystemMenuIcons = sal_False; + bSystemMenuIcons = false; bMenuIcons = m_eMenuIcons ? sal_True : sal_False; } @@ -468,7 +468,7 @@ SvtMenuOptions::~SvtMenuOptions() // public method -sal_Bool SvtMenuOptions::IsEntryHidingEnabled() const +bool SvtMenuOptions::IsEntryHidingEnabled() const { MutexGuard aGuard( GetOwnStaticMutex() ); return m_pDataContainer->IsEntryHidingEnabled(); diff --git a/svtools/source/config/miscopt.cxx b/svtools/source/config/miscopt.cxx index c5a2ffa1996f..cd73b512b42b 100644 --- a/svtools/source/config/miscopt.cxx +++ b/svtools/source/config/miscopt.cxx @@ -72,24 +72,24 @@ class SvtMiscOptions_Impl : public ConfigItem { private: ::std::list<Link> aList; - sal_Bool m_bUseSystemFileDialog; - sal_Bool m_bIsUseSystemFileDialogRO; - sal_Bool m_bPluginsEnabled; - sal_Bool m_bIsPluginsEnabledRO; + bool m_bUseSystemFileDialog; + bool m_bIsUseSystemFileDialogRO; + bool m_bPluginsEnabled; + bool m_bIsPluginsEnabledRO; sal_Int16 m_nSymbolsSize; - sal_Bool m_bIsSymbolsSizeRO; - sal_Bool m_bIsSymbolsStyleRO; + bool m_bIsSymbolsSizeRO; + bool m_bIsSymbolsStyleRO; sal_Int16 m_nToolboxStyle; - sal_Bool m_bIsToolboxStyleRO; - sal_Bool m_bUseSystemPrintDialog; - sal_Bool m_bIsUseSystemPrintDialogRO; - sal_Bool m_bShowLinkWarningDialog; - sal_Bool m_bIsShowLinkWarningDialogRO; - sal_Bool m_bDisableUICustomization; - sal_Bool m_bAlwaysAllowSave; - sal_Bool m_bExperimentalMode; - sal_Bool m_bMacroRecorderMode; - sal_Bool m_bIconThemeWasSetAutomatically; + bool m_bIsToolboxStyleRO; + bool m_bUseSystemPrintDialog; + bool m_bIsUseSystemPrintDialogRO; + bool m_bShowLinkWarningDialog; + bool m_bIsShowLinkWarningDialogRO; + bool m_bDisableUICustomization; + bool m_bAlwaysAllowSave; + bool m_bExperimentalMode; + bool m_bMacroRecorderMode; + bool m_bIconThemeWasSetAutomatically; public: @@ -137,40 +137,40 @@ class SvtMiscOptions_Impl : public ConfigItem // public interface - inline sal_Bool UseSystemFileDialog() const + inline bool UseSystemFileDialog() const { return m_bUseSystemFileDialog; } - inline void SetUseSystemFileDialog( sal_Bool bSet ) + inline void SetUseSystemFileDialog( bool bSet ) { m_bUseSystemFileDialog = bSet; SetModified(); } - inline sal_Bool IsUseSystemFileDialogReadOnly() const + inline bool IsUseSystemFileDialogReadOnly() const { return m_bIsUseSystemFileDialogRO; } - inline sal_Bool DisableUICustomization() const + inline bool DisableUICustomization() const { return m_bDisableUICustomization; } - inline void SetSaveAlwaysAllowed( sal_Bool bSet ) + inline void SetSaveAlwaysAllowed( bool bSet ) { m_bAlwaysAllowSave = bSet; SetModified(); } - inline sal_Bool IsSaveAlwaysAllowed() const + inline bool IsSaveAlwaysAllowed() const { return m_bAlwaysAllowSave; } - inline void SetExperimentalMode( sal_Bool bSet ) + inline void SetExperimentalMode( bool bSet ) { m_bExperimentalMode = bSet; SetModified(); } - inline sal_Bool IsExperimentalMode() const + inline bool IsExperimentalMode() const { return m_bExperimentalMode; } - inline void SetMacroRecorderMode( sal_Bool bSet ) + inline void SetMacroRecorderMode( bool bSet ) { m_bMacroRecorderMode = bSet; SetModified(); } - inline sal_Bool IsMacroRecorderMode() const + inline bool IsMacroRecorderMode() const { return m_bMacroRecorderMode; } - inline sal_Bool IsPluginsEnabled() const + inline bool IsPluginsEnabled() const { return m_bPluginsEnabled; } - inline sal_Bool IsPluginsEnabledReadOnly() const + inline bool IsPluginsEnabledReadOnly() const { return m_bIsPluginsEnabledRO; } inline sal_Int16 GetSymbolsSize() @@ -178,7 +178,7 @@ class SvtMiscOptions_Impl : public ConfigItem void SetSymbolsSize( sal_Int16 nSet ); - inline sal_Bool IsGetSymbolsSizeReadOnly() + inline bool IsGetSymbolsSizeReadOnly() { return m_bIsSymbolsSizeRO; } OUString GetIconTheme() const; @@ -208,7 +208,7 @@ class SvtMiscOptions_Impl : public ConfigItem */ void SetIconThemeAutomatically(SetModifiedFlag = SET_MODIFIED); - inline sal_Bool IsGetSymbolsStyleReadOnly() + inline bool IsGetSymbolsStyleReadOnly() { return m_bIsSymbolsStyleRO; } // translate to VCL settings ( "0" = 3D, "1" = FLAT ) @@ -218,25 +218,25 @@ class SvtMiscOptions_Impl : public ConfigItem // translate from VCL settings void SetToolboxStyle( sal_Int16 nStyle, bool _bSetModified ); - inline sal_Bool IsGetToolboxStyleReadOnly() + inline bool IsGetToolboxStyleReadOnly() { return m_bIsToolboxStyleRO; } - inline sal_Bool UseSystemPrintDialog() const + inline bool UseSystemPrintDialog() const { return m_bUseSystemPrintDialog; } - inline void SetUseSystemPrintDialog( sal_Bool bSet ) + inline void SetUseSystemPrintDialog( bool bSet ) { m_bUseSystemPrintDialog = bSet; SetModified(); } - inline sal_Bool IsUseSystemPrintDialogReadOnly() const + inline bool IsUseSystemPrintDialogReadOnly() const { return m_bIsUseSystemPrintDialogRO; } - inline sal_Bool ShowLinkWarningDialog() const + inline bool ShowLinkWarningDialog() const { return m_bShowLinkWarningDialog; } - void SetShowLinkWarningDialog( sal_Bool bSet ) + void SetShowLinkWarningDialog( bool bSet ) { m_bShowLinkWarningDialog = bSet; SetModified(); } - sal_Bool IsShowLinkWarningDialogReadOnly() const + bool IsShowLinkWarningDialogReadOnly() const { return m_bIsShowLinkWarningDialogRO; } void AddListenerLink( const Link& rLink ); @@ -276,23 +276,23 @@ SvtMiscOptions_Impl::SvtMiscOptions_Impl() // Init baseclasses first : ConfigItem( ROOTNODE_MISC ) - , m_bUseSystemFileDialog( sal_False ) - , m_bIsUseSystemFileDialogRO( sal_False ) - , m_bPluginsEnabled( sal_False ) - , m_bIsPluginsEnabledRO( sal_False ) + , m_bUseSystemFileDialog( false ) + , m_bIsUseSystemFileDialogRO( false ) + , m_bPluginsEnabled( false ) + , m_bIsPluginsEnabledRO( false ) , m_nSymbolsSize( 0 ) - , m_bIsSymbolsSizeRO( sal_False ) - , m_bIsSymbolsStyleRO( sal_False ) + , m_bIsSymbolsSizeRO( false ) + , m_bIsSymbolsStyleRO( false ) , m_nToolboxStyle( 1 ) - , m_bIsToolboxStyleRO( sal_False ) - , m_bUseSystemPrintDialog( sal_False ) - , m_bIsUseSystemPrintDialogRO( sal_False ) - , m_bShowLinkWarningDialog( sal_True ) - , m_bIsShowLinkWarningDialogRO( sal_False ) - , m_bAlwaysAllowSave( sal_False ) - , m_bExperimentalMode( sal_False ) - , m_bMacroRecorderMode( sal_False ) - , m_bIconThemeWasSetAutomatically( sal_False ) + , m_bIsToolboxStyleRO( false ) + , m_bUseSystemPrintDialog( false ) + , m_bIsUseSystemPrintDialogRO( false ) + , m_bShowLinkWarningDialog( true ) + , m_bIsShowLinkWarningDialogRO( false ) + , m_bAlwaysAllowSave( false ) + , m_bExperimentalMode( false ) + , m_bMacroRecorderMode( false ) + , m_bIconThemeWasSetAutomatically( false ) { // Use our static list of configuration keys to get his values. Sequence< OUString > seqNames = GetPropertyNames ( ); @@ -776,22 +776,22 @@ SvtMiscOptions::~SvtMiscOptions() } } -sal_Bool SvtMiscOptions::UseSystemFileDialog() const +bool SvtMiscOptions::UseSystemFileDialog() const { return m_pDataContainer->UseSystemFileDialog(); } -void SvtMiscOptions::SetUseSystemFileDialog( sal_Bool bEnable ) +void SvtMiscOptions::SetUseSystemFileDialog( bool bEnable ) { m_pDataContainer->SetUseSystemFileDialog( bEnable ); } -sal_Bool SvtMiscOptions::IsUseSystemFileDialogReadOnly() const +bool SvtMiscOptions::IsUseSystemFileDialogReadOnly() const { return m_pDataContainer->IsUseSystemFileDialogReadOnly(); } -sal_Bool SvtMiscOptions::IsPluginsEnabled() const +bool SvtMiscOptions::IsPluginsEnabled() const { return m_pDataContainer->IsPluginsEnabled(); } @@ -839,7 +839,7 @@ void SvtMiscOptions::SetIconTheme(const OUString& iconTheme) m_pDataContainer->SetIconTheme(iconTheme); } -sal_Bool SvtMiscOptions::DisableUICustomization() const +bool SvtMiscOptions::DisableUICustomization() const { return m_pDataContainer->DisableUICustomization(); } @@ -854,57 +854,57 @@ void SvtMiscOptions::SetToolboxStyle( sal_Int16 nStyle ) m_pDataContainer->SetToolboxStyle( nStyle, true ); } -sal_Bool SvtMiscOptions::UseSystemPrintDialog() const +bool SvtMiscOptions::UseSystemPrintDialog() const { return m_pDataContainer->UseSystemPrintDialog(); } -void SvtMiscOptions::SetUseSystemPrintDialog( sal_Bool bEnable ) +void SvtMiscOptions::SetUseSystemPrintDialog( bool bEnable ) { m_pDataContainer->SetUseSystemPrintDialog( bEnable ); } -sal_Bool SvtMiscOptions::ShowLinkWarningDialog() const +bool SvtMiscOptions::ShowLinkWarningDialog() const { return m_pDataContainer->ShowLinkWarningDialog(); } -void SvtMiscOptions::SetShowLinkWarningDialog( sal_Bool bSet ) +void SvtMiscOptions::SetShowLinkWarningDialog( bool bSet ) { m_pDataContainer->SetShowLinkWarningDialog( bSet ); } -sal_Bool SvtMiscOptions::IsShowLinkWarningDialogReadOnly() const +bool SvtMiscOptions::IsShowLinkWarningDialogReadOnly() const { return m_pDataContainer->IsShowLinkWarningDialogReadOnly(); } -void SvtMiscOptions::SetSaveAlwaysAllowed( sal_Bool bSet ) +void SvtMiscOptions::SetSaveAlwaysAllowed( bool bSet ) { m_pDataContainer->SetSaveAlwaysAllowed( bSet ); } -sal_Bool SvtMiscOptions::IsSaveAlwaysAllowed() const +bool SvtMiscOptions::IsSaveAlwaysAllowed() const { return m_pDataContainer->IsSaveAlwaysAllowed(); } -void SvtMiscOptions::SetExperimentalMode( sal_Bool bSet ) +void SvtMiscOptions::SetExperimentalMode( bool bSet ) { m_pDataContainer->SetExperimentalMode( bSet ); } -sal_Bool SvtMiscOptions::IsExperimentalMode() const +bool SvtMiscOptions::IsExperimentalMode() const { return m_pDataContainer->IsExperimentalMode(); } -void SvtMiscOptions::SetMacroRecorderMode( sal_Bool bSet ) +void SvtMiscOptions::SetMacroRecorderMode( bool bSet ) { m_pDataContainer->SetMacroRecorderMode( bSet ); } -sal_Bool SvtMiscOptions::IsMacroRecorderMode() const +bool SvtMiscOptions::IsMacroRecorderMode() const { return m_pDataContainer->IsMacroRecorderMode(); } diff --git a/svx/source/dialog/linkwarn.cxx b/svx/source/dialog/linkwarn.cxx index e46ebfc096be..1f223ce251e1 100644 --- a/svx/source/dialog/linkwarn.cxx +++ b/svx/source/dialog/linkwarn.cxx @@ -32,7 +32,7 @@ SvxLinkWarningDialog::SvxLinkWarningDialog( Window* pParent, const OUString& _rF // load state of "warning on" checkbox from misc options SvtMiscOptions aMiscOpt; - m_pWarningOnBox->Check( aMiscOpt.ShowLinkWarningDialog() == sal_True ); + m_pWarningOnBox->Check( aMiscOpt.ShowLinkWarningDialog() ); if( aMiscOpt.IsShowLinkWarningDialogReadOnly() ) m_pWarningOnBox->Disable(); } @@ -41,7 +41,7 @@ SvxLinkWarningDialog::~SvxLinkWarningDialog() { // save value of "warning off" checkbox, if necessary SvtMiscOptions aMiscOpt; - sal_Bool bChecked = m_pWarningOnBox->IsChecked(); + bool bChecked = m_pWarningOnBox->IsChecked(); if ( aMiscOpt.ShowLinkWarningDialog() != bChecked ) aMiscOpt.SetShowLinkWarningDialog( bChecked ); } |