2010-10-12 15:53:47 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2000-09-18 15:18:56 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-11 10:47:39 +00:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2005-09-29 11:42:43 +00:00
|
|
|
*
|
2010-02-12 15:01:35 +01:00
|
|
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
2005-09-29 11:42:43 +00:00
|
|
|
*
|
2008-04-11 10:47:39 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2000-09-18 15:18:56 +00:00
|
|
|
*
|
2008-04-11 10:47:39 +00:00
|
|
|
* This file is part of OpenOffice.org.
|
2000-09-18 15:18:56 +00:00
|
|
|
*
|
2008-04-11 10:47:39 +00:00
|
|
|
* 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.
|
2000-09-18 15:18:56 +00:00
|
|
|
*
|
2008-04-11 10:47:39 +00:00
|
|
|
* 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).
|
2000-09-18 15:18:56 +00:00
|
|
|
*
|
2008-04-11 10:47:39 +00:00
|
|
|
* 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.
|
2000-09-18 15:18:56 +00:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
2006-09-17 09:00:19 +00:00
|
|
|
// MARKER(update_precomp.py): autogen include statement, do not remove
|
|
|
|
#include "precompiled_basic.hxx"
|
2000-09-18 15:18:56 +00:00
|
|
|
#include <tools/shl.hxx>
|
2001-11-26 15:29:09 +00:00
|
|
|
|
2000-09-18 15:18:56 +00:00
|
|
|
#include "sbintern.hxx"
|
|
|
|
#include "sbunoobj.hxx"
|
|
|
|
#include "token.hxx" // Tokenizer
|
|
|
|
#include "symtbl.hxx" // Symbolverwaltung
|
|
|
|
#include "parser.hxx" // Parser
|
|
|
|
#include "codegen.hxx" // Code-Generator
|
2007-06-27 13:19:05 +00:00
|
|
|
#include <basic/basmgr.hxx>
|
2000-09-18 15:18:56 +00:00
|
|
|
|
|
|
|
SV_IMPL_PTRARR(SbErrorStack, SbErrorStackEntry*)
|
|
|
|
|
|
|
|
SbiGlobals* GetSbData()
|
|
|
|
{
|
|
|
|
SbiGlobals** pp = (SbiGlobals**) ::GetAppData( SHL_SBC );
|
|
|
|
SbiGlobals* p = *pp;
|
|
|
|
if( !p )
|
|
|
|
p = *pp = new SbiGlobals;
|
|
|
|
return p;
|
|
|
|
}
|
|
|
|
|
|
|
|
SbiGlobals::SbiGlobals()
|
|
|
|
{
|
|
|
|
pInst = NULL;
|
|
|
|
pMod = NULL;
|
|
|
|
pSbFac= NULL;
|
|
|
|
pUnoFac = NULL;
|
2004-03-17 12:32:02 +00:00
|
|
|
pTypeFac = NULL;
|
|
|
|
pOLEFac = NULL;
|
2000-09-18 15:18:56 +00:00
|
|
|
pCompMod = NULL; // JSM
|
|
|
|
nInst = 0;
|
|
|
|
nCode = 0;
|
|
|
|
nLine = 0;
|
|
|
|
nCol1 = nCol2 = 0;
|
2011-01-10 14:40:57 +01:00
|
|
|
bCompiler = sal_False;
|
|
|
|
bGlobalInitErr = sal_False;
|
|
|
|
bRunInit = sal_False;
|
2000-09-18 15:18:56 +00:00
|
|
|
eLanguageMode = SB_LANG_BASIC;
|
|
|
|
pErrStack = NULL;
|
2001-11-26 15:29:09 +00:00
|
|
|
pTransliterationWrapper = NULL;
|
2011-01-10 14:40:57 +01:00
|
|
|
bBlockCompilerError = sal_False;
|
2004-11-09 11:24:33 +00:00
|
|
|
pAppBasMgr = NULL;
|
2007-08-03 08:55:04 +00:00
|
|
|
pMSOMacroRuntimLib = NULL;
|
2000-09-18 15:18:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
SbiGlobals::~SbiGlobals()
|
|
|
|
{
|
|
|
|
delete pErrStack;
|
|
|
|
delete pSbFac;
|
|
|
|
delete pUnoFac;
|
2001-11-26 15:29:09 +00:00
|
|
|
delete pTransliterationWrapper;
|
2000-09-18 15:18:56 +00:00
|
|
|
}
|
|
|
|
|
2010-10-12 15:53:47 +02:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|