Remove unused functions
Change-Id: I0f305ef5b9f13e3516b3bbf45d405fad5115521a
This commit is contained in:
parent
3fd2c49080
commit
4198039441
@ -309,7 +309,6 @@ class AddonsOptions_Impl : public ConfigItem
|
|||||||
bool AppendPopupMenu( Sequence< PropertyValue >& aTargetPopupMenu, const Sequence< PropertyValue >& rSourcePopupMenu );
|
bool AppendPopupMenu( Sequence< PropertyValue >& aTargetPopupMenu, const Sequence< PropertyValue >& rSourcePopupMenu );
|
||||||
bool ReadToolBarItem( const OUString& aToolBarItemNodeName, Sequence< PropertyValue >& aToolBarItem );
|
bool ReadToolBarItem( const OUString& aToolBarItemNodeName, Sequence< PropertyValue >& aToolBarItem );
|
||||||
bool ReadStatusBarItem( const OUString& aStatusbarItemNodeName, Sequence< PropertyValue >& aStatusbarItem );
|
bool ReadStatusBarItem( const OUString& aStatusbarItemNodeName, Sequence< PropertyValue >& aStatusbarItem );
|
||||||
bool ReadImagesItem( const OUString& aImagesItemNodeName, Sequence< PropertyValue >& aImagesItem );
|
|
||||||
ImageEntry* ReadImageData( const OUString& aImagesNodeName );
|
ImageEntry* ReadImageData( const OUString& aImagesNodeName );
|
||||||
void ReadAndAssociateImages( const OUString& aURL, const OUString& aImageId );
|
void ReadAndAssociateImages( const OUString& aURL, const OUString& aImageId );
|
||||||
Image ReadImageFromURL( const OUString& aURL );
|
Image ReadImageFromURL( const OUString& aURL );
|
||||||
@ -329,8 +328,6 @@ class AddonsOptions_Impl : public ConfigItem
|
|||||||
// private member
|
// private member
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ImageEntry* ReadOptionalImageData( const OUString& aMenuNodeName );
|
|
||||||
|
|
||||||
sal_Int32 m_nRootAddonPopupMenuId;
|
sal_Int32 m_nRootAddonPopupMenuId;
|
||||||
OUString m_aPropNames[PROPERTYCOUNT_INDEX];
|
OUString m_aPropNames[PROPERTYCOUNT_INDEX];
|
||||||
OUString m_aPropImagesNames[PROPERTYCOUNT_IMAGES];
|
OUString m_aPropImagesNames[PROPERTYCOUNT_IMAGES];
|
||||||
|
@ -63,10 +63,6 @@ namespace framework
|
|||||||
osl_atomic_decrement( &m_refCount );
|
osl_atomic_decrement( &m_refCount );
|
||||||
}
|
}
|
||||||
|
|
||||||
UndoManagerContextListener():m_nRelativeContextDepth(0), m_documentDisposed(false)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void finish()
|
void finish()
|
||||||
{
|
{
|
||||||
OSL_ENSURE( m_nRelativeContextDepth >= 0, "UndoManagerContextListener: more contexts left than entered?" );
|
OSL_ENSURE( m_nRelativeContextDepth >= 0, "UndoManagerContextListener: more contexts left than entered?" );
|
||||||
|
@ -118,7 +118,6 @@ public:
|
|||||||
DispatchParams();
|
DispatchParams();
|
||||||
DispatchParams(const ::comphelper::SequenceAsHashMap& lArgs ,
|
DispatchParams(const ::comphelper::SequenceAsHashMap& lArgs ,
|
||||||
const css::uno::Reference< css::uno::XInterface >& xOwner);
|
const css::uno::Reference< css::uno::XInterface >& xOwner);
|
||||||
DispatchParams(const DispatchParams& rCopy);
|
|
||||||
~DispatchParams();
|
~DispatchParams();
|
||||||
|
|
||||||
DispatchParams& operator=(const DispatchParams& rCopy);
|
DispatchParams& operator=(const DispatchParams& rCopy);
|
||||||
@ -1234,14 +1233,6 @@ DispatchParams::DispatchParams(const ::comphelper::SequenceAsHashMap&
|
|||||||
m_xHoldRefForAsyncOpAlive = xOwner;
|
m_xHoldRefForAsyncOpAlive = xOwner;
|
||||||
};
|
};
|
||||||
|
|
||||||
DispatchParams::DispatchParams(const DispatchParams& rCopy)
|
|
||||||
{
|
|
||||||
m_xProgress = rCopy.m_xProgress;
|
|
||||||
m_sSavePath = rCopy.m_sSavePath;
|
|
||||||
m_nWorkingEntryID = rCopy.m_nWorkingEntryID;
|
|
||||||
m_xHoldRefForAsyncOpAlive = rCopy.m_xHoldRefForAsyncOpAlive;
|
|
||||||
};
|
|
||||||
|
|
||||||
DispatchParams::~DispatchParams()
|
DispatchParams::~DispatchParams()
|
||||||
{};
|
{};
|
||||||
|
|
||||||
|
@ -338,11 +338,8 @@ private:
|
|||||||
void implts_setIconOnWindow ( );
|
void implts_setIconOnWindow ( );
|
||||||
void implts_startWindowListening ( );
|
void implts_startWindowListening ( );
|
||||||
void implts_stopWindowListening ( );
|
void implts_stopWindowListening ( );
|
||||||
void implts_saveWindowAttributes ( );
|
|
||||||
void implts_checkSuicide ( );
|
void implts_checkSuicide ( );
|
||||||
void implts_forgetSubFrames ( );
|
void implts_forgetSubFrames ( );
|
||||||
DECL_LINK( implts_windowClosing, void* );
|
|
||||||
css::uno::Reference< css::awt::XTopWindow > impl_searchTopWindow ( const css::uno::Reference< css::awt::XWindow >& xWindow );
|
|
||||||
|
|
||||||
// non threadsafe
|
// non threadsafe
|
||||||
void impl_checkMenuCloser ( );
|
void impl_checkMenuCloser ( );
|
||||||
@ -418,36 +415,6 @@ private:
|
|||||||
protected:
|
protected:
|
||||||
|
|
||||||
FrameContainer m_aChildFrameContainer; /// array of child frames
|
FrameContainer m_aChildFrameContainer; /// array of child frames
|
||||||
|
|
||||||
inline css::uno::Reference< css::uno::XComponentContext > impl_getComponentContext()
|
|
||||||
{
|
|
||||||
SolarMutexGuard g;
|
|
||||||
return m_xContext;
|
|
||||||
}
|
|
||||||
|
|
||||||
inline OUString impl_getName()
|
|
||||||
{
|
|
||||||
SolarMutexGuard g;
|
|
||||||
return m_sName;
|
|
||||||
}
|
|
||||||
|
|
||||||
inline css::uno::Reference< css::awt::XWindow > impl_getContainerWindow()
|
|
||||||
{
|
|
||||||
SolarMutexGuard g;
|
|
||||||
return m_xContainerWindow;
|
|
||||||
}
|
|
||||||
|
|
||||||
inline css::uno::Reference< css::frame::XDispatchProvider > impl_getDispatchHelper()
|
|
||||||
{
|
|
||||||
SolarMutexGuard g;
|
|
||||||
return m_xDispatchHelper;
|
|
||||||
}
|
|
||||||
|
|
||||||
inline css::uno::Reference< css::frame::XFramesSupplier > impl_getParent()
|
|
||||||
{
|
|
||||||
SolarMutexGuard g;
|
|
||||||
return m_xParent;
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
css::uno::WeakReference< css::frame::XFrame2 > Frame::m_xCloserFrame = css::uno::WeakReference< css::frame::XFrame2 >();
|
css::uno::WeakReference< css::frame::XFrame2 > Frame::m_xCloserFrame = css::uno::WeakReference< css::frame::XFrame2 >();
|
||||||
|
@ -153,8 +153,6 @@ public:
|
|||||||
// XStatusListener
|
// XStatusListener
|
||||||
virtual void SAL_CALL statusChanged(const com::sun::star::frame::FeatureStateEvent& event)
|
virtual void SAL_CALL statusChanged(const com::sun::star::frame::FeatureStateEvent& event)
|
||||||
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
||||||
|
|
||||||
void doSaveImpl( bool bShutdown, bool bCancelable ) throw (css::uno::RuntimeException);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
SessionListener::SessionListener(const css::uno::Reference< css::uno::XComponentContext >& rxContext )
|
SessionListener::SessionListener(const css::uno::Reference< css::uno::XComponentContext >& rxContext )
|
||||||
|
@ -107,24 +107,8 @@ struct SubstituteRule
|
|||||||
EnvironmentType aEnvType;
|
EnvironmentType aEnvType;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct SubstitutePathNotify
|
typedef boost::unordered_map<OUString, SubstituteRule, OUStringHash>
|
||||||
{
|
SubstituteVariables;
|
||||||
SubstitutePathNotify() {};
|
|
||||||
|
|
||||||
const com::sun::star::uno::Sequence<OUString> aPropertyNames;
|
|
||||||
};
|
|
||||||
|
|
||||||
class SubstituteVariables : public ::boost::unordered_map< OUString,
|
|
||||||
SubstituteRule,
|
|
||||||
OUStringHash,
|
|
||||||
::std::equal_to< OUString > >
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
inline void free()
|
|
||||||
{
|
|
||||||
SubstituteVariables().swap( *this );
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
typedef std::vector< SubstituteRule > SubstituteRuleVector;
|
typedef std::vector< SubstituteRule > SubstituteRuleVector;
|
||||||
class SubstitutePathVariables_Impl : public utl::ConfigItem
|
class SubstitutePathVariables_Impl : public utl::ConfigItem
|
||||||
@ -298,16 +282,8 @@ protected:
|
|||||||
throw (::com::sun::star::container::NoSuchElementException, ::com::sun::star::uno::RuntimeException);
|
throw (::com::sun::star::container::NoSuchElementException, ::com::sun::star::uno::RuntimeException);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
class VarNameToIndexMap : public boost::unordered_map< OUString,
|
typedef boost::unordered_map<OUString, PreDefVariable, OUStringHash>
|
||||||
PreDefVariable,
|
VarNameToIndexMap;
|
||||||
OUStringHash,
|
|
||||||
::std::equal_to< OUString > >
|
|
||||||
{
|
|
||||||
inline void free()
|
|
||||||
{
|
|
||||||
VarNameToIndexMap().swap( *this );
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
VarNameToIndexMap m_aPreDefVarMap; // Mapping from pre-def variable names to enum for array access
|
VarNameToIndexMap m_aPreDefVarMap; // Mapping from pre-def variable names to enum for array access
|
||||||
SubstituteVariables m_aSubstVarMap; // Active rule set map indexed by variable name!
|
SubstituteVariables m_aSubstVarMap; // Active rule set map indexed by variable name!
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
#include <vcl/status.hxx>
|
#include <vcl/status.hxx>
|
||||||
#include <toolkit/helper/convert.hxx>
|
#include <toolkit/helper/convert.hxx>
|
||||||
|
|
||||||
|
#include <boost/noncopyable.hpp>
|
||||||
#include <cppuhelper/supportsservice.hxx>
|
#include <cppuhelper/supportsservice.hxx>
|
||||||
#include <toolkit/helper/vclunohelper.hxx>
|
#include <toolkit/helper/vclunohelper.hxx>
|
||||||
#include <com/sun/star/awt/PopupMenu.hpp>
|
#include <com/sun/star/awt/PopupMenu.hpp>
|
||||||
@ -76,7 +77,8 @@ class SvtLanguageTable;
|
|||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
class LangSelectionStatusbarController : public svt::StatusbarController
|
class LangSelectionStatusbarController:
|
||||||
|
public svt::StatusbarController, private boost::noncopyable
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit LangSelectionStatusbarController( const css::uno::Reference< css::uno::XComponentContext >& xContext );
|
explicit LangSelectionStatusbarController( const css::uno::Reference< css::uno::XComponentContext >& xContext );
|
||||||
@ -117,8 +119,6 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
virtual ~LangSelectionStatusbarController() {}
|
virtual ~LangSelectionStatusbarController() {}
|
||||||
LangSelectionStatusbarController(LangSelectionStatusbarController &); // not defined
|
|
||||||
void operator =(LangSelectionStatusbarController &); // not defined
|
|
||||||
|
|
||||||
bool m_bShowMenu; // if the menu is to be displayed or not (depending on the selected object/text)
|
bool m_bShowMenu; // if the menu is to be displayed or not (depending on the selected object/text)
|
||||||
sal_Int16 m_nScriptType; // the flags for the different script types available in the selection, LATIN = 0x0001, ASIAN = 0x0002, COMPLEX = 0x0004
|
sal_Int16 m_nScriptType; // the flags for the different script types available in the selection, LATIN = 0x0001, ASIAN = 0x0002, COMPLEX = 0x0004
|
||||||
|
@ -119,20 +119,6 @@ static const sal_Int32 LEN_DESCRIPTOR_ENABLED = 7;
|
|||||||
|
|
||||||
const sal_uInt16 ADDONMENU_MERGE_ITEMID_START = 1500;
|
const sal_uInt16 ADDONMENU_MERGE_ITEMID_START = 1500;
|
||||||
|
|
||||||
class StringLength : public ::cppu::WeakImplHelper1< ::com::sun::star::util::XStringWidth >
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
StringLength() {}
|
|
||||||
virtual ~StringLength() {}
|
|
||||||
|
|
||||||
// XStringWidth
|
|
||||||
sal_Int32 SAL_CALL queryStringWidth( const OUString& aString )
|
|
||||||
throw (RuntimeException, std::exception) SAL_OVERRIDE
|
|
||||||
{
|
|
||||||
return aString.getLength();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
namespace framework
|
namespace framework
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -131,7 +131,6 @@ class ConfigurationAccess_UICommand : // Order is necessary for right initializa
|
|||||||
Any getSequenceFromCache( const OUString& aCommandURL );
|
Any getSequenceFromCache( const OUString& aCommandURL );
|
||||||
Any getInfoFromCommand( const OUString& rCommandURL );
|
Any getInfoFromCommand( const OUString& rCommandURL );
|
||||||
void fillInfoFromResult( CmdToInfoMap& rCmdInfo, const OUString& aLabel );
|
void fillInfoFromResult( CmdToInfoMap& rCmdInfo, const OUString& aLabel );
|
||||||
Any getUILabelFromCommand( const OUString& rCommandURL );
|
|
||||||
Sequence< OUString > getAllCommands();
|
Sequence< OUString > getAllCommands();
|
||||||
bool fillCache();
|
bool fillCache();
|
||||||
bool addGenericInfoToCache();
|
bool addGenericInfoToCache();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user