LibreOffice Module basic (master) 1
sbxres.cxx
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
21#include "sbxres.hxx"
22
23#include <rtl/ustring.hxx>
24
25static 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 ",
61
62 "Name",
63 "Parent",
64 "Application",
65 "Count",
66 "Add",
67 "Item",
68 "Remove",
69
70 "Error ", // with blank!
71 "False",
72 "True"
73};
74
75OUString GetSbxRes( StringId nId )
76{
77 return OUString::createFromAscii( ( nId > StringId::LastValue ) ? "???" : pSbxRes[ static_cast<int>( nId ) ] );
78}
79
80/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sal_Int16 nId
OUString GetSbxRes(StringId nId)
Definition: sbxres.cxx:75
static const char * pSbxRes[]
Definition: sbxres.cxx:25
StringId
Definition: sbxres.hxx:28