LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/drawinglayer/source/processor2d - vclprocessor2d.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 1 1 100.0 %
Date: 2013-07-09 Functions: 1 1 100.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 INCLUDED_DRAWINGLAYER_PROCESSOR2D_VCLPROCESSOR2D_HXX
      21             : #define INCLUDED_DRAWINGLAYER_PROCESSOR2D_VCLPROCESSOR2D_HXX
      22             : 
      23             : #include <drawinglayer/drawinglayerdllapi.h>
      24             : 
      25             : #include <drawinglayer/processor2d/baseprocessor2d.hxx>
      26             : #include <basegfx/matrix/b2dhommatrix.hxx>
      27             : #include <basegfx/color/bcolormodifier.hxx>
      28             : #include <svtools/optionsdrawinglayer.hxx>
      29             : 
      30             : //////////////////////////////////////////////////////////////////////////////
      31             : // predefines
      32             : class OutputDevice;
      33             : 
      34             : namespace drawinglayer { namespace primitive2d {
      35             :     class TextSimplePortionPrimitive2D;
      36             :     class PolygonHairlinePrimitive2D;
      37             :     class BitmapPrimitive2D;
      38             :     class FillGraphicPrimitive2D;
      39             :     class PolyPolygonGradientPrimitive2D;
      40             :     class PolyPolygonGraphicPrimitive2D;
      41             :     class MetafilePrimitive2D;
      42             :     class MaskPrimitive2D;
      43             :     class UnifiedTransparencePrimitive2D;
      44             :     class TransparencePrimitive2D;
      45             :     class TransformPrimitive2D;
      46             :     class MarkerArrayPrimitive2D;
      47             :     class PointArrayPrimitive2D;
      48             :     class ModifiedColorPrimitive2D;
      49             :     class PolygonStrokePrimitive2D;
      50             :     class ControlPrimitive2D;
      51             :     class PagePreviewPrimitive2D;
      52             :     class EpsPrimitive2D;
      53             :     class SvgLinearAtomPrimitive2D;
      54             :     class SvgRadialAtomPrimitive2D;
      55             : }}
      56             : 
      57             : //////////////////////////////////////////////////////////////////////////////
      58             : 
      59             : namespace drawinglayer
      60             : {
      61             :     namespace processor2d
      62             :     {
      63             :         /** VclProcessor2D class
      64             : 
      65             :             This processor is the base class for VCL-Based processors. It has no
      66             :             processBasePrimitive2D implementation and thus is not usable directly.
      67             :          */
      68             :         class VclProcessor2D : public BaseProcessor2D
      69             :         {
      70             :         protected:
      71             :             // the destination OutDev
      72             :             OutputDevice*                                           mpOutputDevice;
      73             : 
      74             :             // the modifiedColorPrimitive stack
      75             :             basegfx::BColorModifierStack                            maBColorModifierStack;
      76             : 
      77             :             // the current transformation. Since VCL pixel renderer transforms to pixels
      78             :             // and VCL MetaFile renderer to World (logic) coordinates, the local
      79             :             // ViewInformation2D cannot directly be used, but needs to be kept up to date
      80             :             basegfx::B2DHomMatrix                                   maCurrentTransformation;
      81             : 
      82             :             // SvtOptionsDrawinglayer incarnation to react on diverse settings
      83             :             const SvtOptionsDrawinglayer                            maDrawinglayerOpt;
      84             : 
      85             :             // stack value (increment and decrement) to count how deep we are in
      86             :             // PolygonStrokePrimitive2D's decompositions (normally only one)
      87             :             sal_uInt32                                              mnPolygonStrokePrimitive2D;
      88             : 
      89             :             //////////////////////////////////////////////////////////////////////////////
      90             :             // common VCL rendering support
      91             : 
      92             :             void RenderTextSimpleOrDecoratedPortionPrimitive2D(const primitive2d::TextSimplePortionPrimitive2D& rTextCandidate);
      93             :             void RenderPolygonHairlinePrimitive2D(const primitive2d::PolygonHairlinePrimitive2D& rPolygonCandidate, bool bPixelBased);
      94             :             void RenderBitmapPrimitive2D(const primitive2d::BitmapPrimitive2D& rBitmapCandidate);
      95             :             void RenderFillGraphicPrimitive2D(const primitive2d::FillGraphicPrimitive2D& rFillBitmapCandidate);
      96             :             void RenderPolyPolygonGraphicPrimitive2D(const primitive2d::PolyPolygonGraphicPrimitive2D& rPolygonCandidate);
      97             :             void RenderMaskPrimitive2DPixel(const primitive2d::MaskPrimitive2D& rMaskCandidate);
      98             :             void RenderModifiedColorPrimitive2D(const primitive2d::ModifiedColorPrimitive2D& rModifiedCandidate);
      99             :             void RenderUnifiedTransparencePrimitive2D(const primitive2d::UnifiedTransparencePrimitive2D& rTransCandidate);
     100             :             void RenderTransparencePrimitive2D(const primitive2d::TransparencePrimitive2D& rTransCandidate);
     101             :             void RenderTransformPrimitive2D(const primitive2d::TransformPrimitive2D& rTransformCandidate);
     102             :             void RenderPagePreviewPrimitive2D(const primitive2d::PagePreviewPrimitive2D& rPagePreviewCandidate);
     103             :             void RenderMarkerArrayPrimitive2D(const primitive2d::MarkerArrayPrimitive2D& rMarkerArrayCandidate);
     104             :             void RenderPointArrayPrimitive2D(const primitive2d::PointArrayPrimitive2D& rPointArrayCandidate);
     105             :             void RenderPolygonStrokePrimitive2D(const primitive2d::PolygonStrokePrimitive2D& rPolygonStrokeCandidate);
     106             :             void RenderEpsPrimitive2D(const primitive2d::EpsPrimitive2D& rEpsPrimitive2D);
     107             :             void RenderSvgLinearAtomPrimitive2D(const primitive2d::SvgLinearAtomPrimitive2D& rCandidate);
     108             :             void RenderSvgRadialAtomPrimitive2D(const primitive2d::SvgRadialAtomPrimitive2D& rCandidate);
     109             :             void RenderMetafilePrimitive2D(const primitive2d::MetafilePrimitive2D& rPolygonCandidate);
     110             : 
     111             :             /////////////////////////////////////////////////////////////////////////////
     112             :             // DrawMode adaption support
     113             :             void adaptLineToFillDrawMode() const;
     114             :             void adaptTextToFillDrawMode() const;
     115             : 
     116             :         public:
     117             :             // constructor/destructor
     118             :             VclProcessor2D(
     119             :                 const geometry::ViewInformation2D& rViewInformation,
     120             :                 OutputDevice& rOutDev);
     121             :             virtual ~VclProcessor2D();
     122             : 
     123             :             // access to Drawinglayer configuration options
     124      114312 :             const SvtOptionsDrawinglayer& getOptionsDrawinglayer() const { return maDrawinglayerOpt; }
     125             :         };
     126             :     } // end of namespace processor2d
     127             : } // end of namespace drawinglayer
     128             : 
     129             : //////////////////////////////////////////////////////////////////////////////
     130             : 
     131             : #endif // INCLUDED_DRAWINGLAYER_PROCESSOR2D_VCLPROCESSOR2D_HXX
     132             : 
     133             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10