[Libreoffice-commits] core.git: Branch 'feature/datastreams' - sc/sdi sc/source
Matúš Kukan
matus.kukan at collabora.com
Thu Nov 28 11:35:57 PST 2013
sc/sdi/cellsh.sdi | 6 +++---
sc/source/filter/xml/xmlcelli.cxx | 4 +++-
sc/source/ui/view/cellsh2.cxx | 11 ++++++++++-
3 files changed, 16 insertions(+), 5 deletions(-)
New commits:
commit fbe8d7abb8d5aed901287e481b685804b3ab5050
Author: Matúš Kukan <matus.kukan at collabora.com>
Date: Thu Nov 28 20:33:37 2013 +0100
make data streams an experimental feature
Change-Id: I674b86a6e1c1c0b162c159747b6900ce438ab095
diff --git a/sc/sdi/cellsh.sdi b/sc/sdi/cellsh.sdi
index 470e319..2fe1237 100644
--- a/sc/sdi/cellsh.sdi
+++ b/sc/sdi/cellsh.sdi
@@ -51,9 +51,9 @@ interface CellSelection
SID_REFRESH_DBAREA [ ExecMethod = ExecuteDB; StateMethod = GetDBState; ]
SID_SBA_BRW_INSERT [ ExecMethod = ExecuteDB; StateMethod = GetDBState; ]
SID_SELECT_DB [ ExecMethod = ExecuteDB; StateMethod = GetDBState; ]
- SID_DATA_STREAMS [ ExecMethod = ExecuteDB; ]
- SID_DATA_STREAMS_PLAY [ ExecMethod = ExecuteDB; ]
- SID_DATA_STREAMS_STOP [ ExecMethod = ExecuteDB; ]
+ SID_DATA_STREAMS [ ExecMethod = ExecuteDB; StateMethod = GetDBState; ]
+ SID_DATA_STREAMS_PLAY [ ExecMethod = ExecuteDB; StateMethod = GetDBState; ]
+ SID_DATA_STREAMS_STOP [ ExecMethod = ExecuteDB; StateMethod = GetDBState; ]
SID_MANAGE_XML_SOURCE [ ExecMethod = ExecuteDB; StateMethod = GetDBState; ]
SID_SORT [ ExecMethod = ExecuteDB; StateMethod = GetDBState; ]
SID_DATA_FORM [ ExecMethod = ExecuteDB; StateMethod = GetDBState; ]
diff --git a/sc/source/filter/xml/xmlcelli.cxx b/sc/source/filter/xml/xmlcelli.cxx
index 5ca7129..1875afa 100644
--- a/sc/source/filter/xml/xmlcelli.cxx
+++ b/sc/source/filter/xml/xmlcelli.cxx
@@ -86,6 +86,7 @@
#include "editeng/langitem.hxx"
#include <svx/unoapi.hxx>
#include <svl/languageoptions.hxx>
+#include <svtools/miscopt.hxx>
#include <sax/tools/converter.hxx>
#include <com/sun/star/frame/XModel.hpp>
@@ -1001,7 +1002,8 @@ void ScXMLTableRowCellContext::SetCellRangeSource( const ScAddress& rPosition )
OUString sSourceStr( pCellRangeSource->sSourceStr );
OUString sRangeStr;
ScRangeStringConverter::GetStringFromRange( sRangeStr, aDestRange, pDoc, formula::FormulaGrammar::CONV_OOO );
- if (pCellRangeSource->sFilterOptions == "DataStream")
+ SvtMiscOptions aMiscOptions;
+ if (aMiscOptions.IsExperimentalMode() && pCellRangeSource->sFilterOptions == "DataStream")
{
DataStream::Set( dynamic_cast<ScDocShell*>(pDoc->GetDocumentShell())
, pCellRangeSource->sURL // rURL
diff --git a/sc/source/ui/view/cellsh2.cxx b/sc/source/ui/view/cellsh2.cxx
index a8d301e..71c9282 100644
--- a/sc/source/ui/view/cellsh2.cxx
+++ b/sc/source/ui/view/cellsh2.cxx
@@ -29,6 +29,7 @@
#include <vcl/msgbox.hxx>
#include <svl/stritem.hxx>
#include <svl/visitem.hxx>
+#include <svtools/miscopt.hxx>
#include <unotools/moduleoptions.hxx>
#include <com/sun/star/frame/FrameSearchFlag.hpp>
@@ -1167,7 +1168,15 @@ void ScCellShell::GetDBState( SfxItemSet& rSet )
}
}
break;
-
+ case SID_DATA_STREAMS:
+ case SID_DATA_STREAMS_PLAY:
+ case SID_DATA_STREAMS_STOP:
+ {
+ SvtMiscOptions aMiscOptions;
+ if ( !aMiscOptions.IsExperimentalMode() )
+ rSet.DisableItem( nWhich );
+ }
+ break;
case SID_TEXT_TO_COLUMNS:
{
ScRange aRange;
More information about the Libreoffice-commits
mailing list