LCOV - code coverage report
Current view: top level - libreoffice/canvas/source/null - null_spritehelper.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 18 0.0 %
Date: 2012-12-27 Functions: 0 7 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             : 
      21             : #include <canvas/debug.hxx>
      22             : #include <tools/diagnose_ex.h>
      23             : #include <canvas/verbosetrace.hxx>
      24             : 
      25             : #include <rtl/logfile.hxx>
      26             : #include <rtl/math.hxx>
      27             : 
      28             : #include <canvas/canvastools.hxx>
      29             : 
      30             : #include <basegfx/matrix/b2dhommatrix.hxx>
      31             : #include <basegfx/point/b2dpoint.hxx>
      32             : #include <basegfx/tools/canvastools.hxx>
      33             : #include <basegfx/numeric/ftools.hxx>
      34             : #include <basegfx/polygon/b2dpolypolygontools.hxx>
      35             : #include <basegfx/polygon/b2dpolygontools.hxx>
      36             : #include <basegfx/polygon/b2dpolygontriangulator.hxx>
      37             : #include <basegfx/polygon/b2dpolygoncutandtouch.hxx>
      38             : 
      39             : #include "null_canvascustomsprite.hxx"
      40             : #include "null_spritehelper.hxx"
      41             : 
      42             : #include <memory>
      43             : 
      44             : 
      45             : using namespace ::com::sun::star;
      46             : 
      47             : namespace nullcanvas
      48             : {
      49           0 :     SpriteHelper::SpriteHelper() :
      50             :         mpSpriteCanvas(),
      51           0 :         mbTextureDirty( true )
      52             :     {
      53           0 :     }
      54             : 
      55           0 :     void SpriteHelper::init( const geometry::RealSize2D&    rSpriteSize,
      56             :                              const SpriteCanvasRef&         rSpriteCanvas )
      57             :     {
      58           0 :         ENSURE_OR_THROW( rSpriteCanvas.get(),
      59             :                           "SpriteHelper::init(): Invalid device, sprite canvas or surface" );
      60             : 
      61           0 :         mpSpriteCanvas     = rSpriteCanvas;
      62           0 :         mbTextureDirty     = true;
      63             : 
      64             :         // also init base class
      65             :         CanvasCustomSpriteHelper::init( rSpriteSize,
      66           0 :                                         rSpriteCanvas.get() );
      67           0 :     }
      68             : 
      69           0 :     void SpriteHelper::disposing()
      70             :     {
      71           0 :         mpSpriteCanvas.clear();
      72             : 
      73             :         // forward to parent
      74           0 :         CanvasCustomSpriteHelper::disposing();
      75           0 :     }
      76             : 
      77           0 :     void SpriteHelper::redraw( bool& /*io_bSurfaceDirty*/ ) const
      78             :     {
      79             :         // TODO
      80           0 :     }
      81             : 
      82           0 :     ::basegfx::B2DPolyPolygon SpriteHelper::polyPolygonFromXPolyPolygon2D( uno::Reference< rendering::XPolyPolygon2D >& xPoly ) const
      83             :     {
      84           0 :         return ::basegfx::unotools::b2DPolyPolygonFromXPolyPolygon2D( xPoly );
      85             :     }
      86           0 : }
      87             : 
      88             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10