summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/objstor.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/objstor.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/objstor.cxx')
-rw-r--r--sfx2/source/doc/objstor.cxx49
1 files changed, 5 insertions, 44 deletions
diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx
index 78f00adceb57..f1ae5b009231 100644
--- a/sfx2/source/doc/objstor.cxx
+++ b/sfx2/source/doc/objstor.cxx
@@ -300,38 +300,9 @@ SvGlobalName const & SfxObjectShell::GetClassName() const
return GetFactory().GetClassId();
}
-namespace {
-
-/**
- * Chart2 does not have an Object shell, so handle this here for now
- * If we ever implement a full scale object shell in chart2 move it there
- */
-SotClipboardFormatId GetChartVersion( sal_Int32 nVersion, bool bTemplate )
-{
- if( nVersion == SOFFICE_FILEFORMAT_60)
- {
- return SotClipboardFormatId::STARCHART_60;
- }
- else if( nVersion == SOFFICE_FILEFORMAT_8)
- {
- if (bTemplate)
- {
- SAL_WARN("sfx.doc", "no chart template support yet");
- return SotClipboardFormatId::STARCHART_8;
- }
- else
- return SotClipboardFormatId::STARCHART_8;
- }
-
- SAL_WARN("sfx.doc", "unsupported version");
- return SotClipboardFormatId::NONE;
-}
-
-}
-
void SfxObjectShell::SetupStorage( const uno::Reference< embed::XStorage >& xStorage,
- sal_Int32 nVersion, bool bTemplate, bool bChart ) const
+ sal_Int32 nVersion, bool bTemplate ) const
{
uno::Reference< beans::XPropertySet > xProps( xStorage, uno::UNO_QUERY );
@@ -339,14 +310,9 @@ void SfxObjectShell::SetupStorage( const uno::Reference< embed::XStorage >& xSto
{
SotClipboardFormatId nClipFormat = SotClipboardFormatId::NONE;
- if(!bChart)
- {
- SvGlobalName aName;
- OUString aFullTypeName, aShortTypeName, aAppName;
- FillClass( &aName, &nClipFormat, &aAppName, &aFullTypeName, &aShortTypeName, nVersion, bTemplate );
- }
- else
- nClipFormat = GetChartVersion(nVersion, bTemplate);
+ SvGlobalName aName;
+ OUString aFullTypeName, aShortTypeName, aAppName;
+ FillClass( &aName, &nClipFormat, &aAppName, &aFullTypeName, &aShortTypeName, nVersion, bTemplate );
if ( nClipFormat != SotClipboardFormatId::NONE )
{
@@ -3069,12 +3035,7 @@ bool SfxObjectShell::SaveAsOwnFormat( SfxMedium& rMedium )
const bool bTemplate = rMedium.GetFilter()->IsOwnTemplateFormat()
&& nVersion > SOFFICE_FILEFORMAT_60;
- std::shared_ptr<const SfxFilter> pFilter = rMedium.GetFilter();
- bool bChart = false;
- if(pFilter->GetName() == "chart8")
- bChart = true;
-
- SetupStorage( xStorage, nVersion, bTemplate, bChart );
+ SetupStorage( xStorage, nVersion, bTemplate );
#if HAVE_FEATURE_SCRIPTING
if ( HasBasic() )
{