xref: /aoo42x/main/basic/inc/basic/basrdll.hxx (revision 7fef15a0)
1234bd5c5SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3234bd5c5SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4234bd5c5SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5234bd5c5SAndrew Rist  * distributed with this work for additional information
6234bd5c5SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7234bd5c5SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8234bd5c5SAndrew Rist  * "License"); you may not use this file except in compliance
9234bd5c5SAndrew Rist  * with the License.  You may obtain a copy of the License at
10234bd5c5SAndrew Rist  *
11234bd5c5SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12234bd5c5SAndrew Rist  *
13234bd5c5SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14234bd5c5SAndrew Rist  * software distributed under the License is distributed on an
15234bd5c5SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16234bd5c5SAndrew Rist  * KIND, either express or implied.  See the License for the
17234bd5c5SAndrew Rist  * specific language governing permissions and limitations
18234bd5c5SAndrew Rist  * under the License.
19234bd5c5SAndrew Rist  *
20234bd5c5SAndrew Rist  *************************************************************/
21234bd5c5SAndrew Rist 
22234bd5c5SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef _BASRDLL_HXX
25cdf0e10cSrcweir #define _BASRDLL_HXX
26cdf0e10cSrcweir 
27cdf0e10cSrcweir class ResMgr;
28cdf0e10cSrcweir 
29cdf0e10cSrcweir #include <vcl/accel.hxx>
30*7fef15a0SDamjan Jovanovic #include "basic/basicdllapi.h"
31cdf0e10cSrcweir 
32*7fef15a0SDamjan Jovanovic class BASIC_DLLPUBLIC BasicDLL
33cdf0e10cSrcweir {
34cdf0e10cSrcweir private:
35cdf0e10cSrcweir 	ResMgr*		pSttResMgr;
36cdf0e10cSrcweir     ResMgr*     pBasResMgr;
37cdf0e10cSrcweir 
38cdf0e10cSrcweir 	sal_Bool		bDebugMode;
39cdf0e10cSrcweir 	sal_Bool		bBreakEnabled;
40cdf0e10cSrcweir 
41cdf0e10cSrcweir public:
42cdf0e10cSrcweir 				BasicDLL();
43cdf0e10cSrcweir 				~BasicDLL();
44cdf0e10cSrcweir 
GetSttResMgr() const45cdf0e10cSrcweir 	ResMgr*		GetSttResMgr() const { return pSttResMgr; }
GetBasResMgr() const46cdf0e10cSrcweir 	ResMgr*		GetBasResMgr() const { return pBasResMgr; }
47cdf0e10cSrcweir 
48cdf0e10cSrcweir 	static void BasicBreak();
49cdf0e10cSrcweir 
50cdf0e10cSrcweir 	static void	EnableBreak( sal_Bool bEnable );
51cdf0e10cSrcweir 	static void	SetDebugMode( sal_Bool bDebugMode );
52cdf0e10cSrcweir };
53cdf0e10cSrcweir 
54cdf0e10cSrcweir #define BASIC_DLL() (*(BasicDLL**)GetAppData( SHL_BASIC ) )
55cdf0e10cSrcweir 
56cdf0e10cSrcweir #endif //_BASRDLL_HXX
57