build fix
[LibreOffice.git] / include / basic / sbdef.hxx
blob39576fbe7f879531b8c553100db329ea7474f525
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_BASIC_SBDEF_HXX
21 #define INCLUDED_BASIC_SBDEF_HXX
23 #include <basic/sbxdef.hxx>
24 #include <rtl/ustring.hxx>
25 #include <basic/basicdllapi.h>
26 #include <o3tl/typed_flags_set.hxx>
28 // Returns type name for Basic type, array flag is ignored
29 // implementation: basic/source/runtime/methods.cxx
30 BASIC_DLLPUBLIC OUString getBasicTypeName( SbxDataType eType );
32 // Returns type name for Basic objects, especially
33 // important for SbUnoObj instances
34 // implementation: basic/source/classes/sbunoobj.cxx
35 class SbxObject;
36 BASIC_DLLPUBLIC OUString getBasicObjectTypeName( SbxObject* pObj );
38 // Allows Basic IDE to set watch mode to suppress errors
39 // implementation: basic/source/runtime/runtime.cxx
40 BASIC_DLLPUBLIC void setBasicWatchMode( bool bOn );
42 // Debug Flags:
43 enum class BasicDebugFlags {
44 NONE = 0x0000,
45 Break = 0x0001, // Break-Callback
46 StepInto = 0x0002, // Single Step-Callback
47 StepOver = 0x0004, // Additional flag Step Over
48 Continue = 0x0008, // Do not change flags
49 StepOut = 0x0010, // Leave Sub
51 namespace o3tl {
52 template<> struct typed_flags<BasicDebugFlags> : is_typed_flags<BasicDebugFlags, 0x001f> {};
55 #define SBXID_BASIC 0x6273 // sb: StarBASIC
56 #define SBXID_BASICMOD 0x6d62 // bm: StarBASIC Module
57 #define SBXID_BASICPROP 0x7262 // pr: StarBASIC Property
58 #define SBXID_BASICMETHOD 0x6d65 // me: StarBASIC Method
59 #define SBXID_JSCRIPTMOD 0x6a62 // jm: JavaScript Module
60 #define SBXID_JSCRIPTMETH 0x6a64 // jm: JavaScript Module
62 #define SBX_HINT_BASICSTART SFX_HINT_USER04
63 #define SBX_HINT_BASICSTOP SFX_HINT_USER05
65 enum class PropertyMode
67 NONE,
68 Get,
69 Let,
70 Set
73 #endif
75 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */