summaryrefslogtreecommitdiff
path: root/sc/source/core/tool/compiler.cxx
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2012-03-01 01:11:48 +0200
committerTor Lillqvist <tml@iki.fi>2012-03-01 01:26:19 +0200
commitfead7eb86f0e7e095f873f20bd6812a5bded0e74 (patch)
treecf5e68806762e3002d417463554a0ee0b28e0233 /sc/source/core/tool/compiler.cxx
parent6d33801b4498f5c13d2dc75588f88c22a11f455b (diff)
Some initial DISABLE_SCRIPTING ifdefs
Diffstat (limited to 'sc/source/core/tool/compiler.cxx')
-rw-r--r--sc/source/core/tool/compiler.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx
index a1c1ecfc4764..454fab93c246 100644
--- a/sc/source/core/tool/compiler.cxx
+++ b/sc/source/core/tool/compiler.cxx
@@ -2878,6 +2878,11 @@ bool ScCompiler::IsReference( const String& rName )
bool ScCompiler::IsMacro( const String& rName )
{
+#ifdef DISABLE_SCRIPTING
+ (void) rName;
+
+ return false;
+#else
String aName( rName);
StarBASIC* pObj = 0;
SfxObjectShell* pDocSh = pDoc->GetDocumentShell();
@@ -2913,6 +2918,7 @@ bool ScCompiler::IsMacro( const String& rName )
aToken.eOp = ocMacro;
pRawToken = aToken.Clone();
return true;
+#endif
}
bool ScCompiler::IsNamedRange( const String& rUpperName )