Update ooo320-m1
[ooovba.git] / basic / source / sbx / sbxres.cxx
blobfa900265d42f72dcaac898cf06dd8b2eef83d39b
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: sbxres.cxx,v $
10 * $Revision: 1.5 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 // MARKER(update_precomp.py): autogen include statement, do not remove
32 #include "precompiled_basic.hxx"
34 #include "sbxres.hxx"
36 static const char* pSbxRes[] = {
37 "Empty",
38 "Null",
39 "Integer",
40 "Long",
41 "Single",
42 "Double",
43 "Currency",
44 "Date",
45 "String",
46 "Object",
47 "Error",
48 "Boolean",
49 "Variant",
50 "Any",
51 "Type14",
52 "Type15",
53 "Char",
54 "Byte",
55 "UShort",
56 "ULong",
57 "Long64",
58 "ULong64",
59 "Int",
60 "UInt",
61 "Void",
62 "HResult",
63 "Pointer",
64 "DimArray",
65 "CArray",
66 "Any",
67 "LpStr",
68 "LpWStr",
69 " As ",
70 "Optional ",
71 "Byref ",
73 "Name",
74 "Parent",
75 "Application",
76 "Count",
77 "Add",
78 "Item",
79 "Remove",
81 "Error ", // mit Blank!
82 "False",
83 "True"
86 const char* GetSbxRes( USHORT nId )
88 return ( ( nId > SBXRES_MAX ) ? "???" : pSbxRes[ nId ] );
91 SbxRes::SbxRes( USHORT nId )
92 : XubString( String::CreateFromAscii( GetSbxRes( nId ) ) )