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