Kaydet (Commit) 4770f548 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

New loplugin:dynexcspec: Add @throws documentation, filter

Change-Id: Id465279b54f775ae688d02798c7a67fc50829fc6
üst 36d7778f
...@@ -171,6 +171,8 @@ class BaseContainer : public BaseLock ...@@ -171,6 +171,8 @@ class BaseContainer : public BaseLock
@descr If no exception occurs, its guaranteed, that the member m_rFlushCache @descr If no exception occurs, its guaranteed, that the member m_rFlushCache
was initialized right and can be used further. was initialized right and can be used further.
@throws css::uno::RuntimeException
*/ */
void impl_initFlushMode() void impl_initFlushMode()
throw (css::uno::RuntimeException); throw (css::uno::RuntimeException);
......
...@@ -331,6 +331,8 @@ class FilterCache : public BaseLock ...@@ -331,6 +331,8 @@ class FilterCache : public BaseLock
@return sal_True if the required fill state exists for this cache; FALSE @return sal_True if the required fill state exists for this cache; FALSE
otherwise. otherwise.
@throws css::uno::Exception
*/ */
bool isFillState(EFillState eRequired) const bool isFillState(EFillState eRequired) const
throw(css::uno::Exception); throw(css::uno::Exception);
...@@ -476,6 +478,8 @@ class FilterCache : public BaseLock ...@@ -476,6 +478,8 @@ class FilterCache : public BaseLock
/** TODO document me ... /** TODO document me ...
@throws css::uno::Exception
*/ */
void removeItem( EItemType eType, void removeItem( EItemType eType,
const OUString& sItem) const OUString& sItem)
...@@ -483,6 +487,8 @@ class FilterCache : public BaseLock ...@@ -483,6 +487,8 @@ class FilterCache : public BaseLock
/** TODO document me ... /** TODO document me ...
@throws css::uno::Exception
*/ */
void setItem( EItemType eType , void setItem( EItemType eType ,
const OUString& sItem , const OUString& sItem ,
...@@ -491,6 +497,8 @@ class FilterCache : public BaseLock ...@@ -491,6 +497,8 @@ class FilterCache : public BaseLock
/** TODO document me ... /** TODO document me ...
@throws css::uno::Exception
*/ */
void refreshItem( EItemType eType, void refreshItem( EItemType eType,
const OUString& sItem) const OUString& sItem)
...@@ -539,6 +547,8 @@ class FilterCache : public BaseLock ...@@ -539,6 +547,8 @@ class FilterCache : public BaseLock
/** TODO document me /** TODO document me
@throws css::uno::Exception
*/ */
static void removeStatePropsFromItem(CacheItem& aValue) static void removeStatePropsFromItem(CacheItem& aValue)
throw(css::uno::Exception); throw(css::uno::Exception);
...@@ -624,6 +634,8 @@ class FilterCache : public BaseLock ...@@ -624,6 +634,8 @@ class FilterCache : public BaseLock
specify the needed configuration provider. specify the needed configuration provider.
see EConfigProvider for further information ... see EConfigProvider for further information ...
@throws css::uno::Exception
@attention If a configuration access was opened successfully @attention If a configuration access was opened successfully
all necessary listener connections will be established all necessary listener connections will be established
too. So this cache will be informed about outside updates. too. So this cache will be informed about outside updates.
...@@ -686,6 +698,8 @@ class FilterCache : public BaseLock ...@@ -686,6 +698,8 @@ class FilterCache : public BaseLock
@param eRequiredState @param eRequiredState
indicates, which fill state this cache should have afterwards. indicates, which fill state this cache should have afterwards.
@throws css::uno::Exception
*/ */
void impl_load(EFillState eRequiredState) void impl_load(EFillState eRequiredState)
throw(css::uno::Exception); throw(css::uno::Exception);
...@@ -804,20 +818,29 @@ class FilterCache : public BaseLock ...@@ -804,20 +818,29 @@ class FilterCache : public BaseLock
throw (css::uno::Exception, std::exception); throw (css::uno::Exception, std::exception);
/** TODO */ /** TODO
@throws css::uno::Exception
*/
static void impl_saveItem(const css::uno::Reference< css::container::XNameReplace >& xSet , static void impl_saveItem(const css::uno::Reference< css::container::XNameReplace >& xSet ,
EItemType eType , EItemType eType ,
const CacheItem & aValue) const CacheItem & aValue)
throw(css::uno::Exception); throw(css::uno::Exception);
/** TODO */ /** TODO
@throws css::uno::Exception
*/
void impl_addItem2FlushList( EItemType eType, void impl_addItem2FlushList( EItemType eType,
const OUString& sItem) const OUString& sItem)
throw(css::uno::Exception); throw(css::uno::Exception);
/** TODO */ /** TODO
@throws css::uno::Exception
*/
static void impl_flushByList(const css::uno::Reference< css::container::XNameAccess >& xSet , static void impl_flushByList(const css::uno::Reference< css::container::XNameAccess >& xSet ,
EItemType eType , EItemType eType ,
const CacheItemList& rCache, const CacheItemList& rCache,
...@@ -858,13 +881,19 @@ class FilterCache : public BaseLock ...@@ -858,13 +881,19 @@ class FilterCache : public BaseLock
throw(css::uno::Exception); throw(css::uno::Exception);
/** TODO */ /** TODO
@throws css::uno::Exception
*/
void impl_readPatchUINames(const css::uno::Reference< css::container::XNameAccess >& xNode, void impl_readPatchUINames(const css::uno::Reference< css::container::XNameAccess >& xNode,
CacheItem& rItem) CacheItem& rItem)
throw(css::uno::Exception, std::exception); throw(css::uno::Exception, std::exception);
/** TODO */ /** TODO
@throws css::uno::Exception
*/
static void impl_savePatchUINames(const css::uno::Reference< css::container::XNameReplace >& xNode, static void impl_savePatchUINames(const css::uno::Reference< css::container::XNameReplace >& xNode,
const CacheItem& rItem) const CacheItem& rItem)
throw(css::uno::Exception); throw(css::uno::Exception);
...@@ -872,7 +901,10 @@ class FilterCache : public BaseLock ...@@ -872,7 +901,10 @@ class FilterCache : public BaseLock
/** TODO */ /** TODO */
void impl_readOldFormat(); void impl_readOldFormat();
/** TODO */ /** TODO
@throws css::uno::Exception
*/
CacheItem impl_readOldItem(const css::uno::Reference< css::container::XNameAccess >& xSet , CacheItem impl_readOldItem(const css::uno::Reference< css::container::XNameAccess >& xSet ,
EItemType eType, EItemType eType,
const OUString& sItem) const OUString& sItem)
......
...@@ -37,12 +37,15 @@ namespace com { namespace sun { namespace star { ...@@ -37,12 +37,15 @@ namespace com { namespace sun { namespace star {
namespace swf { namespace swf {
/// @throws css::uno::RuntimeException
OUString FlashExportFilter_getImplementationName() OUString FlashExportFilter_getImplementationName()
throw (css::uno::RuntimeException); throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
css::uno::Sequence<OUString> SAL_CALL css::uno::Sequence<OUString> SAL_CALL
FlashExportFilter_getSupportedServiceNames() throw (css::uno::RuntimeException); FlashExportFilter_getSupportedServiceNames() throw (css::uno::RuntimeException);
/// @throws css::uno::Exception
css::uno::Reference<css::uno::XInterface> SAL_CALL css::uno::Reference<css::uno::XInterface> SAL_CALL
FlashExportFilter_createInstance( FlashExportFilter_createInstance(
css::uno::Reference<css::lang::XMultiServiceFactory> const & rSMgr) css::uno::Reference<css::lang::XMultiServiceFactory> const & rSMgr)
...@@ -50,11 +53,14 @@ FlashExportFilter_createInstance( ...@@ -50,11 +53,14 @@ FlashExportFilter_createInstance(
} }
/// @throws css::uno::RuntimeException
OUString SWFDialog_getImplementationName () throw (css::uno::RuntimeException); OUString SWFDialog_getImplementationName () throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
css::uno::Sequence<OUString> SAL_CALL SWFDialog_getSupportedServiceNames() css::uno::Sequence<OUString> SAL_CALL SWFDialog_getSupportedServiceNames()
throw (css::uno::RuntimeException); throw (css::uno::RuntimeException);
/// @throws css::uno::Exception
css::uno::Reference<css::uno::XInterface> SAL_CALL SWFDialog_createInstance( css::uno::Reference<css::uno::XInterface> SAL_CALL SWFDialog_createInstance(
css::uno::Reference<css::lang::XMultiServiceFactory> const & rSMgr) css::uno::Reference<css::lang::XMultiServiceFactory> const & rSMgr)
throw(css::uno::Exception); throw(css::uno::Exception);
......
...@@ -615,6 +615,7 @@ bool getModifier( char c, sal_uInt16& mod ) ...@@ -615,6 +615,7 @@ bool getModifier( char c, sal_uInt16& mod )
return false; return false;
} }
/// @throws uno::RuntimeException
sal_uInt16 parseChar( char c ) throw ( uno::RuntimeException ) sal_uInt16 parseChar( char c ) throw ( uno::RuntimeException )
{ {
sal_uInt16 nVclKey = 0; sal_uInt16 nVclKey = 0;
......
...@@ -65,9 +65,11 @@ public: ...@@ -65,9 +65,11 @@ public:
virtual ~PDFDialog() override; virtual ~PDFDialog() override;
}; };
/// @throws RuntimeException
OUString PDFDialog_getImplementationName () throw (RuntimeException); OUString PDFDialog_getImplementationName () throw (RuntimeException);
/// @throws RuntimeException
Sequence< OUString > SAL_CALL PDFDialog_getSupportedServiceNames() throw (RuntimeException); Sequence< OUString > SAL_CALL PDFDialog_getSupportedServiceNames() throw (RuntimeException);
/// @throws Exception
Reference< XInterface > SAL_CALL PDFDialog_createInstance( const Reference< XMultiServiceFactory > & rSMgr) throw( Exception ); Reference< XInterface > SAL_CALL PDFDialog_createInstance( const Reference< XMultiServiceFactory > & rSMgr) throw( Exception );
#endif // INCLUDED_FILTER_SOURCE_PDF_PDFDIALOG_HXX #endif // INCLUDED_FILTER_SOURCE_PDF_PDFDIALOG_HXX
......
...@@ -81,19 +81,19 @@ public: ...@@ -81,19 +81,19 @@ public:
virtual ~PDFFilter() override; virtual ~PDFFilter() override;
}; };
/// @throws RuntimeException
OUString PDFFilter_getImplementationName () OUString PDFFilter_getImplementationName ()
throw ( RuntimeException ); throw ( RuntimeException );
/// @throws RuntimeException
bool SAL_CALL PDFFilter_supportsService( const OUString& ServiceName ) bool SAL_CALL PDFFilter_supportsService( const OUString& ServiceName )
throw ( RuntimeException ); throw ( RuntimeException );
/// @throws RuntimeException
Sequence< OUString > SAL_CALL PDFFilter_getSupportedServiceNames( ) Sequence< OUString > SAL_CALL PDFFilter_getSupportedServiceNames( )
throw ( RuntimeException ); throw ( RuntimeException );
/// @throws Exception
Reference< XInterface > Reference< XInterface >
SAL_CALL PDFFilter_createInstance( const Reference< XMultiServiceFactory > & rSMgr) SAL_CALL PDFFilter_createInstance( const Reference< XMultiServiceFactory > & rSMgr)
throw ( Exception ); throw ( Exception );
......
...@@ -52,19 +52,19 @@ public: ...@@ -52,19 +52,19 @@ public:
virtual ~PDFInteractionHandler() override; virtual ~PDFInteractionHandler() override;
}; };
/// @throws RuntimeException
OUString PDFInteractionHandler_getImplementationName () OUString PDFInteractionHandler_getImplementationName ()
throw ( RuntimeException ); throw ( RuntimeException );
/// @throws RuntimeException
bool SAL_CALL PDFInteractionHandler_supportsService( const OUString& ServiceName ) bool SAL_CALL PDFInteractionHandler_supportsService( const OUString& ServiceName )
throw ( RuntimeException ); throw ( RuntimeException );
/// @throws RuntimeException
Sequence< OUString > SAL_CALL PDFInteractionHandler_getSupportedServiceNames( ) Sequence< OUString > SAL_CALL PDFInteractionHandler_getSupportedServiceNames( )
throw ( RuntimeException ); throw ( RuntimeException );
/// @throws Exception
Reference< XInterface > Reference< XInterface >
SAL_CALL PDFInteractionHandler_createInstance( const Reference< XMultiServiceFactory > & rSMgr) SAL_CALL PDFInteractionHandler_createInstance( const Reference< XMultiServiceFactory > & rSMgr)
throw ( Exception ); throw ( Exception );
......
...@@ -102,7 +102,7 @@ PageEntry::~PageEntry() ...@@ -102,7 +102,7 @@ PageEntry::~PageEntry()
{ {
} }
/// @throws css::uno::Exception
static void encodeFile( osl::File& rSourceFile, Reference< XOutputStream > const & xOutputStream ) throw( css::uno::Exception ) static void encodeFile( osl::File& rSourceFile, Reference< XOutputStream > const & xOutputStream ) throw( css::uno::Exception )
{ {
if( xOutputStream.is() ) if( xOutputStream.is() )
...@@ -178,6 +178,7 @@ static OString convertString( const OUString& aInput ) ...@@ -178,6 +178,7 @@ static OString convertString( const OUString& aInput )
return aRet; return aRet;
} }
/// @throws css::uno::Exception
static void createSlideFile( const Reference< XComponent >& xDoc, PlacewareZipFile& rZipFile, const OUString& rURL, std::vector< PageEntry* >& rPageEntries ) throw( css::uno::Exception, std::exception ) static void createSlideFile( const Reference< XComponent >& xDoc, PlacewareZipFile& rZipFile, const OUString& rURL, std::vector< PageEntry* >& rPageEntries ) throw( css::uno::Exception, std::exception )
{ {
OString aInfo; OString aInfo;
......
...@@ -36,13 +36,16 @@ namespace com { namespace sun { namespace star { ...@@ -36,13 +36,16 @@ namespace com { namespace sun { namespace star {
namespace pwp { namespace pwp {
/// @throws css::uno::RuntimeException
OUString PlaceWareExportFilter_getImplementationName() OUString PlaceWareExportFilter_getImplementationName()
throw (css::uno::RuntimeException); throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
css::uno::Sequence<OUString> SAL_CALL css::uno::Sequence<OUString> SAL_CALL
PlaceWareExportFilter_getSupportedServiceNames() PlaceWareExportFilter_getSupportedServiceNames()
throw (css::uno::RuntimeException); throw (css::uno::RuntimeException);
/// @throws css::uno::Exception
css::uno::Reference<css::uno::XInterface> SAL_CALL css::uno::Reference<css::uno::XInterface> SAL_CALL
PlaceWareExportFilter_createInstance( PlaceWareExportFilter_createInstance(
css::uno::Reference<css::lang::XMultiServiceFactory> const & rSMgr) css::uno::Reference<css::lang::XMultiServiceFactory> const & rSMgr)
......
...@@ -72,19 +72,19 @@ public: ...@@ -72,19 +72,19 @@ public:
virtual ~SVGDialog() override; virtual ~SVGDialog() override;
}; };
/// @throws css::uno::RuntimeException
OUString SVGDialog_getImplementationName () OUString SVGDialog_getImplementationName ()
throw ( css::uno::RuntimeException ); throw ( css::uno::RuntimeException );
/// @throws css::uno::RuntimeException
bool SAL_CALL SVGDialog_supportsService( const OUString& ServiceName ) bool SAL_CALL SVGDialog_supportsService( const OUString& ServiceName )
throw ( css::uno::RuntimeException ); throw ( css::uno::RuntimeException );
/// @throws css::uno::RuntimeException
css::uno::Sequence< OUString > SAL_CALL SVGDialog_getSupportedServiceNames( ) css::uno::Sequence< OUString > SAL_CALL SVGDialog_getSupportedServiceNames( )
throw ( css::uno::RuntimeException ); throw ( css::uno::RuntimeException );
/// @throws css::uno::Exception
css::uno::Reference< css::uno::XInterface > css::uno::Reference< css::uno::XInterface >
SAL_CALL SVGDialog_createInstance( const css::uno::Reference< css::lang::XMultiServiceFactory > & rSMgr) SAL_CALL SVGDialog_createInstance( const css::uno::Reference< css::lang::XMultiServiceFactory > & rSMgr)
throw ( css::uno::Exception ); throw ( css::uno::Exception );
......
...@@ -234,8 +234,10 @@ private: ...@@ -234,8 +234,10 @@ private:
Link<EditFieldInfo*,void> maOldFieldHdl; Link<EditFieldInfo*,void> maOldFieldHdl;
Link<EditFieldInfo*,void> maNewFieldHdl; Link<EditFieldInfo*,void> maNewFieldHdl;
/// @throws css::uno::RuntimeException
bool implImport( const Sequence< PropertyValue >& rDescriptor ) throw (RuntimeException, std::exception); bool implImport( const Sequence< PropertyValue >& rDescriptor ) throw (RuntimeException, std::exception);
/// @throws css::uno::RuntimeException
bool implExport( const Sequence< PropertyValue >& rDescriptor ) throw (RuntimeException, std::exception); bool implExport( const Sequence< PropertyValue >& rDescriptor ) throw (RuntimeException, std::exception);
static Reference< XWriter > implCreateExportDocumentHandler( const Reference< XOutputStream >& rxOStm ); static Reference< XWriter > implCreateExportDocumentHandler( const Reference< XOutputStream >& rxOStm );
......
...@@ -53,13 +53,15 @@ typedef enum { ...@@ -53,13 +53,15 @@ typedef enum {
enum class tnode {START,READCH,EOL,POCMD,EXPCMD,SETCMD,SETCH,WRITE,EEND,QUIT}; enum class tnode {START,READCH,EOL,POCMD,EXPCMD,SETCMD,SETCH,WRITE,EEND,QUIT};
/// @throws css::uno::RuntimeException
OUString getImplementationName() OUString getImplementationName()
throw ( css::uno::RuntimeException ); throw ( css::uno::RuntimeException );
/// @throws css::uno::RuntimeException
css::uno::Sequence < OUString > getSupportedServiceNames() css::uno::Sequence < OUString > getSupportedServiceNames()
throw ( css::uno::RuntimeException ); throw ( css::uno::RuntimeException );
/// @throws css::uno::Exception
css::uno::Reference < css::uno::XInterface > SAL_CALL css::uno::Reference < css::uno::XInterface > SAL_CALL
CreateInstance( const css::uno::Reference< css::lang::XMultiServiceFactory > &r) CreateInstance( const css::uno::Reference< css::lang::XMultiServiceFactory > &r)
throw ( css::uno::Exception ); throw ( css::uno::Exception );
...@@ -247,6 +249,7 @@ private: ...@@ -247,6 +249,7 @@ private:
void setfnt(fonts fnt,bool mustwrite); void setfnt(fonts fnt,bool mustwrite);
void wrtfnt(); void wrtfnt();
/// @throws css::uno::RuntimeException
bool SAL_CALL importImpl( const css::uno::Sequence< css::beans::PropertyValue >& aDescriptor ) bool SAL_CALL importImpl( const css::uno::Sequence< css::beans::PropertyValue >& aDescriptor )
throw (css::uno::RuntimeException); throw (css::uno::RuntimeException);
...@@ -285,28 +288,36 @@ private: ...@@ -285,28 +288,36 @@ private:
bool SAL_CALL test(); bool SAL_CALL test();
}; };
/// @throws css::uno::RuntimeException
OUString T602ImportFilter_getImplementationName() OUString T602ImportFilter_getImplementationName()
throw ( css::uno::RuntimeException ); throw ( css::uno::RuntimeException );
/// @throws css::uno::RuntimeException
bool SAL_CALL T602ImportFilter_supportsService( const OUString& ServiceName ) bool SAL_CALL T602ImportFilter_supportsService( const OUString& ServiceName )
throw ( css::uno::RuntimeException ); throw ( css::uno::RuntimeException );
/// @throws css::uno::RuntimeException
css::uno::Sequence< OUString > SAL_CALL T602ImportFilter_getSupportedServiceNames( ) css::uno::Sequence< OUString > SAL_CALL T602ImportFilter_getSupportedServiceNames( )
throw ( css::uno::RuntimeException ); throw ( css::uno::RuntimeException );
/// @throws css::uno::Exception
css::uno::Reference< css::uno::XInterface > css::uno::Reference< css::uno::XInterface >
SAL_CALL T602ImportFilter_createInstance( const css::uno::Reference< css::lang::XMultiServiceFactory > & rSMgr) SAL_CALL T602ImportFilter_createInstance( const css::uno::Reference< css::lang::XMultiServiceFactory > & rSMgr)
throw ( css::uno::Exception ); throw ( css::uno::Exception );
/// @throws css::uno::RuntimeException
OUString T602ImportFilterDialog_getImplementationName() OUString T602ImportFilterDialog_getImplementationName()
throw ( css::uno::RuntimeException ); throw ( css::uno::RuntimeException );
/// @throws css::uno::RuntimeException
bool SAL_CALL T602ImportFilterDialog_supportsService( const OUString& ServiceName ) bool SAL_CALL T602ImportFilterDialog_supportsService( const OUString& ServiceName )
throw ( css::uno::RuntimeException ); throw ( css::uno::RuntimeException );
/// @throws css::uno::RuntimeException
css::uno::Sequence< OUString > SAL_CALL T602ImportFilterDialog_getSupportedServiceNames( ) css::uno::Sequence< OUString > SAL_CALL T602ImportFilterDialog_getSupportedServiceNames( )
throw ( css::uno::RuntimeException ); throw ( css::uno::RuntimeException );
/// @throws css::uno::Exception
css::uno::Reference< css::uno::XInterface > css::uno::Reference< css::uno::XInterface >
SAL_CALL T602ImportFilterDialog_createInstance( const css::uno::Reference< css::lang::XMultiServiceFactory > & rSMgr) SAL_CALL T602ImportFilterDialog_createInstance( const css::uno::Reference< css::lang::XMultiServiceFactory > & rSMgr)
throw ( css::uno::Exception ); throw ( css::uno::Exception );
......
...@@ -60,9 +60,11 @@ protected: ...@@ -60,9 +60,11 @@ protected:
OUString msTemplateName; OUString msTemplateName;
FilterType meType; FilterType meType;
/// @throws css::uno::RuntimeException
bool SAL_CALL exportImpl( const css::uno::Sequence< css::beans::PropertyValue >& aDescriptor ) bool SAL_CALL exportImpl( const css::uno::Sequence< css::beans::PropertyValue >& aDescriptor )
throw (css::uno::RuntimeException); throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
bool SAL_CALL importImpl( const css::uno::Sequence< css::beans::PropertyValue >& aDescriptor ) bool SAL_CALL importImpl( const css::uno::Sequence< css::beans::PropertyValue >& aDescriptor )
throw (css::uno::RuntimeException, std::exception); throw (css::uno::RuntimeException, std::exception);
...@@ -123,19 +125,19 @@ public: ...@@ -123,19 +125,19 @@ public:
}; };
/// @throws css::uno::RuntimeException
OUString XmlFilterAdaptor_getImplementationName() OUString XmlFilterAdaptor_getImplementationName()
throw ( css::uno::RuntimeException ); throw ( css::uno::RuntimeException );
/// @throws css::uno::RuntimeException
bool SAL_CALL XmlFilterAdaptor_supportsService( const OUString& ServiceName ) bool SAL_CALL XmlFilterAdaptor_supportsService( const OUString& ServiceName )
throw ( css::uno::RuntimeException ); throw ( css::uno::RuntimeException );
/// @throws css::uno::RuntimeException
css::uno::Sequence< OUString > SAL_CALL XmlFilterAdaptor_getSupportedServiceNames( ) css::uno::Sequence< OUString > SAL_CALL XmlFilterAdaptor_getSupportedServiceNames( )
throw ( css::uno::RuntimeException ); throw ( css::uno::RuntimeException );
/// @throws css::uno::Exception
css::uno::Reference< css::uno::XInterface > css::uno::Reference< css::uno::XInterface >
SAL_CALL XmlFilterAdaptor_createInstance( const css::uno::Reference< css::lang::XMultiServiceFactory > & rSMgr) SAL_CALL XmlFilterAdaptor_createInstance( const css::uno::Reference< css::lang::XMultiServiceFactory > & rSMgr)
......
...@@ -162,18 +162,20 @@ void SAL_CALL XMLFilterDialogComponent::release() throw () ...@@ -162,18 +162,20 @@ void SAL_CALL XMLFilterDialogComponent::release() throw ()
OComponentHelper::release(); OComponentHelper::release();
} }
/// @throws RuntimeException
OUString XMLFilterDialogComponent_getImplementationName() throw ( RuntimeException ) OUString XMLFilterDialogComponent_getImplementationName() throw ( RuntimeException )
{ {
return OUString( "com.sun.star.comp.ui.XSLTFilterDialog" ); return OUString( "com.sun.star.comp.ui.XSLTFilterDialog" );
} }
/// @throws RuntimeException
Sequence< OUString > SAL_CALL XMLFilterDialogComponent_getSupportedServiceNames() throw ( RuntimeException ) Sequence< OUString > SAL_CALL XMLFilterDialogComponent_getSupportedServiceNames() throw ( RuntimeException )
{ {
Sequence< OUString > aSupported { "com.sun.star.ui.dialogs.XSLTFilterDialog" }; Sequence< OUString > aSupported { "com.sun.star.ui.dialogs.XSLTFilterDialog" };
return aSupported; return aSupported;
} }
/// @throws Exception
Reference< XInterface > SAL_CALL XMLFilterDialogComponent_createInstance( const Reference< XMultiServiceFactory > & rSMgr) throw ( Exception ) Reference< XInterface > SAL_CALL XMLFilterDialogComponent_createInstance( const Reference< XMultiServiceFactory > & rSMgr) throw ( Exception )
{ {
return static_cast<OWeakObject*>(new XMLFilterDialogComponent( comphelper::getComponentContext(rSMgr) )); return static_cast<OWeakObject*>(new XMLFilterDialogComponent( comphelper::getComponentContext(rSMgr) ));
......
...@@ -79,6 +79,7 @@ static OUString encodeZipUri( const OUString& rURI ) ...@@ -79,6 +79,7 @@ static OUString encodeZipUri( const OUString& rURI )
return Uri::encode( rURI, rtl_UriCharClassUric, rtl_UriEncodeCheckEscapes, RTL_TEXTENCODING_UTF8 ); return Uri::encode( rURI, rtl_UriCharClassUric, rtl_UriEncodeCheckEscapes, RTL_TEXTENCODING_UTF8 );
} }
/// @throws Exception
static Reference< XInterface > addFolder( Reference< XInterface >& xRootFolder, Reference< XSingleServiceFactory >& xFactory, const OUString& rName ) throw( Exception ) static Reference< XInterface > addFolder( Reference< XInterface >& xRootFolder, Reference< XSingleServiceFactory >& xFactory, const OUString& rName ) throw( Exception )
{ {
if ( rName == ".." || rName == "." ) if ( rName == ".." || rName == "." )
...@@ -101,6 +102,7 @@ static Reference< XInterface > addFolder( Reference< XInterface >& xRootFolder, ...@@ -101,6 +102,7 @@ static Reference< XInterface > addFolder( Reference< XInterface >& xRootFolder,
return xFolder; return xFolder;
} }
/// @throws Exception
static void addFile_( Reference< XInterface > const & xRootFolder, Reference< XSingleServiceFactory > const & xFactory, Reference< XInputStream > const & xInput, const OUString& aName ) throw( Exception ) static void addFile_( Reference< XInterface > const & xRootFolder, Reference< XSingleServiceFactory > const & xFactory, Reference< XInputStream > const & xInput, const OUString& aName ) throw( Exception )
{ {
Reference< XActiveDataSink > xSink( xFactory->createInstance(), UNO_QUERY ); Reference< XActiveDataSink > xSink( xFactory->createInstance(), UNO_QUERY );
......
...@@ -38,6 +38,7 @@ public: ...@@ -38,6 +38,7 @@ public:
void openPackage( const OUString& rPackageURL, XMLFilterVector& rFilters ); void openPackage( const OUString& rPackageURL, XMLFilterVector& rFilters );
private: private:
/// @throws css::uno::Exception
void addFile( css::uno::Reference< css::uno::XInterface > const & xRootFolder, css::uno::Reference< css::lang::XSingleServiceFactory > const & xFactory, const OUString& rSourceFile ) throw( css::uno::Exception, std::exception ); void addFile( css::uno::Reference< css::uno::XInterface > const & xRootFolder, css::uno::Reference< css::lang::XSingleServiceFactory > const & xFactory, const OUString& rSourceFile ) throw( css::uno::Exception, std::exception );
bool copyFile( const css::uno::Reference< css::container::XHierarchicalNameAccess >& xIfc, OUString& rURL, const OUString& rTargetURL ); bool copyFile( const css::uno::Reference< css::container::XHierarchicalNameAccess >& xIfc, OUString& rURL, const OUString& rTargetURL );
......
...@@ -63,7 +63,9 @@ MSFILTER_DLLPUBLIC OUString getDefaultProjectName( SfxObjectShell* pShell ); ...@@ -63,7 +63,9 @@ MSFILTER_DLLPUBLIC OUString getDefaultProjectName( SfxObjectShell* pShell );
MSFILTER_DLLPUBLIC OUString resolveVBAMacro( SfxObjectShell* pShell, const OUString& rLibName, const OUString& rModuleName, const OUString& rMacroName ); MSFILTER_DLLPUBLIC OUString resolveVBAMacro( SfxObjectShell* pShell, const OUString& rLibName, const OUString& rModuleName, const OUString& rMacroName );
MSFILTER_DLLPUBLIC MacroResolvedInfo resolveVBAMacro( SfxObjectShell* pShell, const OUString& rMacroName, bool bSearchGlobalTemplates = false ); MSFILTER_DLLPUBLIC MacroResolvedInfo resolveVBAMacro( SfxObjectShell* pShell, const OUString& rMacroName, bool bSearchGlobalTemplates = false );
MSFILTER_DLLPUBLIC bool executeMacro( SfxObjectShell* pShell, const OUString& sMacroName, css::uno::Sequence< css::uno::Any >& aArgs, css::uno::Any& aRet, const css::uno::Any& aCaller ); MSFILTER_DLLPUBLIC bool executeMacro( SfxObjectShell* pShell, const OUString& sMacroName, css::uno::Sequence< css::uno::Any >& aArgs, css::uno::Any& aRet, const css::uno::Any& aCaller );
/// @throws css::uno::RuntimeException
MSFILTER_DLLPUBLIC css::awt::KeyEvent parseKeyEvent( const OUString& sKey ) throw (css::uno::RuntimeException); MSFILTER_DLLPUBLIC css::awt::KeyEvent parseKeyEvent( const OUString& sKey ) throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
MSFILTER_DLLPUBLIC void applyShortCutKeyBinding ( const css::uno::Reference< css::frame::XModel >& rxDoc, const css::awt::KeyEvent& rKeyEvent, const OUString& sMacro ) throw (css::uno::RuntimeException, std::exception); MSFILTER_DLLPUBLIC void applyShortCutKeyBinding ( const css::uno::Reference< css::frame::XModel >& rxDoc, const css::awt::KeyEvent& rKeyEvent, const OUString& sMacro ) throw (css::uno::RuntimeException, std::exception);
...@@ -117,6 +119,7 @@ OUString SAL_CALL VBAMacroResolver_getImplementationName(); ...@@ -117,6 +119,7 @@ OUString SAL_CALL VBAMacroResolver_getImplementationName();
css::uno::Sequence<OUString> SAL_CALL css::uno::Sequence<OUString> SAL_CALL
VBAMacroResolver_getSupportedServiceNames(); VBAMacroResolver_getSupportedServiceNames();
/// @throws css::uno::Exception
css::uno::Reference<css::uno::XInterface> SAL_CALL css::uno::Reference<css::uno::XInterface> SAL_CALL
VBAMacroResolver_createInstance( VBAMacroResolver_createInstance(
css::uno::Reference<css::uno::XComponentContext > const & rxContext) css::uno::Reference<css::uno::XComponentContext > const & rxContext)
......
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