summaryrefslogtreecommitdiff
path: root/sc/source/ui/docshell/docfunc.cxx
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2010-03-09 14:51:15 -0500
committerKohei Yoshida <kyoshida@novell.com>2010-03-09 14:51:15 -0500
commit5f94a5e44621da1ca3cf59df7d6cbace46606995 (patch)
treec0484cfa5a9108b132d0eae9e995a64e66cbb04c /sc/source/ui/docshell/docfunc.cxx
parentae6f4b5f20abc753f6d065e007c56a80b4925f6b (diff)
koheiextref01: #i108404# Disable interaction handler when interpreting formula strings via UNO API.
Diffstat (limited to 'sc/source/ui/docshell/docfunc.cxx')
-rw-r--r--sc/source/ui/docshell/docfunc.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/sc/source/ui/docshell/docfunc.cxx b/sc/source/ui/docshell/docfunc.cxx
index cd28daa99401..176ce4b2694a 100644
--- a/sc/source/ui/docshell/docfunc.cxx
+++ b/sc/source/ui/docshell/docfunc.cxx
@@ -92,8 +92,10 @@
#include "scui_def.hxx" //CHINA001
#include "tabprotection.hxx"
#include "clipparam.hxx"
+#include "externalrefmgr.hxx"
#include <memory>
+#include <boost/scoped_ptr.hpp>
using namespace com::sun::star;
using ::com::sun::star::uno::Sequence;
@@ -1035,6 +1037,13 @@ BOOL ScDocFunc::SetCellText( const ScAddress& rPos, const String& rText,
{
if ( bEnglish )
{
+ ::boost::scoped_ptr<ScExternalRefManager::ApiGuard> pExtRefGuard;
+ if (bApi)
+ {
+ ScExternalRefManager* pRefMgr = pDoc->GetExternalRefManager();
+ pExtRefGuard.reset(new ScExternalRefManager::ApiGuard(pRefMgr));
+ }
+
// code moved to own method InterpretEnglishString because it is also used in
// ScCellRangeObj::setFormulaArray