Version 6.4.0.0.beta1, tag libreoffice-6.4.0.0.beta1
[LibreOffice.git] / basic / source / sbx / sbxres.cxx
blob125969e3efd9fec567fa098695c5e4d902e1670a
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 .
21 #include "sbxres.hxx"
23 #include <rtl/ustring.hxx>
25 static const char* pSbxRes[] = {
26 "Empty",
27 "Null",
28 "Integer",
29 "Long",
30 "Single",
31 "Double",
32 "Currency",
33 "Date",
34 "String",
35 "Object",
36 "Error",
37 "Boolean",
38 "Variant",
39 "Any",
40 "Type14",
41 "Type15",
42 "Char",
43 "Byte",
44 "UShort",
45 "ULong",
46 "Long64",
47 "ULong64",
48 "Int",
49 "UInt",
50 "Void",
51 "HResult",
52 "Pointer",
53 "DimArray",
54 "CArray",
55 "Any",
56 "LpStr",
57 "LpWStr",
58 " As ",
59 "Optional ",
60 "Byref ",
62 "Name",
63 "Parent",
64 "Application",
65 "Count",
66 "Add",
67 "Item",
68 "Remove",
70 "Error ", // with blank!
71 "False",
72 "True"
75 OUString GetSbxRes( StringId nId )
77 return OUString::createFromAscii( ( nId > StringId::LastValue ) ? "???" : pSbxRes[ static_cast<int>( nId ) ] );
80 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */