xref: /AOO42X/main/basic/inc/basic/sbxbase.hxx (revision 9bce9b0d387299c68bd81d539e1478357a103de5)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef _SBXBASE_HXX
25 #define _SBXBASE_HXX
26 
27 #include <i18npool/lang.h>
28 #include "tools/list.hxx"
29 #include "svl/svarray.hxx"
30 #include <basic/sbxdef.hxx>
31 #include "basic/basicdllapi.h"
32 
33 class SbxFactory;
34 class SbxVariable;
35 class SbxBasicFormater;
36 
37 SV_DECL_PTRARR_DEL(SbxFacs,SbxFactory*,5,5)
38 DECLARE_LIST(SbxVarList_Impl, SbxVariable*)
39 
40 // AppData-Struktur for SBX:
41 struct BASIC_DLLPUBLIC SbxAppData
42 {
43     SbxError            eSbxError;  // Error code
44     SbxFacs             aFacs;      // Factories
45     SbxVarList_Impl     aVars;      // for Dump
46     SbxBasicFormater    *pBasicFormater;    // Pointer to Format()-Command helper class
47 
48     LanguageType        eBasicFormaterLangType;
49         // It might be useful to store this class 'global' because some string reosurces are saved here
50 
SbxAppDataSbxAppData51     SbxAppData() : eSbxError( SbxERR_OK ), aFacs(), pBasicFormater( NULL ) {}
52     ~SbxAppData();
53 };
54 
55 BASIC_DLLPUBLIC SbxAppData* GetSbxData_Impl();
56 
57 #endif
58