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