KHtml

css_extensionsimpl.h
1 /*
2  * This file is part of the DOM implementation for KDE.
3  *
4  * Copyright 1999 Lars Knoll ([email protected])
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 _CSS_css_extensionsimpl_h_
23 #define _CSS_css_extensionsimpl_h_
24 
25 #include "css_valueimpl.h"
26 #include "dom_string.h"
27 
28 namespace DOM
29 {
30 
31 class CSS2AzimuthImpl : public CSSValueImpl
32 {
33 public:
34  CSS2AzimuthImpl(DocumentImpl *doc);
35 
36  ~CSS2AzimuthImpl();
37 
38  unsigned short azimuthType() const;
39  DOM::DOMString identifier() const;
40  bool behind() const;
41  void setAngleValue(const unsigned short &unitType, const float &floatValue);
42  float getAngleValue(const unsigned short &unitType);
43  void setIdentifier(const DOM::DOMString &identifier, const bool &behind);
44 };
45 
46 class DOM::DOMString;
47 
48 class CSS2BackgroundPositionImpl : public CSSValueImpl
49 {
50 public:
51  CSS2BackgroundPositionImpl(DocumentImpl *doc);
52 
53  ~CSS2BackgroundPositionImpl();
54 
55  unsigned short horizontalType() const;
56  unsigned short verticalType() const;
57  DOM::DOMString horizontalIdentifier() const;
58  DOM::DOMString verticalIdentifier() const;
59  float getHorizontalPosition(const float &horizontalType);
60  float getVerticalPosition(const float &verticalType);
61  void setHorizontalPosition(const unsigned short &horizontalType, const float &value);
62  void setVerticalPosition(const unsigned short &verticalType, const float &value);
63  void setPositionIdentifier(const DOM::DOMString &horizontalIdentifier, const DOM::DOMString &verticalIdentifier);
64 };
65 
66 class CSS2BorderSpacingImpl : public CSSValueImpl
67 {
68 public:
69  CSS2BorderSpacingImpl(DocumentImpl *doc);
70 
71  ~CSS2BorderSpacingImpl();
72 
73  unsigned short horizontalType() const;
74  unsigned short verticalType() const;
75  float getHorizontalSpacing(const float &horizontalType);
76  float getVerticalSpacing(const float &verticalType);
77  void setHorizontalSpacing(const unsigned short &horizontalType, const float &value);
78  void setVerticalSpacing(const unsigned short &verticalType, const float &value);
79  void setInherit();
80 };
81 
82 class CSS2CounterIncrementImpl
83 {
84 public:
85  CSS2CounterIncrementImpl(DocumentImpl *doc);
86 
87  ~CSS2CounterIncrementImpl();
88 
89  short increment() const;
90  void setIncrement(const short &);
91 };
92 
93 class CSS2CounterResetImpl
94 {
95 public:
96  CSS2CounterResetImpl(DocumentImpl *doc);
97 
98  ~CSS2CounterResetImpl();
99 
100  short reset() const;
101  void setReset(const short &);
102 };
103 
104 class CSS2CursorImpl : public CSSValueImpl
105 {
106 public:
107  CSS2CursorImpl(DocumentImpl *doc);
108 
109  ~CSS2CursorImpl();
110 
111  unsigned short cursorType() const;
112  void setCursorType(const unsigned short &);
113 
114  CSSValueList uris() const;
115 };
116 
117 class CSS2FontFaceSrcImpl
118 {
119 public:
120  CSS2FontFaceSrcImpl(DocumentImpl *doc);
121 
122  ~CSS2FontFaceSrcImpl();
123 
124  CSSValueList format() const;
125 };
126 
127 class CSS2FontFaceWidthsImpl
128 {
129 public:
130  CSS2FontFaceWidthsImpl(DocumentImpl *doc);
131 
132  ~CSS2FontFaceWidthsImpl();
133 
134  CSSValueList numbers() const;
135 };
136 
137 class CSS2PageSizeImpl : public CSSValueImpl
138 {
139 public:
140  CSS2PageSizeImpl(DocumentImpl *doc);
141 
142  ~CSS2PageSizeImpl();
143 
144  unsigned short widthType() const;
145  unsigned short heightType() const;
146  DOM::DOMString identifier() const;
147  float getWidth(const float &widthType);
148  float getHeightSize(const float &heightType);
149  void setWidthSize(const unsigned short &widthType, const float &value);
150  void setHeightSize(const unsigned short &heightType, const float &value);
151  void setIdentifier(const DOM::DOMString &identifier);
152 };
153 
154 class CSS2PlayDuringImpl : public CSSValueImpl
155 {
156 public:
157  CSS2PlayDuringImpl(DocumentImpl *doc);
158 
159  ~CSS2PlayDuringImpl();
160 
161  unsigned short playDuringType() const;
162  bool mix() const;
163 
164  void setMix(const bool &);
165  bool repeat() const;
166 
167  void setRepeat(const bool &);
168 };
169 
170 class CSS2PropertiesImpl
171 {
172 public:
173  CSS2PropertiesImpl(DocumentImpl *doc);
174 
175  ~CSS2PropertiesImpl();
176 };
177 
178 class CSS2TextShadowImpl
179 {
180 public:
181  CSS2TextShadowImpl(DocumentImpl *doc);
182 
183  ~CSS2TextShadowImpl();
184 
185  CSSValue color() const;
186  CSSValue horizontal() const;
187  CSSValue vertical() const;
188  CSSValue blur() const;
189 };
190 
191 }; // namespace
192 
193 #endif
QAction * repeat(const QObject *recvr, const char *slot, QObject *parent)
KGUIADDONS_EXPORT QColor mix(const QColor &c1, const QColor &c2, qreal bias=0.5)
This class implements the basic string we use in the DOM.
Definition: dom_string.h:44
This library provides a full-featured HTML parser and widget.
KGuiItem reset()
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Oct 25 2021 22:48:12 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.