Kaydet (Commit) 0f9f8e05 authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl

speed-up writer conversion in headless mode

Change-Id: Ie5ccd62608c0643e3c8f019aea136ba74b282274
üst 27a84e96
...@@ -196,7 +196,7 @@ void SfxPickList::AddDocumentToPickList( SfxObjectShell* pDocSh ) ...@@ -196,7 +196,7 @@ void SfxPickList::AddDocumentToPickList( SfxObjectShell* pDocSh )
OUString aThumbnail; OUString aThumbnail;
// don't generate thumbnail when in headless mode, or on non-desktop (?) // don't generate thumbnail when in headless mode, or on non-desktop (?)
#if HAVE_FEATURE_DESKTOP #if HAVE_FEATURE_DESKTOP
if (!pDocSh->IsModified() && !Application::IsHeadlessModeRequested()) if (!pDocSh->IsModified() && !Application::IsHeadlessModeEnabled())
{ {
// not modified => the document matches what is in the shell // not modified => the document matches what is in the shell
boost::shared_ptr<GDIMetaFile> pMetaFile = pDocSh->GetPreviewMetaFile(); boost::shared_ptr<GDIMetaFile> pMetaFile = pDocSh->GetPreviewMetaFile();
......
...@@ -710,7 +710,7 @@ bool SwDocShell::ConvertTo( SfxMedium& rMedium ) ...@@ -710,7 +710,7 @@ bool SwDocShell::ConvertTo( SfxMedium& rMedium )
const OUString aFileName( rMedium.GetName() ); const OUString aFileName( rMedium.GetName() );
// No View, so the whole Document! // No View, so the whole Document!
if ( pWrtShell ) if ( pWrtShell && !Application::IsHeadlessModeEnabled() )
{ {
SwWait aWait( *this, true ); SwWait aWait( *this, true );
// #i106906# // #i106906#
......
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