New loplugin:dynexcspec: Add @throws documentation, scripting
Change-Id: I3a3f8ad12bad448f0ea2beb698cf4e6636d4595a
This commit is contained in:
@@ -52,6 +52,7 @@ namespace dlgprov
|
||||
ListenerHash listenersForTypes;
|
||||
css::uno::Reference< css::uno::XComponentContext > m_xContext;
|
||||
css::uno::Reference< css::script::XEventAttacher > m_xEventAttacher;
|
||||
/// @throws css::uno::RuntimeException
|
||||
css::uno::Reference< css::script::XScriptListener > getScriptListenerForKey( const OUString& sScriptName ) throw ( css::uno::RuntimeException );
|
||||
css::uno::Reference< css::script::XScriptEventsSupplier > getFakeVbaEventsSupplier( const css::uno::Reference< css::awt::XControl>& xControl, OUString& sCodeName );
|
||||
void nestedAttachEvents( const css::uno::Sequence< css::uno::Reference< css::uno::XInterface > >& Objects, const css::uno::Any& Helper, OUString& sDialogCodeName );
|
||||
|
@@ -54,6 +54,7 @@ namespace dlgprov
|
||||
|
||||
css::uno::Reference< css::container::XNameContainer > lcl_createControlModel(const css::uno::Reference< css::uno::XComponentContext >& i_xContext);
|
||||
css::uno::Reference< css::resource::XStringResourceManager > lcl_getStringResourceManager(const css::uno::Reference< css::uno::XComponentContext >& i_xContext,const OUString& i_sURL);
|
||||
/// @throws css::uno::Exception
|
||||
css::uno::Reference< css::container::XNameContainer > lcl_createDialogModel(
|
||||
const css::uno::Reference< css::uno::XComponentContext >& i_xContext,
|
||||
const css::uno::Reference< css::io::XInputStream >& xInput,
|
||||
@@ -94,13 +95,17 @@ namespace dlgprov
|
||||
css::uno::Reference< css::beans::XIntrospectionAccess > inspectHandler(
|
||||
const css::uno::Reference< css::uno::XInterface >& rxHandler );
|
||||
// helper methods
|
||||
/// @throws css::uno::Exception
|
||||
css::uno::Reference< css::container::XNameContainer > createDialogModel(
|
||||
const css::uno::Reference< css::io::XInputStream >& xInput,
|
||||
const css::uno::Reference< css::resource::XStringResourceManager >& xStringResourceManager,
|
||||
const css::uno::Any &aDialogSourceURL) throw ( css::uno::Exception );
|
||||
/// @throws css::uno::Exception
|
||||
css::uno::Reference< css::awt::XControlModel > createDialogModelForBasic() throw ( css::uno::Exception );
|
||||
|
||||
// XDialogProvider / XDialogProvider2 impl method
|
||||
/// @throws css::lang::IllegalArgumentException
|
||||
/// @throws css::uno::RuntimeException
|
||||
css::uno::Reference < css::awt::XControl > SAL_CALL createDialogImpl(
|
||||
const OUString& URL,
|
||||
const css::uno::Reference< css::uno::XInterface >& xHandler,
|
||||
|
@@ -91,6 +91,7 @@ public:
|
||||
static OUString impl_getStaticImplementationName();
|
||||
|
||||
/* Helper for registry */
|
||||
/// @throws css::uno::RuntimeException
|
||||
static css::uno::Reference < css::uno::XInterface > SAL_CALL
|
||||
impl_createInstance(
|
||||
const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager )
|
||||
|
@@ -67,6 +67,7 @@ public:
|
||||
createView( sal_Int16 viewType )
|
||||
throw ( css::uno::RuntimeException, std::exception ) override;
|
||||
private:
|
||||
/// @throws css::uno::RuntimeException
|
||||
css::uno::Reference< css::script::browse::XBrowseNode >
|
||||
getOrganizerHierarchy()
|
||||
throw ( css::uno::RuntimeException );
|
||||
|
@@ -49,6 +49,7 @@ class MasterScriptProvider :
|
||||
public t_helper
|
||||
{
|
||||
public:
|
||||
/// @throws css::uno::RuntimeException
|
||||
explicit MasterScriptProvider(
|
||||
const css::uno::Reference< css::uno::XComponentContext >
|
||||
& xContext ) throw( css::uno::RuntimeException );
|
||||
|
@@ -52,20 +52,25 @@ class ProviderCache
|
||||
{
|
||||
|
||||
public:
|
||||
/// @throws css::uno::RuntimeException
|
||||
ProviderCache( const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Sequence< css::uno::Any >& scriptContext )
|
||||
throw ( css::uno::RuntimeException );
|
||||
/// @throws css::uno::RuntimeException
|
||||
ProviderCache( const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Sequence< css::uno::Any >& scriptContext,
|
||||
const css::uno::Sequence< OUString >& blackList )
|
||||
throw ( css::uno::RuntimeException );
|
||||
~ProviderCache();
|
||||
css::uno::Reference< css::script::provider::XScriptProvider >
|
||||
getProvider( const OUString& providerName );
|
||||
/// @throws css::uno::RuntimeException
|
||||
css::uno::Sequence < css::uno::Reference< css::script::provider::XScriptProvider > >
|
||||
getAllProviders() throw ( css::uno::RuntimeException );
|
||||
private:
|
||||
/// @throws css::uno::RuntimeException
|
||||
void populateCache()
|
||||
throw ( css::uno::RuntimeException );
|
||||
|
||||
/// @throws css::uno::RuntimeException
|
||||
css::uno::Reference< css::script::provider::XScriptProvider >
|
||||
createProvider( ProviderDetails& details ) throw ( css::uno::RuntimeException );
|
||||
bool isInBlackList( const OUString& serviceName )
|
||||
|
@@ -56,7 +56,7 @@ private:
|
||||
static OUString getLanguagePath(const OUString& rLanguagePart);
|
||||
|
||||
public:
|
||||
|
||||
/// @throws css::uno::RuntimeException
|
||||
explicit ScriptingFrameworkURIHelper(
|
||||
const css::uno::Reference< css::uno::XComponentContext >& xContext )
|
||||
throw( css::uno::RuntimeException );
|
||||
|
@@ -117,17 +117,21 @@ protected:
|
||||
const static sal_Int32 UNIQUE_NUMBER_NEEDS_INITIALISATION = -1;
|
||||
|
||||
// Checks read only status and throws exception if it's true
|
||||
/// @throws css::lang::NoSupportException
|
||||
void implCheckReadOnly( const sal_Char* pExceptionMsg )
|
||||
throw (css::lang::NoSupportException);
|
||||
|
||||
// Returns the LocalItem for a given locale, if it exists, otherwise NULL
|
||||
// This method compares the locales exactly, no closest match search is performed
|
||||
/// @throws css::lang::IllegalArgumentException
|
||||
LocaleItem* getItemForLocale( const css::lang::Locale& locale, bool bException )
|
||||
throw (css::lang::IllegalArgumentException);
|
||||
|
||||
// Returns the LocalItem for a given locale, if it exists, otherwise NULL
|
||||
// This method performs a closest match search, at least the language must match
|
||||
LocaleItem* getClosestMatchItemForLocale( const css::lang::Locale& locale );
|
||||
/// @throws css::lang::IllegalArgumentException
|
||||
/// @throws css::uno::RuntimeException
|
||||
void implSetCurrentLocale( const css::lang::Locale& locale,
|
||||
bool FindClosestMatch, bool bUseDefaultIfNoMatch )
|
||||
throw (css::lang::IllegalArgumentException, css::uno::RuntimeException);
|
||||
@@ -136,12 +140,14 @@ protected:
|
||||
void implNotifyListeners();
|
||||
|
||||
//=== Impl methods for ...ForLocale methods ===
|
||||
/// @throws css::resource::MissingResourceException
|
||||
OUString SAL_CALL implResolveString( const OUString& ResourceID, LocaleItem* pLocaleItem )
|
||||
throw (css::resource::MissingResourceException);
|
||||
bool implHasEntryForId( const OUString& ResourceID, LocaleItem* pLocaleItem );
|
||||
css::uno::Sequence< OUString > implGetResourceIDs( LocaleItem* pLocaleItem );
|
||||
void implSetString( const OUString& ResourceID,
|
||||
const OUString& Str, LocaleItem* pLocaleItem );
|
||||
/// @throws css::resource::MissingResourceException
|
||||
void implRemoveId( const OUString& ResourceID, LocaleItem* pLocaleItem )
|
||||
throw (css::resource::MissingResourceException);
|
||||
|
||||
@@ -237,6 +243,8 @@ protected:
|
||||
OUString m_aNameBase;
|
||||
OUString m_aComment;
|
||||
|
||||
/// @throws css::uno::Exception
|
||||
/// @throws css::uno::RuntimeException
|
||||
void SAL_CALL implInitializeCommonParameters( const css::uno::Sequence< css::uno::Any >& aArguments )
|
||||
throw (css::uno::Exception, css::uno::RuntimeException);
|
||||
|
||||
@@ -265,6 +273,8 @@ protected:
|
||||
|
||||
void implWriteLocaleBinary( LocaleItem* pLocaleItem, BinaryOutput& rOut );
|
||||
|
||||
/// @throws css::uno::Exception
|
||||
/// @throws css::uno::RuntimeException
|
||||
void implStoreAtStorage
|
||||
(
|
||||
const OUString& aNameBase,
|
||||
@@ -275,6 +285,8 @@ protected:
|
||||
)
|
||||
throw (css::uno::Exception, css::uno::RuntimeException, std::exception);
|
||||
|
||||
/// @throws css::uno::Exception
|
||||
/// @throws css::uno::RuntimeException
|
||||
void implKillRemovedLocaleFiles
|
||||
(
|
||||
const OUString& Location,
|
||||
@@ -283,6 +295,8 @@ protected:
|
||||
)
|
||||
throw (css::uno::Exception, css::uno::RuntimeException, std::exception);
|
||||
|
||||
/// @throws css::uno::Exception
|
||||
/// @throws css::uno::RuntimeException
|
||||
void implKillChangedDefaultFiles
|
||||
(
|
||||
const OUString& Location,
|
||||
@@ -291,6 +305,8 @@ protected:
|
||||
)
|
||||
throw (css::uno::Exception, css::uno::RuntimeException, std::exception);
|
||||
|
||||
/// @throws css::uno::Exception
|
||||
/// @throws css::uno::RuntimeException
|
||||
void implStoreAtLocation
|
||||
(
|
||||
const OUString& Location,
|
||||
|
@@ -620,6 +620,7 @@ protected:
|
||||
|
||||
private:
|
||||
void setShellFromModel();
|
||||
/// @throws RuntimeException
|
||||
void firing_Impl( const ScriptEvent& evt, Any *pSyncRet ) throw( RuntimeException, std::exception );
|
||||
|
||||
Reference< frame::XModel > m_xModel;
|
||||
|
Reference in New Issue
Block a user