LCOV - code coverage report
Current view: top level - libreoffice/solver/unxlngi6.pro/inc/svx - xbitmap.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 8 0.0 %
Date: 2012-12-27 Functions: 0 8 0.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             : #ifndef _SVX_XBITMAP_HXX
      21             : #define _SVX_XBITMAP_HXX
      22             : 
      23             : #include <tools/color.hxx>
      24             : #include <vcl/bitmap.hxx>
      25             : #include <svtools/grfmgr.hxx>
      26             : #include <svx/xenum.hxx>
      27             : #include "svx/svxdllapi.h"
      28             : 
      29             : //---------------
      30             : // class XOBitmap
      31             : //---------------
      32             : 
      33             : class SVX_DLLPUBLIC XOBitmap
      34             : {
      35             : protected:
      36             :     XBitmapType     eType;
      37             :     XBitmapStyle    eStyle;
      38             :     GraphicObject   aGraphicObject;
      39             :     sal_uInt16*         pPixelArray;
      40             :     Size            aArraySize;
      41             :     Color           aPixelColor;
      42             :     Color           aBckgrColor;
      43             :     sal_Bool            bGraphicDirty;
      44             : 
      45             : public:
      46             :     XOBitmap();
      47             :     XOBitmap( const GraphicObject& rGraphicObject, XBitmapStyle eStyle = XBITMAP_TILE );
      48             :     XOBitmap( const Bitmap& rBitmap, XBitmapStyle eStyle = XBITMAP_TILE );
      49             :     XOBitmap( const sal_uInt16* pArray, const Color& aPixelColor,
      50             :              const Color& aBckgrColor, const Size& rSize = Size( 8, 8 ),
      51             :              XBitmapStyle eStyle = XBITMAP_TILE );
      52             :     XOBitmap( const XOBitmap& rXBmp );
      53             :     ~XOBitmap();
      54             : 
      55             :     XOBitmap& operator=( const XOBitmap& rXOBitmap );
      56             :     int      operator==( const XOBitmap& rXOBitmap ) const;
      57             : 
      58             :     void Bitmap2Array();
      59             :     void Array2Bitmap();
      60             : 
      61             :     void SetGraphicObject( const GraphicObject& rObj )  { aGraphicObject = rObj; bGraphicDirty = sal_False; }
      62           0 :     void SetBitmap( const Bitmap& rBmp )                { aGraphicObject = GraphicObject( Graphic( rBmp ) ); bGraphicDirty = sal_False; }
      63           0 :     void SetBitmapType( XBitmapType eNewType )          { eType = eNewType; }
      64             :     void SetBitmapStyle( XBitmapStyle eNewStyle )       { eStyle = eNewStyle; }
      65             :     void SetPixelArray( const sal_uInt16* pArray );
      66           0 :     void SetPixelSize( const Size& rSize )              { aArraySize  = rSize;  bGraphicDirty = sal_True; }
      67           0 :     void SetPixelColor( const Color& rColor )           { aPixelColor = rColor; bGraphicDirty = sal_True; }
      68           0 :     void SetBackgroundColor( const Color& rColor )      { aBckgrColor = rColor; bGraphicDirty = sal_True; }
      69             : 
      70           0 :     XBitmapType             GetBitmapType() const               { return eType; }
      71             :     XBitmapStyle            GetBitmapStyle() const              { return eStyle; }
      72             :     const GraphicObject&    GetGraphicObject() const;
      73             :     Bitmap                  GetBitmap() const;
      74             :     sal_uInt16*                 GetPixelArray() const               { return pPixelArray; }
      75           0 :     Color                   GetPixelColor() const               { return aPixelColor; }
      76           0 :     Color                   GetBackgroundColor() const          { return aBckgrColor; }
      77             : };
      78             : 
      79             : #endif
      80             : 
      81             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10