2010-10-27 13:11:31 +01: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.
|
|
|
|
*
|
|
|
|
* 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/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* 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 .
|
|
|
|
*/
|
2007-04-11 11:53:46 +00:00
|
|
|
|
2013-12-11 10:49:57 +02:00
|
|
|
#ifndef INCLUDED_BASIC_INC_SBXBASE_HXX
|
|
|
|
#define INCLUDED_BASIC_INC_SBXBASE_HXX
|
2007-04-11 11:53:46 +00:00
|
|
|
|
2013-04-05 18:40:39 +02:00
|
|
|
#include <i18nlangtag/lang.h>
|
2007-04-11 11:53:46 +00:00
|
|
|
#include <basic/sbxdef.hxx>
|
2013-11-09 13:29:54 -06:00
|
|
|
#include <basic/basicdllapi.h>
|
2012-02-27 16:26:41 +02:00
|
|
|
#include <boost/ptr_container/ptr_vector.hpp>
|
2007-04-11 11:53:46 +00:00
|
|
|
|
|
|
|
class SbxFactory;
|
|
|
|
class SbxVariable;
|
|
|
|
class SbxBasicFormater;
|
|
|
|
|
2012-02-27 16:26:41 +02:00
|
|
|
typedef boost::ptr_vector<SbxFactory> SbxFacs;
|
2007-04-11 11:53:46 +00:00
|
|
|
|
2011-08-27 21:37:14 +02:00
|
|
|
// AppData structure for SBX:
|
2007-04-11 11:53:46 +00:00
|
|
|
struct SbxAppData
|
|
|
|
{
|
2009-04-25 00:18:20 +00:00
|
|
|
SbxError eSbxError; // Error code
|
2007-04-11 11:53:46 +00:00
|
|
|
SbxFacs aFacs; // Factories
|
2009-04-25 00:18:20 +00:00
|
|
|
SbxBasicFormater *pBasicFormater; // Pointer to Format()-Command helper class
|
|
|
|
|
2007-04-11 11:53:46 +00:00
|
|
|
LanguageType eBasicFormaterLangType;
|
2012-11-03 09:07:25 -05:00
|
|
|
// It might be useful to store this class 'global' because some string reosurces are saved here
|
2007-04-11 11:53:46 +00:00
|
|
|
|
2014-01-27 12:56:14 +00:00
|
|
|
SbxAppData()
|
|
|
|
: eSbxError(SbxERR_OK)
|
|
|
|
, aFacs()
|
|
|
|
, pBasicFormater(NULL)
|
|
|
|
, eBasicFormaterLangType(LANGUAGE_DONTKNOW)
|
|
|
|
{
|
|
|
|
}
|
2007-04-11 11:53:46 +00:00
|
|
|
~SbxAppData();
|
|
|
|
};
|
|
|
|
|
2011-09-19 00:50:11 +01:00
|
|
|
BASIC_DLLPUBLIC SbxAppData& GetSbxData_Impl();
|
2007-04-11 11:53:46 +00:00
|
|
|
|
2013-12-11 10:49:57 +02:00
|
|
|
#endif // INCLUDED_BASIC_INC_SBXBASE_HXX
|
2010-10-27 13:11:31 +01:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|