Update ooo320-m1
[ooovba.git] / binfilter / inc / bf_basic / sbdef.hxx
blobe5a3b03f3cf9258722683261448aeb736b9d6d16
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: sbdef.hxx,v $
10 * $Revision: 1.5 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _SB_SBDEF_HXX
32 #define _SB_SBDEF_HXX
35 #ifndef _SBXDEF_HXX
36 #include <sbxdef.hxx>
37 #endif
39 #ifndef _SVARRAY_HXX
40 #include <bf_svtools/svarray.hxx>
41 #endif
43 #if _SOLAR__PRIVATE
44 #define _BASIC_TEXTPORTIONS
45 #endif
47 namespace binfilter {
49 enum SbTextType { // Typ eines Textteils (Syntax Hilite)
50 SB_KEYWORD = 1, // Keywords
51 SB_SYMBOL, // Symbole
52 SB_STRING, // Strings
53 SB_NUMBER, // Zahlen
54 SB_PUNCTUATION, // Klammern, Punkte etc
55 SB_COMMENT, // Kommentare
56 SB_DUMMY = 255 // workaround for #i31479
59 enum SbLanguageMode { // Aktive Sprache
60 SB_LANG_GLOBAL, // wie in SbiGlobals-Struktur
61 SB_LANG_BASIC, // StarBasic (Default)
62 SB_LANG_VBSCRIPT, // Visual-Basic-Script
63 SB_LANG_JAVASCRIPT // Java-Script
66 #ifdef _BASIC_TEXTPORTIONS
67 struct SbTextPortion
68 { // Syntax Hiliting: eine Text-Portion
69 xub_StrLen nLine; // Zeilennummer
70 xub_StrLen nStart, nEnd; // 1. und letzte Spalte
71 SbTextType eType; // Type der Portion
73 #endif
75 // Returns type name for Basic type, array flag is ignored
76 // implementation: basic/source/runtime/methods.cxx
77 String getBasicTypeName( SbxDataType eType );
79 // Returns type name for Basic objects, especially
80 // important for SbUnoObj instances
81 // implementation: basic/source/classes/sbunoobj.cxx
82 class SbxObject;
84 // Allows Basic IDE to set watch mode to suppress errors
85 // implementation: basic/source/runtime/runtime.cxx
86 void setBasicWatchMode( bool bOn );
88 // Debug-Flags:
90 #define SbDEBUG_BREAK 0x0001 // Break-Callback
91 #define SbDEBUG_STEPINTO 0x0002 // Single Step-Callback
92 #define SbDEBUG_STEPOVER 0x0004 // Zusatzflag Step Over
93 #define SbDEBUG_CONTINUE 0x0008 // Flags nicht aendern
94 #define SbDEBUG_STEPOUT 0x0010 // Aus Sub raus
96 #define SBXID_BASIC 0x6273 // sb: StarBASIC
97 #define SBXID_BASICMOD 0x6d62 // bm: StarBASIC-Modul
98 #define SBXID_BASICPROP 0x7262 // pr: StarBASIC-Property
99 #define SBXID_BASICMETHOD 0x6d65 // me: StarBASIC-Methode
100 #define SBXID_JSCRIPTMOD 0x6a62 // jm: JavaScript-Modul
101 #define SBXID_JSCRIPTMETH 0x6a64 // jm: JavaScript-Modul
104 #define SBX_HINT_BASICSTART SFX_HINT_USER04
105 #define SBX_HINT_BASICSTOP SFX_HINT_USER05
107 // #115826
108 enum PropertyMode
110 PROPERTY_MODE_NONE,
111 PROPERTY_MODE_GET,
112 PROPERTY_MODE_LET,
113 PROPERTY_MODE_SET
118 #endif