diff options
author | Christian Lippka <cl@openoffice.org> | 2002-06-04 07:27:50 +0000 |
---|---|---|
committer | Christian Lippka <cl@openoffice.org> | 2002-06-04 07:27:50 +0000 |
commit | 7c00e325d711522714eb7e84964abd30c8976ef6 (patch) | |
tree | 6d6cc52688d69cf9a9899094cbd902e8b14738f2 /svx/source/xml/xmlgrhlp.cxx | |
parent | 873148a351efa5c92a96d9b5a031b29e8f7e9cc0 (diff) |
#99870# create graphic and object resolver on demand
Diffstat (limited to 'svx/source/xml/xmlgrhlp.cxx')
-rw-r--r-- | svx/source/xml/xmlgrhlp.cxx | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/svx/source/xml/xmlgrhlp.cxx b/svx/source/xml/xmlgrhlp.cxx index ced387ec751b..8bda90f3950a 100644 --- a/svx/source/xml/xmlgrhlp.cxx +++ b/svx/source/xml/xmlgrhlp.cxx @@ -2,9 +2,9 @@ * * $RCSfile: xmlgrhlp.cxx,v $ * - * $Revision: 1.16 $ + * $Revision: 1.17 $ * - * last change: $Author: ka $ + * last change: $Author: cl $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -348,6 +348,13 @@ const GraphicObject& SvXMLGraphicOutputStream::GetGraphicObject() // - SvXMLGraphicHelper - // ---------------------- +SvXMLGraphicHelper::SvXMLGraphicHelper( SvXMLGraphicHelperMode eCreateMode ) : + ::cppu::WeakComponentImplHelper2< ::com::sun::star::document::XGraphicObjectResolver, + ::com::sun::star::document::XBinaryStreamResolver >( maMutex ) +{ + Init( NULL, eCreateMode, sal_False ); +} + SvXMLGraphicHelper::SvXMLGraphicHelper() : ::cppu::WeakComponentImplHelper2< ::com::sun::star::document::XGraphicObjectResolver, ::com::sun::star::document::XBinaryStreamResolver >( maMutex ) @@ -362,6 +369,13 @@ SvXMLGraphicHelper::~SvXMLGraphicHelper() // ----------------------------------------------------------------------------- +void SAL_CALL SvXMLGraphicHelper::disposing() +{ + Flush(); +} + +// ----------------------------------------------------------------------------- + sal_Bool SvXMLGraphicHelper::ImplGetStreamNames( const ::rtl::OUString& rURLStr, ::rtl::OUString& rPictureStorageName, ::rtl::OUString& rPictureStreamName ) @@ -690,7 +704,7 @@ void SvXMLGraphicHelper::Destroy( SvXMLGraphicHelper* pSvXMLGraphicHelper ) { if( pSvXMLGraphicHelper ) { - pSvXMLGraphicHelper->Flush(); + pSvXMLGraphicHelper->dispose(); pSvXMLGraphicHelper->release(); } } @@ -726,6 +740,8 @@ void SvXMLGraphicHelper::Flush() aSetIter++; } + + mbDirect = sal_True; } if( GRAPHICHELPER_MODE_WRITE == meCreateMode ) { |