1*e1f63238SAndrew Rist /**************************************************************
2cdf0e10cSrcweir *
3*e1f63238SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*e1f63238SAndrew Rist * or more contributor license agreements. See the NOTICE file
5*e1f63238SAndrew Rist * distributed with this work for additional information
6*e1f63238SAndrew Rist * regarding copyright ownership. The ASF licenses this file
7*e1f63238SAndrew Rist * to you under the Apache License, Version 2.0 (the
8*e1f63238SAndrew Rist * "License"); you may not use this file except in compliance
9*e1f63238SAndrew Rist * with the License. You may obtain a copy of the License at
10cdf0e10cSrcweir *
11*e1f63238SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir *
13*e1f63238SAndrew Rist * Unless required by applicable law or agreed to in writing,
14*e1f63238SAndrew Rist * software distributed under the License is distributed on an
15*e1f63238SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*e1f63238SAndrew Rist * KIND, either express or implied. See the License for the
17*e1f63238SAndrew Rist * specific language governing permissions and limitations
18*e1f63238SAndrew Rist * under the License.
19cdf0e10cSrcweir *
20*e1f63238SAndrew Rist *************************************************************/
21*e1f63238SAndrew Rist
22*e1f63238SAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove
25cdf0e10cSrcweir #include "precompiled_basic.hxx"
26cdf0e10cSrcweir
27cdf0e10cSrcweir #include "sbxres.hxx"
28cdf0e10cSrcweir
29cdf0e10cSrcweir static const char* pSbxRes[] = {
30cdf0e10cSrcweir "Empty",
31cdf0e10cSrcweir "Null",
32cdf0e10cSrcweir "Integer",
33cdf0e10cSrcweir "Long",
34cdf0e10cSrcweir "Single",
35cdf0e10cSrcweir "Double",
36cdf0e10cSrcweir "Currency",
37cdf0e10cSrcweir "Date",
38cdf0e10cSrcweir "String",
39cdf0e10cSrcweir "Object",
40cdf0e10cSrcweir "Error",
41cdf0e10cSrcweir "Boolean",
42cdf0e10cSrcweir "Variant",
43cdf0e10cSrcweir "Any",
44cdf0e10cSrcweir "Type14",
45cdf0e10cSrcweir "Type15",
46cdf0e10cSrcweir "Char",
47cdf0e10cSrcweir "Byte",
48cdf0e10cSrcweir "UShort",
49cdf0e10cSrcweir "ULong",
50cdf0e10cSrcweir "Long64",
51cdf0e10cSrcweir "ULong64",
52cdf0e10cSrcweir "Int",
53cdf0e10cSrcweir "UInt",
54cdf0e10cSrcweir "Void",
55cdf0e10cSrcweir "HResult",
56cdf0e10cSrcweir "Pointer",
57cdf0e10cSrcweir "DimArray",
58cdf0e10cSrcweir "CArray",
59cdf0e10cSrcweir "Any",
60cdf0e10cSrcweir "LpStr",
61cdf0e10cSrcweir "LpWStr",
62cdf0e10cSrcweir " As ",
63cdf0e10cSrcweir "Optional ",
64cdf0e10cSrcweir "Byref ",
65cdf0e10cSrcweir
66cdf0e10cSrcweir "Name",
67cdf0e10cSrcweir "Parent",
68cdf0e10cSrcweir "Application",
69cdf0e10cSrcweir "Count",
70cdf0e10cSrcweir "Add",
71cdf0e10cSrcweir "Item",
72cdf0e10cSrcweir "Remove",
73cdf0e10cSrcweir
74cdf0e10cSrcweir "Error ", // mit Blank!
75cdf0e10cSrcweir "False",
76cdf0e10cSrcweir "True"
77cdf0e10cSrcweir };
78cdf0e10cSrcweir
GetSbxRes(sal_uInt16 nId)79cdf0e10cSrcweir const char* GetSbxRes( sal_uInt16 nId )
80cdf0e10cSrcweir {
81cdf0e10cSrcweir return ( ( nId > SBXRES_MAX ) ? "???" : pSbxRes[ nId ] );
82cdf0e10cSrcweir }
83cdf0e10cSrcweir
SbxRes(sal_uInt16 nId)84cdf0e10cSrcweir SbxRes::SbxRes( sal_uInt16 nId )
85cdf0e10cSrcweir : ::rtl::OUString( ::rtl::OUString::createFromAscii( GetSbxRes( nId ) ) )
86cdf0e10cSrcweir {}
87cdf0e10cSrcweir
88