xref: /trunk/main/automation/source/app/testbasi.hxx (revision 3398c5b8)
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 _TTBASIC_HXX
25 #define _TTBASIC_HXX
26 
27 #include <basic/sbstar.hxx>
28 #include <basic/mybasic.hxx>
29 
30 class ErrorEntry;
31 
32 #define SBXID_TTBASIC	0x5454		// TTBasic: TT
33 
34 #define SBXCR_TEST2   0x54534554L   // TEST
35 
36 class TTBasic : public MyBasic
37 {
38 public:
39 	SBX_DECL_PERSIST_NODATA(SBXCR_TEST2,SBXID_TTBASIC,1);
40 	TYPEINFO();
41 	TTBasic();
42    ~TTBasic();
43 	sal_Bool Compile( SbModule* );
44 	static MyBasic* CreateMyBasic();
45 
46 	// nicht mit #ifdefs klammern, da diese Headerdatei f�r testtool und basic
47 	// gleicherma�en verwendet wird.
48 	DECL_LINK( CErrorImpl, ErrorEntry* );
49 //	SbxObject *pTestObject;			// f�r das Testtool; ansonsten NULL
50 
51 	void LoadIniFile();
52 	SbTextType GetSymbolType( const String &Symbol, sal_Bool bWasTTControl );	// Besimmt den erweiterten Symboltyp f�r das Syntaxhighlighting
53 	virtual const String GetSpechialErrorText();
54 	virtual void ReportRuntimeError( AppBasEd *pEditWin );
55 	virtual void DebugFindNoErrors( sal_Bool bDebugFindNoErrors );
56 };
57 
58 SV_DECL_IMPL_REF(TTBasic)
59 
60 #endif
61