diff options
author | Tor Lillqvist <tml@iki.fi> | 2012-03-01 01:11:48 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2012-03-01 01:26:19 +0200 |
commit | fead7eb86f0e7e095f873f20bd6812a5bded0e74 (patch) | |
tree | cf5e68806762e3002d417463554a0ee0b28e0233 /sc/source/core/tool/compiler.cxx | |
parent | 6d33801b4498f5c13d2dc75588f88c22a11f455b (diff) |
Some initial DISABLE_SCRIPTING ifdefs
Diffstat (limited to 'sc/source/core/tool/compiler.cxx')
-rw-r--r-- | sc/source/core/tool/compiler.cxx | 6 |
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 ) |