summaryrefslogtreecommitdiff
path: root/svtools/source
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2006-01-20 08:49:36 +0000
committerOliver Bolte <obo@openoffice.org>2006-01-20 08:49:36 +0000
commit069e54d23d4a68b19216ff4a9a578492a72b5ed2 (patch)
tree2f09281bf22fb37a9c36010226a4a91407138732 /svtools/source
parent0cec6acf97b166610e41174fb4e324826f22c54f (diff)
INTEGRATION: CWS optstor2 (1.11.30); FILE MERGED
2005/11/10 16:09:44 mav 1.11.30.2: RESYNC: (1.11-1.13); FILE MERGED 2005/10/19 10:37:24 mav 1.11.30.1: #i55785# add logging
Diffstat (limited to 'svtools/source')
-rw-r--r--svtools/source/misc/embedhlp.cxx11
1 files changed, 9 insertions, 2 deletions
diff --git a/svtools/source/misc/embedhlp.cxx b/svtools/source/misc/embedhlp.cxx
index b27c1206aa81..1c710d3e6b7e 100644
--- a/svtools/source/misc/embedhlp.cxx
+++ b/svtools/source/misc/embedhlp.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: embedhlp.cxx,v $
*
- * $Revision: 1.13 $
+ * $Revision: 1.14 $
*
- * last change: $Author: kz $ $Date: 2005-11-03 12:02:48 $
+ * last change: $Author: obo $ $Date: 2006-01-20 09:49:36 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -72,6 +72,10 @@
#include "vcl/svapp.hxx"
#endif
+#ifndef _RTL_LOGFILE_HXX_
+#include <rtl/logfile.hxx>
+#endif
+
using namespace com::sun::star;
namespace svt
@@ -467,10 +471,12 @@ void EmbeddedObjectRef::SetGraphic( const Graphic& rGraphic, const ::rtl::OUStri
SvStream* EmbeddedObjectRef::GetGraphicStream( BOOL bUpdate ) const
{
+ RTL_LOGFILE_CONTEXT( aLog, "svtools (mv76033) svt::EmbeddedObjectRef::GetGraphicStream" );
DBG_ASSERT( bUpdate || mpImp->pContainer, "Can't retrieve current graphic!" );
uno::Reference < io::XInputStream > xStream;
if ( mpImp->pContainer && !bUpdate )
{
+ RTL_LOGFILE_CONTEXT_TRACE( aLog, "getting stream from container" );
// try to get graphic stream from container storage
xStream = mpImp->pContainer->GetGraphicStream( mxObj, &mpImp->aMediaType );
if ( xStream.is() )
@@ -492,6 +498,7 @@ SvStream* EmbeddedObjectRef::GetGraphicStream( BOOL bUpdate ) const
if ( !xStream.is() )
{
+ RTL_LOGFILE_CONTEXT_TRACE( aLog, "getting stream from object" );
// update wanted or no stream in container storage available
xStream = GetGraphicReplacementStream( mpImp->nViewAspect, mxObj, &mpImp->aMediaType );