diff options
author | Oliver Bolte <obo@openoffice.org> | 2008-01-10 12:22:39 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2008-01-10 12:22:39 +0000 |
commit | b6d825ecbbe39648519d43936d699a4788418d9c (patch) | |
tree | 8cfd696c05297e67234d0296511392e9d9f1d849 /goodies | |
parent | 93e980033ff529bdee5f296b222dc1b640e64e83 (diff) |
INTEGRATION: CWS xmlfilter02 (1.5.32); FILE MERGED
2007/09/24 15:53:58 sj 1.5.32.1: added graphictransformer
Diffstat (limited to 'goodies')
-rw-r--r-- | goodies/source/unographic/graphic.cxx | 14 | ||||
-rw-r--r-- | goodies/source/unographic/graphic.hxx | 8 |
2 files changed, 15 insertions, 7 deletions
diff --git a/goodies/source/unographic/graphic.cxx b/goodies/source/unographic/graphic.cxx index c67bc6a6553e..670a56dcd458 100644 --- a/goodies/source/unographic/graphic.cxx +++ b/goodies/source/unographic/graphic.cxx @@ -4,9 +4,9 @@ * * $RCSfile: graphic.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: kz $ $Date: 2007-05-10 09:14:09 $ + * last change: $Author: obo $ $Date: 2008-01-10 13:22:25 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -50,6 +50,10 @@ #include <com/sun/star/graphic/GraphicType.hpp> #endif +#ifndef _COM_SUN_STAR_GRAPHIC_XGRAPHICTRANSOFMER_HPP_ +#include <com/sun/star/graphic/XGraphicTransformer.hpp> +#endif + #include <vcl/graph.hxx> #include "graphic.hxx" @@ -90,7 +94,6 @@ uno::Any SAL_CALL Graphic::queryAggregation( const uno::Type& rType ) throw( uno::RuntimeException ) { uno::Any aAny; - if( rType == ::getCppuType((const uno::Reference< graphic::XGraphic >*)0) ) aAny <<= uno::Reference< graphic::XGraphic >( this ); else if( rType == ::getCppuType((const uno::Reference< awt::XBitmap >*)0) ) @@ -108,7 +111,10 @@ uno::Any SAL_CALL Graphic::queryAggregation( const uno::Type& rType ) uno::Any SAL_CALL Graphic::queryInterface( const uno::Type & rType ) throw( uno::RuntimeException ) { - return ::unographic::GraphicDescriptor::queryInterface( rType ); + ::com::sun::star::uno::Any aReturn = ::unographic::GraphicDescriptor::queryInterface( rType ); + if ( !aReturn.hasValue() ) + aReturn = ::cppu::queryInterface ( rType, static_cast< graphic::XGraphicTransformer*>( this ) ); + return aReturn; } // ------------------------------------------------------------------------------ diff --git a/goodies/source/unographic/graphic.hxx b/goodies/source/unographic/graphic.hxx index 5f1c8e707dac..c68aa450959b 100644 --- a/goodies/source/unographic/graphic.hxx +++ b/goodies/source/unographic/graphic.hxx @@ -4,9 +4,9 @@ * * $RCSfile: graphic.hxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: kz $ $Date: 2007-05-10 09:14:22 $ + * last change: $Author: obo $ $Date: 2008-01-10 13:22:39 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -48,6 +48,7 @@ #include <com/sun/star/awt/XBitmap.hpp> #include "descriptor.hxx" +#include "transformer.hxx" using namespace com::sun::star; @@ -62,7 +63,8 @@ namespace unographic { class Graphic : public ::com::sun::star::graphic::XGraphic, public ::com::sun::star::awt::XBitmap, public ::com::sun::star::lang::XUnoTunnel, - public ::unographic::GraphicDescriptor + public ::unographic::GraphicDescriptor, + public ::unographic::GraphicTransformer { public: |