LCOV - code coverage report
Current view: top level - include/drawinglayer/primitive2d - wrongspellprimitive2d.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 0 5 0.0 %
Date: 2014-11-03 Functions: 0 6 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 INCLUDED_DRAWINGLAYER_PRIMITIVE2D_WRONGSPELLPRIMITIVE2D_HXX
      21             : #define INCLUDED_DRAWINGLAYER_PRIMITIVE2D_WRONGSPELLPRIMITIVE2D_HXX
      22             : 
      23             : #include <drawinglayer/drawinglayerdllapi.h>
      24             : 
      25             : #include <drawinglayer/primitive2d/baseprimitive2d.hxx>
      26             : #include <basegfx/color/bcolor.hxx>
      27             : #include <basegfx/matrix/b2dhommatrix.hxx>
      28             : 
      29             : 
      30             : // WrongSpellPrimitive2D class
      31             : 
      32             : namespace drawinglayer
      33             : {
      34             :     namespace primitive2d
      35             :     {
      36             :         /** WrongSpellPrimitive2D class
      37             : 
      38             :             This is a helper primitive to hold evtl. WrongSpell visualisations
      39             :             in the sequence of primitives. The primitive holds this information
      40             :             separated form the TextPortions to where it belongs to tot expand the
      41             :             TextSimplePortionPrimitive2D more as needed.
      42             : 
      43             :             A renderer who does not want to visualize this (if contained at all)
      44             :             can detect and ignore this primitive. If its decomposition is used,
      45             :             it will be visualized as red wavelines.
      46             : 
      47             :             The geometric definition defines a line on the X-Axis (no Y-coordinates)
      48             :             which will when transformed by Transformation, create the coordinate data.
      49             :          */
      50           0 :         class DRAWINGLAYER_DLLPUBLIC WrongSpellPrimitive2D : public BufferedDecompositionPrimitive2D
      51             :         {
      52             :         private:
      53             :             /// geometry definition
      54             :             basegfx::B2DHomMatrix                           maTransformation;
      55             :             double                                          mfStart;
      56             :             double                                          mfStop;
      57             : 
      58             :             /// color (usually red)
      59             :             basegfx::BColor                                 maColor;
      60             : 
      61             :         protected:
      62             :             /// create local decomposition
      63             :             virtual Primitive2DSequence create2DDecomposition(const geometry::ViewInformation2D& rViewInformation) const SAL_OVERRIDE;
      64             : 
      65             :         public:
      66             :             /// constructor
      67             :             WrongSpellPrimitive2D(
      68             :                 const basegfx::B2DHomMatrix& rTransformation,
      69             :                 double fStart,
      70             :                 double fStop,
      71             :                 const basegfx::BColor& rColor);
      72             : 
      73             :             /// data read access
      74           0 :             const basegfx::B2DHomMatrix& getTransformation() const { return maTransformation; }
      75           0 :             double getStart() const { return mfStart; }
      76           0 :             double getStop() const { return mfStop; }
      77           0 :             const basegfx::BColor& getColor() const { return maColor; }
      78             : 
      79             :             /// compare operator
      80             :             virtual bool operator==(const BasePrimitive2D& rPrimitive) const SAL_OVERRIDE;
      81             : 
      82             :             /// provide unique ID
      83             :             DeclPrimitive2DIDBlock()
      84             :         };
      85             :     } // end of namespace primitive2d
      86             : } // end of namespace drawinglayer
      87             : 
      88             : 
      89             : 
      90             : #endif //INCLUDED_DRAWINGLAYER_PRIMITIVE2D_WRONGSPELLPRIMITIVE2D_HXX
      91             : 
      92             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10