diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2018-11-29 20:34:56 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2018-11-30 03:17:27 +0100 |
commit | d543e8dfd3d8ae718e29304a155e1cf70d08325d (patch) | |
tree | 6e9284682580e256298ba1f5dabf89e5c734567c /sc/source/ui/docshell/docsh.cxx | |
parent | 6a04b9298ae993881d20fc4b5aa91516d4df6695 (diff) |
tdf#93005, tdf#100611, remove the incomplete ODC export feature
Change-Id: I96a3882cd412ea5d993971df7e20b1fd8da73642
Reviewed-on: https://gerrit.libreoffice.org/64283
Tested-by: Jenkins
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sc/source/ui/docshell/docsh.cxx')
-rw-r--r-- | sc/source/ui/docshell/docsh.cxx | 39 |
1 files changed, 3 insertions, 36 deletions
diff --git a/sc/source/ui/docshell/docsh.cxx b/sc/source/ui/docshell/docsh.cxx index 6e6589068747..608e995cf19a 100644 --- a/sc/source/ui/docshell/docsh.cxx +++ b/sc/source/ui/docshell/docsh.cxx @@ -580,28 +580,6 @@ bool ScDocShell::SaveXML( SfxMedium* pSaveMedium, const css::uno::Reference< css return bRet; } -bool ScDocShell::SaveCurrentChart( SfxMedium& rMedium ) -{ - try - { - - uno::Reference< lang::XComponent > xCurrentComponent = frame::Desktop::create( comphelper::getProcessComponentContext() )->getCurrentComponent(); - - uno::Reference< frame::XStorable2 > xStorable( xCurrentComponent, uno::UNO_QUERY_THROW ); - - uno::Reference< frame::XModel > xChartDoc ( xCurrentComponent, uno::UNO_QUERY_THROW ); - - ScXMLChartExportWrapper aExport( xChartDoc, rMedium ); - aExport.Export(); - return true; - } - catch(...) - { - SAL_WARN("sc", "exception thrown while saving chart. Bug!!!"); - return false; - } -} - bool ScDocShell::Load( SfxMedium& rMedium ) { LoadMediumGuard aLoadGuard(&m_aDocument); @@ -1846,21 +1824,10 @@ bool ScDocShell::SaveAs( SfxMedium& rMedium ) PrepareSaveGuard aPrepareGuard( *this); - OUString aFltName = rMedium.GetFilter()->GetFilterName(); - bool bChartExport = aFltName.indexOf("chart8") != -1; - // wait cursor is handled with progress bar - bool bRet = false; - if(!bChartExport) - { - bRet = SfxObjectShell::SaveAs( rMedium ); - if (bRet) - bRet = SaveXML( &rMedium, nullptr ); - } - else - { - bRet = SaveCurrentChart( rMedium ); - } + bool bRet = SfxObjectShell::SaveAs( rMedium ); + if (bRet) + bRet = SaveXML( &rMedium, nullptr ); return bRet; } |