1*e1f63238SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*e1f63238SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*e1f63238SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*e1f63238SAndrew Rist * distributed with this work for additional information 6*e1f63238SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*e1f63238SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*e1f63238SAndrew Rist * "License"); you may not use this file except in compliance 9*e1f63238SAndrew Rist * with the License. You may obtain a copy of the License at 10*e1f63238SAndrew Rist * 11*e1f63238SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*e1f63238SAndrew Rist * 13*e1f63238SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*e1f63238SAndrew Rist * software distributed under the License is distributed on an 15*e1f63238SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*e1f63238SAndrew Rist * KIND, either express or implied. See the License for the 17*e1f63238SAndrew Rist * specific language governing permissions and limitations 18*e1f63238SAndrew Rist * under the License. 19*e1f63238SAndrew Rist * 20*e1f63238SAndrew Rist *************************************************************/ 21*e1f63238SAndrew Rist 22*e1f63238SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove 25cdf0e10cSrcweir #include "precompiled_basic.hxx" 26cdf0e10cSrcweir #include <tools/shl.hxx> 27cdf0e10cSrcweir 28cdf0e10cSrcweir #include "sbintern.hxx" 29cdf0e10cSrcweir #include "sbunoobj.hxx" 30cdf0e10cSrcweir #include "token.hxx" // Tokenizer 31cdf0e10cSrcweir #include "symtbl.hxx" // Symbolverwaltung 32cdf0e10cSrcweir #include "parser.hxx" // Parser 33cdf0e10cSrcweir #include "codegen.hxx" // Code-Generator 34cdf0e10cSrcweir #include <basic/basmgr.hxx> 35cdf0e10cSrcweir SV_IMPL_PTRARR(SbErrorStack,SbErrorStackEntry *)36cdf0e10cSrcweirSV_IMPL_PTRARR(SbErrorStack, SbErrorStackEntry*) 37cdf0e10cSrcweir 38cdf0e10cSrcweir SbiGlobals* GetSbData() 39cdf0e10cSrcweir { 40cdf0e10cSrcweir SbiGlobals** pp = (SbiGlobals**) ::GetAppData( SHL_SBC ); 41cdf0e10cSrcweir SbiGlobals* p = *pp; 42cdf0e10cSrcweir if( !p ) 43cdf0e10cSrcweir p = *pp = new SbiGlobals; 44cdf0e10cSrcweir return p; 45cdf0e10cSrcweir } 46cdf0e10cSrcweir SbiGlobals()47cdf0e10cSrcweirSbiGlobals::SbiGlobals() 48cdf0e10cSrcweir { 49cdf0e10cSrcweir pInst = NULL; 50cdf0e10cSrcweir pMod = NULL; 51cdf0e10cSrcweir pSbFac= NULL; 52cdf0e10cSrcweir pUnoFac = NULL; 53cdf0e10cSrcweir pTypeFac = NULL; 54cdf0e10cSrcweir pOLEFac = NULL; 55cdf0e10cSrcweir pCompMod = NULL; // JSM 56cdf0e10cSrcweir nInst = 0; 57cdf0e10cSrcweir nCode = 0; 58cdf0e10cSrcweir nLine = 0; 59cdf0e10cSrcweir nCol1 = nCol2 = 0; 60cdf0e10cSrcweir bCompiler = sal_False; 61cdf0e10cSrcweir bGlobalInitErr = sal_False; 62cdf0e10cSrcweir bRunInit = sal_False; 63cdf0e10cSrcweir eLanguageMode = SB_LANG_BASIC; 64cdf0e10cSrcweir pErrStack = NULL; 65cdf0e10cSrcweir pTransliterationWrapper = NULL; 66cdf0e10cSrcweir bBlockCompilerError = sal_False; 67cdf0e10cSrcweir pAppBasMgr = NULL; 68cdf0e10cSrcweir pMSOMacroRuntimLib = NULL; 69cdf0e10cSrcweir } 70cdf0e10cSrcweir ~SbiGlobals()71cdf0e10cSrcweirSbiGlobals::~SbiGlobals() 72cdf0e10cSrcweir { 73cdf0e10cSrcweir delete pErrStack; 74cdf0e10cSrcweir delete pSbFac; 75cdf0e10cSrcweir delete pUnoFac; 76cdf0e10cSrcweir delete pTransliterationWrapper; 77cdf0e10cSrcweir } 78cdf0e10cSrcweir 79