diff options
Diffstat (limited to 'canvas/inc/canvas/base/bufferedgraphicdevicebase.hxx')
-rw-r--r-- | canvas/inc/canvas/base/bufferedgraphicdevicebase.hxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/canvas/inc/canvas/base/bufferedgraphicdevicebase.hxx b/canvas/inc/canvas/base/bufferedgraphicdevicebase.hxx index 9e31473ba589..daaf985967fd 100644 --- a/canvas/inc/canvas/base/bufferedgraphicdevicebase.hxx +++ b/canvas/inc/canvas/base/bufferedgraphicdevicebase.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -43,7 +43,7 @@ namespace canvas { /** Helper template base class for XGraphicDevice implementations on windows. - + Use this base class if your target device is a window. Additionally to GraphicDeviceBase, this template provides an implementation of the awt::XWindowListener @@ -79,14 +79,14 @@ namespace canvas derives from multiple UNO interface (were each provides its own version of XInterface, making the conversion ambiguous) */ - template< class Base, - class DeviceHelper, - class Mutex=::osl::MutexGuard, - class UnambiguousBase=::com::sun::star::uno::XInterface > class BufferedGraphicDeviceBase : + template< class Base, + class DeviceHelper, + class Mutex=::osl::MutexGuard, + class UnambiguousBase=::com::sun::star::uno::XInterface > class BufferedGraphicDeviceBase : public GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase > { public: - typedef GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase > BaseType; + typedef GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase > BaseType; typedef BufferedGraphicDeviceBase OurType; typedef Mutex MutexType; @@ -109,7 +109,7 @@ namespace canvas } // XBufferController - virtual ::sal_Int32 SAL_CALL createBuffers( ::sal_Int32 nBuffers ) throw (::com::sun::star::lang::IllegalArgumentException, + virtual ::sal_Int32 SAL_CALL createBuffers( ::sal_Int32 nBuffers ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) { tools::verifyRange( nBuffers, (sal_Int32)1 ); @@ -152,7 +152,7 @@ namespace canvas is called, with rBounds the window bound rect relative to the frame window. */ - void setWindow( const ::com::sun::star::uno::Reference< + void setWindow( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow2 >& rWindow ) { if( mxWindow.is() ) @@ -163,7 +163,7 @@ namespace canvas if( mxWindow.is() ) { mbIsVisible = mxWindow->isVisible(); - mbIsTopLevel = + mbIsTopLevel = ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTopWindow >( mxWindow, ::com::sun::star::uno::UNO_QUERY ).is(); @@ -177,7 +177,7 @@ namespace canvas { return mxWindow; } - + ::com::sun::star::uno::Any getXWindow() const { return ::com::sun::star::uno::makeAny(mxWindow); @@ -201,7 +201,7 @@ namespace canvas } ::com::sun::star::awt::Rectangle transformBounds( const ::com::sun::star::awt::Rectangle& rBounds ) - { + { // notifySizeUpdate's bounds are relative to the toplevel // window if( !mbIsTopLevel ) |