loplugin:expandablemethods in scaddins..scripting
Change-Id: I6a39184e526c9a41155565e798a7f1f2542985f2 Reviewed-on: https://gerrit.libreoffice.org/30331 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
@@ -655,7 +655,7 @@ BrowseNodeFactoryImpl::createView( sal_Int16 viewType )
|
||||
switch( viewType )
|
||||
{
|
||||
case browse::BrowseNodeFactoryViewTypes::MACROSELECTOR:
|
||||
return getSelectorHierarchy();
|
||||
return new SelectorBrowseNode( m_xComponentContext );
|
||||
case browse::BrowseNodeFactoryViewTypes::MACROORGANIZER:
|
||||
return getOrganizerHierarchy();
|
||||
default:
|
||||
@@ -663,17 +663,6 @@ BrowseNodeFactoryImpl::createView( sal_Int16 viewType )
|
||||
}
|
||||
}
|
||||
|
||||
Reference< browse::XBrowseNode >
|
||||
BrowseNodeFactoryImpl::getSelectorHierarchy()
|
||||
throw (RuntimeException)
|
||||
{
|
||||
/*if ( !m_xSelectorBrowseNode.is() )
|
||||
{
|
||||
m_xSelectorBrowseNode = new SelectorBrowseNode( m_xComponentContext );
|
||||
}*/
|
||||
return new SelectorBrowseNode( m_xComponentContext );
|
||||
}
|
||||
|
||||
Reference< browse::XBrowseNode >
|
||||
BrowseNodeFactoryImpl::getOrganizerHierarchy()
|
||||
throw (RuntimeException)
|
||||
|
||||
@@ -66,11 +66,7 @@ public:
|
||||
virtual css::uno::Reference< css::script::browse::XBrowseNode > SAL_CALL
|
||||
createView( sal_Int16 viewType )
|
||||
throw ( css::uno::RuntimeException, std::exception ) override;
|
||||
private:
|
||||
css::uno::Reference< css::script::browse::XBrowseNode >
|
||||
getSelectorHierarchy()
|
||||
throw ( css::uno::RuntimeException );
|
||||
|
||||
private:
|
||||
css::uno::Reference< css::script::browse::XBrowseNode >
|
||||
getOrganizerHierarchy()
|
||||
throw ( css::uno::RuntimeException );
|
||||
|
||||
@@ -419,7 +419,9 @@ Sequence< Reference< browse::XBrowseNode > > SAL_CALL
|
||||
MasterScriptProvider::getChildNodes()
|
||||
throw ( css::uno::RuntimeException, std::exception )
|
||||
{
|
||||
Sequence< Reference< provider::XScriptProvider > > providers = getAllProviders();
|
||||
if ( !providerCache() )
|
||||
throw RuntimeException( "MasterScriptProvider::getAllProviders, cache not initialised" );
|
||||
Sequence< Reference< provider::XScriptProvider > > providers = providerCache()->getAllProviders();
|
||||
|
||||
sal_Int32 size = providers.getLength();
|
||||
bool hasPkgs = m_xMSPPkg.is();
|
||||
@@ -752,22 +754,6 @@ sal_Bool SAL_CALL MasterScriptProvider::hasElements( ) throw ( RuntimeException
|
||||
}
|
||||
|
||||
|
||||
Sequence< Reference< provider::XScriptProvider > > SAL_CALL
|
||||
MasterScriptProvider::getAllProviders() throw ( css::uno::RuntimeException )
|
||||
{
|
||||
if ( providerCache() )
|
||||
{
|
||||
return providerCache()->getAllProviders();
|
||||
}
|
||||
else
|
||||
{
|
||||
OUString errorMsg(
|
||||
"MasterScriptProvider::getAllProviders, cache not initialised");
|
||||
throw RuntimeException( errorMsg.concat( errorMsg ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
OUString SAL_CALL MasterScriptProvider::getImplementationName( )
|
||||
throw( RuntimeException, std::exception )
|
||||
{
|
||||
|
||||
@@ -101,11 +101,6 @@ public:
|
||||
virtual void SAL_CALL initialize( const css::uno::Sequence < css::uno::Any > & args )
|
||||
throw ( css::uno::Exception, css::uno::RuntimeException, std::exception) override;
|
||||
|
||||
// Public method to return all Language Providers in this MasterScriptProviders
|
||||
// context.
|
||||
css::uno::Sequence< css::uno::Reference< css::script::provider::XScriptProvider > > SAL_CALL
|
||||
getAllProviders() throw ( css::uno::RuntimeException );
|
||||
|
||||
// returns context string for this provider, eg
|
||||
const OUString& getContextString() { return m_sCtxString; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user