Kaydet (Commit) bf286107 authored tarafından Thorsten Behrens's avatar Thorsten Behrens

Add some more timelogging, for graphic export here.

üst 0c00198b
...@@ -51,6 +51,7 @@ ...@@ -51,6 +51,7 @@
#include <svtools/sfxecode.hxx> #include <svtools/sfxecode.hxx>
#include <svtools/ehdl.hxx> #include <svtools/ehdl.hxx>
#include <tools/datetime.hxx> #include <tools/datetime.hxx>
#include <rtl/logfile.hxx>
#include <math.h> #include <math.h>
#include <unotools/saveopt.hxx> #include <unotools/saveopt.hxx>
...@@ -170,7 +171,10 @@ SfxObjectShell::CreatePreviewMetaFile_Impl( sal_Bool bFullContent ) const ...@@ -170,7 +171,10 @@ SfxObjectShell::CreatePreviewMetaFile_Impl( sal_Bool bFullContent ) const
aDevice.SetDigitLanguage( eLang ); aDevice.SetDigitLanguage( eLang );
((SfxObjectShell*)this)->DoDraw( &aDevice, Point(0,0), aTmpSize, JobSetup(), nAspect ); {
RTL_LOGFILE_PRODUCT_CONTEXT( aLog, "PERFORMANCE SfxObjectShell::CreatePreviewMetaFile_Impl" );
((SfxObjectShell*)this)->DoDraw( &aDevice, Point(0,0), aTmpSize, JobSetup(), nAspect );
}
pFile->Stop(); pFile->Stop();
return pFile; return pFile;
......
...@@ -68,6 +68,7 @@ ...@@ -68,6 +68,7 @@
#include <unotools/localfilehelper.hxx> #include <unotools/localfilehelper.hxx>
#include <rtl/bootstrap.hxx> #include <rtl/bootstrap.hxx>
#include <rtl/instance.hxx> #include <rtl/instance.hxx>
#include <rtl/logfile.hxx>
#include <vector> #include <vector>
#include "SvFilterOptionsDialog.hxx" #include "SvFilterOptionsDialog.hxx"
...@@ -1714,6 +1715,7 @@ sal_uInt16 GraphicFilter::ImportGraphic( Graphic& rGraphic, const String& rPath, ...@@ -1714,6 +1715,7 @@ sal_uInt16 GraphicFilter::ImportGraphic( Graphic& rGraphic, const String& rPath,
sal_uInt16 GraphicFilter::ExportGraphic( const Graphic& rGraphic, const INetURLObject& rPath, sal_uInt16 GraphicFilter::ExportGraphic( const Graphic& rGraphic, const INetURLObject& rPath,
sal_uInt16 nFormat, const uno::Sequence< beans::PropertyValue >* pFilterData ) sal_uInt16 nFormat, const uno::Sequence< beans::PropertyValue >* pFilterData )
{ {
RTL_LOGFILE_CONTEXT( aLog, "GraphicFilter::ExportGraphic() (thb)" );
sal_uInt16 nRetValue = GRFILTER_FORMATERROR; sal_uInt16 nRetValue = GRFILTER_FORMATERROR;
DBG_ASSERT( rPath.GetProtocol() != INET_PROT_NOT_VALID, "GraphicFilter::ExportGraphic() : ProtType == INET_PROT_NOT_VALID" ); DBG_ASSERT( rPath.GetProtocol() != INET_PROT_NOT_VALID, "GraphicFilter::ExportGraphic() : ProtType == INET_PROT_NOT_VALID" );
sal_Bool bAlreadyExists = ImplDirEntryHelper::Exists( rPath ); sal_Bool bAlreadyExists = ImplDirEntryHelper::Exists( rPath );
...@@ -1736,6 +1738,7 @@ sal_uInt16 GraphicFilter::ExportGraphic( const Graphic& rGraphic, const INetURLO ...@@ -1736,6 +1738,7 @@ sal_uInt16 GraphicFilter::ExportGraphic( const Graphic& rGraphic, const INetURLO
sal_uInt16 GraphicFilter::ExportGraphic( const Graphic& rGraphic, const String& rPath, sal_uInt16 GraphicFilter::ExportGraphic( const Graphic& rGraphic, const String& rPath,
SvStream& rOStm, sal_uInt16 nFormat, const uno::Sequence< beans::PropertyValue >* pFilterData ) SvStream& rOStm, sal_uInt16 nFormat, const uno::Sequence< beans::PropertyValue >* pFilterData )
{ {
RTL_LOGFILE_CONTEXT( aLog, "GraphicFilter::ExportGraphic() (thb)" );
sal_uInt16 nFormatCount = GetExportFormatCount(); sal_uInt16 nFormatCount = GetExportFormatCount();
ResetLastError(); ResetLastError();
......
...@@ -45,6 +45,7 @@ ...@@ -45,6 +45,7 @@
#include <com/sun/star/task/XInteractionHandler.hpp> #include <com/sun/star/task/XInteractionHandler.hpp>
#include <com/sun/star/task/XInteractionContinuation.hpp> #include <com/sun/star/task/XInteractionContinuation.hpp>
#include <rtl/logfile.hxx>
#include <comphelper/interaction.hxx> #include <comphelper/interaction.hxx>
#include <framework/interaction.hxx> #include <framework/interaction.hxx>
#include <com/sun/star/drawing/GraphicFilterRequest.hpp> #include <com/sun/star/drawing/GraphicFilterRequest.hpp>
...@@ -594,6 +595,8 @@ void GraphicExporter::ParseSettings( const Sequence< PropertyValue >& aDescripto ...@@ -594,6 +595,8 @@ void GraphicExporter::ParseSettings( const Sequence< PropertyValue >& aDescripto
bool GraphicExporter::GetGraphic( ExportSettings& rSettings, Graphic& aGraphic, sal_Bool bVectorType ) bool GraphicExporter::GetGraphic( ExportSettings& rSettings, Graphic& aGraphic, sal_Bool bVectorType )
{ {
RTL_LOGFILE_CONTEXT( aLog, "UnoGraphicExporter::GetGraphic (thb)" );
if( !mpDoc || !mpUnoPage ) if( !mpDoc || !mpUnoPage )
return false; return false;
...@@ -976,6 +979,8 @@ bool GraphicExporter::GetGraphic( ExportSettings& rSettings, Graphic& aGraphic, ...@@ -976,6 +979,8 @@ bool GraphicExporter::GetGraphic( ExportSettings& rSettings, Graphic& aGraphic,
sal_Bool SAL_CALL GraphicExporter::filter( const Sequence< PropertyValue >& aDescriptor ) sal_Bool SAL_CALL GraphicExporter::filter( const Sequence< PropertyValue >& aDescriptor )
throw(RuntimeException) throw(RuntimeException)
{ {
RTL_LOGFILE_CONTEXT( aLog, "UnoGraphicExporter::export (thb)" );
::SolarMutexGuard aGuard; ::SolarMutexGuard aGuard;
if( NULL == mpUnoPage ) if( NULL == mpUnoPage )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment