LCOV - code coverage report
Current view: top level - svx/inc/svx/sdr/overlay - overlayanimatedbitmapex.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 6 0.0 %
Date: 2012-08-25 Functions: 0 6 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 :            : /*************************************************************************
       3                 :            :  *
       4                 :            :  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       5                 :            :  *
       6                 :            :  * Copyright 2000, 2010 Oracle and/or its affiliates.
       7                 :            :  *
       8                 :            :  * OpenOffice.org - a multi-platform office productivity suite
       9                 :            :  *
      10                 :            :  * This file is part of OpenOffice.org.
      11                 :            :  *
      12                 :            :  * OpenOffice.org is free software: you can redistribute it and/or modify
      13                 :            :  * it under the terms of the GNU Lesser General Public License version 3
      14                 :            :  * only, as published by the Free Software Foundation.
      15                 :            :  *
      16                 :            :  * OpenOffice.org is distributed in the hope that it will be useful,
      17                 :            :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      18                 :            :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      19                 :            :  * GNU Lesser General Public License version 3 for more details
      20                 :            :  * (a copy is included in the LICENSE file that accompanied this code).
      21                 :            :  *
      22                 :            :  * You should have received a copy of the GNU Lesser General Public License
      23                 :            :  * version 3 along with OpenOffice.org.  If not, see
      24                 :            :  * <http://www.openoffice.org/license.html>
      25                 :            :  * for a copy of the LGPLv3 License.
      26                 :            :  *
      27                 :            :  ************************************************************************/
      28                 :            : 
      29                 :            : #ifndef _SDR_OVERLAY_OVERLAYANIMATEDBITMAPEX_HXX
      30                 :            : #define _SDR_OVERLAY_OVERLAYANIMATEDBITMAPEX_HXX
      31                 :            : 
      32                 :            : #include <svx/sdr/overlay/overlayobject.hxx>
      33                 :            : #include <vcl/bitmapex.hxx>
      34                 :            : 
      35                 :            : //////////////////////////////////////////////////////////////////////////////
      36                 :            : 
      37                 :            : namespace sdr
      38                 :            : {
      39                 :            :     namespace overlay
      40                 :            :     {
      41                 :            :         class SVX_DLLPUBLIC OverlayAnimatedBitmapEx : public OverlayObjectWithBasePosition
      42                 :            :         {
      43                 :            :         protected:
      44                 :            :             // the Bitmaps
      45                 :            :             BitmapEx                                maBitmapEx1;
      46                 :            :             BitmapEx                                maBitmapEx2;
      47                 :            : 
      48                 :            :             // position of the basePosition inside the Bitmaps, in pixels
      49                 :            :             sal_uInt16                              mnCenterX1;
      50                 :            :             sal_uInt16                              mnCenterY1;
      51                 :            :             sal_uInt16                              mnCenterX2;
      52                 :            :             sal_uInt16                              mnCenterY2;
      53                 :            : 
      54                 :            :             // #i53216# added CursorBlinkTime (in ms)
      55                 :            :             sal_uInt32                              mnBlinkTime;
      56                 :            : 
      57                 :            :             // bitfield
      58                 :            :             // Flag to remember which state to draw. Inited with sal_False (0)
      59                 :            :             unsigned                                mbOverlayState : 1;
      60                 :            : 
      61                 :            :             // geometry creation for OverlayObject
      62                 :            :             virtual drawinglayer::primitive2d::Primitive2DSequence createOverlayObjectPrimitive2DSequence();
      63                 :            : 
      64                 :            :             // #i53216# check blink time value range (currently 25 < mnBlinkTime < 10000)
      65                 :            :             void impCheckBlinkTimeValueRange();
      66                 :            : 
      67                 :            :         public:
      68                 :            :             OverlayAnimatedBitmapEx(
      69                 :            :                 const basegfx::B2DPoint& rBasePos,
      70                 :            :                 const BitmapEx& rBitmapEx1,
      71                 :            :                 const BitmapEx& rBitmapEx2,
      72                 :            :                 sal_uInt32 nBlinkTime = 500,
      73                 :            :                 sal_uInt16 nCenX1 = 0,
      74                 :            :                 sal_uInt16 nCenY1 = 0,
      75                 :            :                 sal_uInt16 nCenX2 = 0,
      76                 :            :                 sal_uInt16 nCenY2 = 0);
      77                 :            :             virtual ~OverlayAnimatedBitmapEx();
      78                 :            : 
      79                 :          0 :             const BitmapEx& getBitmapEx1() const { return maBitmapEx1; }
      80                 :          0 :             const BitmapEx& getBitmapEx2() const { return maBitmapEx2; }
      81                 :            : 
      82                 :          0 :             sal_uInt16 getCenterX1() const { return mnCenterX1; }
      83                 :          0 :             sal_uInt16 getCenterY1() const { return mnCenterY1; }
      84                 :          0 :             sal_uInt16 getCenterX2() const { return mnCenterX2; }
      85                 :          0 :             sal_uInt16 getCenterY2() const { return mnCenterY2; }
      86                 :            : 
      87                 :            :             // #i53216# added CursorBlinkTime (in ms)
      88                 :            :             sal_uInt32 getBlinkTime() const { return mnBlinkTime; }
      89                 :            : 
      90                 :            :             // execute event from base class ::sdr::animation::Event. Default
      91                 :            :             // implementation does nothing and does not create a new event.
      92                 :            :             virtual void Trigger(sal_uInt32 nTime);
      93                 :            :         };
      94                 :            :     } // end of namespace overlay
      95                 :            : } // end of namespace sdr
      96                 :            : 
      97                 :            : //////////////////////////////////////////////////////////////////////////////
      98                 :            : 
      99                 :            : #endif //_SDR_OVERLAY_OVERLAYANIMATEDBITMAPEX_HXX
     100                 :            : 
     101                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10