2010-10-12 15:53:47 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-07-17 12:30:48 +01:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
2000-09-18 15:18:56 +00:00
|
|
|
*
|
2012-07-17 12:30:48 +01:00
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
2005-09-29 11:42:43 +00:00
|
|
|
*
|
2012-07-17 12:30:48 +01:00
|
|
|
* This file incorporates work covered by the following license notice:
|
2005-09-29 11:42:43 +00:00
|
|
|
*
|
2012-07-17 12:30:48 +01:00
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
2000-09-18 15:18:56 +00:00
|
|
|
|
|
|
|
#include "sbintern.hxx"
|
|
|
|
#include "sbunoobj.hxx"
|
2011-08-27 21:37:14 +02:00
|
|
|
#include "token.hxx"
|
|
|
|
#include "symtbl.hxx"
|
|
|
|
#include "parser.hxx"
|
|
|
|
#include "codegen.hxx"
|
2007-06-27 13:19:05 +00:00
|
|
|
#include <basic/basmgr.hxx>
|
2000-09-18 15:18:56 +00:00
|
|
|
|
2013-04-12 23:02:29 +03:00
|
|
|
SbiGlobals* SbiGlobals::pGlobals = 0;
|
|
|
|
|
2000-09-18 15:18:56 +00:00
|
|
|
SbiGlobals* GetSbData()
|
|
|
|
{
|
2013-04-12 23:02:29 +03:00
|
|
|
if( !SbiGlobals::pGlobals )
|
|
|
|
SbiGlobals::pGlobals = new SbiGlobals;
|
|
|
|
return SbiGlobals::pGlobals;
|
2000-09-18 15:18:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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;
|
2012-08-21 22:54:26 +09:00
|
|
|
bCompiler = false;
|
|
|
|
bGlobalInitErr = false;
|
|
|
|
bRunInit = false;
|
2001-11-26 15:29:09 +00:00
|
|
|
pTransliterationWrapper = NULL;
|
2012-08-21 22:54:26 +09:00
|
|
|
bBlockCompilerError = 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 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: */
|