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
b41badb8
Kaydet (Commit)
b41badb8
authored
Mar 20, 2014
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
svtools: sal_Bool->bool
Change-Id: I37352e90a5304e75ce0c8ae922a167b1e70625e8
üst
f7074d8d
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
111 additions
and
111 deletions
+111
-111
firebird.cxx
dbaccess/qa/unit/firebird.cxx
+1
-1
app.cxx
desktop/source/app/app.cxx
+1
-1
localresaccess.hxx
include/svtools/localresaccess.hxx
+1
-1
menuoptions.hxx
include/svtools/menuoptions.hxx
+1
-1
miscopt.hxx
include/svtools/miscopt.hxx
+18
-18
newhelp.cxx
sfx2/source/appl/newhelp.cxx
+1
-1
mnumgr.cxx
sfx2/source/menu/mnumgr.cxx
+1
-1
menuoptions.cxx
svtools/source/config/menuoptions.cxx
+17
-17
miscopt.cxx
svtools/source/config/miscopt.cxx
+68
-68
linkwarn.cxx
svx/source/dialog/linkwarn.cxx
+2
-2
No files found.
dbaccess/qa/unit/firebird.cxx
Dosyayı görüntüle @
b41badb8
...
@@ -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_T
rue
);
aMiscOptions
.
SetExperimentalMode
(
t
rue
);
}
}
/**
/**
...
...
desktop/source/app/app.cxx
Dosyayı görüntüle @
b41badb8
...
@@ -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_F
alse
);
aMiscOptions
.
SetUseSystemFileDialog
(
f
alse
);
}
}
pExecGlobals
->
bRestartRequested
=
xRestartManager
->
isRestartRequested
(
pExecGlobals
->
bRestartRequested
=
xRestartManager
->
isRestartRequested
(
...
...
include/svtools/localresaccess.hxx
Dosyayı görüntüle @
b41badb8
...
@@ -60,7 +60,7 @@ namespace svt
...
@@ -60,7 +60,7 @@ namespace svt
FreeResource
();
FreeResource
();
}
}
inline
sal_B
ool
IsAvailableRes
(
const
ResId
&
_rId
)
const
inline
b
ool
IsAvailableRes
(
const
ResId
&
_rId
)
const
{
{
return
Resource
::
IsAvailableRes
(
_rId
);
return
Resource
::
IsAvailableRes
(
_rId
);
}
}
...
...
include/svtools/menuoptions.hxx
Dosyayı görüntüle @
b41badb8
...
@@ -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_B
ool
IsEntryHidingEnabled
()
const
;
b
ool
IsEntryHidingEnabled
()
const
;
TriState
GetMenuIconsState
()
const
;
TriState
GetMenuIconsState
()
const
;
void
SetMenuIconsState
(
TriState
eState
);
void
SetMenuIconsState
(
TriState
eState
);
...
...
include/svtools/miscopt.hxx
Dosyayı görüntüle @
b41badb8
...
@@ -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_B
ool
bSet
);
void
SetUseSystemFileDialog
(
b
ool
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_B
ool
bSet
);
void
SetModifyByPrinting
(
b
ool
bSet
);
sal_Bool
UseSystemPrintDialog
()
const
;
bool
UseSystemPrintDialog
()
const
;
void
SetUseSystemPrintDialog
(
sal_B
ool
bSet
);
void
SetUseSystemPrintDialog
(
b
ool
bSet
);
sal_Bool
ShowLinkWarningDialog
()
const
;
bool
ShowLinkWarningDialog
()
const
;
void
SetShowLinkWarningDialog
(
sal_B
ool
bSet
);
void
SetShowLinkWarningDialog
(
b
ool
bSet
);
sal_Bool
IsShowLinkWarningDialogReadOnly
()
const
;
bool
IsShowLinkWarningDialogReadOnly
()
const
;
void
SetSaveAlwaysAllowed
(
sal_B
ool
bSet
);
void
SetSaveAlwaysAllowed
(
b
ool
bSet
);
sal_Bool
IsSaveAlwaysAllowed
()
const
;
bool
IsSaveAlwaysAllowed
()
const
;
void
SetExperimentalMode
(
sal_B
ool
bSet
);
void
SetExperimentalMode
(
b
ool
bSet
);
sal_Bool
IsExperimentalMode
()
const
;
bool
IsExperimentalMode
()
const
;
void
SetMacroRecorderMode
(
sal_B
ool
bSet
);
void
SetMacroRecorderMode
(
b
ool
bSet
);
sal_Bool
IsMacroRecorderMode
()
const
;
bool
IsMacroRecorderMode
()
const
;
private
:
private
:
...
...
sfx2/source/appl/newhelp.cxx
Dosyayı görüntüle @
b41badb8
...
@@ -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
);
...
...
sfx2/source/menu/mnumgr.cxx
Dosyayı görüntüle @
b41badb8
...
@@ -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
);
}
}
...
...
svtools/source/config/menuoptions.cxx
Dosyayı görüntüle @
b41badb8
...
@@ -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_F
alse
#define DEFAULT_DONTHIDEDISABLEDENTRIES
f
alse
#define DEFAULT_FOLLOWMOUSE
sal_T
rue
#define DEFAULT_FOLLOWMOUSE
t
rue
#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_B
ool
bState
)
void
SetEntryHidingState
(
b
ool
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_B
ool
bState
)
void
SetFollowMouseState
(
b
ool
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()
\n
I miss some values of configuration keys!
\n
"
);
DBG_ASSERT
(
!
(
seqNames
.
getLength
()
!=
seqValues
.
getLength
()),
"SvtMenuOptions_Impl::SvtMenuOptions_Impl()
\n
I miss some values of configuration keys!
\n
"
);
sal_Bool
bMenuIcons
=
sal_T
rue
;
bool
bMenuIcons
=
t
rue
;
sal_Bool
bSystemMenuIcons
=
sal_T
rue
;
bool
bSystemMenuIcons
=
t
rue
;
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_F
alse
;
bSystemMenuIcons
=
f
alse
;
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()
\n
I miss some values of configuration keys!
\n
"
);
DBG_ASSERT
(
!
(
seqPropertyNames
.
getLength
()
!=
seqValues
.
getLength
()),
"SvtMenuOptions_Impl::Notify()
\n
I miss some values of configuration keys!
\n
"
);
bool
bMenuSettingsChanged
=
false
;
bool
bMenuSettingsChanged
=
false
;
sal_Bool
bMenuIcons
=
sal_T
rue
;
bool
bMenuIcons
=
t
rue
;
sal_Bool
bSystemMenuIcons
=
sal_T
rue
;
bool
bSystemMenuIcons
=
t
rue
;
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_F
alse
;
bSystemMenuIcons
=
f
alse
;
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_B
ool
SvtMenuOptions
::
IsEntryHidingEnabled
()
const
b
ool
SvtMenuOptions
::
IsEntryHidingEnabled
()
const
{
{
MutexGuard
aGuard
(
GetOwnStaticMutex
()
);
MutexGuard
aGuard
(
GetOwnStaticMutex
()
);
return
m_pDataContainer
->
IsEntryHidingEnabled
();
return
m_pDataContainer
->
IsEntryHidingEnabled
();
...
...
svtools/source/config/miscopt.cxx
Dosyayı görüntüle @
b41badb8
...
@@ -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_B
ool
UseSystemFileDialog
()
const
inline
b
ool
UseSystemFileDialog
()
const
{
return
m_bUseSystemFileDialog
;
}
{
return
m_bUseSystemFileDialog
;
}
inline
void
SetUseSystemFileDialog
(
sal_B
ool
bSet
)
inline
void
SetUseSystemFileDialog
(
b
ool
bSet
)
{
m_bUseSystemFileDialog
=
bSet
;
SetModified
();
}
{
m_bUseSystemFileDialog
=
bSet
;
SetModified
();
}
inline
sal_B
ool
IsUseSystemFileDialogReadOnly
()
const
inline
b
ool
IsUseSystemFileDialogReadOnly
()
const
{
return
m_bIsUseSystemFileDialogRO
;
}
{
return
m_bIsUseSystemFileDialogRO
;
}
inline
sal_B
ool
DisableUICustomization
()
const
inline
b
ool
DisableUICustomization
()
const
{
return
m_bDisableUICustomization
;
}
{
return
m_bDisableUICustomization
;
}
inline
void
SetSaveAlwaysAllowed
(
sal_B
ool
bSet
)
inline
void
SetSaveAlwaysAllowed
(
b
ool
bSet
)
{
m_bAlwaysAllowSave
=
bSet
;
SetModified
();
}
{
m_bAlwaysAllowSave
=
bSet
;
SetModified
();
}
inline
sal_B
ool
IsSaveAlwaysAllowed
()
const
inline
b
ool
IsSaveAlwaysAllowed
()
const
{
return
m_bAlwaysAllowSave
;
}
{
return
m_bAlwaysAllowSave
;
}
inline
void
SetExperimentalMode
(
sal_B
ool
bSet
)
inline
void
SetExperimentalMode
(
b
ool
bSet
)
{
m_bExperimentalMode
=
bSet
;
SetModified
();
}
{
m_bExperimentalMode
=
bSet
;
SetModified
();
}
inline
sal_B
ool
IsExperimentalMode
()
const
inline
b
ool
IsExperimentalMode
()
const
{
return
m_bExperimentalMode
;
}
{
return
m_bExperimentalMode
;
}
inline
void
SetMacroRecorderMode
(
sal_B
ool
bSet
)
inline
void
SetMacroRecorderMode
(
b
ool
bSet
)
{
m_bMacroRecorderMode
=
bSet
;
SetModified
();
}
{
m_bMacroRecorderMode
=
bSet
;
SetModified
();
}
inline
sal_B
ool
IsMacroRecorderMode
()
const
inline
b
ool
IsMacroRecorderMode
()
const
{
return
m_bMacroRecorderMode
;
}
{
return
m_bMacroRecorderMode
;
}
inline
sal_B
ool
IsPluginsEnabled
()
const
inline
b
ool
IsPluginsEnabled
()
const
{
return
m_bPluginsEnabled
;
}
{
return
m_bPluginsEnabled
;
}
inline
sal_B
ool
IsPluginsEnabledReadOnly
()
const
inline
b
ool
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_B
ool
IsGetSymbolsSizeReadOnly
()
inline
b
ool
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_B
ool
IsGetSymbolsStyleReadOnly
()
inline
b
ool
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_B
ool
IsGetToolboxStyleReadOnly
()
inline
b
ool
IsGetToolboxStyleReadOnly
()
{
return
m_bIsToolboxStyleRO
;
}
{
return
m_bIsToolboxStyleRO
;
}
inline
sal_B
ool
UseSystemPrintDialog
()
const
inline
b
ool
UseSystemPrintDialog
()
const
{
return
m_bUseSystemPrintDialog
;
}
{
return
m_bUseSystemPrintDialog
;
}
inline
void
SetUseSystemPrintDialog
(
sal_B
ool
bSet
)
inline
void
SetUseSystemPrintDialog
(
b
ool
bSet
)
{
m_bUseSystemPrintDialog
=
bSet
;
SetModified
();
}
{
m_bUseSystemPrintDialog
=
bSet
;
SetModified
();
}
inline
sal_B
ool
IsUseSystemPrintDialogReadOnly
()
const
inline
b
ool
IsUseSystemPrintDialogReadOnly
()
const
{
return
m_bIsUseSystemPrintDialogRO
;
}
{
return
m_bIsUseSystemPrintDialogRO
;
}
inline
sal_B
ool
ShowLinkWarningDialog
()
const
inline
b
ool
ShowLinkWarningDialog
()
const
{
return
m_bShowLinkWarningDialog
;
}
{
return
m_bShowLinkWarningDialog
;
}
void
SetShowLinkWarningDialog
(
sal_B
ool
bSet
)
void
SetShowLinkWarningDialog
(
b
ool
bSet
)
{
m_bShowLinkWarningDialog
=
bSet
;
SetModified
();
}
{
m_bShowLinkWarningDialog
=
bSet
;
SetModified
();
}
sal_B
ool
IsShowLinkWarningDialogReadOnly
()
const
b
ool
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_F
alse
)
,
m_bUseSystemFileDialog
(
f
alse
)
,
m_bIsUseSystemFileDialogRO
(
sal_F
alse
)
,
m_bIsUseSystemFileDialogRO
(
f
alse
)
,
m_bPluginsEnabled
(
sal_F
alse
)
,
m_bPluginsEnabled
(
f
alse
)
,
m_bIsPluginsEnabledRO
(
sal_F
alse
)
,
m_bIsPluginsEnabledRO
(
f
alse
)
,
m_nSymbolsSize
(
0
)
,
m_nSymbolsSize
(
0
)
,
m_bIsSymbolsSizeRO
(
sal_F
alse
)
,
m_bIsSymbolsSizeRO
(
f
alse
)
,
m_bIsSymbolsStyleRO
(
sal_F
alse
)
,
m_bIsSymbolsStyleRO
(
f
alse
)
,
m_nToolboxStyle
(
1
)
,
m_nToolboxStyle
(
1
)
,
m_bIsToolboxStyleRO
(
sal_F
alse
)
,
m_bIsToolboxStyleRO
(
f
alse
)
,
m_bUseSystemPrintDialog
(
sal_F
alse
)
,
m_bUseSystemPrintDialog
(
f
alse
)
,
m_bIsUseSystemPrintDialogRO
(
sal_F
alse
)
,
m_bIsUseSystemPrintDialogRO
(
f
alse
)
,
m_bShowLinkWarningDialog
(
sal_T
rue
)
,
m_bShowLinkWarningDialog
(
t
rue
)
,
m_bIsShowLinkWarningDialogRO
(
sal_F
alse
)
,
m_bIsShowLinkWarningDialogRO
(
f
alse
)
,
m_bAlwaysAllowSave
(
sal_F
alse
)
,
m_bAlwaysAllowSave
(
f
alse
)
,
m_bExperimentalMode
(
sal_F
alse
)
,
m_bExperimentalMode
(
f
alse
)
,
m_bMacroRecorderMode
(
sal_F
alse
)
,
m_bMacroRecorderMode
(
f
alse
)
,
m_bIconThemeWasSetAutomatically
(
sal_F
alse
)
,
m_bIconThemeWasSetAutomatically
(
f
alse
)
{
{
// 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_B
ool
SvtMiscOptions
::
UseSystemFileDialog
()
const
b
ool
SvtMiscOptions
::
UseSystemFileDialog
()
const
{
{
return
m_pDataContainer
->
UseSystemFileDialog
();
return
m_pDataContainer
->
UseSystemFileDialog
();
}
}
void
SvtMiscOptions
::
SetUseSystemFileDialog
(
sal_B
ool
bEnable
)
void
SvtMiscOptions
::
SetUseSystemFileDialog
(
b
ool
bEnable
)
{
{
m_pDataContainer
->
SetUseSystemFileDialog
(
bEnable
);
m_pDataContainer
->
SetUseSystemFileDialog
(
bEnable
);
}
}
sal_B
ool
SvtMiscOptions
::
IsUseSystemFileDialogReadOnly
()
const
b
ool
SvtMiscOptions
::
IsUseSystemFileDialogReadOnly
()
const
{
{
return
m_pDataContainer
->
IsUseSystemFileDialogReadOnly
();
return
m_pDataContainer
->
IsUseSystemFileDialogReadOnly
();
}
}
sal_B
ool
SvtMiscOptions
::
IsPluginsEnabled
()
const
b
ool
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_B
ool
SvtMiscOptions
::
DisableUICustomization
()
const
b
ool
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_B
ool
SvtMiscOptions
::
UseSystemPrintDialog
()
const
b
ool
SvtMiscOptions
::
UseSystemPrintDialog
()
const
{
{
return
m_pDataContainer
->
UseSystemPrintDialog
();
return
m_pDataContainer
->
UseSystemPrintDialog
();
}
}
void
SvtMiscOptions
::
SetUseSystemPrintDialog
(
sal_B
ool
bEnable
)
void
SvtMiscOptions
::
SetUseSystemPrintDialog
(
b
ool
bEnable
)
{
{
m_pDataContainer
->
SetUseSystemPrintDialog
(
bEnable
);
m_pDataContainer
->
SetUseSystemPrintDialog
(
bEnable
);
}
}
sal_B
ool
SvtMiscOptions
::
ShowLinkWarningDialog
()
const
b
ool
SvtMiscOptions
::
ShowLinkWarningDialog
()
const
{
{
return
m_pDataContainer
->
ShowLinkWarningDialog
();
return
m_pDataContainer
->
ShowLinkWarningDialog
();
}
}
void
SvtMiscOptions
::
SetShowLinkWarningDialog
(
sal_B
ool
bSet
)
void
SvtMiscOptions
::
SetShowLinkWarningDialog
(
b
ool
bSet
)
{
{
m_pDataContainer
->
SetShowLinkWarningDialog
(
bSet
);
m_pDataContainer
->
SetShowLinkWarningDialog
(
bSet
);
}
}
sal_B
ool
SvtMiscOptions
::
IsShowLinkWarningDialogReadOnly
()
const
b
ool
SvtMiscOptions
::
IsShowLinkWarningDialogReadOnly
()
const
{
{
return
m_pDataContainer
->
IsShowLinkWarningDialogReadOnly
();
return
m_pDataContainer
->
IsShowLinkWarningDialogReadOnly
();
}
}
void
SvtMiscOptions
::
SetSaveAlwaysAllowed
(
sal_B
ool
bSet
)
void
SvtMiscOptions
::
SetSaveAlwaysAllowed
(
b
ool
bSet
)
{
{
m_pDataContainer
->
SetSaveAlwaysAllowed
(
bSet
);
m_pDataContainer
->
SetSaveAlwaysAllowed
(
bSet
);
}
}
sal_B
ool
SvtMiscOptions
::
IsSaveAlwaysAllowed
()
const
b
ool
SvtMiscOptions
::
IsSaveAlwaysAllowed
()
const
{
{
return
m_pDataContainer
->
IsSaveAlwaysAllowed
();
return
m_pDataContainer
->
IsSaveAlwaysAllowed
();
}
}
void
SvtMiscOptions
::
SetExperimentalMode
(
sal_B
ool
bSet
)
void
SvtMiscOptions
::
SetExperimentalMode
(
b
ool
bSet
)
{
{
m_pDataContainer
->
SetExperimentalMode
(
bSet
);
m_pDataContainer
->
SetExperimentalMode
(
bSet
);
}
}
sal_B
ool
SvtMiscOptions
::
IsExperimentalMode
()
const
b
ool
SvtMiscOptions
::
IsExperimentalMode
()
const
{
{
return
m_pDataContainer
->
IsExperimentalMode
();
return
m_pDataContainer
->
IsExperimentalMode
();
}
}
void
SvtMiscOptions
::
SetMacroRecorderMode
(
sal_B
ool
bSet
)
void
SvtMiscOptions
::
SetMacroRecorderMode
(
b
ool
bSet
)
{
{
m_pDataContainer
->
SetMacroRecorderMode
(
bSet
);
m_pDataContainer
->
SetMacroRecorderMode
(
bSet
);
}
}
sal_B
ool
SvtMiscOptions
::
IsMacroRecorderMode
()
const
b
ool
SvtMiscOptions
::
IsMacroRecorderMode
()
const
{
{
return
m_pDataContainer
->
IsMacroRecorderMode
();
return
m_pDataContainer
->
IsMacroRecorderMode
();
}
}
...
...
svx/source/dialog/linkwarn.cxx
Dosyayı görüntüle @
b41badb8
...
@@ -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_B
ool
bChecked
=
m_pWarningOnBox
->
IsChecked
();
b
ool
bChecked
=
m_pWarningOnBox
->
IsChecked
();
if
(
aMiscOpt
.
ShowLinkWarningDialog
()
!=
bChecked
)
if
(
aMiscOpt
.
ShowLinkWarningDialog
()
!=
bChecked
)
aMiscOpt
.
SetShowLinkWarningDialog
(
bChecked
);
aMiscOpt
.
SetShowLinkWarningDialog
(
bChecked
);
}
}
...
...
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