diff options
author | npower Developer <npower@openoffice.org> | 2010-04-26 11:55:58 +0100 |
---|---|---|
committer | npower Developer <npower@openoffice.org> | 2010-04-26 11:55:58 +0100 |
commit | 1d30ea43d0fd1353da7d4fb591dcbc1688bc07d8 (patch) | |
tree | 56540d10791ef95f828668a0ef023dd87daa5afc /basic | |
parent | b9840e950dfbba863080dd0de76c75364261ecf9 (diff) |
ab75: #i110417# add licence, remove unnecessary lines in resource and correct tweak in stepERROR so that in non-vba mode all is as it was before
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/classes/errobject.cxx | 27 | ||||
-rw-r--r-- | basic/source/classes/sb.src | 2 | ||||
-rw-r--r-- | basic/source/inc/errobject.hxx | 27 | ||||
-rw-r--r-- | basic/source/runtime/step0.cxx | 5 |
4 files changed, 58 insertions, 3 deletions
diff --git a/basic/source/classes/errobject.cxx b/basic/source/classes/errobject.cxx index c34fa0a49aec..406d6f9b1a0b 100644 --- a/basic/source/classes/errobject.cxx +++ b/basic/source/classes/errobject.cxx @@ -1,3 +1,30 @@ +/************************************************************************* +* +* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. +* +* Copyright 2000, 2010 Oracle and/or its affiliates. +* +* OpenOffice.org - a multi-platform office productivity suite +* +* This file is part of OpenOffice.org. +* +* OpenOffice.org is free software: you can redistribute it and/or modify +* it under the terms of the GNU Lesser General Public License version 3 +* only, as published by the Free Software Foundation. +* +* OpenOffice.org is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU Lesser General Public License version 3 for more details +* (a copy is included in the LICENSE file that accompanied this code). +* +* You should have received a copy of the GNU Lesser General Public License +* version 3 along with OpenOffice.org. If not, see +* <http://www.openoffice.org/license.html> +* for a copy of the LGPLv3 License. +* +************************************************************************/ + // MARKER(update_precomp.py): autogen include statement, do not remove #include "precompiled_basic.hxx" #include "errobject.hxx" diff --git a/basic/source/classes/sb.src b/basic/source/classes/sb.src index 4e0eacf10d2f..73cc1c3a0b2c 100644 --- a/basic/source/classes/sb.src +++ b/basic/source/classes/sb.src @@ -590,9 +590,7 @@ Resource RID_BASIC_START }; String ERRCODE_BASIC_COMPAT & ERRCODE_RES_MASK { - Text [ de ] = "$(ARG1)" ; Text [ en-US ] = "$(ARG1)" ; - Text [ x-comment ] = " "; }; }; // Hinweis: IDS_SBERR_TERMINATED = IDS_SBERR_START+2000. diff --git a/basic/source/inc/errobject.hxx b/basic/source/inc/errobject.hxx index 51d4b6caa4f9..7a50d2435eb3 100644 --- a/basic/source/inc/errobject.hxx +++ b/basic/source/inc/errobject.hxx @@ -1,3 +1,30 @@ +/************************************************************************* +* +* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. +* +* Copyright 2000, 2010 Oracle and/or its affiliates. +* +* OpenOffice.org - a multi-platform office productivity suite +* +* This file is part of OpenOffice.org. +* +* OpenOffice.org is free software: you can redistribute it and/or modify +* it under the terms of the GNU Lesser General Public License version 3 +* only, as published by the Free Software Foundation. +* +* OpenOffice.org is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU Lesser General Public License version 3 for more details +* (a copy is included in the LICENSE file that accompanied this code). +* +* You should have received a copy of the GNU Lesser General Public License +* version 3 along with OpenOffice.org. If not, see +* <http://www.openoffice.org/license.html> +* for a copy of the LGPLv3 License. +* +************************************************************************/ + #ifndef ERROBJECT_HXX #define ERROBJECT_HXX #include "sbunoobj.hxx" diff --git a/basic/source/runtime/step0.cxx b/basic/source/runtime/step0.cxx index b432d1851ed5..39af5ea4adc3 100644 --- a/basic/source/runtime/step0.cxx +++ b/basic/source/runtime/step0.cxx @@ -1271,6 +1271,9 @@ void SbiRuntime::StepERROR() SbxVariableRef refCode = PopVar(); USHORT n = refCode->GetUShort(); SbError error = StarBASIC::GetSfxFromVBError( n ); - pInst->Error( error ); + if ( bVBAEnabled ) + pInst->Error( error ); + else + Error( error ); } |