diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-05-20 22:32:43 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-05-21 13:25:31 -0400 |
commit | 713c2f197b46cefe3d46f0658536af3be1c3842e (patch) | |
tree | ee0af7dd8a417f014d913182587402b98c351185 /sc/source/ui/docshell | |
parent | 34789dbff7cc51473bca407afa5bddaf1505975c (diff) |
Finer grained ODS import mode selection.
Change-Id: I18520837f8d25103bf8482a0204b8a7b7740feb1
Diffstat (limited to 'sc/source/ui/docshell')
-rw-r--r-- | sc/source/ui/docshell/docsh.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/docshell/docsh.cxx b/sc/source/ui/docshell/docsh.cxx index e85008dd7528..7ed1836346d0 100644 --- a/sc/source/ui/docshell/docsh.cxx +++ b/sc/source/ui/docshell/docsh.cxx @@ -441,13 +441,13 @@ bool ScDocShell::LoadXML( SfxMedium* pLoadMedium, const ::com::sun::star::uno::R ScXMLImportWrapper aImport(*this, pLoadMedium, xStor); - bool bRet(false); + bool bRet = false; ErrCode nError = ERRCODE_NONE; aDocument.EnableAdjustHeight(false); - if (GetCreateMode() != SFX_CREATE_MODE_ORGANIZER) - bRet = aImport.Import(false, nError); + if (GetCreateMode() == SFX_CREATE_MODE_ORGANIZER) + bRet = aImport.Import(ScXMLImportWrapper::STYLES, nError); else - bRet = aImport.Import(true, nError); + bRet = aImport.Import(ScXMLImportWrapper::ALL, nError); if ( nError ) pLoadMedium->SetError( nError, OUString( OSL_LOG_PREFIX ) ); |