LCOV - code coverage report
Current view: top level - svgio/inc/svgio/svgreader - svgtextpathnode.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 4 0.0 %
Date: 2014-04-14 Functions: 0 4 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_SVGIO_SVGREADER_SVGTEXTPATHNODE_HXX
      21             : #define INCLUDED_SVGIO_SVGREADER_SVGTEXTPATHNODE_HXX
      22             : 
      23             : #include <svgio/svgreader/svgnode.hxx>
      24             : #include <svgio/svgreader/svgstyleattributes.hxx>
      25             : #include <svgio/svgreader/svgpathnode.hxx>
      26             : 
      27             : 
      28             : 
      29             : namespace svgio
      30             : {
      31             :     namespace svgreader
      32             :     {
      33             :         class SvgTextPathNode : public SvgNode
      34             :         {
      35             :         private:
      36             :             /// use styles
      37             :             SvgStyleAttributes      maSvgStyleAttributes;
      38             : 
      39             :             /// link to path content. If maXLink
      40             :             /// is set, the node can be fetched on demand
      41             :             OUString           maXLink;
      42             : 
      43             :             /// variable scan values, dependent of given XAttributeList
      44             :             SvgNumber               maStartOffset;
      45             : 
      46             :             /// bitfield
      47             :             bool                    mbMethod : 1; // true = align, false = stretch
      48             :             bool                    mbSpacing : 1; // true = auto, false = exact
      49             : 
      50             :         public:
      51             :             SvgTextPathNode(
      52             :                 SvgDocument& rDocument,
      53             :                 SvgNode* pParent);
      54             :             virtual ~SvgTextPathNode();
      55             : 
      56             :             virtual const SvgStyleAttributes* getSvgStyleAttributes() const SAL_OVERRIDE;
      57             :             virtual void parseAttribute(const OUString& rTokenName, SVGToken aSVGToken, const OUString& aContent) SAL_OVERRIDE;
      58             :             void decomposePathNode(
      59             :                 const drawinglayer::primitive2d::Primitive2DSequence& rPathContent,
      60             :                 drawinglayer::primitive2d::Primitive2DSequence& rTarget,
      61             :                 const basegfx::B2DPoint& rTextStart) const;
      62             :             bool isValid() const;
      63             : 
      64             :             /// StartOffset content
      65           0 :             const SvgNumber& getStartOffset() const { return maStartOffset; }
      66           0 :             void setStartOffset(const SvgNumber& rStartOffset = SvgNumber()) { maStartOffset = rStartOffset; }
      67             : 
      68             :             /// Method content
      69             :             bool getMethod() const { return mbMethod; }
      70           0 :             void setMethod(bool bNew) { mbMethod = bNew; }
      71             : 
      72             :             /// Spacing content
      73             :             bool getSpacing() const { return mbSpacing; }
      74           0 :             void setSpacing(bool bNew) { mbSpacing = bNew; }
      75             :         };
      76             :     } // end of namespace svgreader
      77             : } // end of namespace svgio
      78             : 
      79             : 
      80             : 
      81             : #endif //INCLUDED_SVGIO_SVGREADER_SVGTEXTPATHNODE_HXX
      82             : 
      83             : // eof
      84             : 
      85             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10