LCOV - code coverage report
Current view: top level - basic/source/sbx - sbxres.cxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 5 5 100.0 %
Date: 2015-06-13 12:38:46 Functions: 2 2 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       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             : 
      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 ",
      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             : 
      75         342 : const char* GetSbxRes( sal_uInt16 nId )
      76             : {
      77         342 :     return ( ( nId > SBXRES_MAX ) ? "???" : pSbxRes[ nId ] );
      78             : }
      79             : 
      80         110 : SbxRes::SbxRes( sal_uInt16 nId )
      81         110 :     : OUString( OUString::createFromAscii( GetSbxRes( nId ) ) )
      82         110 : {}
      83             : 
      84             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11