fix logic
[personal-kdelibs.git] / khtml / dom / css_extensions.h
blobc9f6647a2302d48ff406dbcee9f984325d03e1dd
1 /*
2 * This file is part of the DOM implementation for KDE.
4 * Copyright 1999 Lars Knoll (knoll@kde.org)
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.
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.
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.
21 * This file includes excerpts from the Document Object Model (DOM)
22 * Level 2 Specification (Candidate Recommendation)
23 * http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510/
24 * Copyright © 2000 W3C® (MIT, INRIA, Keio), All Rights Reserved.
27 #ifndef _CSS_css_extensions_h_
28 #define _CSS_css_extensions_h_
30 #include <css_value.h>
31 #include <dom/dom_string.h>
33 namespace DOM {
35 /**
36 * The \c CSS2Azimuth interface represents the <a
37 * href="http://www.w3.org/TR/REC-CSS2/aural.html#propdef-azimuth">
38 * azimuth </a> CSS Level 2 property.
41 class CSS2Azimuth : public CSSValue
43 public:
44 CSS2Azimuth();
45 CSS2Azimuth(const CSS2Azimuth &other);
46 CSS2Azimuth(CSS2AzimuthImpl *impl);
47 public:
49 CSS2Azimuth & operator = (const CSS2Azimuth &other);
51 ~CSS2Azimuth();
53 /**
54 * A code defining the type of the value as defined in
55 * \c CSSValue . It would be one of \c CSS_DEG ,
56 * \c CSS_RAD , \c CSS_GRAD or
57 * \c CSS_IDENT .
60 unsigned short azimuthType() const;
62 /**
63 * If \c azimuthType is \c CSS_IDENT ,
64 * \c identifier contains one of left-side, far-left,
65 * left, center-left, center, center-right, right, far-right,
66 * right-side, leftwards, rightwards. The empty string if none is
67 * set.
70 DOM::DOMString identifier() const;
72 /**
73 * \c behind indicates whether the behind identifier
74 * has been set.
77 bool behind() const;
79 /**
80 * A method to set the angle value with a specified unit. This
81 * method will unset any previously set identifiers values.
83 * @param unitType The unitType could only be one of
84 * \c CSS_DEG , \c CSS_RAD or \c CSS_GRAD ).
86 * @param floatValue The new float value of the angle.
88 * @return
89 * @exception DOMException
90 * INVALID_ACCESS_ERR: Raised if the unit type is invalid.
92 * NO_MODIFICATION_ALLOWED_ERR: Raised if this property is
93 * readonly.
96 void setAngleValue ( const unsigned short unitType, const float floatValue );
98 /**
99 * Used to retrieved the float value of the azimuth property.
101 * @param unitType The unit type can be only an angle unit type (
102 * \c CSS_DEG , \c CSS_RAD or
103 * \c CSS_GRAD ).
105 * @return The float value.
107 * @exception DOMException
108 * INVALID_ACCESS_ERR: Raised if the unit type is invalid.
111 float getAngleValue ( const unsigned short unitType );
114 * Setting the identifier for the azimuth property will unset any
115 * previously set angle value. The value of \c azimuthType
116 * is set to \c CSS_IDENT
118 * @param identifier The new identifier. If the identifier is
119 * "leftwards" or "rightward", the behind attribute is ignored.
121 * @param behind The new value for behind.
123 * @return
124 * @exception DOMException
125 * SYNTAX_ERR: Raised if the specified \c identifier
126 * has a syntax error and is unparsable.
128 * NO_MODIFICATION_ALLOWED_ERR: Raised if this property is
129 * readonly.
132 void setIdentifier ( const DOM::DOMString &identifier, const bool behind );
136 class CSS2BackgroundPositionImpl;
139 * The \c CSS2BackgroundPosition interface represents the
140 * <a
141 * href="http://www.w3.org/TR/REC-CSS2/colors.html#propdef-background-position">
142 * background-position </a> CSS Level 2 property.
145 class CSS2BackgroundPosition : public CSSValue
147 public:
148 CSS2BackgroundPosition();
149 CSS2BackgroundPosition(const CSS2BackgroundPosition &other);
150 CSS2BackgroundPosition(CSS2BackgroundPositionImpl *impl);
151 public:
153 CSS2BackgroundPosition & operator = (const CSS2BackgroundPosition &other);
155 ~CSS2BackgroundPosition();
158 * A code defining the type of the horizontal value. It would be
159 * one \c CSS_PERCENTAGE , \c CSS_EMS ,
160 * \c CSS_EXS , \c CSS_PX , \c CSS_CM ,
161 * \c CSS_MM , \c CSS_IN ,
162 * \c CSS_PT , \c CSS_PC ,
163 * \c CSS_IDENT , \c CSS_INHERIT . If one of
164 * horizontal or vertical is \c CSS_IDENT or
165 * \c CSS_INHERIT , it's guaranteed that the other is the
166 * same.
169 unsigned short horizontalType() const;
172 * A code defining the type of the horizontal value. The code can
173 * be one of the following units : \c CSS_PERCENTAGE ,
174 * \c CSS_EMS , \c CSS_EXS , \c CSS_PX
175 * , \c CSS_CM , \c CSS_MM ,
176 * \c CSS_IN , \c CSS_PT , \c CSS_PC
177 * , \c CSS_IDENT , \c CSS_INHERIT
178 * . If one of horizontal or vertical is \c CSS_IDENT
179 * or \c CSS_INHERIT , it's guaranteed that the other
180 * is the same.
183 unsigned short verticalType() const;
186 * If \c horizontalType is \c CSS_IDENT or
187 * \c CSS_INHERIT , this attribute contains the string
188 * representation of the ident, otherwise it contains an empty
189 * string.
192 DOM::DOMString horizontalIdentifier() const;
195 * If \c verticalType is \c CSS_IDENT or
196 * \c CSS_INHERIT , this attribute contains the string
197 * representation of the ident, otherwise it contains an empty
198 * string. The value is \c "center" if only the
199 * horizontalIdentifier has been set. The value is
200 * \c "inherit" if the horizontalIdentifier is
201 * \c "inherit" .
204 DOM::DOMString verticalIdentifier() const;
207 * This method is used to get the float value in a specified unit
208 * if the \c horizontalPosition represents a length or
209 * a percentage. If the float doesn't contain a float value or
210 * can't be converted into the specified unit, a
211 * \c DOMException is raised.
213 * @param horizontalType The specified unit.
215 * @return The float value.
217 * @exception DOMException
218 * INVALID_ACCESS_ERR: Raises if the property doesn't contain a
219 * float or the value can't be converted.
222 float getHorizontalPosition ( const float horizontalType );
225 * This method is used to get the float value in a specified unit
226 * if the \c verticalPosition represents a length or a
227 * percentage. If the float doesn't contain a float value or can't
228 * be converted into the specified unit, a \c DOMException
229 * is raised. The value is \c 50% if only the
230 * horizontal value has been specified.
232 * @param verticalType The specified unit.
234 * @return The float value.
236 * @exception DOMException
237 * INVALID_ACCESS_ERR: Raises if the property doesn't contain a
238 * float or the value can't be converted.
241 float getVerticalPosition ( const float verticalType );
244 * This method is used to set the horizontal position with a
245 * specified unit. If the vertical value is not a percentage or a
246 * length, it sets the vertical position to \c 50% .
248 * @param horizontalType The specified unit (a length or a
249 * percentage).
251 * @param value The new value.
253 * @return
254 * @exception DOMException
255 * INVALID_ACCESS_ERR: Raises if the specified unit is not a
256 * length or a percentage.
258 * NO_MODIFICATION_ALLOWED_ERR: Raises if this property is
259 * readonly.
262 void setHorizontalPosition ( const unsigned short horizontalType, const float value );
265 * This method is used to set the vertical position with a
266 * specified unit. If the horizontal value is not a percentage or
267 * a length, it sets the vertical position to \c 50% .
269 * @param verticalType The specified unit (a length or a
270 * percentage).
272 * @param value The new value.
274 * @return
275 * @exception DOMException
276 * INVALID_ACCESS_ERR: Raises if the specified unit is not a
277 * length or a percentage.
279 * NO_MODIFICATION_ALLOWED_ERR: Raises if this property is
280 * readonly.
283 void setVerticalPosition ( const unsigned short verticalType, const float value );
286 * Sets the identifiers. If the second identifier is the empty
287 * string, the vertical identifier is set to his default value (
288 * \c "center" ). If the first identfier is
289 * \c "inherit , the second identifier is ignored and is set
290 * to \c "inherit" .
292 * @param horizontalIdentifier The new horizontal identifier.
294 * @param verticalIdentifier The new vertical identifier.
296 * @return
297 * @exception DOMException
298 * SYNTAX_ERR: Raises if the identifiers have a syntax error and
299 * is unparsable.
301 * NO_MODIFICATION_ALLOWED_ERR: Raises if this property is
302 * readonly.
305 void setPositionIdentifier ( const DOM::DOMString &horizontalIdentifier, const DOM::DOMString &verticalIdentifier );
309 class CSS2BorderSpacingImpl;
312 * The \c CSS2BorderSpacing interface represents the <a
313 * href="http://www.w3.org/TR/REC-CSS2/tables.html#propdef-border-spacing">
314 * border-spacing </a> CSS Level 2 property.
317 class CSS2BorderSpacing : public CSSValue
319 public:
320 CSS2BorderSpacing();
321 CSS2BorderSpacing(const CSS2BorderSpacing &other);
322 CSS2BorderSpacing(CSS2BorderSpacingImpl *impl);
323 public:
325 CSS2BorderSpacing & operator = (const CSS2BorderSpacing &other);
327 ~CSS2BorderSpacing();
330 * The A code defining the type of the value as defined in
331 * \c CSSValue . It would be one of \c CSS_EMS ,
332 * \c CSS_EXS , \c CSS_PX , \c CSS_CM
333 * , \c CSS_MM , \c CSS_IN ,
334 * \c CSS_PT , \c CSS_PC or
335 * \c CSS_INHERIT .
338 unsigned short horizontalType() const;
341 * The A code defining the type of the value as defined in
342 * \c CSSValue . It would be one of \c CSS_EMS ,
343 * \c CSS_EXS , \c CSS_PX , \c CSS_CM
344 * , \c CSS_MM , \c CSS_IN ,
345 * \c CSS_PT , \c CSS_PC or
346 * \c CSS_INHERIT .
349 unsigned short verticalType() const;
352 * This method is used to get the float value in a specified unit
353 * if the \c horizontalSpacing represents a length. If
354 * the float doesn't contain a float value or can't be converted
355 * into the specified unit, a \c DOMException is
356 * raised.
358 * @param horizontalType The specified unit.
360 * @return The float value.
362 * @exception DOMException
363 * INVALID_ACCESS_ERR: Raises if the property doesn't contain a
364 * float or the value can't be converted.
367 float getHorizontalSpacing ( const float horizontalType );
370 * This method is used to get the float value in a specified unit
371 * if the \c verticalSpacing represents a length. If
372 * the float doesn't contain a float value or can't be converted
373 * into the specified unit, a \c DOMException is
374 * raised. The value is \c 0 if only the horizontal
375 * value has been specified.
377 * @param verticalType The specified unit.
379 * @return The float value.
381 * @exception DOMException
382 * INVALID_ACCESS_ERR: Raises if the property doesn't contain a
383 * float or the value can't be converted.
386 float getVerticalSpacing ( const float verticalType );
389 * This method is used to set the horizontal spacing with a
390 * specified unit. If the vertical value is a length, it sets the
391 * vertical spacing to \c 0 .
393 * @param horizontalType The specified unit.
395 * @param value The new value.
397 * @return
398 * @exception DOMException
399 * INVALID_ACCESS_ERR: Raises if the specified unit is not a
400 * length.
402 * NO_MODIFICATION_ALLOWED_ERR: Raises if this property is
403 * readonly.
406 void setHorizontalSpacing ( const unsigned short horizontalType, const float value );
409 * This method is used to set the vertical spacing with a
410 * specified unit. If the horizontal value is not a length, it
411 * sets the vertical spacing to \c 0 .
413 * @param verticalType The specified unit.
415 * @param value The new value.
417 * @return
418 * @exception DOMException
419 * INVALID_ACCESS_ERR: Raises if the specified unit is not a
420 * length or a percentage.
422 * NO_MODIFICATION_ALLOWED_ERR: Raises if this property is
423 * readonly.
426 void setVerticalSpacing ( const unsigned short verticalType, const float value );
429 * Set this property as inherit. \c horizontalType and
430 * \c verticalType will be inherited.
432 * @return
434 void setInherit();
438 class CSS2CounterIncrementImpl;
441 * The \c CSS2CounterIncrement interface represents a
442 * imple value for the <a
443 * href="http://www.w3.org/TR/REC-CSS2/generate.html#propdef-counter-increment">
444 * counter-increment </a> CSS Level 2 property.
447 class CSS2CounterIncrement
449 public:
450 CSS2CounterIncrement();
451 CSS2CounterIncrement(const CSS2CounterIncrement &other);
452 CSS2CounterIncrement(CSS2CounterIncrementImpl *impl);
453 public:
455 CSS2CounterIncrement & operator = (const CSS2CounterIncrement &other);
457 ~CSS2CounterIncrement();
460 * The element name.
463 DOM::DOMString identifier() const;
466 * see identifier
467 * @exception DOMException
468 * SYNTAX_ERR: Raised if the specified identifier has a syntax
469 * error and is unparsable.
471 * NO_MODIFICATION_ALLOWED_ERR: Raised if this identifier is
472 * readonly.
475 void setIdentifier( const DOM::DOMString & );
478 * The increment (default value is 1).
481 short increment() const;
484 * see increment
485 * @exception DOMException
486 * NO_MODIFICATION_ALLOWED_ERR: Raised if this identifier is
487 * readonly.
490 void setIncrement( const short );
494 class CSS2CounterResetImpl;
497 * The \c CSS2CounterReset interface represents a simple
498 * value for the <a
499 * href="http://www.w3.org/TR/REC-CSS2/generate.html#propdef-counter-reset">
500 * counter-reset </a> CSS Level 2 property.
503 class CSS2CounterReset
505 public:
506 CSS2CounterReset();
507 CSS2CounterReset(const CSS2CounterReset &other);
508 CSS2CounterReset(CSS2CounterResetImpl *impl);
509 public:
511 CSS2CounterReset & operator = (const CSS2CounterReset &other);
513 ~CSS2CounterReset();
516 * The element name.
519 DOM::DOMString identifier() const;
522 * see identifier
523 * @exception DOMException
524 * SYNTAX_ERR: Raised if the specified identifier has a syntax
525 * error and is unparsable.
527 * NO_MODIFICATION_ALLOWED_ERR: Raised if this identifier is
528 * readonly.
531 void setIdentifier( const DOM::DOMString & );
534 * The reset (default value is 0).
537 short reset() const;
540 * see reset
541 * @exception DOMException
542 * NO_MODIFICATION_ALLOWED_ERR: Raised if this identifier is
543 * readonly.
546 void setReset( const short );
550 class CSS2CursorImpl;
551 class CSSValueList;
554 * The \c CSS2Cursor interface represents the <a
555 * href="http://www.w3.org/TR/REC-CSS2/ui.html#propdef-cursor"> cursor
556 * </a> CSS Level 2 property.
559 class CSS2Cursor : public CSSValue
561 public:
562 CSS2Cursor();
563 CSS2Cursor(const CSS2Cursor &other);
564 CSS2Cursor(CSS2CursorImpl *impl);
565 public:
567 CSS2Cursor & operator = (const CSS2Cursor &other);
569 ~CSS2Cursor();
572 * A code defining the type of the property. It would one of
573 * \c CSS_UNKNOWN or \c CSS_INHERIT . If
574 * the type is \c CSS_UNKNOWN , then \c uris
575 * contains a list of URIs and \c predefinedCursor
576 * contains an ident. Setting this attribute from
577 * \c CSS_INHERIT to \c CSS_UNKNOWN will set the
578 * \c predefinedCursor to \c "auto" .
581 unsigned short cursorType() const;
584 * see cursorType
586 void setCursorType( const unsigned short );
589 * \c uris represents the list of URIs (
590 * \c CSS_URI ) on the cursor property. The list can be
591 * empty.
594 CSSValueList uris() const;
597 * This identifier represents a generic cursor name or an empty
598 * string.
601 DOM::DOMString predefinedCursor() const;
604 * see predefinedCursor
605 * @exception DOMException
606 * SYNTAX_ERR: Raised if the specified CSS string value has a
607 * syntax error and is unparsable.
609 * NO_MODIFICATION_ALLOWED_ERR: Raised if this declaration is
610 * readonly.
613 void setPredefinedCursor( const DOM::DOMString & );
617 class CSS2FontFaceSrcImpl;
618 class CSSValueList;
621 * The \c CSS2Cursor interface represents the <a
622 * href="http://www.w3.org/TR/REC-CSS2/fonts.html#descdef-src"> src
623 * </a> CSS Level 2 descriptor.
626 class CSS2FontFaceSrc
628 public:
629 CSS2FontFaceSrc();
630 CSS2FontFaceSrc(const CSS2FontFaceSrc &other);
631 CSS2FontFaceSrc(CSS2FontFaceSrcImpl *impl);
632 public:
634 CSS2FontFaceSrc & operator = (const CSS2FontFaceSrc &other);
636 ~CSS2FontFaceSrc();
639 * Specifies the source of the font, empty string otherwise.
642 DOM::DOMString uri() const;
645 * see uri
646 * @exception DOMException
647 * SYNTAX_ERR: Raised if the specified CSS string value has a
648 * syntax error and is unparsable.
650 * NO_MODIFICATION_ALLOWED_ERR: Raised if this declaration is
651 * readonly.
654 void setUri( const DOM::DOMString & );
657 * This attribute contains a list of strings for the format CSS
658 * function.
661 CSSValueList format() const;
664 * Specifies the full font name of a locally installed font.
667 DOM::DOMString fontFaceName() const;
670 * see fontFaceName
671 * @exception DOMException
672 * SYNTAX_ERR: Raised if the specified CSS string value has a
673 * syntax error and is unparsable.
675 * NO_MODIFICATION_ALLOWED_ERR: Raised if this declaration is
676 * readonly.
679 void setFontFaceName( const DOM::DOMString & );
683 class CSS2FontFaceWidthsImpl;
684 class CSSValueList;
687 * The \c CSS2Cursor interface represents a simple value
688 * for the <a
689 * href="http://www.w3.org/TR/REC-CSS2/fonts.html#descdef-widths">
690 * widths </a> CSS Level 2 descriptor.
693 class CSS2FontFaceWidths
695 public:
696 CSS2FontFaceWidths();
697 CSS2FontFaceWidths(const CSS2FontFaceWidths &other);
698 CSS2FontFaceWidths(CSS2FontFaceWidthsImpl *impl);
699 public:
701 CSS2FontFaceWidths & operator = (const CSS2FontFaceWidths &other);
703 ~CSS2FontFaceWidths();
706 * The range for the characters.
709 DOM::DOMString urange() const;
712 * see urange
713 * @exception DOMException
714 * SYNTAX_ERR: Raised if the specified CSS string value has a
715 * syntax error and is unparsable.
717 * NO_MODIFICATION_ALLOWED_ERR: Raised if this declaration is
718 * readonly.
721 void setUrange( const DOM::DOMString & );
724 * A list of numbers representing the glyph widths.
727 CSSValueList numbers() const;
731 class CSS2PageSizeImpl;
734 * The \c CSS2Cursor interface represents the <a
735 * href="http://www.w3.org/TR/REC-CSS2/page.html#propdef-size"> size
736 * </a> CSS Level 2 descriptor.
739 class CSS2PageSize : public CSSValue
741 public:
742 CSS2PageSize();
743 CSS2PageSize(const CSS2PageSize &other);
744 CSS2PageSize(CSS2PageSizeImpl *impl);
745 public:
747 CSS2PageSize & operator = (const CSS2PageSize &other);
749 ~CSS2PageSize();
752 * A code defining the type of the width of the page. It would be
753 * one of \c CSS_EMS , \c CSS_EXS ,
754 * \c CSS_PX , \c CSS_CM , \c CSS_MM
755 * , \c CSS_IN , \c CSS_PT , \c CSS_PC
756 * , \c CSS_IDENT , \c CSS_INHERIT
757 * . If one of width or height is \c CSS_IDENT or
758 * \c CSS_INHERIT , it's guaranteed that the other is
759 * the same.
762 unsigned short widthType() const;
765 * A code defining the type of the height of the page. It would be
766 * one of \c CSS_EMS , \c CSS_EXS ,
767 * \c CSS_PX , \c CSS_CM , \c CSS_MM
768 * , \c CSS_IN , \c CSS_PT , \c CSS_PC
769 * , \c CSS_IDENT , \c CSS_INHERIT
770 * . If one of width or height is \c CSS_IDENT or
771 * \c CSS_INHERIT , it's guaranteed that the other is
772 * the same.
775 unsigned short heightType() const;
778 * If \c width is \c CSS_IDENT or
779 * \c CSS_INHERIT , this attribute contains the string
780 * representation of the ident, otherwise it contains an empty
781 * string.
784 DOM::DOMString identifier() const;
787 * This method is used to get the float value in a specified unit
788 * if the \c widthType represents a length. If the
789 * float doesn't contain a float value or can't be converted into
790 * the specified unit, a \c DOMException is raised.
792 * @param widthType The specified unit.
794 * @return The float value.
796 * @exception DOMException
797 * INVALID_ACCESS_ERR: Raises if the property doesn't contain a
798 * float or the value can't be converted.
801 float getWidth ( const float widthType );
804 * This method is used to get the float value in a specified unit
805 * if the \c heightType represents a length. If the
806 * float doesn't contain a float value or can't be converted into
807 * the specified unit, a \c DOMException is raised. If
808 * only the width value has been specified, the height value is
809 * the same.
811 * @param heightType The specified unit.
813 * @return The float value.
815 * @exception DOMException
816 * INVALID_ACCESS_ERR: Raises if the property doesn't contain a
817 * float or the value can't be converted.
820 float getHeightSize ( const float heightType );
823 * This method is used to set the width position with a specified
824 * unit. If the \c heightType is not a length, it sets
825 * the height position to the same value.
827 * @param widthType The specified unit.
829 * @param value The new value.
831 * @return
832 * @exception DOMException
833 * INVALID_ACCESS_ERR: Raises if the specified unit is not a
834 * length or a percentage.
836 * NO_MODIFICATION_ALLOWED_ERR: Raises if this property is
837 * readonly.
840 void setWidthSize ( const unsigned short widthType, const float value );
843 * This method is used to set the height position with a specified
844 * unit. If the \c widthType is not a length, it sets
845 * the width position to the same value.
847 * @param heightType The specified unit.
849 * @param value The new value.
851 * @return
852 * @exception DOMException
853 * INVALID_ACCESS_ERR: Raises if the specified unit is not a
854 * length or a percentage.
856 * NO_MODIFICATION_ALLOWED_ERR: Raises if this property is
857 * readonly.
860 void setHeightSize ( const unsigned short heightType, const float value );
863 * Sets the identifier.
865 * @param identifier The new identifier.
867 * @return
868 * @exception DOMException
869 * SYNTAX_ERR: Raises if the identifier has a syntax error and is
870 * unparsable.
872 * NO_MODIFICATION_ALLOWED_ERR: Raises if this property is
873 * readonly.
876 void setIdentifier ( const DOM::DOMString &identifier );
880 class CSS2PlayDuringImpl;
883 * The \c CSS2PlayDuring interface represents the <a
884 * href="http://www.w3.org/TR/REC-CSS2/aural.html#propdef-play-during">
885 * play-during </a> CSS Level 2 property.
888 class CSS2PlayDuring : public CSSValue
890 public:
891 CSS2PlayDuring();
892 CSS2PlayDuring(const CSS2PlayDuring &other);
893 CSS2PlayDuring(CSS2PlayDuringImpl *impl);
894 public:
896 CSS2PlayDuring & operator = (const CSS2PlayDuring &other);
898 ~CSS2PlayDuring();
901 * A code defining the type of the value as define in
902 * \c CSSvalue . It would be one of \c CSS_UNKNOWN
903 * , \c CSS_INHERIT , \c CSS_IDENT
906 unsigned short playDuringType() const;
909 * One of \c "inherit" , \c "auto" ,
910 * \c "none" or the empty string if the
911 * \c playDuringType is \c CSS_UNKNOWN . On
912 * setting, it will set the \c uri to the empty string
913 * and \c mix and \c repeat to
914 * \c false .
917 DOM::DOMString playDuringIdentifier() const;
920 * see playDuringIdentifier
921 * @exception DOMException
922 * SYNTAX_ERR: Raised if the specified CSS string value has a
923 * syntax error and is unparsable.
925 * NO_MODIFICATION_ALLOWED_ERR: Raised if this declaration is
926 * readonly.
929 void setPlayDuringIdentifier( const DOM::DOMString & );
932 * The sound specified by the \c uri . It will set the
933 * \c playDuringType attribute to \c CSS_UNKNOWN .
936 DOM::DOMString uri() const;
939 * see uri
940 * @exception DOMException
941 * SYNTAX_ERR: Raised if the specified CSS string value has a
942 * syntax error and is unparsable.
944 * NO_MODIFICATION_ALLOWED_ERR: Raised if this declaration is
945 * readonly.
948 void setUri( const DOM::DOMString & );
951 * \c true if the sound should be mixed. It will be
952 * ignored if the attribute doesn't contain a \c uri .
955 bool mix() const;
958 * see mix
959 * @exception DOMException
960 * NO_MODIFICATION_ALLOWED_ERR: Raised if this declaration is
961 * readonly.
964 void setMix( const bool );
967 * \c true if the sound should be repeated. It will be
968 * ignored if the attribute doesn't contain a \c uri .
971 bool repeat() const;
974 * see repeat
975 * @exception DOMException
976 * NO_MODIFICATION_ALLOWED_ERR: Raised if this declaration is
977 * readonly.
980 void setRepeat( const bool );
984 class CSS2PropertiesImpl;
987 * The \c CSS2Properties interface represents a
988 * convenience mechanism for retrieving and setting properties within
989 * a \c CSSStyleDeclaration . The attributes of this
990 * interface correspond to all the <a
991 * href="http://www.w3.org/TR/REC-CSS2/propidx.html"> properties
992 * specified in CSS2 </a> . Getting an attribute of this interface is
993 * equivalent to calling the \c getPropertyValue method of
994 * the \c CSSStyleDeclaration interface. Setting an
995 * attribute of this interface is equivalent to calling the
996 * \c setProperty method of the \c CSSStyleDeclaration
997 * interface.
999 * A compliant implementation is not required to implement the
1000 * \c CSS2Properties interface. If an implementation does
1001 * implement this interface, the expectation is that language-specific
1002 * methods can be used to cast from an instance of the
1003 * \c CSSStyleDeclaration interface to the \c CSS2Properties
1004 * interface.
1006 * If an implementation does implement this interface, it is expected
1007 * to understand the specific syntax of the shorthand properties, and
1008 * apply their semantics; when the \c margin property is
1009 * set, for example, the \c marginTop , \c marginRight
1010 * , \c marginBottom and \c marginLeft
1011 * properties are actually being set by the underlying implementation.
1013 * When dealing with CSS "shorthand" properties, the shorthand
1014 * properties should be decomposed into their component longhand
1015 * properties as appropriate, and when querying for their value, the
1016 * form returned should be the shortest form exactly equivalent to the
1017 * declarations made in the ruleset. However, if there is no shorthand
1018 * declaration that could be added to the ruleset without changing in
1019 * any way the rules already declared in the ruleset (i.e., by adding
1020 * longhand rules that were previously not declared in the ruleset),
1021 * then the empty string should be returned for the shorthand
1022 * property.
1024 * For example, querying for the \c font property should
1025 * not return "normal normal normal 14pt/normal Arial, sans-serif",
1026 * when "14pt Arial, sans-serif" suffices (the normals are initial
1027 * values, and are implied by use of the longhand property).
1029 * If the values for all the longhand properties that compose a
1030 * particular string are the initial values, then a string consisting
1031 * of all the initial values should be returned (e.g. a
1032 * \c border-width value of "medium" should be returned as such,
1033 * not as "").
1035 * For some shorthand properties that take missing values from other
1036 * sides, such as the \c margin , \c padding ,
1037 * and \c border-[width|style|color] properties, the
1038 * minimum number of sides possible should be used, i.e., "0px 10px"
1039 * will be returned instead of "0px 10px 0px 10px".
1041 * If the value of a shorthand property can not be decomposed into
1042 * its component longhand properties, as is the case for the
1043 * \c font property with a value of "menu", querying for the
1044 * values of the component longhand properties should return the empty
1045 * string.
1048 class CSS2Properties
1050 public:
1051 CSS2Properties();
1052 CSS2Properties(const CSS2Properties &other);
1053 CSS2Properties(CSS2PropertiesImpl *impl);
1054 public:
1056 CSS2Properties & operator = (const CSS2Properties &other);
1058 ~CSS2Properties();
1061 * See the <a
1062 * href="http://www.w3.org/TR/REC-CSS2/aural.html#propdef-azimuth">
1063 * azimuth property definition </a> in CSS2.
1066 DOM::DOMString azimuth() const;
1069 * see azimuth
1071 void setAzimuth( const DOM::DOMString & );
1074 * See the <a
1075 * href="http://www.w3.org/TR/REC-CSS2/colors.html#propdef-background">
1076 * background property definition </a> in CSS2.
1079 DOM::DOMString background() const;
1082 * see background
1084 void setBackground( const DOM::DOMString & );
1087 * See the <a
1088 * href="http://www.w3.org/TR/REC-CSS2/colors.html#propdef-background-attachment">
1089 * background-attachment property definition </a> in CSS2.
1092 DOM::DOMString backgroundAttachment() const;
1095 * see backgroundAttachment
1097 void setBackgroundAttachment( const DOM::DOMString & );
1100 * See the <a
1101 * href="http://www.w3.org/TR/REC-CSS2/colors.html#propdef-background-color">
1102 * background-color property definition </a> in CSS2.
1105 DOM::DOMString backgroundColor() const;
1108 * see backgroundColor
1110 void setBackgroundColor( const DOM::DOMString & );
1113 * See the <a
1114 * href="http://www.w3.org/TR/REC-CSS2/colors.html#propdef-background-image">
1115 * background-image property definition </a> in CSS2.
1118 DOM::DOMString backgroundImage() const;
1121 * see backgroundImage
1123 void setBackgroundImage( const DOM::DOMString & );
1126 * See the <a
1127 * href="http://www.w3.org/TR/REC-CSS2/colors.html#propdef-background-position">
1128 * background-position property definition </a> in CSS2.
1131 DOM::DOMString backgroundPosition() const;
1134 * see backgroundPosition
1136 void setBackgroundPosition( const DOM::DOMString & );
1139 * See the <a
1140 * href="http://www.w3.org/TR/REC-CSS2/colors.html#propdef-background-repeat">
1141 * background-repeat property definition </a> in CSS2.
1144 DOM::DOMString backgroundRepeat() const;
1147 * see backgroundRepeat
1149 void setBackgroundRepeat( const DOM::DOMString & );
1152 * See the <a
1153 * href="http://www.w3.org/TR/REC-CSS2/box.html#propdef-border">
1154 * border property definition </a> in CSS2.
1157 DOM::DOMString border() const;
1160 * see border
1162 void setBorder( const DOM::DOMString & );
1165 * See the <a
1166 * href="http://www.w3.org/TR/REC-CSS2/tables.html#propdef-border-collapse">
1167 * border-collapse property definition </a> in CSS2.
1170 DOM::DOMString borderCollapse() const;
1173 * see borderCollapse
1175 void setBorderCollapse( const DOM::DOMString & );
1178 * See the <a
1179 * href="http://www.w3.org/TR/REC-CSS2/box.html#propdef-border-color">
1180 * border-color property definition </a> in CSS2.
1183 DOM::DOMString borderColor() const;
1186 * see borderColor
1188 void setBorderColor( const DOM::DOMString & );
1191 * See the <a
1192 * href="http://www.w3.org/TR/REC-CSS2/tables.html#propdef-border-spacing">
1193 * border-spacing property definition </a> in CSS2.
1196 DOM::DOMString borderSpacing() const;
1199 * see borderSpacing
1201 void setBorderSpacing( const DOM::DOMString & );
1204 * See the <a
1205 * href="http://www.w3.org/TR/REC-CSS2/box.html#propdef-border-style">
1206 * border-style property definition </a> in CSS2.
1209 DOM::DOMString borderStyle() const;
1212 * see borderStyle
1214 void setBorderStyle( const DOM::DOMString & );
1217 * See the <a
1218 * href="http://www.w3.org/TR/REC-CSS2/box.html#propdef-border-top">
1219 * border-top property definition </a> in CSS2.
1222 DOM::DOMString borderTop() const;
1225 * see borderTop
1227 void setBorderTop( const DOM::DOMString & );
1230 * See the <a
1231 * href="http://www.w3.org/TR/REC-CSS2/box.html#propdef-border-right">
1232 * border-right property definition </a> in CSS2.
1235 DOM::DOMString borderRight() const;
1238 * see borderRight
1240 void setBorderRight( const DOM::DOMString & );
1243 * See the <a
1244 * href="http://www.w3.org/TR/REC-CSS2/box.html#propdef-border-bottom">
1245 * border-bottom property definition </a> in CSS2.
1248 DOM::DOMString borderBottom() const;
1251 * see borderBottom
1253 void setBorderBottom( const DOM::DOMString & );
1256 * See the <a
1257 * href="http://www.w3.org/TR/REC-CSS2/box.html#propdef-border-left">
1258 * border-left property definition </a> in CSS2.
1261 DOM::DOMString borderLeft() const;
1264 * see borderLeft
1266 void setBorderLeft( const DOM::DOMString & );
1269 * See the <a
1270 * href="http://www.w3.org/TR/REC-CSS2/box.html#propdef-border-top-color">
1271 * border-top-color property definition </a> in CSS2.
1274 DOM::DOMString borderTopColor() const;
1277 * see borderTopColor
1279 void setBorderTopColor( const DOM::DOMString & );
1282 * See the <a
1283 * href="http://www.w3.org/TR/REC-CSS2/box.html#propdef-border-right-color">
1284 * border-right-color property definition </a> in CSS2.
1287 DOM::DOMString borderRightColor() const;
1290 * see borderRightColor
1292 void setBorderRightColor( const DOM::DOMString & );
1295 * See the <a
1296 * href="http://www.w3.org/TR/REC-CSS2/#propdef-border-bottom-color">
1297 * border-bottom-color property definition </a> in CSS2.
1300 DOM::DOMString borderBottomColor() const;
1303 * see borderBottomColor
1305 void setBorderBottomColor( const DOM::DOMString & );
1308 * See the <a
1309 * href="http://www.w3.org/TR/REC-CSS2/box.html#propdef-border-left-color">
1310 * border-left-color property definition </a> in CSS2.
1313 DOM::DOMString borderLeftColor() const;
1316 * see borderLeftColor
1318 void setBorderLeftColor( const DOM::DOMString & );
1321 * See the <a
1322 * href="http://www.w3.org/TR/REC-CSS2/box.html#propdef-border-top-style">
1323 * border-top-style property definition </a> in CSS2.
1326 DOM::DOMString borderTopStyle() const;
1329 * see borderTopStyle
1331 void setBorderTopStyle( const DOM::DOMString & );
1334 * See the <a
1335 * href="http://www.w3.org/TR/REC-CSS2/box.html#propdef-border-right-style">
1336 * border-right-style property definition </a> in CSS2.
1339 DOM::DOMString borderRightStyle() const;
1342 * see borderRightStyle
1344 void setBorderRightStyle( const DOM::DOMString & );
1347 * See the <a
1348 * href="http://www.w3.org/TR/REC-CSS2/box.html#propdef-border-bottom-style">
1349 * border-bottom-style property definition </a> in CSS2.
1352 DOM::DOMString borderBottomStyle() const;
1355 * see borderBottomStyle
1357 void setBorderBottomStyle( const DOM::DOMString & );
1360 * See the <a
1361 * href="http://www.w3.org/TR/REC-CSS2/box.html#propdef-border-left-style">
1362 * border-left-style property definition </a> in CSS2.
1365 DOM::DOMString borderLeftStyle() const;
1368 * see borderLeftStyle
1370 void setBorderLeftStyle( const DOM::DOMString & );
1373 * See the <a
1374 * href="http://www.w3.org/TR/REC-CSS2/box.html#propdef-border-top-width">
1375 * border-top-width property definition </a> in CSS2.
1378 DOM::DOMString borderTopWidth() const;
1381 * see borderTopWidth
1383 void setBorderTopWidth( const DOM::DOMString & );
1386 * See the <a
1387 * href="http://www.w3.org/TR/REC-CSS2/box.html#propdef-border-right-width">
1388 * border-right-width property definition </a> in CSS2.
1391 DOM::DOMString borderRightWidth() const;
1394 * see borderRightWidth
1396 void setBorderRightWidth( const DOM::DOMString & );
1399 * See the <a
1400 * href="http://www.w3.org/TR/REC-CSS2/box.html#propdef-border-bottom-width">
1401 * border-bottom-width property definition </a> in CSS2.
1404 DOM::DOMString borderBottomWidth() const;
1407 * see borderBottomWidth
1409 void setBorderBottomWidth( const DOM::DOMString & );
1412 * See the <a
1413 * href="http://www.w3.org/TR/REC-CSS2/box.html#propdef-border-left-width">
1414 * border-left-width property definition </a> in CSS2.
1417 DOM::DOMString borderLeftWidth() const;
1420 * see borderLeftWidth
1422 void setBorderLeftWidth( const DOM::DOMString & );
1425 * See the <a
1426 * href="http://www.w3.org/TR/REC-CSS2/box.html#propdef-border-width">
1427 * border-width property definition </a> in CSS2.
1430 DOM::DOMString borderWidth() const;
1433 * see borderWidth
1435 void setBorderWidth( const DOM::DOMString & );
1438 * See the <a
1439 * href="http://www.w3.org/TR/REC-CSS2/visuren.html#propdef-bottom">
1440 * bottom property definition </a> in CSS2.
1443 DOM::DOMString bottom() const;
1446 * see bottom
1448 void setBottom( const DOM::DOMString & );
1451 * See the <a
1452 * href="http://www.w3.org/TR/REC-CSS2/tables.html#propdef-caption-side">
1453 * caption-side property definition </a> in CSS2.
1456 DOM::DOMString captionSide() const;
1459 * see captionSide
1461 void setCaptionSide( const DOM::DOMString & );
1464 * See the <a
1465 * href="http://www.w3.org/TR/REC-CSS2/visuren.html#propdef-clear">
1466 * clear property definition </a> in CSS2.
1469 DOM::DOMString clear() const;
1472 * see clear
1474 void setClear( const DOM::DOMString & );
1477 * See the <a
1478 * href="http://www.w3.org/TR/REC-CSS2/visufx#propdef-clip"> clip
1479 * property definition </a> in CSS2.
1482 DOM::DOMString clip() const;
1485 * see clip
1487 void setClip( const DOM::DOMString & );
1490 * See the <a
1491 * href="http://www.w3.org/TR/REC-CSS2/colors.html#propdef-color">
1492 * color property definition </a> in CSS2.
1495 DOM::DOMString color() const;
1498 * see color
1500 void setColor( const DOM::DOMString & );
1503 * See the <a
1504 * href="http://www.w3.org/TR/REC-CSS2/generate.html#propdef-content">
1505 * content property definition </a> in CSS2.
1508 DOM::DOMString content() const;
1511 * see content
1513 void setContent( const DOM::DOMString & );
1516 * See the <a
1517 * href="http://www.w3.org/TR/REC-CSS2/generate.html#propdef-counter-increment">
1518 * counter-increment property definition </a> in CSS2.
1521 DOM::DOMString counterIncrement() const;
1524 * see counterIncrement
1526 void setCounterIncrement( const DOM::DOMString & );
1529 * See the <a
1530 * href="http://www.w3.org/TR/REC-CSS2/generate.html#propdef-counter-reset">
1531 * counter-reset property definition </a> in CSS2.
1534 DOM::DOMString counterReset() const;
1537 * see counterReset
1539 void setCounterReset( const DOM::DOMString & );
1542 * See the <a
1543 * href="http://www.w3.org/TR/REC-CSS2/aural.html#propdef-cue">
1544 * cue property definition </a> in CSS2.
1547 DOM::DOMString cue() const;
1550 * see cue
1552 void setCue( const DOM::DOMString & );
1555 * See the <a
1556 * href="http://www.w3.org/TR/REC-CSS2/aural.html#propdef-cue-fter">
1557 * cue-after property definition </a> in CSS2.
1560 DOM::DOMString cueAfter() const;
1563 * see cueAfter
1565 void setCueAfter( const DOM::DOMString & );
1568 * See the <a
1569 * href="http://www.w3.org/TR/REC-CSS2/aural.html#propdef-cue-before">
1570 * cue-before property definition </a> in CSS2.
1573 DOM::DOMString cueBefore() const;
1576 * see cueBefore
1578 void setCueBefore( const DOM::DOMString & );
1581 * See the <a
1582 * href="http://www.w3.org/TR/REC-CSS2/ui.html#propdef-cursor">
1583 * cursor property definition </a> in CSS2.
1586 DOM::DOMString cursor() const;
1589 * see cursor
1591 void setCursor( const DOM::DOMString & );
1594 * See the <a
1595 * href="http://www.w3.org/TR/REC-CSS2/visuren.html#propdef-direction">
1596 * direction property definition </a> in CSS2.
1599 DOM::DOMString direction() const;
1602 * see direction
1604 void setDirection( const DOM::DOMString & );
1607 * See the <a
1608 * href="http://www.w3.org/TR/REC-CSS2/visuren.html#propdef-display">
1609 * display property definition </a> in CSS2.
1612 DOM::DOMString display() const;
1615 * see display
1617 void setDisplay( const DOM::DOMString & );
1620 * See the <a
1621 * href="http://www.w3.org/TR/REC-CSS2/aural.html#propdef-elevation">
1622 * elevation property definition </a> in CSS2.
1625 DOM::DOMString elevation() const;
1628 * see elevation
1630 void setElevation( const DOM::DOMString & );
1633 * See the <a
1634 * href="http://www.w3.org/TR/REC-CSS2/tables.html#propdef-empty-cells">
1635 * empty-cells property definition </a> in CSS2.
1638 DOM::DOMString emptyCells() const;
1641 * see emptyCells
1643 void setEmptyCells( const DOM::DOMString & );
1646 * See the <a
1647 * href="http://www.w3.org/TR/REC-CSS2/visuren.html#propdef-float">
1648 * float property definition </a> in CSS2.
1651 DOM::DOMString cssFloat() const;
1654 * see cssFloat
1656 void setCssFloat( const DOM::DOMString & );
1659 * See the <a
1660 * href="http://www.w3.org/TR/REC-CSS2/fonts.html#propdef-font">
1661 * font property definition </a> in CSS2.
1664 DOM::DOMString font() const;
1667 * see font
1669 void setFont( const DOM::DOMString & );
1672 * See the <a
1673 * href="http://www.w3.org/TR/REC-CSS2/fonts.html#propdef-font-family">
1674 * font-family property definition </a> in CSS2.
1677 DOM::DOMString fontFamily() const;
1680 * see fontFamily
1682 void setFontFamily( const DOM::DOMString & );
1685 * See the <a
1686 * href="http://www.w3.org/TR/REC-CSS2/fonts.html#propdef-font-size">
1687 * font-size property definition </a> in CSS2.
1690 DOM::DOMString fontSize() const;
1693 * see fontSize
1695 void setFontSize( const DOM::DOMString & );
1698 * See the <a
1699 * href="http://www.w3.org/TR/REC-CSS2/fonts.html#propdef-font-size-adjust">
1700 * font-size-adjust property definition </a> in CSS2.
1703 DOM::DOMString fontSizeAdjust() const;
1706 * see fontSizeAdjust
1708 void setFontSizeAdjust( const DOM::DOMString & );
1711 * See the <a
1712 * href="http://www.w3.org/TR/REC-CSS2/fonts.html#propdef-font-stretch">
1713 * font-stretch property definition </a> in CSS2.
1716 DOM::DOMString fontStretch() const;
1719 * see fontStretch
1721 void setFontStretch( const DOM::DOMString & );
1724 * See the <a
1725 * href="http://www.w3.org/TR/REC-CSS2/fonts.html#propdef-font-style">
1726 * font-style property definition </a> in CSS2.
1729 DOM::DOMString fontStyle() const;
1732 * see fontStyle
1734 void setFontStyle( const DOM::DOMString & );
1737 * See the <a
1738 * href="http://www.w3.org/TR/REC-CSS2/fonts.html#propdef-font-variant">
1739 * font-variant property definition </a> in CSS2.
1742 DOM::DOMString fontVariant() const;
1745 * see fontVariant
1747 void setFontVariant( const DOM::DOMString & );
1750 * See the <a
1751 * href="http://www.w3.org/TR/REC-CSS2/fonts.html#propdef-font-weight">
1752 * font-weight property definition </a> in CSS2.
1755 DOM::DOMString fontWeight() const;
1758 * see fontWeight
1760 void setFontWeight( const DOM::DOMString & );
1763 * See the <a
1764 * href="http://www.w3.org/TR/REC-CSS2/visudet.html#propdef-height">
1765 * height property definition </a> in CSS2.
1768 DOM::DOMString height() const;
1771 * see height
1773 void setHeight( const DOM::DOMString & );
1776 * See the <a
1777 * href="http://www.w3.org/TR/REC-CSS2/visuren.html#propdef-left">
1778 * left property definition </a> in CSS2.
1781 DOM::DOMString left() const;
1784 * see left
1786 void setLeft( const DOM::DOMString & );
1789 * See the <a
1790 * href="http://www.w3.org/TR/REC-CSS2/text.html#propdef-letter-spacing">
1791 * letter-spacing property definition </a> in CSS2.
1794 DOM::DOMString letterSpacing() const;
1797 * see letterSpacing
1799 void setLetterSpacing( const DOM::DOMString & );
1802 * See the <a
1803 * href="http://www.w3.org/TR/REC-CSS2/visudet.html#propdef-line-height">
1804 * line-height property definition </a> in CSS2.
1807 DOM::DOMString lineHeight() const;
1810 * see lineHeight
1812 void setLineHeight( const DOM::DOMString & );
1815 * See the <a
1816 * href="http://www.w3.org/TR/REC-CSS2/generate.html#propdef-list-style">
1817 * list-style property definition </a> in CSS2.
1820 DOM::DOMString listStyle() const;
1823 * see listStyle
1825 void setListStyle( const DOM::DOMString & );
1828 * See the <a
1829 * href="http://www.w3.org/TR/REC-CSS2/generate.html#propdef-list-style-image">
1830 * list-style-image property definition </a> in CSS2.
1833 DOM::DOMString listStyleImage() const;
1836 * see listStyleImage
1838 void setListStyleImage( const DOM::DOMString & );
1841 * See the <a
1842 * href="http://www.w3.org/TR/REC-CSS2/generate.html#propdef-list-style-position">
1843 * list-style-position property definition </a> in CSS2.
1846 DOM::DOMString listStylePosition() const;
1849 * see listStylePosition
1851 void setListStylePosition( const DOM::DOMString & );
1854 * See the <a
1855 * href="http://www.w3.org/TR/REC-CSS2/generate.html#propdef-list-style-type">
1856 * list-style-type property definition </a> in CSS2.
1859 DOM::DOMString listStyleType() const;
1862 * see listStyleType
1864 void setListStyleType( const DOM::DOMString & );
1867 * See the <a
1868 * href="http://www.w3.org/TR/REC-CSS2/box.html#propdef-margin">
1869 * margin property definition </a> in CSS2.
1872 DOM::DOMString margin() const;
1875 * see margin
1877 void setMargin( const DOM::DOMString & );
1880 * See the <a
1881 * href="http://www.w3.org/TR/REC-CSS2/box.html#propdef-margin-top">
1882 * margin-top property definition </a> in CSS2.
1885 DOM::DOMString marginTop() const;
1888 * see marginTop
1890 void setMarginTop( const DOM::DOMString & );
1893 * See the <a
1894 * href="http://www.w3.org/TR/REC-CSS2/box.html#propdef-margin-right">
1895 * margin-right property definition </a> in CSS2.
1898 DOM::DOMString marginRight() const;
1901 * see marginRight
1903 void setMarginRight( const DOM::DOMString & );
1906 * See the <a
1907 * href="http://www.w3.org/TR/REC-CSS2/box.html#propdef-margin-bottom">
1908 * margin-bottom property definition </a> in CSS2.
1911 DOM::DOMString marginBottom() const;
1914 * see marginBottom
1916 void setMarginBottom( const DOM::DOMString & );
1919 * See the <a
1920 * href="http://www.w3.org/TR/REC-CSS2/box.html#propdef-margin-left">
1921 * margin-left property definition </a> in CSS2.
1924 DOM::DOMString marginLeft() const;
1927 * see marginLeft
1929 void setMarginLeft( const DOM::DOMString & );
1932 * See the <a
1933 * href="http://www.w3.org/TR/REC-CSS2/generate.html#propdef-marker-offset">
1934 * marker-offset property definition </a> in CSS2.
1937 DOM::DOMString markerOffset() const;
1940 * see markerOffset
1942 void setMarkerOffset( const DOM::DOMString & );
1945 * See the <a
1946 * href="http://www.w3.org/TR/REC-CSS2/page.html#propdef-marks">
1947 * marks property definition </a> in CSS2.
1950 DOM::DOMString marks() const;
1953 * see marks
1955 void setMarks( const DOM::DOMString & );
1958 * See the <a
1959 * href="http://www.w3.org/TR/REC-CSS2/visudet.html#propdef-max-height">
1960 * max-height property definition </a> in CSS2.
1963 DOM::DOMString maxHeight() const;
1966 * see maxHeight
1968 void setMaxHeight( const DOM::DOMString & );
1971 * See the <a
1972 * href="http://www.w3.org/TR/REC-CSS2/visudet.html#propdef-max-width">
1973 * max-width property definition </a> in CSS2.
1976 DOM::DOMString maxWidth() const;
1979 * see maxWidth
1981 void setMaxWidth( const DOM::DOMString & );
1984 * See the <a
1985 * href="http://www.w3.org/TR/REC-CSS2/visudet.html#propdef-min-height">
1986 * min-height property definition </a> in CSS2.
1989 DOM::DOMString minHeight() const;
1992 * see minHeight
1994 void setMinHeight( const DOM::DOMString & );
1997 * See the <a
1998 * href="http://www.w3.org/TR/REC-CSS2/visudet.html#propdef-min-width">
1999 * min-width property definition </a> in CSS2.
2002 DOM::DOMString minWidth() const;
2005 * see minWidth
2007 void setMinWidth( const DOM::DOMString & );
2010 * See the <a
2011 * href="http://www.w3.org/TR/REC-CSS2/page.html#propdef-orphans">
2012 * orphans property definition </a> in CSS2.
2015 DOM::DOMString orphans() const;
2018 * see orphans
2020 void setOrphans( const DOM::DOMString & );
2023 * See the <a
2024 * href="http://www.w3.org/TR/REC-CSS2/ui.html#propdef-outline">
2025 * outline property definition </a> in CSS2.
2028 DOM::DOMString outline() const;
2031 * see outline
2033 void setOutline( const DOM::DOMString & );
2036 * See the <a
2037 * href="http://www.w3.org/TR/REC-CSS2/ui.html#propdef-outline-color">
2038 * outline-color property definition </a> in CSS2.
2041 DOM::DOMString outlineColor() const;
2044 * see outlineColor
2046 void setOutlineColor( const DOM::DOMString & );
2049 * See the <a
2050 * href="http://www.w3.org/TR/REC-CSS2/ui.html#propdef-outline-style">
2051 * outline-style property definition </a> in CSS2.
2054 DOM::DOMString outlineStyle() const;
2057 * see outlineStyle
2059 void setOutlineStyle( const DOM::DOMString & );
2062 * See the <a
2063 * href="http://www.w3.org/TR/REC-CSS2/ui.html#propdef-outline-width">
2064 * outline-width property definition </a> in CSS2.
2067 DOM::DOMString outlineWidth() const;
2070 * see outlineWidth
2072 void setOutlineWidth( const DOM::DOMString & );
2075 * See the <a
2076 * href="http://www.w3.org/TR/REC-CSS2/visufx.html#propdef-overflow">
2077 * overflow property definition </a> in CSS2.
2080 DOM::DOMString overflow() const;
2083 * see overflow
2085 void setOverflow( const DOM::DOMString & );
2088 * See the <a
2089 * href="http://www.w3.org/TR/REC-CSS2/box.html#propdef-padding">
2090 * padding property definition </a> in CSS2.
2093 DOM::DOMString padding() const;
2096 * see padding
2098 void setPadding( const DOM::DOMString & );
2101 * See the <a
2102 * href="http://www.w3.org/TR/REC-CSS2/box.html#propdef-padding-top">
2103 * padding-top property definition </a> in CSS2.
2106 DOM::DOMString paddingTop() const;
2109 * see paddingTop
2111 void setPaddingTop( const DOM::DOMString & );
2114 * See the <a
2115 * href="http://www.w3.org/TR/REC-CSS2/box.html#propdef-padding-right">
2116 * padding-right property definition </a> in CSS2.
2119 DOM::DOMString paddingRight() const;
2122 * see paddingRight
2124 void setPaddingRight( const DOM::DOMString & );
2127 * See the <a
2128 * href="http://www.w3.org/TR/REC-CSS2/box.html#propdef-padding-bottom">
2129 * padding-bottom property definition </a> in CSS2.
2132 DOM::DOMString paddingBottom() const;
2135 * see paddingBottom
2137 void setPaddingBottom( const DOM::DOMString & );
2140 * See the <a
2141 * href="http://www.w3.org/TR/REC-CSS2/box.html#propdef-padding-left">
2142 * padding-left property definition </a> in CSS2.
2145 DOM::DOMString paddingLeft() const;
2148 * see paddingLeft
2150 void setPaddingLeft( const DOM::DOMString & );
2153 * See the <a
2154 * href="http://www.w3.org/TR/REC-CSS2/page.html#propdef-page">
2155 * page property definition </a> in CSS2.
2158 DOM::DOMString page() const;
2161 * see page
2163 void setPage( const DOM::DOMString & );
2166 * See the <a
2167 * href="http://www.w3.org/TR/REC-CSS2/page.html#propdef-page-break-after">
2168 * page-break-after property definition </a> in CSS2.
2171 DOM::DOMString pageBreakAfter() const;
2174 * see pageBreakAfter
2176 void setPageBreakAfter( const DOM::DOMString & );
2179 * See the <a
2180 * href="http://www.w3.org/TR/REC-CSS2/page.html#propdef-page-break-before">
2181 * page-break-before property definition </a> in CSS2.
2184 DOM::DOMString pageBreakBefore() const;
2187 * see pageBreakBefore
2189 void setPageBreakBefore( const DOM::DOMString & );
2192 * See the <a
2193 * href="http://www.w3.org/TR/REC-CSS2/page.html#propdef-page-break-inside">
2194 * page-break-inside property definition </a> in CSS2.
2197 DOM::DOMString pageBreakInside() const;
2200 * see pageBreakInside
2202 void setPageBreakInside( const DOM::DOMString & );
2205 * See the <a
2206 * href="http://www.w3.org/TR/REC-CSS2/aural.html#propdef-pause">
2207 * pause property definition </a> in CSS2.
2210 DOM::DOMString pause() const;
2213 * see pause
2215 void setPause( const DOM::DOMString & );
2218 * See the <a
2219 * href="http://www.w3.org/TR/REC-CSS2/aural.html#propdef-pause-after">
2220 * pause-after property definition </a> in CSS2.
2223 DOM::DOMString pauseAfter() const;
2226 * see pauseAfter
2228 void setPauseAfter( const DOM::DOMString & );
2231 * See the <a
2232 * href="http://www.w3.org/TR/REC-CSS2/aural.html#propdef-pause-before">
2233 * pause-before property definition </a> in CSS2.
2236 DOM::DOMString pauseBefore() const;
2239 * see pauseBefore
2241 void setPauseBefore( const DOM::DOMString & );
2244 * See the <a
2245 * href="http://www.w3.org/TR/REC-CSS2/aural.html#propdef-pitch">
2246 * pitch property definition </a> in CSS2.
2249 DOM::DOMString pitch() const;
2252 * see pitch
2254 void setPitch( const DOM::DOMString & );
2257 * See the <a
2258 * href="http://www.w3.org/TR/REC-CSS2/aural.html#propdef-pitch-range">
2259 * pitch-range property definition </a> in CSS2.
2262 DOM::DOMString pitchRange() const;
2265 * see pitchRange
2267 void setPitchRange( const DOM::DOMString & );
2270 * See the <a
2271 * href="http://www.w3.org/TR/REC-CSS2/aural.html#propdef-play-during">
2272 * play-during property definition </a> in CSS2.
2275 DOM::DOMString playDuring() const;
2278 * see playDuring
2280 void setPlayDuring( const DOM::DOMString & );
2283 * See the <a
2284 * href="http://www.w3.org/TR/REC-CSS2/visuren.html#propdef-position">
2285 * position property definition </a> in CSS2.
2288 DOM::DOMString position() const;
2291 * see position
2293 void setPosition( const DOM::DOMString & );
2296 * See the <a
2297 * href="http://www.w3.org/TR/REC-CSS2/generate.html#propdef-quotes">
2298 * quotes property definition </a> in CSS2.
2301 DOM::DOMString quotes() const;
2304 * see quotes
2306 void setQuotes( const DOM::DOMString & );
2309 * See the <a
2310 * href="http://www.w3.org/TR/REC-CSS2/aural.html#propdef-richness">
2311 * richness property definition </a> in CSS2.
2314 DOM::DOMString richness() const;
2317 * see richness
2319 void setRichness( const DOM::DOMString & );
2322 * See the <a
2323 * href="http://www.w3.org/TR/REC-CSS2/visuren.html#propdef-right">
2324 * right property definition </a> in CSS2.
2327 DOM::DOMString right() const;
2330 * see right
2332 void setRight( const DOM::DOMString & );
2335 * See the <a
2336 * href="http://www.w3.org/TR/REC-CSS2/page.html#propdef-size">
2337 * size property definition </a> in CSS2.
2340 DOM::DOMString size() const;
2343 * see size
2345 void setSize( const DOM::DOMString & );
2348 * See the <a
2349 * href="http://www.w3.org/TR/REC-CSS2/aural.html#propdef-speak">
2350 * speak property definition </a> in CSS2.
2353 DOM::DOMString speak() const;
2356 * see speak
2358 void setSpeak( const DOM::DOMString & );
2361 * See the <a
2362 * href="http://www.w3.org/TR/REC-CSS2/tables.html#propdef-speak-header">
2363 * speak-header property definition </a> in CSS2.
2366 DOM::DOMString speakHeader() const;
2369 * see speakHeader
2371 void setSpeakHeader( const DOM::DOMString & );
2374 * See the <a
2375 * href="http://www.w3.org/TR/REC-CSS2/aural.html#propdef-speak-numeral">
2376 * speak-numeral property definition </a> in CSS2.
2379 DOM::DOMString speakNumeral() const;
2382 * see speakNumeral
2384 void setSpeakNumeral( const DOM::DOMString & );
2387 * See the <a
2388 * href="http://www.w3.org/TR/REC-CSS2/aural.html#propdef-speak-punctuation">
2389 * speak-punctuation property definition </a> in CSS2.
2392 DOM::DOMString speakPunctuation() const;
2395 * see speakPunctuation
2397 void setSpeakPunctuation( const DOM::DOMString & );
2400 * See the <a
2401 * href="http://www.w3.org/TR/REC-CSS2/aural.html#propdef-speech-rate">
2402 * speech-rate property definition </a> in CSS2.
2405 DOM::DOMString speechRate() const;
2408 * see speechRate
2410 void setSpeechRate( const DOM::DOMString & );
2413 * See the <a
2414 * href="http://www.w3.org/TR/REC-CSS2/aural.html#propdef-stress">
2415 * stress property definition </a> in CSS2.
2418 DOM::DOMString stress() const;
2421 * see stress
2423 void setStress( const DOM::DOMString & );
2426 * See the <a
2427 * href="http://www.w3.org/TR/REC-CSS2/tables.html#propdef-table-layout">
2428 * table-layout property definition </a> in CSS2.
2431 DOM::DOMString tableLayout() const;
2434 * see tableLayout
2436 void setTableLayout( const DOM::DOMString & );
2439 * See the <a
2440 * href="http://www.w3.org/TR/REC-CSS2/text.html#propdef-text-align">
2441 * text-align property definition </a> in CSS2.
2444 DOM::DOMString textAlign() const;
2447 * see textAlign
2449 void setTextAlign( const DOM::DOMString & );
2452 * See the <a
2453 * href="http://www.w3.org/TR/REC-CSS2/text.html#propdef-text-decoration">
2454 * text-decoration property definition </a> in CSS2.
2457 DOM::DOMString textDecoration() const;
2460 * see textDecoration
2462 void setTextDecoration( const DOM::DOMString & );
2465 * See the <a
2466 * href="http://www.w3.org/TR/REC-CSS2/text.html#propdef-text-indent">
2467 * text-indent property definition </a> in CSS2.
2470 DOM::DOMString textIndent() const;
2473 * see textIndent
2475 void setTextIndent( const DOM::DOMString & );
2478 * See the <a
2479 * href="http://www.w3.org/TR/REC-CSS2/text.html#propdef-text-shadow">
2480 * text-shadow property definition </a> in CSS2.
2483 DOM::DOMString textShadow() const;
2486 * see textShadow
2488 void setTextShadow( const DOM::DOMString & );
2491 * See the <a
2492 * href="http://www.w3.org/TR/REC-CSS2/text.html#propdef-text-transform">
2493 * text-transform property definition </a> in CSS2.
2496 DOM::DOMString textTransform() const;
2499 * see textTransform
2501 void setTextTransform( const DOM::DOMString & );
2504 * See the <a
2505 * href="http://www.w3.org/TR/REC-CSS2/visuren.html#propdef-top">
2506 * top property definition </a> in CSS2.
2509 DOM::DOMString top() const;
2512 * see top
2514 void setTop( const DOM::DOMString & );
2517 * See the <a
2518 * href="http://www.w3.org/TR/REC-CSS2/visuren.html#propdef-unicode-bidi">
2519 * unicode-bidi property definition </a> in CSS2.
2522 DOM::DOMString unicodeBidi() const;
2525 * see unicodeBidi
2527 void setUnicodeBidi( const DOM::DOMString & );
2530 * See the <a
2531 * href="http://www.w3.org/TR/REC-CSS2/visudet.html#propdef-vertical-align">
2532 * vertical-align property definition </a> in CSS2.
2535 DOM::DOMString verticalAlign() const;
2538 * see verticalAlign
2540 void setVerticalAlign( const DOM::DOMString & );
2543 * See the <a
2544 * href="http://www.w3.org/TR/REC-CSS2/visufx.html#propdef-visibility">
2545 * visibility property definition </a> in CSS2.
2548 DOM::DOMString visibility() const;
2551 * see visibility
2553 void setVisibility( const DOM::DOMString & );
2556 * See the <a
2557 * href="http://www.w3.org/TR/REC-CSS2/aural.html#propdef-voice-family">
2558 * voice-family property definition </a> in CSS2.
2561 DOM::DOMString voiceFamily() const;
2564 * see voiceFamily
2566 void setVoiceFamily( const DOM::DOMString & );
2569 * See the <a
2570 * href="http://www.w3.org/TR/REC-CSS2/aural.html#propdef-volume">
2571 * volume property definition </a> in CSS2.
2574 DOM::DOMString volume() const;
2577 * see volume
2579 void setVolume( const DOM::DOMString & );
2582 * See the <a
2583 * href="http://www.w3.org/TR/REC-CSS2/text.html#propdef-white-space">
2584 * white-space property definition </a> in CSS2.
2587 DOM::DOMString whiteSpace() const;
2590 * see whiteSpace
2592 void setWhiteSpace( const DOM::DOMString & );
2595 * See the <a
2596 * href="http://www.w3.org/TR/REC-CSS2/page.html#propdef-widows">
2597 * widows property definition </a> in CSS2.
2600 DOM::DOMString widows() const;
2603 * see widows
2605 void setWidows( const DOM::DOMString & );
2608 * See the <a
2609 * href="http://www.w3.org/TR/REC-CSS2/visudet.html#propdef-width">
2610 * width property definition </a> in CSS2.
2613 DOM::DOMString width() const;
2616 * see width
2618 void setWidth( const DOM::DOMString & );
2621 * See the <a
2622 * href="http://www.w3.org/TR/REC-CSS2/text.html#propdef-word-spacing">
2623 * word-spacing property definition </a> in CSS2.
2626 DOM::DOMString wordSpacing() const;
2629 * see wordSpacing
2631 void setWordSpacing( const DOM::DOMString & );
2634 * See the <a
2635 * href="http://www.w3.org/TR/REC-CSS2/visufx.html#propdef-z-index">
2636 * z-index property definition </a> in CSS2.
2639 DOM::DOMString zIndex() const;
2642 * see zIndex
2644 void setZIndex( const DOM::DOMString & );
2648 class CSS2TextShadowImpl;
2649 class CSSValue;
2652 * The \c CSS2TextShadow interface represents a simple
2653 * value for the <a
2654 * href="http://www.w3.org/TR/REC-CSS2/text.html#propdef-text-shadow">
2655 * text-shadow </a> CSS Level 2 property.
2658 class CSS2TextShadow
2660 public:
2661 CSS2TextShadow();
2662 CSS2TextShadow(const CSS2TextShadow &other);
2663 CSS2TextShadow(CSS2TextShadowImpl *impl);
2664 public:
2666 CSS2TextShadow & operator = (const CSS2TextShadow &other);
2668 ~CSS2TextShadow();
2671 * Specified the color of the text shadow. The CSS Value can
2672 * contain an empty string if no color has been specified.
2675 CSSValue color() const;
2678 * The horizontal position of the text shadow. \c 0 if
2679 * no length has been specified.
2682 CSSValue horizontal() const;
2685 * The vertical position of the text shadow. \c 0 if
2686 * no length has been specified.
2689 CSSValue vertical() const;
2692 * The blur radius of the text shadow. \c 0 if no
2693 * length has been specified.
2696 CSSValue blur() const;
2700 }; // namespace
2702 #endif