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>
|
2015-10-25 10:02:24 +01:00
|
|
|
|
2014-10-23 21:05:31 +02:00
|
|
|
#include <boost/noncopyable.hpp>
|
2007-04-11 11:53:46 +00:00
|
|
|
|
2015-10-25 10:02:24 +01:00
|
|
|
#include <memory>
|
|
|
|
#include <vector>
|
|
|
|
|
2007-04-11 11:53:46 +00:00
|
|
|
class SbxFactory;
|
|
|
|
class SbxVariable;
|
|
|
|
class SbxBasicFormater;
|
|
|
|
|
2015-10-25 10:02:24 +01:00
|
|
|
typedef std::vector<std::unique_ptr<SbxFactory>> SbxFactories;
|
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
|
2014-10-23 21:05:31 +02:00
|
|
|
: private ::boost::noncopyable
|
2007-04-11 11:53:46 +00:00
|
|
|
{
|
2009-04-25 00:18:20 +00:00
|
|
|
SbxError eSbxError; // Error code
|
2015-10-25 10:02:24 +01:00
|
|
|
SbxFactories m_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-10-23 21:05:31 +02:00
|
|
|
SbxAppData();
|
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: */
|