summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/guisaveas.cxx
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2018-11-29 20:34:56 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2018-11-30 03:17:27 +0100
commitd543e8dfd3d8ae718e29304a155e1cf70d08325d (patch)
tree6e9284682580e256298ba1f5dabf89e5c734567c /sfx2/source/doc/guisaveas.cxx
parent6a04b9298ae993881d20fc4b5aa91516d4df6695 (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 'sfx2/source/doc/guisaveas.cxx')
-rw-r--r--sfx2/source/doc/guisaveas.cxx21
1 files changed, 0 insertions, 21 deletions
diff --git a/sfx2/source/doc/guisaveas.cxx b/sfx2/source/doc/guisaveas.cxx
index 1f75ff2dc1fa..c9692ca90d8c 100644
--- a/sfx2/source/doc/guisaveas.cxx
+++ b/sfx2/source/doc/guisaveas.cxx
@@ -355,27 +355,6 @@ ModelData_Impl::ModelData_Impl( SfxStoringHelper& aOwner,
, m_bRecommendReadOnly( false )
{
CheckInteractionHandler();
- try
- {
- uno::Reference< lang::XComponent > xCurrentComponent = frame::Desktop::create( comphelper::getProcessComponentContext() )->getCurrentComponent();
- if (aOwner.GetModuleManager()->identify(xCurrentComponent) == "com.sun.star.chart2.ChartDocument")
- {
- // let us switch the model and set the xStorable and
- // XStorable2 to the old model.
- // This is an ugly hack because we have no SfxObjectShell for chart2 yet.
- // We need SfxObjectShell for the heavy work around ODF document creation
- // because chart2 only writes the basic stream out.
- // In future in might make sense to implement a full scale object shell in
- // chart2 and make chart2 an own program.
- m_xModel.set(xCurrentComponent, uno::UNO_QUERY_THROW );
- m_xStorable.set(xModel, uno::UNO_QUERY_THROW );
- m_xStorable2.set(xModel, uno::UNO_QUERY_THROW );
- }
- }
- catch(...)
- {
- // we don't want to pass on any errors;
- }
}