diff options
Diffstat (limited to 'cppcanvas')
-rw-r--r-- | cppcanvas/source/uno/uno_mtfrenderer.cxx | 6 | ||||
-rw-r--r-- | cppcanvas/source/uno/uno_mtfrenderer.hxx | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/cppcanvas/source/uno/uno_mtfrenderer.cxx b/cppcanvas/source/uno/uno_mtfrenderer.cxx index 503047f413df..a13b995e6e3a 100644 --- a/cppcanvas/source/uno/uno_mtfrenderer.cxx +++ b/cppcanvas/source/uno/uno_mtfrenderer.cxx @@ -15,12 +15,12 @@ using namespace ::com::sun::star; -void MtfRenderer::setMetafile (const uno::Sequence< sal_Int8 >& /*rMtf*/) throw (uno::RuntimeException, std::exception) +void MtfRenderer::setMetafile (const uno::Sequence< sal_Int8 >& /*rMtf*/) { // printf ("MtfRenderer::setMetafile unimplemented, use fast property set or implement me\n"); } -void MtfRenderer::draw (double fScaleX, double fScaleY) throw (uno::RuntimeException, std::exception) +void MtfRenderer::draw (double fScaleX, double fScaleY) { if (mpMetafile && mxCanvas.get()) { cppcanvas::BitmapCanvasSharedPtr canvas = cppcanvas::VCLFactory::createBitmapCanvas (mxCanvas); @@ -32,7 +32,7 @@ void MtfRenderer::draw (double fScaleX, double fScaleY) throw (uno::RuntimeExcep } } -void MtfRenderer::setFastPropertyValue( sal_Int32 nHandle, const uno::Any& aAny) throw (uno::RuntimeException, std::exception) +void MtfRenderer::setFastPropertyValue( sal_Int32 nHandle, const uno::Any& aAny) { if (nHandle == 0) { mpMetafile = reinterpret_cast<GDIMetaFile*>( *o3tl::doAccess<sal_Int64>(aAny) ); diff --git a/cppcanvas/source/uno/uno_mtfrenderer.hxx b/cppcanvas/source/uno/uno_mtfrenderer.hxx index c20a2486c449..5b2594fc8bf8 100644 --- a/cppcanvas/source/uno/uno_mtfrenderer.hxx +++ b/cppcanvas/source/uno/uno_mtfrenderer.hxx @@ -26,13 +26,13 @@ public: css::uno::Reference<css::uno::XComponentContext> const&); // XMtfRenderer iface - void SAL_CALL setMetafile (const css::uno::Sequence< sal_Int8 >& rMtf) throw (css::uno::RuntimeException, std::exception) override; - void SAL_CALL draw (double fScaleX, double fScaleY) throw (css::uno::RuntimeException, std::exception) override; + void SAL_CALL setMetafile (const css::uno::Sequence< sal_Int8 >& rMtf) override; + void SAL_CALL draw (double fScaleX, double fScaleY) override; // XFastPropertySet // setFastPropertyValue (0, GDIMetaFile*) is used to speedup the rendering - virtual css::uno::Any SAL_CALL getFastPropertyValue(sal_Int32 /*nHandle*/) throw (css::uno::RuntimeException, std::exception) override { return css::uno::Any(); } - virtual void SAL_CALL setFastPropertyValue(sal_Int32 nHandle, const css::uno::Any&) throw (css::uno::RuntimeException, std::exception) override; + virtual css::uno::Any SAL_CALL getFastPropertyValue(sal_Int32 /*nHandle*/) override { return css::uno::Any(); } + virtual void SAL_CALL setFastPropertyValue(sal_Int32 nHandle, const css::uno::Any&) override; private: GDIMetaFile* mpMetafile; |