1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: sbdef.hxx,v $
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 ************************************************************************/
40 #include <bf_svtools/svarray.hxx>
44 #define _BASIC_TEXTPORTIONS
49 enum SbTextType
{ // Typ eines Textteils (Syntax Hilite)
50 SB_KEYWORD
= 1, // Keywords
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
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
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
84 // Allows Basic IDE to set watch mode to suppress errors
85 // implementation: basic/source/runtime/runtime.cxx
86 void setBasicWatchMode( bool bOn
);
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