com::sun::star->css in cppcanvas
Change-Id: Ibb7493456c20600fe3e823c74af6e572d9577817 Reviewed-on: https://gerrit.libreoffice.org/17379 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
This commit is contained in:
committed by
Noel Grandin
parent
d10de0360f
commit
a99520eb0a
@@ -17,26 +17,26 @@
|
||||
#include <cppuhelper/basemutex.hxx>
|
||||
#include <vcl/gdimtf.hxx>
|
||||
|
||||
typedef cppu::WeakComponentImplHelper<com::sun::star::rendering::XMtfRenderer, com::sun::star::beans::XFastPropertySet> MtfRendererBase;
|
||||
typedef cppu::WeakComponentImplHelper<css::rendering::XMtfRenderer, css::beans::XFastPropertySet> MtfRendererBase;
|
||||
|
||||
class MtfRenderer : private cppu::BaseMutex, public MtfRendererBase
|
||||
{
|
||||
public:
|
||||
MtfRenderer (com::sun::star::uno::Sequence<com::sun::star::uno::Any> const& args,
|
||||
com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&);
|
||||
MtfRenderer (css::uno::Sequence<css::uno::Any> const& args,
|
||||
css::uno::Reference<css::uno::XComponentContext> const&);
|
||||
|
||||
// XMtfRenderer iface
|
||||
void SAL_CALL setMetafile (const ::com::sun::star::uno::Sequence< sal_Int8 >& rMtf) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
||||
void SAL_CALL draw (double fScaleX, double fScaleY) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
||||
void SAL_CALL setMetafile (const css::uno::Sequence< sal_Int8 >& rMtf) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
||||
void SAL_CALL draw (double fScaleX, double fScaleY) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
||||
|
||||
// XFastPropertySet
|
||||
// setFastPropertyValue (0, GDIMetaFile*) is used to speedup the rendering
|
||||
virtual ::com::sun::star::uno::Any SAL_CALL getFastPropertyValue(sal_Int32 /*nHandle*/) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE { return ::com::sun::star::uno::Any(); }
|
||||
virtual void SAL_CALL setFastPropertyValue(sal_Int32 nHandle, const ::com::sun::star::uno::Any&) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
||||
virtual css::uno::Any SAL_CALL getFastPropertyValue(sal_Int32 /*nHandle*/) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE { return css::uno::Any(); }
|
||||
virtual void SAL_CALL setFastPropertyValue(sal_Int32 nHandle, const css::uno::Any&) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
||||
|
||||
private:
|
||||
GDIMetaFile* mpMetafile;
|
||||
com::sun::star::uno::Reference<com::sun::star::rendering::XBitmapCanvas> mxCanvas;
|
||||
css::uno::Reference<css::rendering::XBitmapCanvas> mxCanvas;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user