diff options
Diffstat (limited to 'svtools/source/config/miscopt.cxx')
-rw-r--r-- | svtools/source/config/miscopt.cxx | 140 |
1 files changed, 70 insertions, 70 deletions
diff --git a/svtools/source/config/miscopt.cxx b/svtools/source/config/miscopt.cxx index 8d481799789f..7ec66b1f1329 100644 --- a/svtools/source/config/miscopt.cxx +++ b/svtools/source/config/miscopt.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -29,7 +29,7 @@ // MARKER(update_precomp.py): autogen include statement, do not remove #include "precompiled_svtools.hxx" //_________________________________________________________________________________________________________________ -// includes +// includes //_________________________________________________________________________________________________________________ #include <svtools/miscopt.hxx> @@ -50,41 +50,41 @@ #include <vcl/svapp.hxx> //_________________________________________________________________________________________________________________ -// namespaces +// namespaces //_________________________________________________________________________________________________________________ -using namespace ::utl ; -using namespace ::rtl ; -using namespace ::osl ; -using namespace ::com::sun::star::uno ; +using namespace ::utl ; +using namespace ::rtl ; +using namespace ::osl ; +using namespace ::com::sun::star::uno ; using namespace ::com::sun::star; //_________________________________________________________________________________________________________________ -// const +// const //_________________________________________________________________________________________________________________ -#define ASCII_STR(s) OUString( RTL_CONSTASCII_USTRINGPARAM(s) ) -#define ROOTNODE_MISC ASCII_STR("Office.Common/Misc") -#define DEFAULT_PLUGINSENABLED sal_True; - -#define PROPERTYNAME_PLUGINSENABLED ASCII_STR("PluginsEnabled") -#define PROPERTYHANDLE_PLUGINSENABLED 0 -#define PROPERTYNAME_SYMBOLSET ASCII_STR("SymbolSet") -#define PROPERTYHANDLE_SYMBOLSET 1 -#define PROPERTYNAME_TOOLBOXSTYLE ASCII_STR("ToolboxStyle") -#define PROPERTYHANDLE_TOOLBOXSTYLE 2 -#define PROPERTYNAME_USESYSTEMFILEDIALOG ASCII_STR("UseSystemFileDialog") -#define PROPERTYHANDLE_USESYSTEMFILEDIALOG 3 -#define PROPERTYNAME_SYMBOLSTYLE ASCII_STR("SymbolStyle") -#define PROPERTYHANDLE_SYMBOLSTYLE 4 -#define PROPERTYNAME_USESYSTEMPRINTDIALOG ASCII_STR("UseSystemPrintDialog") -#define PROPERTYHANDLE_USESYSTEMPRINTDIALOG 5 +#define ASCII_STR(s) OUString( RTL_CONSTASCII_USTRINGPARAM(s) ) +#define ROOTNODE_MISC ASCII_STR("Office.Common/Misc") +#define DEFAULT_PLUGINSENABLED sal_True; + +#define PROPERTYNAME_PLUGINSENABLED ASCII_STR("PluginsEnabled") +#define PROPERTYHANDLE_PLUGINSENABLED 0 +#define PROPERTYNAME_SYMBOLSET ASCII_STR("SymbolSet") +#define PROPERTYHANDLE_SYMBOLSET 1 +#define PROPERTYNAME_TOOLBOXSTYLE ASCII_STR("ToolboxStyle") +#define PROPERTYHANDLE_TOOLBOXSTYLE 2 +#define PROPERTYNAME_USESYSTEMFILEDIALOG ASCII_STR("UseSystemFileDialog") +#define PROPERTYHANDLE_USESYSTEMFILEDIALOG 3 +#define PROPERTYNAME_SYMBOLSTYLE ASCII_STR("SymbolStyle") +#define PROPERTYHANDLE_SYMBOLSTYLE 4 +#define PROPERTYNAME_USESYSTEMPRINTDIALOG ASCII_STR("UseSystemPrintDialog") +#define PROPERTYHANDLE_USESYSTEMPRINTDIALOG 5 #define PROPERTYNAME_TRYODMADIALOG ASCII_STR("TryODMADialog") #define PROPERTYHANDLE_TRYODMADIALOG 6 -#define PROPERTYNAME_SHOWLINKWARNINGDIALOG ASCII_STR("ShowLinkWarningDialog") +#define PROPERTYNAME_SHOWLINKWARNINGDIALOG ASCII_STR("ShowLinkWarningDialog") #define PROPERTYHANDLE_SHOWLINKWARNINGDIALOG 7 -#define PROPERTYNAME_DISABLEUICUSTOMIZATION ASCII_STR("DisableUICustomization") -#define PROPERTYHANDLE_DISABLEUICUSTOMIZATION 8 +#define PROPERTYNAME_DISABLEUICUSTOMIZATION ASCII_STR("DisableUICustomization") +#define PROPERTYHANDLE_DISABLEUICUSTOMIZATION 8 #define PROPERTYNAME_ALWAYSALLOWSAVE ASCII_STR("AlwaysAllowSave") #define PROPERTYHANDLE_ALWAYSALLOWSAVE 9 #define PROPERTYNAME_EXPERIMENTALMODE ASCII_STR("ExperimentalMode") @@ -92,18 +92,18 @@ using namespace ::com::sun::star; #define PROPERTYCOUNT 11 -#define VCL_TOOLBOX_STYLE_FLAT ((USHORT)0x0004) // from <vcl/toolbox.hxx> +#define VCL_TOOLBOX_STYLE_FLAT ((USHORT)0x0004) // from <vcl/toolbox.hxx> DECLARE_LIST( LinkList, Link * ) //_________________________________________________________________________________________________________________ -// private declarations! +// private declarations! //_________________________________________________________________________________________________________________ class SvtMiscOptions_Impl : public ConfigItem { //------------------------------------------------------------------------------------------------------------- - // private member + // private member //------------------------------------------------------------------------------------------------------------- private: @@ -128,34 +128,34 @@ class SvtMiscOptions_Impl : public ConfigItem sal_Bool m_bExperimentalMode; //------------------------------------------------------------------------------------------------------------- - // public methods + // public methods //------------------------------------------------------------------------------------------------------------- public: //--------------------------------------------------------------------------------------------------------- - // constructor / destructor + // constructor / destructor //--------------------------------------------------------------------------------------------------------- SvtMiscOptions_Impl(); ~SvtMiscOptions_Impl(); //--------------------------------------------------------------------------------------------------------- - // overloaded methods of baseclass + // overloaded methods of baseclass //--------------------------------------------------------------------------------------------------------- /*-****************************************************************************************************//** - @short called for notify of configmanager - @descr These method is called from the ConfigManager before application ends or from the + @short called for notify of configmanager + @descr These method is called from the ConfigManager before application ends or from the PropertyChangeListener if the sub tree broadcasts changes. You must update your internal values. - @seealso baseclass ConfigItem + @seealso baseclass ConfigItem - @param "seqPropertyNames" is the list of properties which should be updated. - @return - + @param "seqPropertyNames" is the list of properties which should be updated. + @return - - @onerror - + @onerror - *//*-*****************************************************************************************************/ virtual void Notify( const Sequence< OUString >& seqPropertyNames ); @@ -167,22 +167,22 @@ class SvtMiscOptions_Impl : public ConfigItem void Load( const Sequence< OUString >& rPropertyNames ); /*-****************************************************************************************************//** - @short write changes to configuration - @descr These method writes the changed values into the sub tree + @short write changes to configuration + @descr These method writes the changed values into the sub tree and should always called in our destructor to guarantee consistency of config data. - @seealso baseclass ConfigItem + @seealso baseclass ConfigItem - @param - - @return - + @param - + @return - - @onerror - + @onerror - *//*-*****************************************************************************************************/ virtual void Commit(); //--------------------------------------------------------------------------------------------------------- - // public interface + // public interface //--------------------------------------------------------------------------------------------------------- inline sal_Bool UseSystemFileDialog() const @@ -280,22 +280,22 @@ class SvtMiscOptions_Impl : public ConfigItem void CallListeners(); //------------------------------------------------------------------------------------------------------------- - // private methods + // private methods //------------------------------------------------------------------------------------------------------------- private: /*-****************************************************************************************************//** - @short return list of key names of ouer configuration management which represent oue module tree - @descr These methods return a static const list of key names. We need it to get needed values from our + @short return list of key names of ouer configuration management which represent oue module tree + @descr These methods return a static const list of key names. We need it to get needed values from our configuration management. - @seealso - + @seealso - - @param - - @return A list of needed configuration keys is returned. + @param - + @return A list of needed configuration keys is returned. - @onerror - + @onerror - *//*-*****************************************************************************************************/ static Sequence< OUString > GetPropertyNames(); @@ -305,7 +305,7 @@ class SvtMiscOptions_Impl : public ConfigItem }; //***************************************************************************************************************** -// constructor +// constructor //***************************************************************************************************************** SvtMiscOptions_Impl::SvtMiscOptions_Impl() // Init baseclasses first @@ -331,7 +331,7 @@ SvtMiscOptions_Impl::SvtMiscOptions_Impl() { // Use our static list of configuration keys to get his values. - Sequence< OUString > seqNames = GetPropertyNames ( ); + Sequence< OUString > seqNames = GetPropertyNames ( ); Load( seqNames ); Sequence< Any > seqValues = GetProperties ( seqNames ); Sequence< sal_Bool > seqRO = GetReadOnlyStates ( seqNames ); @@ -460,7 +460,7 @@ SvtMiscOptions_Impl::SvtMiscOptions_Impl() } //***************************************************************************************************************** -// destructor +// destructor //***************************************************************************************************************** SvtMiscOptions_Impl::~SvtMiscOptions_Impl() { @@ -664,7 +664,7 @@ void SvtMiscOptions_Impl::SetPluginsEnabled( sal_Bool bEnable ) } //***************************************************************************************************************** -// public method +// public method //***************************************************************************************************************** void SvtMiscOptions_Impl::Notify( const Sequence< OUString >& rPropertyNames ) { @@ -673,14 +673,14 @@ void SvtMiscOptions_Impl::Notify( const Sequence< OUString >& rPropertyNames ) } //***************************************************************************************************************** -// public method +// public method //***************************************************************************************************************** void SvtMiscOptions_Impl::Commit() { // Get names of supported properties, create a list for values and copy current values to it. - Sequence< OUString > seqNames = GetPropertyNames (); - sal_Int32 nCount = seqNames.getLength(); - Sequence< Any > seqValues ( nCount ); + Sequence< OUString > seqNames = GetPropertyNames (); + sal_Int32 nCount = seqNames.getLength(); + Sequence< Any > seqValues ( nCount ); for( sal_Int32 nProperty=0; nProperty<nCount; ++nProperty ) { switch( nProperty ) @@ -763,7 +763,7 @@ void SvtMiscOptions_Impl::Commit() } //***************************************************************************************************************** -// private method +// private method //***************************************************************************************************************** Sequence< OUString > SvtMiscOptions_Impl::GetPropertyNames() { @@ -790,15 +790,15 @@ Sequence< OUString > SvtMiscOptions_Impl::GetPropertyNames() } //***************************************************************************************************************** -// initialize static member -// DON'T DO IT IN YOUR HEADER! -// see definition for further informations +// initialize static member +// DON'T DO IT IN YOUR HEADER! +// see definition for further informations //***************************************************************************************************************** -SvtMiscOptions_Impl* SvtMiscOptions::m_pDataContainer = NULL ; -sal_Int32 SvtMiscOptions::m_nRefCount = 0 ; +SvtMiscOptions_Impl* SvtMiscOptions::m_pDataContainer = NULL ; +sal_Int32 SvtMiscOptions::m_nRefCount = 0 ; //***************************************************************************************************************** -// constructor +// constructor //***************************************************************************************************************** SvtMiscOptions::SvtMiscOptions() { @@ -816,7 +816,7 @@ SvtMiscOptions::SvtMiscOptions() } //***************************************************************************************************************** -// destructor +// destructor //***************************************************************************************************************** SvtMiscOptions::~SvtMiscOptions() { @@ -1007,7 +1007,7 @@ sal_Bool SvtMiscOptions::IsExperimentalMode() const } //***************************************************************************************************************** -// private method +// private method //***************************************************************************************************************** Mutex & SvtMiscOptions::GetInitMutex() { |