Kaydet (Commit) 269bf161 authored tarafından Noel Grandin's avatar Noel Grandin Kaydeden (comit) Noel Grandin

loplugin:unusedmethods framework

Change-Id: Ibfeb0ef753a083f458c84f446f0729f05c73e2d6
Reviewed-on: https://gerrit.libreoffice.org/17060Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst a62129aa
......@@ -81,7 +81,6 @@ class MenuManager : public ::cppu::WeakImplHelper1< css::frame::XStatusListener
private:
void UpdateSpecialFileMenu( Menu* pMenu );
void UpdateSpecialWindowMenu( Menu* pMenu );
void ClearMenuDispatch(const css::lang::EventObject& Source = css::lang::EventObject(),bool _bRemoveOnly = true);
void SetHdl();
void AddMenu(PopupMenu* _pPopupMenu,const OUString& _sItemCommand,sal_uInt16 _nItemId,bool _bDelete,bool _bDeleteChildren);
......
......@@ -89,35 +89,6 @@ class QueryBuilder
resetAll();
}
// returns full query as copy of internal set values
OUString getQuery()
{
OUStringBuffer sCopy( m_sParams );
sCopy.insert( 0, m_sBase );
return sCopy.makeStringAndClear();
}
// set new or change existing base query part
void setBase( const OUString& sBase )
{
m_sBase = sBase;
}
// add new parameter (with optional value) to param list
void addParam( const OUString& sParam, const OUString& sValue = OUString() )
{
m_sParams.append( SEPARATOR_QUERYPARAM );
m_sParams.append( sParam );
if( sValue.getLength() > 0 )
{
m_sParams.append( SEPARATOR_QUERYPARAMVALUE );
m_sParams.append( sValue );
}
}
// forget all setted params and start with empty ones
// Attention: base of query isn't changed!
......@@ -312,22 +283,6 @@ class QueryAnalyzer
}
}
// return type of query. User can decide then, which action should be started.
// For faster work we converted query string into corresponding enum value!
EQuery getQueryType() const { return m_eQuery; }
// access to additional parameter values
// Methods return default of really set values!
sal_uInt32 getIFlags () const { return m_nIFlags; }
sal_uInt32 getEFlags () const { return m_nEFlags; }
ESortProp getSortProp () const { return m_eSortProp; }
bool getDescending () const { return m_bDescending; }
bool getCaseSensitive() const { return m_bCaseSensitive; }
bool getUseOrder () const { return m_bUseOrder; }
bool getDefaultFirst () const { return m_bDefaultFirst; }
// this method checks if given string match any supported query.
// (ignore additional parameters!)
......
......@@ -204,24 +204,18 @@ namespace framework
::com::sun::star::uno::Reference< ::com::sun::star::ui::XUIElement > implts_findElement( const OUString& aName );
void implts_writeNewStateData( const OUString& aName, const ::com::sun::star::uno::Reference< com::sun::star::awt::XWindow >& xWindow );
bool implts_readWindowStateData( const OUString& rName, UIElement& rElementData );
void implts_writeWindowStateData( const OUString& rName, const UIElement& rElementData );
void implts_setElementData( UIElement& rUIElement, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XDockableWindow >& rDockWindow );
void implts_sortUIElements();
void implts_destroyElements();
void implts_toggleFloatingUIElementsVisibility( bool bActive );
void implts_reparentChildWindows();
::com::sun::star::uno::Reference< ::com::sun::star::ui::XUIElement > implts_createDockingWindow( const OUString& aElementName );
bool implts_isEmbeddedLayoutManager() const;
sal_Int16 implts_getCurrentSymbolsSize();
sal_Int16 implts_getCurrentSymbolsStyle();
::com::sun::star::uno::Reference< ::com::sun::star::ui::XUIElement > implts_createElement( const OUString& aName );
// layouting methods
bool implts_resizeContainerWindow( const ::com::sun::star::awt::Size& rContainerSize, const ::com::sun::star::awt::Point& rComponentPos );
::Size implts_getTopBottomDockingAreaSizes();
::Size implts_getContainerWindowOutputSize();
void implts_setDockingAreaWindowSizes( const css::awt::Rectangle& rBorderSpace );
......@@ -255,8 +249,6 @@ namespace framework
void implts_setCurrentUIVisibility( bool bShow );
void implts_notifyListeners(short nEvent, const css::uno::Any& rInfoParam);
DECL_LINK( OptionsChanged, void* );
// OPropertySetHelper
virtual sal_Bool SAL_CALL convertFastPropertyValue ( com::sun::star::uno::Any& aConvertedValue ,
......@@ -282,7 +274,6 @@ namespace framework
sal_Int32 m_nLockCount;
bool m_bActive;
bool m_bInplaceMenuSet;
bool m_bDockingInProgress;
bool m_bMenuVisible;
bool m_bComponentAttached;
bool m_bDoLayout;
......
......@@ -191,9 +191,6 @@ class MenuBarManager : public com::sun::star::frame::XStatusListener
};
void RetrieveShortcuts( std::vector< MenuItemHandler* >& aMenuShortCuts );
void CreatePicklistArguments(
::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aArgsList,
const MenuItemHandler* );
void CheckAndAddMenuExtension( Menu* pMenu );
static void impl_RetrieveShortcutsFromConfiguration( const ::com::sun::star::uno::Reference< ::com::sun::star::ui::XAcceleratorConfiguration >& rAccelCfg,
const ::com::sun::star::uno::Sequence< OUString >& rCommands,
......
......@@ -47,7 +47,6 @@ class MenuBarWrapper : public UIConfigElementWrapperBase,
FWK_DECLARE_XTYPEPROVIDER
MenuBarManager* GetMenuBarManager() const { return static_cast< MenuBarManager* >( m_xMenuBarManager.get() ); }
void InvalidatePopupControllerCache() { m_bRefreshPopupControllerCache = true; }
// XComponent
virtual void SAL_CALL dispose() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
......
......@@ -104,21 +104,16 @@ class FWE_DLLPUBLIC OReadStatusBarDocumentHandler :
private:
OUString getErrorLineString();
class StatusBarHashMap : public std::unordered_map<OUString ,
StatusBar_XML_Entry ,
class StatusBarHashMap : public std::unordered_map<OUString,
StatusBar_XML_Entry,
OUStringHash,
std::equal_to< OUString > >
{
public:
inline void free()
{
StatusBarHashMap().swap( *this );// get rid of reserved capacity
}
};
bool m_bStatusBarStartFound;
bool m_bStatusBarEndFound;
bool m_bStatusBarItemStartFound;
bool m_bStatusBarStartFound;
bool m_bStatusBarEndFound;
bool m_bStatusBarItemStartFound;
StatusBarHashMap m_aStatusBarMap;
::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexContainer > m_aStatusBarItems;
::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XLocator > m_xLocator;
......
......@@ -109,16 +109,11 @@ class FWE_DLLPUBLIC OReadToolBoxDocumentHandler :
private:
OUString getErrorLineString();
class ToolBoxHashMap : public std::unordered_map<OUString ,
ToolBox_XML_Entry ,
class ToolBoxHashMap : public std::unordered_map<OUString,
ToolBox_XML_Entry,
OUStringHash,
std::equal_to< OUString > >
{
public:
inline void free()
{
ToolBoxHashMap().swap( *this );// get rid of reserved capacity
}
};
bool m_bToolBarStartFound : 1;
......
......@@ -212,33 +212,6 @@ class XMLBasedAcceleratorConfiguration : public IStorageListener,
*/
void impl_ts_save(const css::uno::Reference< css::io::XOutputStream >& xStream);
/** @short try to locate and open a sub storage.
@descr It search at the root storage for the specified
sub storage. If it exists - it will be opened.
By default this method tries to open the storage
for reading. But the calli can request a writeable
storage.
@param xRooStorage
used to locate the sub storage.
@param sSubStorage
relativ path of the sub storage.
@param bOutStream
force open of the sub storage in
write mode - instead of read mode, which
is the default.
@return [XInterface]
will be a css::io::XInpoutStream or a css::io::XOutputStream.
Depends from the parameter bWriteable!
*/
css::uno::Reference< css::uno::XInterface > impl_ts_openSubStorage(const css::uno::Reference< css::embed::XStorage >& xRootStorage,
const OUString& sSubStorage ,
bool bOutStream );
/** @short returns a reference to one of our internal cache members.
@descr We implement the copy-on-write pattern. Doing so
......
......@@ -134,17 +134,6 @@ class ActionLockGuard
xLock->removeActionLock();
}
/** @short lock the internal wrapped resource, if its not already done. */
void lock()
{
osl::MutexGuard g(m_mutex);
if (!m_bActionLocked && m_xActionLock.is())
{
m_xActionLock->addActionLock();
m_bActionLocked = m_xActionLock->isActionLocked();
}
}
/** @short unlock the internal wrapped resource, if its not already done. */
void unlock()
{
......
......@@ -414,19 +414,6 @@ private:
void impl_detectTypeAndFilter()
throw(LoadEnvException, css::uno::RuntimeException, std::exception);
/** @short tries to ask user for it's filter decision in case
normal detection failed.
@descr We use a may existing interaction handler to do so.
@return [string]
the type selected by the user.
@attention Internally we update the member m_lMediaDescriptor!
*/
OUString impl_askUserForTypeAndFilterIfAllowed()
throw(LoadEnvException, css::uno::RuntimeException);
/** @short tries to use ContentHandler objects for loading.
@descr It searches for a suitable content handler object, registered
......
......@@ -109,7 +109,6 @@ LayoutManager::LayoutManager( const Reference< XComponentContext >& xContext ) :
, m_nLockCount( 0 )
, m_bActive( false )
, m_bInplaceMenuSet( false )
, m_bDockingInProgress( false )
, m_bMenuVisible( true )
, m_bComponentAttached( false )
, m_bDoLayout( false )
......
......@@ -112,7 +112,6 @@ class ToolbarLayoutManager : public ::cppu::WeakImplHelper3< ::com::sun::star::a
void refreshToolbarsVisibility( bool bAutomaticToolbars );
void setFloatingToolbarsVisibility( bool bVisible );
void setVisible(bool bVisible);
bool isVisible() { return m_bVisible; }
// docking and further functions
bool dockToolbar( const OUString& rResourceURL, ::com::sun::star::ui::DockingArea eDockingArea, const ::com::sun::star::awt::Point& aPos );
......@@ -214,7 +213,6 @@ class ToolbarLayoutManager : public ::cppu::WeakImplHelper3< ::com::sun::star::a
const ::Size& rContainerSize );
void implts_setLayoutDirty();
void implts_setLayoutInProgress( bool bInProgress = true );
bool implts_isLayoutInProgress() const { return m_bLayoutInProgress; }
// lookup/container methods
......
......@@ -55,10 +55,6 @@ class FWE_DLLPUBLIC AddonPopupMenu : public AddonMenu
static bool IsCommandURLPrefix( const OUString& aCmdURL );
void SetCommandURL( const OUString& aCmdURL ) { m_aCommandURL = aCmdURL; }
const OUString& GetCommandURL() const { return m_aCommandURL; }
protected:
void Initialize( const com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue >& rAddonPopupMenuDefinition );
private:
AddonPopupMenu( const com::sun::star::uno::Reference< com::sun::star::frame::XFrame >& rFrame );
......
......@@ -112,15 +112,6 @@ class FWE_DLLPUBLIC AddonsOptions
AddonsOptions();
~AddonsOptions();
/*-****************************************************************************************************
@short clears completely the addons menu
@descr Call this methods to clear the addons menu
To fill it again use AppendItem().
@param "eMenu" select right menu to clear.
*//*-*****************************************************************************************************/
void Clear();
/*-****************************************************************************************************
@short returns if an addons menu is available
@descr Call to retrieve if a addons menu is available
......
......@@ -116,18 +116,10 @@ class FWE_DLLPUBLIC MenuConfiguration
PopupMenu* CreateBookmarkMenu(css::uno::Reference<css::frame::XFrame >& rFrame, const OUString& aURL)
throw (css::lang::WrappedTargetException, css::uno::RuntimeException);
ToolBox* CreateToolBoxFromConfiguration(
::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >& rInputStream )
throw ( ::com::sun::star::lang::WrappedTargetException );
void StoreMenuBarConfigurationToXML( ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexAccess >& rMenuBarConfiguration,
::com::sun::star::uno::Reference< ::com::sun::star::io::XOutputStream >& rOutputStream )
throw (css::lang::WrappedTargetException, css::uno::RuntimeException);
void StoreToolBox( ToolBox* pToolBox,
::com::sun::star::uno::Reference< ::com::sun::star::io::XOutputStream >& rOutputStream )
throw ( ::com::sun::star::lang::WrappedTargetException );
private:
::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext> m_xContext;
};
......
......@@ -158,7 +158,6 @@ class FWE_DLLPUBLIC TitleHelper : private ::cppu::BaseMutex
void impl_appendComponentTitle ( OUStringBuffer& sTitle ,
const css::uno::Reference< css::uno::XInterface >& xComponent);
void impl_appendProductName (OUStringBuffer& sTitle);
void impl_appendProductExtension (OUStringBuffer& sTitle);
void impl_appendModuleName (OUStringBuffer& sTitle);
void impl_appendDebugVersion (OUStringBuffer& sTitle);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment