LCOV - code coverage report
Current view: top level - libreoffice/svx/source/xoutdev - xtabbtmp.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 2 30 6.7 %
Date: 2012-12-27 Functions: 1 6 16.7 %
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 "svx/XPropertyTable.hxx"
      22             : 
      23             : #include <vcl/virdev.hxx>
      24             : #include <svl/itemset.hxx>
      25             : #include <sfx2/docfile.hxx>
      26             : #include <svx/dialogs.hrc>
      27             : #include <svx/dialmgr.hxx>
      28             : #include <svx/xtable.hxx>
      29             : #include <svx/xpool.hxx>
      30             : 
      31             : using namespace com::sun::star;
      32             : 
      33           0 : XBitmapEntry* XBitmapList::Remove(long nIndex)
      34             : {
      35           0 :     return (XBitmapEntry*) XPropertyList::Remove(nIndex);
      36             : }
      37             : 
      38           0 : XBitmapEntry* XBitmapList::GetBitmap(long nIndex) const
      39             : {
      40           0 :     return (XBitmapEntry*) XPropertyList::Get(nIndex, 0);
      41             : }
      42             : 
      43           2 : uno::Reference< container::XNameContainer > XBitmapList::createInstance()
      44             : {
      45             :     return uno::Reference< container::XNameContainer >(
      46           2 :         SvxUnoXBitmapTable_createInstance( this ), uno::UNO_QUERY );
      47             : }
      48             : 
      49           0 : sal_Bool XBitmapList::Create()
      50             : {
      51             :     // Array der Bitmap
      52             :     //-----------------------
      53             :     // 00 01 02 03 04 05 06 07
      54             :     // 08 09 10 11 12 13 14 15
      55             :     // 16 17 18 19 20 21 22 23
      56             :     // 24 25 26 27 28 29 30 31
      57             :     // 32 33 34 35 36 37 38 39
      58             :     // 40 41 42 43 44 45 46 47
      59             :     // 48 49 50 51 52 53 54 55
      60             :     // 56 57 58 59 60 61 62 63
      61             : 
      62           0 :     String  aStr( SVX_RES( RID_SVXSTR_BITMAP ) );
      63           0 :     Color   aColWhite( RGB_Color( COL_WHITE ) );
      64             :     xub_StrLen nLen;
      65             :     sal_uInt16  aArray[64];
      66             : 
      67           0 :     memset( aArray, 0, sizeof( aArray ) );
      68           0 :     aStr.AppendAscii(" 1");
      69           0 :     nLen = aStr.Len() - 1;
      70           0 :     Insert( new XBitmapEntry( XOBitmap( aArray, aColWhite, aColWhite ), aStr ) );
      71             : 
      72           0 :     aArray[ 0] = 1; aArray[ 9] = 1; aArray[18] = 1; aArray[27] = 1;
      73           0 :     aArray[36] = 1; aArray[45] = 1; aArray[54] = 1; aArray[63] = 1;
      74           0 :     aStr.SetChar(nLen, sal_Unicode('2'));
      75           0 :     Insert( new XBitmapEntry( XOBitmap( aArray, RGB_Color( COL_BLACK ), aColWhite ), aStr ) );
      76             : 
      77           0 :     aArray[ 7] = 1; aArray[14] = 1; aArray[21] = 1; aArray[28] = 1;
      78           0 :     aArray[35] = 1; aArray[42] = 1; aArray[49] = 1; aArray[56] = 1;
      79           0 :     aStr.SetChar(nLen, sal_Unicode('3'));
      80           0 :     Insert( new XBitmapEntry( XOBitmap( aArray, RGB_Color( COL_LIGHTRED ), aColWhite ), aStr ) );
      81             : 
      82           0 :     aArray[24] = 1; aArray[25] = 1; aArray[26] = 1;
      83           0 :     aArray[29] = 1; aArray[30] = 1; aArray[31] = 1;
      84           0 :     aStr.SetChar(nLen, sal_Unicode('4'));
      85           0 :     Insert( new XBitmapEntry( XOBitmap( aArray, RGB_Color( COL_LIGHTBLUE ), aColWhite ), aStr ) );
      86             : 
      87           0 :     return sal_True;
      88             : }
      89             : 
      90           0 : sal_Bool XBitmapList::CreateBitmapsForUI()
      91             : {
      92           0 :     return sal_False;
      93             : }
      94             : 
      95           0 : Bitmap* XBitmapList::CreateBitmapForUI( long /*nIndex*/, sal_Bool /*bDelete*/)
      96             : {
      97           0 :     return NULL;
      98             : }
      99             : 
     100             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10