LibreOffice Module basic (master) 1
sbdef.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
20#ifndef INCLUDED_BASIC_SBDEF_HXX
21#define INCLUDED_BASIC_SBDEF_HXX
22
23#include <basic/sbxdef.hxx>
24#include <rtl/ustring.hxx>
25#include <basic/basicdllapi.h>
27#include <unotools/resmgr.hxx>
28
29class ErrCode;
30
31// Returns type name for Basic type, array flag is ignored
32// implementation: basic/source/runtime/methods.cxx
34
35// Returns type name for Basic objects, especially
36// important for SbUnoObj instances
37// implementation: basic/source/classes/sbunoobj.cxx
38class SbxObject;
40
41// Allows Basic IDE to set watch mode to suppress errors
42// implementation: basic/source/runtime/runtime.cxx
43BASIC_DLLPUBLIC void setBasicWatchMode( bool bOn );
44
45// Debug Flags:
46enum class BasicDebugFlags {
47 NONE = 0x0000,
48 Break = 0x0001, // Break-Callback
49 StepInto = 0x0002, // Single Step-Callback
50 StepOver = 0x0004, // Additional flag Step Over
51 Continue = 0x0008, // Do not change flags
52 StepOut = 0x0010, // Leave Sub
53};
54namespace o3tl {
55 template<> struct typed_flags<BasicDebugFlags> : is_typed_flags<BasicDebugFlags, 0x001f> {};
56}
57
58#define SBXID_BASIC 0x6273 // sb: StarBASIC
59#define SBXID_BASICMOD 0x6d62 // bm: StarBASIC Module
60#define SBXID_BASICPROP 0x7262 // pr: StarBASIC Property
61#define SBXID_BASICMETHOD 0x6d65 // me: StarBASIC Method
62#define SBXID_JSCRIPTMOD 0x6a62 // jm: JavaScript Module
63#define SBXID_JSCRIPTMETH 0x6a64 // jm: JavaScript Module
64
65enum class PropertyMode
66{
67 NONE,
68 Get,
69 Let,
70 Set
71};
72
73BASIC_DLLPUBLIC extern std::pair<TranslateId, ErrCode> const RID_BASIC_START[];
74BASIC_DLLPUBLIC std::locale BasResLocale();
75OUString BasResId(TranslateId pId);
76
77#endif
78
79/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
#define BASIC_DLLPUBLIC
Definition: basicdllapi.h:17
SVXCORE_DLLPUBLIC MSO_SPT Get(const OUString &)
NONE
BASIC_DLLPUBLIC void setBasicWatchMode(bool bOn)
Definition: runtime.cxx:485
PropertyMode
Definition: sbdef.hxx:66
BASIC_DLLPUBLIC OUString getBasicObjectTypeName(SbxObject *pObj)
Definition: sbunoobj.cxx:1612
BasicDebugFlags
Definition: sbdef.hxx:46
BASIC_DLLPUBLIC OUString getBasicTypeName(SbxDataType eType)
BASIC_DLLPUBLIC std::pair< TranslateId, ErrCode > const RID_BASIC_START[]
BASIC_DLLPUBLIC std::locale BasResLocale()
Definition: sbxscan.cxx:427
OUString BasResId(TranslateId pId)
Definition: sbxscan.cxx:432
SbxDataType
Definition: sbxdef.hxx:37