diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-10-21 23:21:37 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-10-22 09:30:23 +0300 |
commit | 9ecac3874d179b1d7aa6b45337001b1def06a9dd (patch) | |
tree | 120fc40fda1055a0f504e60c553b5734030d2741 /sc | |
parent | d0be09322d127e7d517851db38c764d57fbab2dc (diff) |
Replace DISABLE_SCRIPTING with HAVE_FEATURE_SCRIPTING
Feature test macros that govern conditional compilation should be
defined in config_*.h include files, not on the compilation command
line.
Change-Id: I40575a4762fd2564f10927b6f38a112dd9f9a3d7
Diffstat (limited to 'sc')
31 files changed, 55 insertions, 37 deletions
diff --git a/sc/CppunitTest_sc_annotationobj.mk b/sc/CppunitTest_sc_annotationobj.mk index 52cf7aba8e69..5ff4586abc52 100644 --- a/sc/CppunitTest_sc_annotationobj.mk +++ b/sc/CppunitTest_sc_annotationobj.mk @@ -87,7 +87,7 @@ $(eval $(call gb_CppunitTest_use_components,sc_annotationobj,\ sc/util/sc \ sc/util/scd \ sc/util/scfilt \ - $(if $(filter TRUE,$(DISABLE_SCRIPTING)),, \ + $(call gb_Helper_optional,SCRIPTING, \ sc/util/vbaobj) \ sfx2/util/sfx \ sot/util/sot \ diff --git a/sc/CppunitTest_sc_annotationshapeobj.mk b/sc/CppunitTest_sc_annotationshapeobj.mk index d979d56ce2ff..d986101075cc 100644 --- a/sc/CppunitTest_sc_annotationshapeobj.mk +++ b/sc/CppunitTest_sc_annotationshapeobj.mk @@ -84,7 +84,7 @@ $(eval $(call gb_CppunitTest_use_components,sc_annotationshapeobj,\ sc/util/sc \ sc/util/scd \ sc/util/scfilt \ - $(if $(filter TRUE,$(DISABLE_SCRIPTING)),, \ + $(call gb_Helper_optional,SCRIPTING, \ sc/util/vbaobj) \ sfx2/util/sfx \ sot/util/sot \ diff --git a/sc/CppunitTest_sc_annotationsobj.mk b/sc/CppunitTest_sc_annotationsobj.mk index b976a9c0043b..129646621044 100644 --- a/sc/CppunitTest_sc_annotationsobj.mk +++ b/sc/CppunitTest_sc_annotationsobj.mk @@ -87,7 +87,7 @@ $(eval $(call gb_CppunitTest_use_components,sc_annotationsobj,\ sc/util/sc \ sc/util/scd \ sc/util/scfilt \ - $(if $(filter TRUE,$(DISABLE_SCRIPTING)),, \ + $(call gb_Helper_optional,SCRIPTING, \ sc/util/vbaobj) \ sfx2/util/sfx \ sot/util/sot \ diff --git a/sc/CppunitTest_sc_cellrangeobj.mk b/sc/CppunitTest_sc_cellrangeobj.mk index 2d755ad91371..72b768129fd3 100644 --- a/sc/CppunitTest_sc_cellrangeobj.mk +++ b/sc/CppunitTest_sc_cellrangeobj.mk @@ -87,7 +87,7 @@ $(eval $(call gb_CppunitTest_use_components,sc_cellrangeobj,\ sc/util/sc \ sc/util/scd \ sc/util/scfilt \ - $(if $(filter TRUE,$(DISABLE_SCRIPTING)),, \ + $(call gb_Helper_optional,SCRIPTING, \ sc/util/vbaobj) \ sfx2/util/sfx \ sot/util/sot \ diff --git a/sc/CppunitTest_sc_chart_regression_test.mk b/sc/CppunitTest_sc_chart_regression_test.mk index 6b7897832c71..ce3a33d97586 100644 --- a/sc/CppunitTest_sc_chart_regression_test.mk +++ b/sc/CppunitTest_sc_chart_regression_test.mk @@ -88,7 +88,7 @@ $(eval $(call gb_CppunitTest_use_components,sc_chart_regression_test,\ sc/util/sc \ sc/util/scd \ sc/util/scfilt \ - $(if $(filter TRUE,$(DISABLE_SCRIPTING)),, \ + $(call gb_Helper_optional,SCRIPTING, \ sc/util/vbaobj) \ sfx2/util/sfx \ sot/util/sot \ diff --git a/sc/CppunitTest_sc_datapilotfieldobj.mk b/sc/CppunitTest_sc_datapilotfieldobj.mk index eb604afa36bd..80743eba0f44 100644 --- a/sc/CppunitTest_sc_datapilotfieldobj.mk +++ b/sc/CppunitTest_sc_datapilotfieldobj.mk @@ -86,7 +86,7 @@ $(eval $(call gb_CppunitTest_use_components,sc_datapilotfieldobj,\ sc/util/sc \ sc/util/scd \ sc/util/scfilt \ - $(if $(filter TRUE,$(DISABLE_SCRIPTING)),, \ + $(call gb_Helper_optional,SCRIPTING, \ sc/util/vbaobj) \ sfx2/util/sfx \ sot/util/sot \ diff --git a/sc/CppunitTest_sc_datapilottableobj.mk b/sc/CppunitTest_sc_datapilottableobj.mk index d55d3c71ded1..8403199008dc 100644 --- a/sc/CppunitTest_sc_datapilottableobj.mk +++ b/sc/CppunitTest_sc_datapilottableobj.mk @@ -86,7 +86,7 @@ $(eval $(call gb_CppunitTest_use_components,sc_datapilottableobj,\ sc/util/sc \ sc/util/scd \ sc/util/scfilt \ - $(if $(filter TRUE,$(DISABLE_SCRIPTING)),, \ + $(call gb_Helper_optional,SCRIPTING, \ sc/util/vbaobj) \ sfx2/util/sfx \ sot/util/sot \ diff --git a/sc/CppunitTest_sc_editfieldobj_cell.mk b/sc/CppunitTest_sc_editfieldobj_cell.mk index 05f9aabd87df..5c9314310ace 100644 --- a/sc/CppunitTest_sc_editfieldobj_cell.mk +++ b/sc/CppunitTest_sc_editfieldobj_cell.mk @@ -85,7 +85,7 @@ $(eval $(call gb_CppunitTest_use_components,sc_editfieldobj_cell,\ sc/util/sc \ sc/util/scd \ sc/util/scfilt \ - $(if $(filter TRUE,$(DISABLE_SCRIPTING)),, \ + $(call gb_Helper_optional,SCRIPTING, \ sc/util/vbaobj) \ sfx2/util/sfx \ sot/util/sot \ diff --git a/sc/CppunitTest_sc_editfieldobj_header.mk b/sc/CppunitTest_sc_editfieldobj_header.mk index 98dc86fa5f55..19c44a8311db 100644 --- a/sc/CppunitTest_sc_editfieldobj_header.mk +++ b/sc/CppunitTest_sc_editfieldobj_header.mk @@ -85,7 +85,7 @@ $(eval $(call gb_CppunitTest_use_components,sc_editfieldobj_header,\ sc/util/sc \ sc/util/scd \ sc/util/scfilt \ - $(if $(filter TRUE,$(DISABLE_SCRIPTING)),, \ + $(call gb_Helper_optional,SCRIPTING, \ sc/util/vbaobj) \ sfx2/util/sfx \ sot/util/sot \ diff --git a/sc/CppunitTest_sc_html_export_test.mk b/sc/CppunitTest_sc_html_export_test.mk index 1a66cf6f7a56..21aa210caa5a 100644 --- a/sc/CppunitTest_sc_html_export_test.mk +++ b/sc/CppunitTest_sc_html_export_test.mk @@ -90,7 +90,7 @@ $(eval $(call gb_CppunitTest_use_components,sc_html_export_test,\ sc/util/sc \ sc/util/scd \ sc/util/scfilt \ - $(if $(filter TRUE,$(DISABLE_SCRIPTING)),, \ + $(call gb_Helper_optional,SCRIPTING, \ sc/util/vbaobj) \ sfx2/util/sfx \ sot/util/sot \ diff --git a/sc/CppunitTest_sc_macros_test.mk b/sc/CppunitTest_sc_macros_test.mk index c55be35922a3..4794387c88a7 100644 --- a/sc/CppunitTest_sc_macros_test.mk +++ b/sc/CppunitTest_sc_macros_test.mk @@ -93,7 +93,7 @@ $(eval $(call gb_CppunitTest_use_components,sc_macros_test,\ sc/util/sc \ sc/util/scd \ sc/util/scfilt \ - $(if $(filter TRUE,$(DISABLE_SCRIPTING)),, \ + $(call gb_Helper_optional,SCRIPTING, \ sc/util/vbaobj) \ sfx2/util/sfx \ sot/util/sot \ diff --git a/sc/CppunitTest_sc_modelobj.mk b/sc/CppunitTest_sc_modelobj.mk index bcdd9db9e81e..c315209b9170 100644 --- a/sc/CppunitTest_sc_modelobj.mk +++ b/sc/CppunitTest_sc_modelobj.mk @@ -86,7 +86,7 @@ $(eval $(call gb_CppunitTest_use_components,sc_modelobj,\ sc/util/sc \ sc/util/scd \ sc/util/scfilt \ - $(if $(filter TRUE,$(DISABLE_SCRIPTING)),, \ + $(call gb_Helper_optional,SCRIPTING, \ sc/util/vbaobj) \ sfx2/util/sfx \ sot/util/sot \ diff --git a/sc/CppunitTest_sc_namedrangeobj.mk b/sc/CppunitTest_sc_namedrangeobj.mk index 605bfb634d45..8a0e592e9c49 100644 --- a/sc/CppunitTest_sc_namedrangeobj.mk +++ b/sc/CppunitTest_sc_namedrangeobj.mk @@ -86,7 +86,7 @@ $(eval $(call gb_CppunitTest_use_components,sc_namedrangeobj,\ sc/util/sc \ sc/util/scd \ sc/util/scfilt \ - $(if $(filter TRUE,$(DISABLE_SCRIPTING)),, \ + $(call gb_Helper_optional,SCRIPTING, \ sc/util/vbaobj) \ sfx2/util/sfx \ sot/util/sot \ diff --git a/sc/CppunitTest_sc_namedrangesobj.mk b/sc/CppunitTest_sc_namedrangesobj.mk index 70a0aa7ada45..dc001a18a8e5 100644 --- a/sc/CppunitTest_sc_namedrangesobj.mk +++ b/sc/CppunitTest_sc_namedrangesobj.mk @@ -86,7 +86,7 @@ $(eval $(call gb_CppunitTest_use_components,sc_namedrangesobj,\ sc/util/sc \ sc/util/scd \ sc/util/scfilt \ - $(if $(filter TRUE,$(DISABLE_SCRIPTING)),, \ + $(call gb_Helper_optional,SCRIPTING, \ sc/util/vbaobj) \ sfx2/util/sfx \ sot/util/sot \ diff --git a/sc/CppunitTest_sc_outlineobj.mk b/sc/CppunitTest_sc_outlineobj.mk index 06c401a5a37e..3bf08697efeb 100644 --- a/sc/CppunitTest_sc_outlineobj.mk +++ b/sc/CppunitTest_sc_outlineobj.mk @@ -87,7 +87,7 @@ $(eval $(call gb_CppunitTest_use_components,sc_outlineobj,\ sc/util/sc \ sc/util/scd \ sc/util/scfilt \ - $(if $(filter TRUE,$(DISABLE_SCRIPTING)),, \ + $(call gb_Helper_optional,SCRIPTING, \ sc/util/vbaobj) \ sfx2/util/sfx \ sot/util/sot \ diff --git a/sc/CppunitTest_sc_rangelst_test.mk b/sc/CppunitTest_sc_rangelst_test.mk index 08a3e531ea5e..24e885c5ec07 100644 --- a/sc/CppunitTest_sc_rangelst_test.mk +++ b/sc/CppunitTest_sc_rangelst_test.mk @@ -102,7 +102,7 @@ $(eval $(call gb_CppunitTest_use_components,sc_rangelst_test,\ sc/util/sc \ sc/util/scd \ sc/util/scfilt \ - $(if $(filter TRUE,$(DISABLE_SCRIPTING)),, \ + $(call gb_Helper_optional,SCRIPTING, \ sc/util/vbaobj) \ sfx2/util/sfx \ sot/util/sot \ diff --git a/sc/CppunitTest_sc_styleloaderobj.mk b/sc/CppunitTest_sc_styleloaderobj.mk index 128a132c982b..1cff77ac23a2 100644 --- a/sc/CppunitTest_sc_styleloaderobj.mk +++ b/sc/CppunitTest_sc_styleloaderobj.mk @@ -87,7 +87,7 @@ $(eval $(call gb_CppunitTest_use_components,sc_styleloaderobj,\ sc/util/sc \ sc/util/scd \ sc/util/scfilt \ - $(if $(filter TRUE,$(DISABLE_SCRIPTING)),, \ + $(call gb_Helper_optional,SCRIPTING, \ sc/util/vbaobj) \ sfx2/util/sfx \ sot/util/sot \ diff --git a/sc/CppunitTest_sc_tablesheetobj.mk b/sc/CppunitTest_sc_tablesheetobj.mk index 5df98b1870d2..6063d4869c11 100644 --- a/sc/CppunitTest_sc_tablesheetobj.mk +++ b/sc/CppunitTest_sc_tablesheetobj.mk @@ -87,7 +87,7 @@ $(eval $(call gb_CppunitTest_use_components,sc_tablesheetobj,\ sc/util/sc \ sc/util/scd \ sc/util/scfilt \ - $(if $(filter TRUE,$(DISABLE_SCRIPTING)),, \ + $(call gb_Helper_optional,SCRIPTING, \ sc/util/vbaobj) \ sfx2/util/sfx \ sot/util/sot \ diff --git a/sc/CppunitTest_sc_tablesheetsobj.mk b/sc/CppunitTest_sc_tablesheetsobj.mk index 4ba558974173..08952044a34d 100644 --- a/sc/CppunitTest_sc_tablesheetsobj.mk +++ b/sc/CppunitTest_sc_tablesheetsobj.mk @@ -87,7 +87,7 @@ $(eval $(call gb_CppunitTest_use_components,sc_tablesheetsobj,\ sc/util/sc \ sc/util/scd \ sc/util/scfilt \ - $(if $(filter TRUE,$(DISABLE_SCRIPTING)),, \ + $(call gb_Helper_optional,SCRIPTING, \ sc/util/vbaobj) \ sfx2/util/sfx \ sot/util/sot \ diff --git a/sc/Library_sc.mk b/sc/Library_sc.mk index 20460ee5b146..cdd422822c66 100644 --- a/sc/Library_sc.mk +++ b/sc/Library_sc.mk @@ -85,7 +85,7 @@ $(eval $(call gb_Library_use_libraries,sc,\ tl \ ucbhelper \ utl \ - $(if $(filter TRUE,$(DISABLE_SCRIPTING)),, \ + $(call gb_Helper_optional,SCRIPTING, \ vbahelper) \ vcl \ vclopengl \ diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk index 464764fa3871..0cb59e30ead6 100644 --- a/sc/Module_sc.mk +++ b/sc/Module_sc.mk @@ -42,7 +42,7 @@ $(eval $(call gb_Module_add_targets,sc,\ endif -ifneq ($(DISABLE_SCRIPTING),TRUE) +ifneq ($(filter SCRIPTING,$(BUILD_TYPE)),) $(eval $(call gb_Module_add_targets,sc,\ Library_vbaobj \ diff --git a/sc/source/core/data/validat.cxx b/sc/source/core/data/validat.cxx index f5a757151d22..b760be31fe0c 100644 --- a/sc/source/core/data/validat.cxx +++ b/sc/source/core/data/validat.cxx @@ -17,6 +17,8 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <config_features.h> + #include "validat.hxx" #include <sfx2/app.hxx> @@ -280,7 +282,7 @@ bool ScValidationData::DoMacro( const ScAddress& rPos, const OUString& rInput, // the Sbx-Objekt may not be created (?) // pDocSh->GetSbxObject(); -#ifndef DISABLE_SCRIPTING +#if HAVE_FEATURE_SCRIPTING // no security check ahead (only CheckMacroWarn), that happens in CallBasic // Function search by their simple name, diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx index 857087f18361..7840c9ddbaf5 100644 --- a/sc/source/core/tool/compiler.cxx +++ b/sc/source/core/tool/compiler.cxx @@ -17,6 +17,8 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <config_features.h> + #include "compiler.hxx" #include <sfx2/app.hxx> @@ -2807,7 +2809,7 @@ bool ScCompiler::IsReference( const OUString& rName ) bool ScCompiler::IsMacro( const OUString& rName ) { -#ifdef DISABLE_SCRIPTING +#if !HAVE_FEATURE_SCRIPTING (void) rName; return false; diff --git a/sc/source/core/tool/interpr4.cxx b/sc/source/core/tool/interpr4.cxx index 710b4a0686d0..2b1b92ad6f35 100644 --- a/sc/source/core/tool/interpr4.cxx +++ b/sc/source/core/tool/interpr4.cxx @@ -17,6 +17,8 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <config_features.h> + #include "interpre.hxx" #include <rangelst.hxx> @@ -3030,7 +3032,7 @@ void ScInterpreter::ScMissing() PushTempToken( new FormulaMissingToken ); } -#ifndef DISABLE_SCRIPTING +#if HAVE_FEATURE_SCRIPTING static uno::Any lcl_getSheetModule( const uno::Reference<table::XCellRange>& xCellRange, ScDocument* pDok ) { @@ -3096,7 +3098,7 @@ static bool lcl_setVBARange( ScRange& aRange, ScDocument* pDok, SbxVariable* pPa void ScInterpreter::ScMacro() { -#ifdef DISABLE_SCRIPTING +#if !HAVE_FEATURE_SCRIPTING PushNoValue(); // ohne DocShell kein CallBasic return; #else @@ -3396,7 +3398,7 @@ void ScInterpreter::ScMacro() #endif } -#ifndef DISABLE_SCRIPTING +#if HAVE_FEATURE_SCRIPTING bool ScInterpreter::SetSbxVariable( SbxVariable* pVar, const ScAddress& rPos ) { diff --git a/sc/source/filter/excel/excimp8.cxx b/sc/source/filter/excel/excimp8.cxx index 0f59432e1fed..38b7cf65052c 100644 --- a/sc/source/filter/excel/excimp8.cxx +++ b/sc/source/filter/excel/excimp8.cxx @@ -17,6 +17,8 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <config_features.h> + #include "excimp8.hxx" #include <boost/bind.hpp> @@ -433,7 +435,7 @@ void ImportExcel8::EndSheet( void ) void ImportExcel8::PostDocLoad( void ) { -#ifndef DISABLE_SCRIPTING +#if HAVE_FEATURE_SCRIPTING // reading basic has been delayed until sheet objects (codenames etc.) are read if( HasBasic() ) ReadBasic(); diff --git a/sc/source/ui/docshell/docsh4.cxx b/sc/source/ui/docshell/docsh4.cxx index a8f7883c51cc..a3dce4dbccec 100644 --- a/sc/source/ui/docshell/docsh4.cxx +++ b/sc/source/ui/docshell/docsh4.cxx @@ -157,14 +157,14 @@ void ScDocShell::Execute( SfxRequest& rReq ) } else // geschuetzte Zelle { -#ifndef DISABLE_SCRIPTING +#if HAVE_FEATURE_SCRIPTING SbxBase::SetError( SbxERR_BAD_PARAMETER ); //! welchen Fehler ? #endif break; } } } -#ifndef DISABLE_SCRIPTING +#if HAVE_FEATURE_SCRIPTING SbxBase::SetError( SbxERR_NO_OBJECT ); #endif } @@ -1095,7 +1095,7 @@ void ScDocShell::Execute( SfxRequest& rReq ) ScTabViewShell* pSh = GetBestViewShell(); if ( pSh ) pSh->Execute( rReq ); -#ifndef DISABLE_SCRIPTING +#if HAVE_FEATURE_SCRIPTING else SbxBase::SetError( SbxERR_NO_ACTIVE_OBJECT ); #endif diff --git a/sc/source/ui/unoobj/servuno.cxx b/sc/source/ui/unoobj/servuno.cxx index 946c3e1d3303..017e760fd944 100644 --- a/sc/source/ui/unoobj/servuno.cxx +++ b/sc/source/ui/unoobj/servuno.cxx @@ -17,6 +17,8 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <config_features.h> + #include <sal/macros.h> #include <svtools/unoimap.hxx> #include <svx/unofill.hxx> @@ -587,7 +589,7 @@ uno::Reference<uno::XInterface> ScServiceProvider::MakeInstance( xRet.set(static_cast<sheet::XFormulaOpCodeMapper*>(new ScFormulaOpCodeMapperObj(::std::unique_ptr<formula::FormulaCompiler> (pComp)))); break; } -#ifndef DISABLE_SCRIPTING +#if HAVE_FEATURE_SCRIPTING case SC_SERVICE_VBAOBJECTPROVIDER: if (pDocShell && pDocShell->GetDocument().IsInVBAMode()) { diff --git a/sc/source/ui/view/cellsh1.cxx b/sc/source/ui/view/cellsh1.cxx index 5c63df47494e..4440f9cf919e 100644 --- a/sc/source/ui/view/cellsh1.cxx +++ b/sc/source/ui/view/cellsh1.cxx @@ -17,6 +17,8 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <config_features.h> + #include <com/sun/star/i18n/TextConversionOption.hpp> #include <com/sun/star/sheet/DataPilotFieldFilter.hpp> @@ -1807,7 +1809,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq ) rReq.Done(); } -#ifndef DISABLE_SCRIPTING +#if HAVE_FEATURE_SCRIPTING else if (rReq.IsAPI()) SbxBase::SetError(SbxERR_BAD_PARAMETER); #endif @@ -1854,7 +1856,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq ) { if (pTabViewShell->InsertName( aName, aSymbol, aAttrib )) rReq.Done(); -#ifndef DISABLE_SCRIPTING +#if HAVE_FEATURE_SCRIPTING else SbxBase::SetError( SbxERR_BAD_PARAMETER ); // Basic-error #endif diff --git a/sc/source/ui/view/cellsh2.cxx b/sc/source/ui/view/cellsh2.cxx index 11e0166ef5dd..68c0bcbb5d91 100644 --- a/sc/source/ui/view/cellsh2.cxx +++ b/sc/source/ui/view/cellsh2.cxx @@ -17,6 +17,8 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <config_features.h> + #include "scitems.hxx" #include <sfx2/viewfrm.hxx> #include <sfx2/app.hxx> @@ -667,7 +669,7 @@ void ScCellShell::ExecuteDB( SfxRequest& rReq ) } rReq.Done(); } -#ifndef DISABLE_SCRIPTING +#if HAVE_FEATURE_SCRIPTING else if (rReq.IsAPI()) SbxBase::SetError(SbxERR_BAD_PARAMETER); #endif diff --git a/sc/source/ui/view/tabvwshf.cxx b/sc/source/ui/view/tabvwshf.cxx index 75b221ecff45..4a28181e3d0a 100644 --- a/sc/source/ui/view/tabvwshf.cxx +++ b/sc/source/ui/view/tabvwshf.cxx @@ -17,6 +17,8 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <config_features.h> + #include <boost/scoped_ptr.hpp> #include "scitems.hxx" @@ -404,7 +406,7 @@ void ScTabViewShell::ExecuteTable( SfxRequest& rReq ) { if( rReq.IsAPI() ) { -#ifndef DISABLE_SCRIPTING +#if HAVE_FEATURE_SCRIPTING StarBASIC::Error( SbERR_SETPROP_FAILED ); // XXX Fehlerbehandlung??? #endif } @@ -736,7 +738,7 @@ void ScTabViewShell::ExecuteTable( SfxRequest& rReq ) { if( rReq.IsAPI() ) { -#ifndef DISABLE_SCRIPTING +#if HAVE_FEATURE_SCRIPTING StarBASIC::Error( SbERR_SETPROP_FAILED ); #endif } diff --git a/sc/source/ui/view/tabvwshh.cxx b/sc/source/ui/view/tabvwshh.cxx index 641998930843..89a7bc9395b6 100644 --- a/sc/source/ui/view/tabvwshh.cxx +++ b/sc/source/ui/view/tabvwshh.cxx @@ -17,6 +17,8 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <config_features.h> + #include <svx/svdmark.hxx> #include <svx/svdoole2.hxx> #include <svx/svdview.hxx> @@ -131,7 +133,7 @@ void ScTabViewShell::ExecuteObject( SfxRequest& rReq ) } } } -#ifndef DISABLE_SCRIPTING +#if HAVE_FEATURE_SCRIPTING if (!bDone) SbxBase::SetError( SbxERR_BAD_PARAMETER ); // Basic-Fehler #endif |