diff options
author | August Sodora <augsod@gmail.com> | 2011-12-20 15:20:29 -0500 |
---|---|---|
committer | August Sodora <augsod@gmail.com> | 2011-12-20 15:23:34 -0500 |
commit | bbe9cf453c9fd1809e6802e01bf959f7de7e9de9 (patch) | |
tree | 9d2ecfa07d7f3700ec417c64ccd6630453279a64 /unotools/source/config/cmdoptions.cxx | |
parent | 0696c0aa742c57ae93733bd43c694d847c2bcd7e (diff) |
callcatcher: Remove unused code
Diffstat (limited to 'unotools/source/config/cmdoptions.cxx')
-rw-r--r-- | unotools/source/config/cmdoptions.cxx | 109 |
1 files changed, 0 insertions, 109 deletions
diff --git a/unotools/source/config/cmdoptions.cxx b/unotools/source/config/cmdoptions.cxx index e6568bc4d683..e17672b1464d 100644 --- a/unotools/source/config/cmdoptions.cxx +++ b/unotools/source/config/cmdoptions.cxx @@ -26,11 +26,6 @@ * ************************************************************************/ - -//_________________________________________________________________________________________________________________ -// includes -//_________________________________________________________________________________________________________________ - #include <unotools/cmdoptions.hxx> #include <unotools/configmgr.hxx> #include <unotools/configitem.hxx> @@ -47,10 +42,6 @@ #include <algorithm> #include <boost/unordered_map.hpp> -//_________________________________________________________________________________________________________________ -// namespaces -//_________________________________________________________________________________________________________________ - using namespace ::std ; using namespace ::utl ; using namespace ::rtl ; @@ -58,10 +49,6 @@ using namespace ::osl ; using namespace ::com::sun::star::uno ; using namespace ::com::sun::star::beans ; -//_________________________________________________________________________________________________________________ -// const -//_________________________________________________________________________________________________________________ - #define ROOTNODE_CMDOPTIONS OUString(RTL_CONSTASCII_USTRINGPARAM("Office.Commands/Execute" )) #define PATHDELIMITER OUString(RTL_CONSTASCII_USTRINGPARAM("/" )) @@ -73,10 +60,6 @@ using namespace ::com::sun::star::beans ; #define OFFSET_CMD 0 -//_________________________________________________________________________________________________________________ -// private declarations! -//_________________________________________________________________________________________________________________ - // Method to retrieve a hash code from a string. May be we have to change it to decrease collisions in the hash map struct OUStringHashCode { @@ -156,23 +139,11 @@ typedef ::std::vector< ::com::sun::star::uno::WeakReference< ::com::sun::star::f class SvtCommandOptions_Impl : public ConfigItem { - //------------------------------------------------------------------------------------------------------------- - // public methods - //------------------------------------------------------------------------------------------------------------- - public: - //--------------------------------------------------------------------------------------------------------- - // constructor / destructor - //--------------------------------------------------------------------------------------------------------- - SvtCommandOptions_Impl(); ~SvtCommandOptions_Impl(); - //--------------------------------------------------------------------------------------------------------- - // overloaded methods of baseclass - //--------------------------------------------------------------------------------------------------------- - /*-****************************************************************************************************//** @short called for notify of configmanager @descr These method is called from the ConfigManager before application ends or from the @@ -204,10 +175,6 @@ class SvtCommandOptions_Impl : public ConfigItem virtual void Commit(); - //--------------------------------------------------------------------------------------------------------- - // public interface - //--------------------------------------------------------------------------------------------------------- - /*-****************************************************************************************************//** @short base implementation of public interface for "SvtDynamicMenuOptions"! @descr These class is used as static member of "SvtDynamicMenuOptions" ... @@ -221,18 +188,10 @@ class SvtCommandOptions_Impl : public ConfigItem @onerror - *//*-*****************************************************************************************************/ - void Clear ( SvtCommandOptions::CmdOption eCmdOption ); sal_Bool HasEntries ( SvtCommandOptions::CmdOption eOption ) const; sal_Bool Lookup ( SvtCommandOptions::CmdOption eCmdOption, const OUString& ) const; - Sequence< OUString > GetList ( SvtCommandOptions::CmdOption eCmdOption ) const ; - void AddCommand ( SvtCommandOptions::CmdOption eCmdOption, - const OUString& sURL ); void EstablisFrameCallback(const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& xFrame); - //------------------------------------------------------------------------------------------------------------- - // private methods - //------------------------------------------------------------------------------------------------------------- - private: /*-****************************************************************************************************//** @@ -250,19 +209,11 @@ class SvtCommandOptions_Impl : public ConfigItem Sequence< OUString > impl_GetPropertyNames(); - //------------------------------------------------------------------------------------------------------------- - // private member - //------------------------------------------------------------------------------------------------------------- - private: SvtCmdOptions m_aDisabledCommands; SvtFrameVector m_lFrames; }; -//_________________________________________________________________________________________________________________ -// definitions -//_________________________________________________________________________________________________________________ - //***************************************************************************************************************** // constructor //***************************************************************************************************************** @@ -367,25 +318,6 @@ void SvtCommandOptions_Impl::Commit() //***************************************************************************************************************** // public method //***************************************************************************************************************** -void SvtCommandOptions_Impl::Clear( SvtCommandOptions::CmdOption eCmdOption ) -{ - switch( eCmdOption ) - { - case SvtCommandOptions::CMDOPTION_DISABLED: - { - m_aDisabledCommands.Clear(); - SetModified(); - } - break; - - default: - DBG_ASSERT( sal_False, "SvtCommandOptions_Impl::Clear()\nUnknown option type given!\n" ); - } -} - -//***************************************************************************************************************** -// public method -//***************************************************************************************************************** sal_Bool SvtCommandOptions_Impl::HasEntries( SvtCommandOptions::CmdOption eOption ) const { if ( eOption == SvtCommandOptions::CMDOPTION_DISABLED ) @@ -397,28 +329,6 @@ sal_Bool SvtCommandOptions_Impl::HasEntries( SvtCommandOptions::CmdOption eOptio //***************************************************************************************************************** // public method //***************************************************************************************************************** -Sequence< OUString > SvtCommandOptions_Impl::GetList( SvtCommandOptions::CmdOption eCmdOption ) const -{ - Sequence< OUString > lReturn; - - switch( eCmdOption ) - { - case SvtCommandOptions::CMDOPTION_DISABLED: - { - lReturn = m_aDisabledCommands.GetList(); - } - break; - - default: - DBG_ASSERT( sal_False, "SvtCommandOptions_Impl::GetList()\nUnknown option type given!\n" ); - } - - return lReturn; -} - -//***************************************************************************************************************** -// public method -//***************************************************************************************************************** sal_Bool SvtCommandOptions_Impl::Lookup( SvtCommandOptions::CmdOption eCmdOption, const OUString& aCommand ) const { switch( eCmdOption ) @@ -437,25 +347,6 @@ sal_Bool SvtCommandOptions_Impl::Lookup( SvtCommandOptions::CmdOption eCmdOption //***************************************************************************************************************** // public method //***************************************************************************************************************** -void SvtCommandOptions_Impl::AddCommand( SvtCommandOptions::CmdOption eCmdOption, const OUString& sCmd ) -{ - switch( eCmdOption ) - { - case SvtCommandOptions::CMDOPTION_DISABLED: - { - m_aDisabledCommands.AddCommand( sCmd ); - SetModified(); - } - break; - - default: - DBG_ASSERT( sal_False, "SvtCommandOptions_Impl::GetList()\nUnknown option type given!\n" ); - } -} - -//***************************************************************************************************************** -// public method -//***************************************************************************************************************** void SvtCommandOptions_Impl::EstablisFrameCallback(const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& xFrame) { // check if frame already exists inside list |