diff options
author | Kurt Zenker <kz@openoffice.org> | 2008-06-24 09:37:12 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2008-06-24 09:37:12 +0000 |
commit | 77627c5756ad101a21e467c8e3cf68b24e217e0a (patch) | |
tree | 363d43038e302a1e398b934fcb93fafed98c9f48 /canvas/source | |
parent | be5d703486672ae7a0f318426c8698765767a490 (diff) |
INTEGRATION: CWS canvas05 (1.2.2); FILE MERGED
2008/06/09 12:51:48 thb 1.2.2.4: #i88081# Join from CWS impress144 (fixing the dxcanvas crash), extended for the other canvas impls
2008/04/21 07:29:26 thb 1.2.2.3: RESYNC: (1.2-1.3); FILE MERGED
2008/01/22 00:25:23 thb 1.2.2.2: #i81092# Making gdiplus and dx canvas more independent
2007/12/20 22:18:57 thb 1.2.2.1: #i81092# #i78888# #i78925# #i79258# #i79437# #i84784# Large canvas rework, completing various areas such as color spaces, bitmap data access, true sprite and non-sprite implementations, and upstreaming the canvas parts of rodos emf+ rendering
Diffstat (limited to 'canvas/source')
-rwxr-xr-x | canvas/source/directx/dx_spritecanvas.hxx | 45 |
1 files changed, 24 insertions, 21 deletions
diff --git a/canvas/source/directx/dx_spritecanvas.hxx b/canvas/source/directx/dx_spritecanvas.hxx index d684dc3f9f61..555316d14b9f 100755 --- a/canvas/source/directx/dx_spritecanvas.hxx +++ b/canvas/source/directx/dx_spritecanvas.hxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: dx_spritecanvas.hxx,v $ - * $Revision: 1.3 $ + * $Revision: 1.4 $ * * This file is part of OpenOffice.org. * @@ -42,37 +42,37 @@ #include <com/sun/star/rendering/XIntegerBitmap.hpp> #include <com/sun/star/rendering/XGraphicDevice.hpp> #include <com/sun/star/rendering/XBufferController.hpp> -#include <com/sun/star/rendering/XColorSpace.hpp> #include <com/sun/star/rendering/XParametricPolyPolygon2DFactory.hpp> -#include <cppuhelper/compbase10.hxx> +#include <cppuhelper/compbase9.hxx> #include <comphelper/uno3.hxx> #include <canvas/base/spritecanvasbase.hxx> #include <canvas/base/basemutexhelper.hxx> -#include <canvas/base/windowgraphicdevicebase.hxx> +#include <canvas/base/bufferedgraphicdevicebase.hxx> +#include "dx_bitmapprovider.hxx" #include "dx_spritecanvashelper.hxx" +#include "dx_surfacebitmap.hxx" #include "dx_impltools.hxx" -#include "dx_devicehelper.hxx" +#include "dx_spritedevicehelper.hxx" namespace dxcanvas { - typedef ::cppu::WeakComponentImplHelper10< ::com::sun::star::rendering::XSpriteCanvas, + typedef ::cppu::WeakComponentImplHelper9< ::com::sun::star::rendering::XSpriteCanvas, ::com::sun::star::rendering::XIntegerBitmap, ::com::sun::star::rendering::XGraphicDevice, - ::com::sun::star::rendering::XParametricPolyPolygon2DFactory, - ::com::sun::star::rendering::XBufferController, - ::com::sun::star::rendering::XColorSpace, - ::com::sun::star::awt::XWindowListener, - ::com::sun::star::util::XUpdatable, - ::com::sun::star::beans::XPropertySet, - ::com::sun::star::lang::XServiceName > WindowGraphicDeviceBase_Base; - typedef ::canvas::WindowGraphicDeviceBase< ::canvas::BaseMutexHelper< WindowGraphicDeviceBase_Base >, - DeviceHelper, - ::osl::MutexGuard, - ::cppu::OWeakObject > SpriteCanvasBase_Base; + ::com::sun::star::rendering::XParametricPolyPolygon2DFactory, + ::com::sun::star::rendering::XBufferController, + ::com::sun::star::awt::XWindowListener, + ::com::sun::star::util::XUpdatable, + ::com::sun::star::beans::XPropertySet, + ::com::sun::star::lang::XServiceName > WindowGraphicDeviceBase_Base; + typedef ::canvas::BufferedGraphicDeviceBase< ::canvas::BaseMutexHelper< WindowGraphicDeviceBase_Base >, + SpriteDeviceHelper, + ::osl::MutexGuard, + ::cppu::OWeakObject > SpriteCanvasBase_Base; /** Mixin SpriteSurface Have to mixin the SpriteSurface before deriving from @@ -109,7 +109,7 @@ namespace dxcanvas XGraphicDevice. And to avoid messing around with circular references, this is implemented as one single object. */ - class SpriteCanvas : public SpriteCanvasBaseT + class SpriteCanvas : public SpriteCanvasBaseT, public BitmapProvider { public: SpriteCanvas( const ::com::sun::star::uno::Sequence< @@ -117,7 +117,7 @@ namespace dxcanvas const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext ); - void initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments ); + void initialize(); /// Dispose all internal references virtual void SAL_CALL disposing(); @@ -143,14 +143,17 @@ namespace dxcanvas const IDXRenderModuleSharedPtr& getRenderModule() const; /// Get backbuffer for this canvas - const DXBitmapSharedPtr& getBackBuffer() const; + const DXSurfaceBitmapSharedPtr& getBackBuffer() const; + + // BitmapProvider + virtual IBitmapSharedPtr getBitmap() const; private: + ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > maArguments; ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > mxComponentContext; }; typedef ::rtl::Reference< SpriteCanvas > SpriteCanvasRef; - typedef ::rtl::Reference< SpriteCanvas > DeviceRef; } #endif |