xref: /AOO41X/main/basic/inc/basic/sbxbase.hxx (revision 234bd5c559aaf7abbd02d045859137b774cd8b34)
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 
32 class SbxFactory;
33 class SbxVariable;
34 class SbxBasicFormater;
35 
36 SV_DECL_PTRARR_DEL(SbxFacs,SbxFactory*,5,5)
37 DECLARE_LIST(SbxVarList_Impl, SbxVariable*)
38 
39 // AppData-Struktur for SBX:
40 struct SbxAppData
41 {
42     SbxError            eSbxError;  // Error code
43     SbxFacs             aFacs;      // Factories
44     SbxVarList_Impl     aVars;      // for Dump
45     SbxBasicFormater    *pBasicFormater;    // Pointer to Format()-Command helper class
46 
47     LanguageType        eBasicFormaterLangType;
48         // It might be useful to store this class 'global' because some string reosurces are saved here
49 
SbxAppDataSbxAppData50     SbxAppData() : eSbxError( SbxERR_OK ), aFacs(), pBasicFormater( NULL ) {}
51     ~SbxAppData();
52 };
53 
54 SbxAppData* GetSbxData_Impl();
55 
56 #endif
57