• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KHTML

  • sources
  • kde-4.12
  • kdelibs
  • khtml
  • svg
SVGTextPathElement.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 
4  This file is part of the KDE project
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Library General Public
8  License as published by the Free Software Foundation; either
9  version 2 of the License, or (at your option) any later version.
10 
11  This library is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  Library General Public License for more details.
15 
16  You should have received a copy of the GNU Library General Public License
17  along with this library; see the file COPYING.LIB. If not, write to
18  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  Boston, MA 02110-1301, USA.
20 */
21 
22 #ifndef SVGTextPathElement_h
23 #define SVGTextPathElement_h
24 
25 #if ENABLE(SVG)
26 #include "SVGTextContentElement.h"
27 
28 #include "SVGURIReference.h"
29 
30 namespace WebCore
31 {
32  enum SVGTextPathMethodType {
33  SVG_TEXTPATH_METHODTYPE_UNKNOWN = 0,
34  SVG_TEXTPATH_METHODTYPE_ALIGN = 1,
35  SVG_TEXTPATH_METHODTYPE_STRETCH = 2
36  };
37 
38  enum SVGTextPathSpacingType {
39  SVG_TEXTPATH_SPACINGTYPE_UNKNOWN = 0,
40  SVG_TEXTPATH_SPACINGTYPE_AUTO = 1,
41  SVG_TEXTPATH_SPACINGTYPE_EXACT = 2
42  };
43 
44  class SVGTextPathElement : public SVGTextContentElement,
45  public SVGURIReference
46  {
47  public:
48  // Forward declare these enums in the w3c naming scheme, for IDL generation
49  enum {
50  TEXTPATH_METHODTYPE_UNKNOWN = SVG_TEXTPATH_METHODTYPE_UNKNOWN,
51  TEXTPATH_METHODTYPE_ALIGN = SVG_TEXTPATH_METHODTYPE_ALIGN,
52  TEXTPATH_METHODTYPE_STRETCH = SVG_TEXTPATH_METHODTYPE_STRETCH,
53  TEXTPATH_SPACINGTYPE_UNKNOWN = SVG_TEXTPATH_SPACINGTYPE_UNKNOWN,
54  TEXTPATH_SPACINGTYPE_AUTO = SVG_TEXTPATH_SPACINGTYPE_AUTO,
55  TEXTPATH_SPACINGTYPE_EXACT = SVG_TEXTPATH_SPACINGTYPE_EXACT
56  };
57 
58  SVGTextPathElement(const QualifiedName&, Document*);
59  virtual ~SVGTextPathElement();
60 
61  virtual void insertedIntoDocument();
62 
63  virtual void parseMappedAttribute(MappedAttribute*);
64  virtual bool rendererIsNeeded(RenderStyle* style) { return StyledElement::rendererIsNeeded(style); }
65  virtual RenderObject* createRenderer(RenderArena*, RenderStyle*);
66 
67  bool childShouldCreateRenderer(Node*) const;
68 
69  // KHTML ElementImpl pure virtual method
70  virtual quint32 id() const { return SVGNames::textPathTag.id(); }
71  protected:
72  virtual const SVGElement* contextElement() const { return this; }
73 
74  private:
75  ANIMATED_PROPERTY_FORWARD_DECLARATIONS(SVGURIReference, String, Href, href)
76 
77  ANIMATED_PROPERTY_DECLARATIONS(SVGTextPathElement, SVGLength, SVGLength, StartOffset, startOffset)
78  ANIMATED_PROPERTY_DECLARATIONS(SVGTextPathElement, int, int, Method, method)
79  ANIMATED_PROPERTY_DECLARATIONS(SVGTextPathElement, int, int, Spacing, spacing)
80  };
81 
82 } // namespace WebCore
83 
84 #endif // ENABLE(SVG)
85 #endif
86 
87 // vim:ts=4:noet
WebCore::SVGNames::textPathTag
DOM::QualifiedName textPathTag
Definition: SVGNames.cpp:95
DOM::QualifiedName::id
unsigned id() const
Definition: QualifiedName.cpp:90
quint32
SVGTextContentElement.h
SVGURIReference.h
WebCore::String
DOM::DOMString String
Definition: PlatformString.h:8
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:22 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KHTML

Skip menu "KHTML"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal