summaryrefslogtreecommitdiff
path: root/sw/source/ui/uno/unodoc.cxx
diff options
context:
space:
mode:
authorFrank Schoenheit [fs] <frank.schoenheit@sun.com>2010-02-19 13:52:10 +0100
committerFrank Schoenheit [fs] <frank.schoenheit@sun.com>2010-02-19 13:52:10 +0100
commitd2137e0c3414c5c3d1ba55569316baa4eaf99f5f (patch)
tree54dc41e4bb8b5e80314a0f6651fab352dade1654 /sw/source/ui/uno/unodoc.cxx
parentb36241988ea99ba2a9d290ec838a3557d0333d63 (diff)
parentb8ec51cb99a7c38644b418cc9f52bf820c2fcff2 (diff)
Automated merge with ssh://hg@hg.services.openoffice.org/cws/dba33e
Diffstat (limited to 'sw/source/ui/uno/unodoc.cxx')
-rw-r--r--sw/source/ui/uno/unodoc.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/sw/source/ui/uno/unodoc.cxx b/sw/source/ui/uno/unodoc.cxx
index dc801a8abee5..65cdecc0ca7a 100644
--- a/sw/source/ui/uno/unodoc.cxx
+++ b/sw/source/ui/uno/unodoc.cxx
@@ -69,9 +69,7 @@ uno::Reference< uno::XInterface > SAL_CALL SwTextDocument_createInstance(
{
::vos::OGuard aGuard( Application::GetSolarMutex() );
SwDLL::Init();
- const SfxObjectCreateMode eCreateMode = ( _nCreationFlags & SFXMODEL_EMBEDDED_OBJECT ) ? SFX_CREATE_MODE_EMBEDDED : SFX_CREATE_MODE_STANDARD;
- const bool bScriptSupport = ( _nCreationFlags & SFXMODEL_DISABLE_EMBEDDED_SCRIPTS ) == 0;
- SfxObjectShell* pShell = new SwDocShell( eCreateMode, bScriptSupport );
+ SfxObjectShell* pShell = new SwDocShell( _nCreationFlags );
return uno::Reference< uno::XInterface >( pShell->GetModel() );
}