LCOV - code coverage report
Current view: top level - svx/inc/svx/sdr/primitive2d - sdrolecontentprimitive2d.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 3 3 100.0 %
Date: 2012-08-25 Functions: 4 4 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 3 6 50.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 INCLUDED_SDR_PRIMITIVE2D_SdrOleContentPrimitive2D_HXX
      30                 :            : #define INCLUDED_SDR_PRIMITIVE2D_SDROLECONTENTPRIMITIVE2D_HXX
      31                 :            : 
      32                 :            : #include <drawinglayer/primitive2d/baseprimitive2d.hxx>
      33                 :            : #include <basegfx/matrix/b2dhommatrix.hxx>
      34                 :            : #include <svx/svdobj.hxx>
      35                 :            : 
      36                 :            : //////////////////////////////////////////////////////////////////////////////
      37                 :            : // predefinitions
      38                 :            : 
      39                 :            : class SdrOle2Obj;
      40                 :            : 
      41                 :            : //////////////////////////////////////////////////////////////////////////////
      42                 :            : 
      43                 :            : namespace drawinglayer
      44                 :            : {
      45                 :            :     namespace primitive2d
      46                 :            :     {
      47 [ +  - ][ +  - ]:        362 :         class SdrOleContentPrimitive2D : public BufferedDecompositionPrimitive2D
                 [ -  + ]
      48                 :            :         {
      49                 :            :         private:
      50                 :            :             SdrObjectWeakRef                            mpSdrOle2Obj;
      51                 :            :             basegfx::B2DHomMatrix                       maObjectTransform;
      52                 :            : 
      53                 :            :             // #i104867# The GraphicVersion number to identify in operator== if
      54                 :            :             // the graphic has changed, but without fetching it (which may
      55                 :            :             // be expensive, e.g. triggering chart creation)
      56                 :            :             sal_uInt32                                  mnGraphicVersion;
      57                 :            : 
      58                 :            :         protected:
      59                 :            :             // local decomposition.
      60                 :            :             virtual Primitive2DSequence create2DDecomposition(const geometry::ViewInformation2D& aViewInformation) const;
      61                 :            : 
      62                 :            :         public:
      63                 :            :             SdrOleContentPrimitive2D(
      64                 :            :                 const SdrOle2Obj& rSdrOle2Obj,
      65                 :            :                 const basegfx::B2DHomMatrix& rObjectTransform,
      66                 :            :                 sal_uInt32 nGraphicVersion
      67                 :            :             );
      68                 :            : 
      69                 :            :             // compare operator
      70                 :            :             virtual bool operator==(const BasePrimitive2D& rPrimitive) const;
      71                 :            : 
      72                 :            :             // The default implementation will use getDecomposition results to create the range
      73                 :            :             virtual basegfx::B2DRange getB2DRange(const geometry::ViewInformation2D& rViewInformation) const;
      74                 :            : 
      75                 :            :             // data access
      76                 :        785 :             const basegfx::B2DHomMatrix& getObjectTransform() const { return maObjectTransform; }
      77                 :        304 :             sal_uInt32 getGraphicVersion() const { return mnGraphicVersion; }
      78                 :            : 
      79                 :            :             // provide unique ID
      80                 :            :             DeclPrimitrive2DIDBlock()
      81                 :            :         };
      82                 :            :     } // end of namespace primitive2d
      83                 :            : } // end of namespace drawinglayer
      84                 :            : 
      85                 :            : //////////////////////////////////////////////////////////////////////////////
      86                 :            : 
      87                 :            : #endif //INCLUDED_SDR_PRIMITIVE2D_SDROLECONTENTPRIMITIVE2D_HXX
      88                 :            : 
      89                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10