1/*
2 * Copyright (C) 2004, 2005, 2006, 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2006 James G. Speth (speth@end.com)
4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 * 1. Redistributions of source code must retain the above copyright
10 *    notice, this list of conditions and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above copyright
12 *    notice, this list of conditions and the following disclaimer in the
13 *    documentation and/or other materials provided with the distribution.
14 *
15 * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
16 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
18 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE COMPUTER, INC. OR
19 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
20 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
22 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28#import "config.h"
29
30#import "CSSRule.h"
31#import "CSSStyleSheet.h"
32#import "CSSValue.h"
33#import "DOMCSSCharsetRule.h"
34#import "DOMCSSFontFaceRule.h"
35#import "DOMCSSImportRule.h"
36#import "DOMCSSMediaRule.h"
37#import "DOMCSSPageRule.h"
38#import "DOMCSSPrimitiveValue.h"
39#import "DOMCSSRuleInternal.h"
40#import "DOMCSSStyleDeclaration.h"
41#import "DOMCSSStyleRule.h"
42#import "DOMCSSStyleSheet.h"
43#if ENABLE(CSS3_CONDITIONAL_RULES)
44#import "DOMCSSSupportsRule.h"
45#endif
46#import "DOMCSSUnknownRule.h"
47#import "DOMCSSValueInternal.h"
48#import "DOMCSSValueList.h"
49#import "DOMInternal.h"
50#import "DOMStyleSheetInternal.h"
51#import "DOMWebKitCSSKeyframeRule.h"
52#import "DOMWebKitCSSKeyframesRule.h"
53#import "DOMWebKitCSSTransformValue.h"
54
55#if ENABLE(CSS_SHADERS)
56#import "DOMWebKitCSSFilterRule.h"
57#endif
58
59#if ENABLE(CSS_FILTERS)
60#import "DOMWebKitCSSFilterValue.h"
61#endif
62
63#if ENABLE(CSS_REGIONS)
64#import "DOMWebKitCSSRegionRule.h"
65#endif
66
67#if ENABLE(CSS_DEVICE_ADAPTATION)
68#import "DOMWebKitCSSViewportRule.h"
69#endif
70
71#if ENABLE(SHADOW_DOM)
72#import "DOMCSSHostRule.h"
73#endif
74
75//------------------------------------------------------------------------------------------
76// DOMStyleSheet
77
78Class kitClass(WebCore::StyleSheet* impl)
79{
80    if (impl->isCSSStyleSheet())
81        return [DOMCSSStyleSheet class];
82    return [DOMStyleSheet class];
83}
84
85//------------------------------------------------------------------------------------------
86// DOMCSSRule
87
88Class kitClass(WebCore::CSSRule* impl)
89{
90    switch (impl->type()) {
91        case DOM_UNKNOWN_RULE:
92            return [DOMCSSUnknownRule class];
93        case DOM_STYLE_RULE:
94            return [DOMCSSStyleRule class];
95        case DOM_CHARSET_RULE:
96            return [DOMCSSCharsetRule class];
97        case DOM_IMPORT_RULE:
98            return [DOMCSSImportRule class];
99        case DOM_MEDIA_RULE:
100            return [DOMCSSMediaRule class];
101        case DOM_FONT_FACE_RULE:
102            return [DOMCSSFontFaceRule class];
103        case DOM_PAGE_RULE:
104            return [DOMCSSPageRule class];
105        case DOM_WEBKIT_KEYFRAMES_RULE:
106            return [DOMWebKitCSSKeyframesRule class];
107        case DOM_WEBKIT_KEYFRAME_RULE:
108            return [DOMWebKitCSSKeyframeRule class];
109#if ENABLE(CSS3_CONDITIONAL_RULES)
110        case DOM_SUPPORTS_RULE:
111            return [DOMCSSSupportsRule class];
112#endif
113#if ENABLE(CSS_DEVICE_ADAPTATION)
114        case DOM_WEBKIT_VIEWPORT_RULE:
115            return [DOMWebKitCSSViewportRule class];
116#endif
117#if ENABLE(CSS_REGIONS)
118        case DOM_WEBKIT_REGION_RULE:
119            return [DOMWebKitCSSRegionRule class];
120#endif
121#if ENABLE(SHADOW_DOM)
122        case DOM_HOST_RULE:
123            return [DOMCSSHostRule class];
124#endif
125#if ENABLE(CSS_SHADERS)
126        case DOM_WEBKIT_FILTER_RULE:
127            return [DOMWebKitCSSFilterRule class];
128#endif
129    }
130    ASSERT_NOT_REACHED();
131    return nil;
132}
133
134//------------------------------------------------------------------------------------------
135// DOMCSSValue
136
137Class kitClass(WebCore::CSSValue* impl)
138{
139    switch (impl->cssValueType()) {
140        case WebCore::CSSValue::CSS_PRIMITIVE_VALUE:
141            return [DOMCSSPrimitiveValue class];
142        case WebCore::CSSValue::CSS_VALUE_LIST:
143            if (impl->isWebKitCSSTransformValue())
144                return [DOMWebKitCSSTransformValue class];
145#if ENABLE(CSS_FILTERS)
146            if (impl->isWebKitCSSFilterValue())
147                return [DOMWebKitCSSFilterValue class];
148#endif
149            return [DOMCSSValueList class];
150        case WebCore::CSSValue::CSS_INHERIT:
151        case WebCore::CSSValue::CSS_INITIAL:
152            return [DOMCSSValue class];
153        case WebCore::CSSValue::CSS_CUSTOM:
154            return [DOMCSSValue class];
155    }
156    ASSERT_NOT_REACHED();
157    return nil;
158}
159
160//------------------------------------------------------------------------------------------
161// DOMCSSStyleDeclaration CSS2 Properties
162
163@implementation DOMCSSStyleDeclaration (DOMCSS2Properties)
164
165- (NSString *)azimuth
166{
167    return [self getPropertyValue:@"azimuth"];
168}
169
170- (void)setAzimuth:(NSString *)azimuth
171{
172    [self setProperty:@"azimuth" value:azimuth priority:@""];
173}
174
175- (NSString *)background
176{
177    return [self getPropertyValue:@"background"];
178}
179
180- (void)setBackground:(NSString *)background
181{
182    [self setProperty:@"background" value:background priority:@""];
183}
184
185- (NSString *)backgroundAttachment
186{
187    return [self getPropertyValue:@"background-attachment"];
188}
189
190- (void)setBackgroundAttachment:(NSString *)backgroundAttachment
191{
192    [self setProperty:@"background-attachment" value:backgroundAttachment priority:@""];
193}
194
195- (NSString *)backgroundColor
196{
197    return [self getPropertyValue:@"background-color"];
198}
199
200- (void)setBackgroundColor:(NSString *)backgroundColor
201{
202    [self setProperty:@"background-color" value:backgroundColor priority:@""];
203}
204
205- (NSString *)backgroundImage
206{
207    return [self getPropertyValue:@"background-image"];
208}
209
210- (void)setBackgroundImage:(NSString *)backgroundImage
211{
212    [self setProperty:@"background-image" value:backgroundImage priority:@""];
213}
214
215- (NSString *)backgroundPosition
216{
217    return [self getPropertyValue:@"background-position"];
218}
219
220- (void)setBackgroundPosition:(NSString *)backgroundPosition
221{
222    [self setProperty:@"background-position" value:backgroundPosition priority:@""];
223}
224
225- (NSString *)backgroundRepeat
226{
227    return [self getPropertyValue:@"background-repeat"];
228}
229
230- (void)setBackgroundRepeat:(NSString *)backgroundRepeat
231{
232    [self setProperty:@"background-repeat" value:backgroundRepeat priority:@""];
233}
234
235- (NSString *)border
236{
237    return [self getPropertyValue:@"border"];
238}
239
240- (void)setBorder:(NSString *)border
241{
242    [self setProperty:@"border" value:border priority:@""];
243}
244
245- (NSString *)borderCollapse
246{
247    return [self getPropertyValue:@"border-collapse"];
248}
249
250- (void)setBorderCollapse:(NSString *)borderCollapse
251{
252    [self setProperty:@"border-collapse" value:borderCollapse priority:@""];
253}
254
255- (NSString *)borderColor
256{
257    return [self getPropertyValue:@"border-color"];
258}
259
260- (void)setBorderColor:(NSString *)borderColor
261{
262    [self setProperty:@"border-color" value:borderColor priority:@""];
263}
264
265- (NSString *)borderSpacing
266{
267    return [self getPropertyValue:@"border-spacing"];
268}
269
270- (void)setBorderSpacing:(NSString *)borderSpacing
271{
272    [self setProperty:@"border-spacing" value:borderSpacing priority:@""];
273}
274
275- (NSString *)borderStyle
276{
277    return [self getPropertyValue:@"border-style"];
278}
279
280- (void)setBorderStyle:(NSString *)borderStyle
281{
282    [self setProperty:@"border-style" value:borderStyle priority:@""];
283}
284
285- (NSString *)borderTop
286{
287    return [self getPropertyValue:@"border-top"];
288}
289
290- (void)setBorderTop:(NSString *)borderTop
291{
292    [self setProperty:@"border-top" value:borderTop priority:@""];
293}
294
295- (NSString *)borderRight
296{
297    return [self getPropertyValue:@"border-right"];
298}
299
300- (void)setBorderRight:(NSString *)borderRight
301{
302    [self setProperty:@"border-right" value:borderRight priority:@""];
303}
304
305- (NSString *)borderBottom
306{
307    return [self getPropertyValue:@"border-bottom"];
308}
309
310- (void)setBorderBottom:(NSString *)borderBottom
311{
312    [self setProperty:@"border-bottom" value:borderBottom priority:@""];
313}
314
315- (NSString *)borderLeft
316{
317    return [self getPropertyValue:@"border-left"];
318}
319
320- (void)setBorderLeft:(NSString *)borderLeft
321{
322    [self setProperty:@"border-left" value:borderLeft priority:@""];
323}
324
325- (NSString *)borderTopColor
326{
327    return [self getPropertyValue:@"border-top-color"];
328}
329
330- (void)setBorderTopColor:(NSString *)borderTopColor
331{
332    [self setProperty:@"border-top-color" value:borderTopColor priority:@""];
333}
334
335- (NSString *)borderRightColor
336{
337    return [self getPropertyValue:@"border-right-color"];
338}
339
340- (void)setBorderRightColor:(NSString *)borderRightColor
341{
342    [self setProperty:@"border-right-color" value:borderRightColor priority:@""];
343}
344
345- (NSString *)borderBottomColor
346{
347    return [self getPropertyValue:@"border-bottom-color"];
348}
349
350- (void)setBorderBottomColor:(NSString *)borderBottomColor
351{
352    [self setProperty:@"border-bottom-color" value:borderBottomColor priority:@""];
353}
354
355- (NSString *)borderLeftColor
356{
357    return [self getPropertyValue:@"border-left-color"];
358}
359
360- (void)setBorderLeftColor:(NSString *)borderLeftColor
361{
362    [self setProperty:@"border-left-color" value:borderLeftColor priority:@""];
363}
364
365- (NSString *)borderTopStyle
366{
367    return [self getPropertyValue:@"border-top-style"];
368}
369
370- (void)setBorderTopStyle:(NSString *)borderTopStyle
371{
372    [self setProperty:@"border-top-style" value:borderTopStyle priority:@""];
373}
374
375- (NSString *)borderRightStyle
376{
377    return [self getPropertyValue:@"border-right-style"];
378}
379
380- (void)setBorderRightStyle:(NSString *)borderRightStyle
381{
382    [self setProperty:@"border-right-style" value:borderRightStyle priority:@""];
383}
384
385- (NSString *)borderBottomStyle
386{
387    return [self getPropertyValue:@"border-bottom-style"];
388}
389
390- (void)setBorderBottomStyle:(NSString *)borderBottomStyle
391{
392    [self setProperty:@"border-bottom-style" value:borderBottomStyle priority:@""];
393}
394
395- (NSString *)borderLeftStyle
396{
397    return [self getPropertyValue:@"border-left-style"];
398}
399
400- (void)setBorderLeftStyle:(NSString *)borderLeftStyle
401{
402    [self setProperty:@"border-left-style" value:borderLeftStyle priority:@""];
403}
404
405- (NSString *)borderTopWidth
406{
407    return [self getPropertyValue:@"border-top-width"];
408}
409
410- (void)setBorderTopWidth:(NSString *)borderTopWidth
411{
412    [self setProperty:@"border-top-width" value:borderTopWidth priority:@""];
413}
414
415- (NSString *)borderRightWidth
416{
417    return [self getPropertyValue:@"border-right-width"];
418}
419
420- (void)setBorderRightWidth:(NSString *)borderRightWidth
421{
422    [self setProperty:@"border-right-width" value:borderRightWidth priority:@""];
423}
424
425- (NSString *)borderBottomWidth
426{
427    return [self getPropertyValue:@"border-bottom-width"];
428}
429
430- (void)setBorderBottomWidth:(NSString *)borderBottomWidth
431{
432    [self setProperty:@"border-bottom-width" value:borderBottomWidth priority:@""];
433}
434
435- (NSString *)borderLeftWidth
436{
437    return [self getPropertyValue:@"border-left-width"];
438}
439
440- (void)setBorderLeftWidth:(NSString *)borderLeftWidth
441{
442    [self setProperty:@"border-left-width" value:borderLeftWidth priority:@""];
443}
444
445- (NSString *)borderWidth
446{
447    return [self getPropertyValue:@"border-width"];
448}
449
450- (void)setBorderWidth:(NSString *)borderWidth
451{
452    [self setProperty:@"border-width" value:borderWidth priority:@""];
453}
454
455- (NSString *)bottom
456{
457    return [self getPropertyValue:@"bottom"];
458}
459
460- (void)setBottom:(NSString *)bottom
461{
462    [self setProperty:@"bottom" value:bottom priority:@""];
463}
464
465- (NSString *)captionSide
466{
467    return [self getPropertyValue:@"caption-side"];
468}
469
470- (void)setCaptionSide:(NSString *)captionSide
471{
472    [self setProperty:@"caption-side" value:captionSide priority:@""];
473}
474
475- (NSString *)clear
476{
477    return [self getPropertyValue:@"clear"];
478}
479
480- (void)setClear:(NSString *)clear
481{
482    [self setProperty:@"clear" value:clear priority:@""];
483}
484
485- (NSString *)clip
486{
487    return [self getPropertyValue:@"clip"];
488}
489
490- (void)setClip:(NSString *)clip
491{
492    [self setProperty:@"clip" value:clip priority:@""];
493}
494
495- (NSString *)color
496{
497    return [self getPropertyValue:@"color"];
498}
499
500- (void)setColor:(NSString *)color
501{
502    [self setProperty:@"color" value:color priority:@""];
503}
504
505- (NSString *)content
506{
507    return [self getPropertyValue:@"content"];
508}
509
510- (void)setContent:(NSString *)content
511{
512    [self setProperty:@"content" value:content priority:@""];
513}
514
515- (NSString *)counterIncrement
516{
517    return [self getPropertyValue:@"counter-increment"];
518}
519
520- (void)setCounterIncrement:(NSString *)counterIncrement
521{
522    [self setProperty:@"counter-increment" value:counterIncrement priority:@""];
523}
524
525- (NSString *)counterReset
526{
527    return [self getPropertyValue:@"counter-reset"];
528}
529
530- (void)setCounterReset:(NSString *)counterReset
531{
532    [self setProperty:@"counter-reset" value:counterReset priority:@""];
533}
534
535- (NSString *)cue
536{
537    return [self getPropertyValue:@"cue"];
538}
539
540- (void)setCue:(NSString *)cue
541{
542    [self setProperty:@"cue" value:cue priority:@""];
543}
544
545- (NSString *)cueAfter
546{
547    return [self getPropertyValue:@"cue-after"];
548}
549
550- (void)setCueAfter:(NSString *)cueAfter
551{
552    [self setProperty:@"cue-after" value:cueAfter priority:@""];
553}
554
555- (NSString *)cueBefore
556{
557    return [self getPropertyValue:@"cue-before"];
558}
559
560- (void)setCueBefore:(NSString *)cueBefore
561{
562    [self setProperty:@"cue-before" value:cueBefore priority:@""];
563}
564
565- (NSString *)cursor
566{
567    return [self getPropertyValue:@"cursor"];
568}
569
570- (void)setCursor:(NSString *)cursor
571{
572    [self setProperty:@"cursor" value:cursor priority:@""];
573}
574
575- (NSString *)direction
576{
577    return [self getPropertyValue:@"direction"];
578}
579
580- (void)setDirection:(NSString *)direction
581{
582    [self setProperty:@"direction" value:direction priority:@""];
583}
584
585- (NSString *)display
586{
587    return [self getPropertyValue:@"display"];
588}
589
590- (void)setDisplay:(NSString *)display
591{
592    [self setProperty:@"display" value:display priority:@""];
593}
594
595- (NSString *)elevation
596{
597    return [self getPropertyValue:@"elevation"];
598}
599
600- (void)setElevation:(NSString *)elevation
601{
602    [self setProperty:@"elevation" value:elevation priority:@""];
603}
604
605- (NSString *)emptyCells
606{
607    return [self getPropertyValue:@"empty-cells"];
608}
609
610- (void)setEmptyCells:(NSString *)emptyCells
611{
612    [self setProperty:@"empty-cells" value:emptyCells priority:@""];
613}
614
615- (NSString *)cssFloat
616{
617    return [self getPropertyValue:@"css-float"];
618}
619
620- (void)setCssFloat:(NSString *)cssFloat
621{
622    [self setProperty:@"css-float" value:cssFloat priority:@""];
623}
624
625- (NSString *)font
626{
627    return [self getPropertyValue:@"font"];
628}
629
630- (void)setFont:(NSString *)font
631{
632    [self setProperty:@"font" value:font priority:@""];
633}
634
635- (NSString *)fontFamily
636{
637    return [self getPropertyValue:@"font-family"];
638}
639
640- (void)setFontFamily:(NSString *)fontFamily
641{
642    [self setProperty:@"font-family" value:fontFamily priority:@""];
643}
644
645- (NSString *)fontSize
646{
647    return [self getPropertyValue:@"font-size"];
648}
649
650- (void)setFontSize:(NSString *)fontSize
651{
652    [self setProperty:@"font-size" value:fontSize priority:@""];
653}
654
655- (NSString *)fontSizeAdjust
656{
657    return [self getPropertyValue:@"font-size-adjust"];
658}
659
660- (void)setFontSizeAdjust:(NSString *)fontSizeAdjust
661{
662    [self setProperty:@"font-size-adjust" value:fontSizeAdjust priority:@""];
663}
664
665- (NSString *)_fontSizeDelta
666{
667    return [self getPropertyValue:@"-webkit-font-size-delta"];
668}
669
670- (void)_setFontSizeDelta:(NSString *)fontSizeDelta
671{
672    [self setProperty:@"-webkit-font-size-delta" value:fontSizeDelta priority:@""];
673}
674
675- (NSString *)fontStretch
676{
677    return [self getPropertyValue:@"font-stretch"];
678}
679
680- (void)setFontStretch:(NSString *)fontStretch
681{
682    [self setProperty:@"font-stretch" value:fontStretch priority:@""];
683}
684
685- (NSString *)fontStyle
686{
687    return [self getPropertyValue:@"font-style"];
688}
689
690- (void)setFontStyle:(NSString *)fontStyle
691{
692    [self setProperty:@"font-style" value:fontStyle priority:@""];
693}
694
695- (NSString *)fontVariant
696{
697    return [self getPropertyValue:@"font-variant"];
698}
699
700- (void)setFontVariant:(NSString *)fontVariant
701{
702    [self setProperty:@"font-variant" value:fontVariant priority:@""];
703}
704
705- (NSString *)fontWeight
706{
707    return [self getPropertyValue:@"font-weight"];
708}
709
710- (void)setFontWeight:(NSString *)fontWeight
711{
712    [self setProperty:@"font-weight" value:fontWeight priority:@""];
713}
714
715- (NSString *)height
716{
717    return [self getPropertyValue:@"height"];
718}
719
720- (void)setHeight:(NSString *)height
721{
722    [self setProperty:@"height" value:height priority:@""];
723}
724
725- (NSString *)left
726{
727    return [self getPropertyValue:@"left"];
728}
729
730- (void)setLeft:(NSString *)left
731{
732    [self setProperty:@"left" value:left priority:@""];
733}
734
735- (NSString *)letterSpacing
736{
737    return [self getPropertyValue:@"letter-spacing"];
738}
739
740- (void)setLetterSpacing:(NSString *)letterSpacing
741{
742    [self setProperty:@"letter-spacing" value:letterSpacing priority:@""];
743}
744
745- (NSString *)lineHeight
746{
747    return [self getPropertyValue:@"line-height"];
748}
749
750- (void)setLineHeight:(NSString *)lineHeight
751{
752    [self setProperty:@"line-height" value:lineHeight priority:@""];
753}
754
755- (NSString *)listStyle
756{
757    return [self getPropertyValue:@"list-style"];
758}
759
760- (void)setListStyle:(NSString *)listStyle
761{
762    [self setProperty:@"list-style" value:listStyle priority:@""];
763}
764
765- (NSString *)listStyleImage
766{
767    return [self getPropertyValue:@"list-style-image"];
768}
769
770- (void)setListStyleImage:(NSString *)listStyleImage
771{
772    [self setProperty:@"list-style-image" value:listStyleImage priority:@""];
773}
774
775- (NSString *)listStylePosition
776{
777    return [self getPropertyValue:@"list-style-position"];
778}
779
780- (void)setListStylePosition:(NSString *)listStylePosition
781{
782    [self setProperty:@"list-style-position" value:listStylePosition priority:@""];
783}
784
785- (NSString *)listStyleType
786{
787    return [self getPropertyValue:@"list-style-type"];
788}
789
790- (void)setListStyleType:(NSString *)listStyleType
791{
792    [self setProperty:@"list-style-type" value:listStyleType priority:@""];
793}
794
795- (NSString *)margin
796{
797    return [self getPropertyValue:@"margin"];
798}
799
800- (void)setMargin:(NSString *)margin
801{
802    [self setProperty:@"margin" value:margin priority:@""];
803}
804
805- (NSString *)marginTop
806{
807    return [self getPropertyValue:@"margin-top"];
808}
809
810- (void)setMarginTop:(NSString *)marginTop
811{
812    [self setProperty:@"margin-top" value:marginTop priority:@""];
813}
814
815- (NSString *)marginRight
816{
817    return [self getPropertyValue:@"margin-right"];
818}
819
820- (void)setMarginRight:(NSString *)marginRight
821{
822    [self setProperty:@"margin-right" value:marginRight priority:@""];
823}
824
825- (NSString *)marginBottom
826{
827    return [self getPropertyValue:@"margin-bottom"];
828}
829
830- (void)setMarginBottom:(NSString *)marginBottom
831{
832    [self setProperty:@"margin-bottom" value:marginBottom priority:@""];
833}
834
835- (NSString *)marginLeft
836{
837    return [self getPropertyValue:@"margin-left"];
838}
839
840- (void)setMarginLeft:(NSString *)marginLeft
841{
842    [self setProperty:@"margin-left" value:marginLeft priority:@""];
843}
844
845- (NSString *)markerOffset
846{
847    return [self getPropertyValue:@"marker-offset"];
848}
849
850- (void)setMarkerOffset:(NSString *)markerOffset
851{
852    [self setProperty:@"marker-offset" value:markerOffset priority:@""];
853}
854
855- (NSString *)marks
856{
857    return [self getPropertyValue:@"marks"];
858}
859
860- (void)setMarks:(NSString *)marks
861{
862    [self setProperty:@"marks" value:marks priority:@""];
863}
864
865- (NSString *)maxHeight
866{
867    return [self getPropertyValue:@"max-height"];
868}
869
870- (void)setMaxHeight:(NSString *)maxHeight
871{
872    [self setProperty:@"max-height" value:maxHeight priority:@""];
873}
874
875- (NSString *)maxWidth
876{
877    return [self getPropertyValue:@"max-width"];
878}
879
880- (void)setMaxWidth:(NSString *)maxWidth
881{
882    [self setProperty:@"max-width" value:maxWidth priority:@""];
883}
884
885- (NSString *)minHeight
886{
887    return [self getPropertyValue:@"min-height"];
888}
889
890- (void)setMinHeight:(NSString *)minHeight
891{
892    [self setProperty:@"min-height" value:minHeight priority:@""];
893}
894
895- (NSString *)minWidth
896{
897    return [self getPropertyValue:@"min-width"];
898}
899
900- (void)setMinWidth:(NSString *)minWidth
901{
902    [self setProperty:@"min-width" value:minWidth priority:@""];
903}
904
905- (NSString *)orphans
906{
907    return [self getPropertyValue:@"orphans"];
908}
909
910- (void)setOrphans:(NSString *)orphans
911{
912    [self setProperty:@"orphans" value:orphans priority:@""];
913}
914
915- (NSString *)outline
916{
917    return [self getPropertyValue:@"outline"];
918}
919
920- (void)setOutline:(NSString *)outline
921{
922    [self setProperty:@"outline" value:outline priority:@""];
923}
924
925- (NSString *)outlineColor
926{
927    return [self getPropertyValue:@"outline-color"];
928}
929
930- (void)setOutlineColor:(NSString *)outlineColor
931{
932    [self setProperty:@"outline-color" value:outlineColor priority:@""];
933}
934
935- (NSString *)outlineStyle
936{
937    return [self getPropertyValue:@"outline-style"];
938}
939
940- (void)setOutlineStyle:(NSString *)outlineStyle
941{
942    [self setProperty:@"outline-style" value:outlineStyle priority:@""];
943}
944
945- (NSString *)outlineWidth
946{
947    return [self getPropertyValue:@"outline-width"];
948}
949
950- (void)setOutlineWidth:(NSString *)outlineWidth
951{
952    [self setProperty:@"outline-width" value:outlineWidth priority:@""];
953}
954
955- (NSString *)overflow
956{
957    return [self getPropertyValue:@"overflow"];
958}
959
960- (void)setOverflow:(NSString *)overflow
961{
962    [self setProperty:@"overflow" value:overflow priority:@""];
963}
964
965- (NSString *)padding
966{
967    return [self getPropertyValue:@"padding"];
968}
969
970- (void)setPadding:(NSString *)padding
971{
972    [self setProperty:@"padding" value:padding priority:@""];
973}
974
975- (NSString *)paddingTop
976{
977    return [self getPropertyValue:@"padding-top"];
978}
979
980- (void)setPaddingTop:(NSString *)paddingTop
981{
982    [self setProperty:@"padding-top" value:paddingTop priority:@""];
983}
984
985- (NSString *)paddingRight
986{
987    return [self getPropertyValue:@"padding-right"];
988}
989
990- (void)setPaddingRight:(NSString *)paddingRight
991{
992    [self setProperty:@"padding-right" value:paddingRight priority:@""];
993}
994
995- (NSString *)paddingBottom
996{
997    return [self getPropertyValue:@"padding-bottom"];
998}
999
1000- (void)setPaddingBottom:(NSString *)paddingBottom
1001{
1002    [self setProperty:@"padding-bottom" value:paddingBottom priority:@""];
1003}
1004
1005- (NSString *)paddingLeft
1006{
1007    return [self getPropertyValue:@"padding-left"];
1008}
1009
1010- (void)setPaddingLeft:(NSString *)paddingLeft
1011{
1012    [self setProperty:@"padding-left" value:paddingLeft priority:@""];
1013}
1014
1015- (NSString *)page
1016{
1017    return [self getPropertyValue:@"page"];
1018}
1019
1020- (void)setPage:(NSString *)page
1021{
1022    [self setProperty:@"page" value:page priority:@""];
1023}
1024
1025- (NSString *)pageBreakAfter
1026{
1027    return [self getPropertyValue:@"page-break-after"];
1028}
1029
1030- (void)setPageBreakAfter:(NSString *)pageBreakAfter
1031{
1032    [self setProperty:@"page-break-after" value:pageBreakAfter priority:@""];
1033}
1034
1035- (NSString *)pageBreakBefore
1036{
1037    return [self getPropertyValue:@"page-break-before"];
1038}
1039
1040- (void)setPageBreakBefore:(NSString *)pageBreakBefore
1041{
1042    [self setProperty:@"page-break-before" value:pageBreakBefore priority:@""];
1043}
1044
1045- (NSString *)pageBreakInside
1046{
1047    return [self getPropertyValue:@"page-break-inside"];
1048}
1049
1050- (void)setPageBreakInside:(NSString *)pageBreakInside
1051{
1052    [self setProperty:@"page-break-inside" value:pageBreakInside priority:@""];
1053}
1054
1055- (NSString *)pause
1056{
1057    return [self getPropertyValue:@"pause"];
1058}
1059
1060- (void)setPause:(NSString *)pause
1061{
1062    [self setProperty:@"pause" value:pause priority:@""];
1063}
1064
1065- (NSString *)pauseAfter
1066{
1067    return [self getPropertyValue:@"pause-after"];
1068}
1069
1070- (void)setPauseAfter:(NSString *)pauseAfter
1071{
1072    [self setProperty:@"pause-after" value:pauseAfter priority:@""];
1073}
1074
1075- (NSString *)pauseBefore
1076{
1077    return [self getPropertyValue:@"pause-before"];
1078}
1079
1080- (void)setPauseBefore:(NSString *)pauseBefore
1081{
1082    [self setProperty:@"pause-before" value:pauseBefore priority:@""];
1083}
1084
1085- (NSString *)pitch
1086{
1087    return [self getPropertyValue:@"pitch"];
1088}
1089
1090- (void)setPitch:(NSString *)pitch
1091{
1092    [self setProperty:@"pitch" value:pitch priority:@""];
1093}
1094
1095- (NSString *)pitchRange
1096{
1097    return [self getPropertyValue:@"pitch-range"];
1098}
1099
1100- (void)setPitchRange:(NSString *)pitchRange
1101{
1102    [self setProperty:@"pitch-range" value:pitchRange priority:@""];
1103}
1104
1105- (NSString *)playDuring
1106{
1107    return [self getPropertyValue:@"play-during"];
1108}
1109
1110- (void)setPlayDuring:(NSString *)playDuring
1111{
1112    [self setProperty:@"play-during" value:playDuring priority:@""];
1113}
1114
1115- (NSString *)position
1116{
1117    return [self getPropertyValue:@"position"];
1118}
1119
1120- (void)setPosition:(NSString *)position
1121{
1122    [self setProperty:@"position" value:position priority:@""];
1123}
1124
1125- (NSString *)quotes
1126{
1127    return [self getPropertyValue:@"quotes"];
1128}
1129
1130- (void)setQuotes:(NSString *)quotes
1131{
1132    [self setProperty:@"quotes" value:quotes priority:@""];
1133}
1134
1135- (NSString *)richness
1136{
1137    return [self getPropertyValue:@"richness"];
1138}
1139
1140- (void)setRichness:(NSString *)richness
1141{
1142    [self setProperty:@"richness" value:richness priority:@""];
1143}
1144
1145- (NSString *)right
1146{
1147    return [self getPropertyValue:@"right"];
1148}
1149
1150- (void)setRight:(NSString *)right
1151{
1152    [self setProperty:@"right" value:right priority:@""];
1153}
1154
1155- (NSString *)size
1156{
1157    return [self getPropertyValue:@"size"];
1158}
1159
1160- (void)setSize:(NSString *)size
1161{
1162    [self setProperty:@"size" value:size priority:@""];
1163}
1164
1165- (NSString *)speak
1166{
1167    return [self getPropertyValue:@"speak"];
1168}
1169
1170- (void)setSpeak:(NSString *)speak
1171{
1172    [self setProperty:@"speak" value:speak priority:@""];
1173}
1174
1175- (NSString *)speakHeader
1176{
1177    return [self getPropertyValue:@"speak-header"];
1178}
1179
1180- (void)setSpeakHeader:(NSString *)speakHeader
1181{
1182    [self setProperty:@"speak-header" value:speakHeader priority:@""];
1183}
1184
1185- (NSString *)speakNumeral
1186{
1187    return [self getPropertyValue:@"speak-numeral"];
1188}
1189
1190- (void)setSpeakNumeral:(NSString *)speakNumeral
1191{
1192    [self setProperty:@"speak-numeral" value:speakNumeral priority:@""];
1193}
1194
1195- (NSString *)speakPunctuation
1196{
1197    return [self getPropertyValue:@"speak-punctuation"];
1198}
1199
1200- (void)setSpeakPunctuation:(NSString *)speakPunctuation
1201{
1202    [self setProperty:@"speak-punctuation" value:speakPunctuation priority:@""];
1203}
1204
1205- (NSString *)speechRate
1206{
1207    return [self getPropertyValue:@"speech-rate"];
1208}
1209
1210- (void)setSpeechRate:(NSString *)speechRate
1211{
1212    [self setProperty:@"speech-rate" value:speechRate priority:@""];
1213}
1214
1215- (NSString *)stress
1216{
1217    return [self getPropertyValue:@"stress"];
1218}
1219
1220- (void)setStress:(NSString *)stress
1221{
1222    [self setProperty:@"stress" value:stress priority:@""];
1223}
1224
1225- (NSString *)tableLayout
1226{
1227    return [self getPropertyValue:@"table-layout"];
1228}
1229
1230- (void)setTableLayout:(NSString *)tableLayout
1231{
1232    [self setProperty:@"table-layout" value:tableLayout priority:@""];
1233}
1234
1235- (NSString *)textAlign
1236{
1237    return [self getPropertyValue:@"text-align"];
1238}
1239
1240- (void)setTextAlign:(NSString *)textAlign
1241{
1242    [self setProperty:@"text-align" value:textAlign priority:@""];
1243}
1244
1245- (NSString *)textDecoration
1246{
1247    return [self getPropertyValue:@"text-decoration"];
1248}
1249
1250- (void)setTextDecoration:(NSString *)textDecoration
1251{
1252    [self setProperty:@"text-decoration" value:textDecoration priority:@""];
1253}
1254
1255- (NSString *)textIndent
1256{
1257    return [self getPropertyValue:@"text-indent"];
1258}
1259
1260- (void)setTextIndent:(NSString *)textIndent
1261{
1262    [self setProperty:@"text-indent" value:textIndent priority:@""];
1263}
1264
1265- (NSString *)textShadow
1266{
1267    return [self getPropertyValue:@"text-shadow"];
1268}
1269
1270- (void)setTextShadow:(NSString *)textShadow
1271{
1272    [self setProperty:@"text-shadow" value:textShadow priority:@""];
1273}
1274
1275- (NSString *)textTransform
1276{
1277    return [self getPropertyValue:@"text-transform"];
1278}
1279
1280- (void)setTextTransform:(NSString *)textTransform
1281{
1282    [self setProperty:@"text-transform" value:textTransform priority:@""];
1283}
1284
1285- (NSString *)top
1286{
1287    return [self getPropertyValue:@"top"];
1288}
1289
1290- (void)setTop:(NSString *)top
1291{
1292    [self setProperty:@"top" value:top priority:@""];
1293}
1294
1295- (NSString *)unicodeBidi
1296{
1297    return [self getPropertyValue:@"unicode-bidi"];
1298}
1299
1300- (void)setUnicodeBidi:(NSString *)unicodeBidi
1301{
1302    [self setProperty:@"unicode-bidi" value:unicodeBidi priority:@""];
1303}
1304
1305- (NSString *)verticalAlign
1306{
1307    return [self getPropertyValue:@"vertical-align"];
1308}
1309
1310- (void)setVerticalAlign:(NSString *)verticalAlign
1311{
1312    [self setProperty:@"vertical-align" value:verticalAlign priority:@""];
1313}
1314
1315- (NSString *)visibility
1316{
1317    return [self getPropertyValue:@"visibility"];
1318}
1319
1320- (void)setVisibility:(NSString *)visibility
1321{
1322    [self setProperty:@"visibility" value:visibility priority:@""];
1323}
1324
1325- (NSString *)voiceFamily
1326{
1327    return [self getPropertyValue:@"voice-family"];
1328}
1329
1330- (void)setVoiceFamily:(NSString *)voiceFamily
1331{
1332    [self setProperty:@"voice-family" value:voiceFamily priority:@""];
1333}
1334
1335- (NSString *)volume
1336{
1337    return [self getPropertyValue:@"volume"];
1338}
1339
1340- (void)setVolume:(NSString *)volume
1341{
1342    [self setProperty:@"volume" value:volume priority:@""];
1343}
1344
1345- (NSString *)whiteSpace
1346{
1347    return [self getPropertyValue:@"white-space"];
1348}
1349
1350- (void)setWhiteSpace:(NSString *)whiteSpace
1351{
1352    [self setProperty:@"white-space" value:whiteSpace priority:@""];
1353}
1354
1355- (NSString *)widows
1356{
1357    return [self getPropertyValue:@"widows"];
1358}
1359
1360- (void)setWidows:(NSString *)widows
1361{
1362    [self setProperty:@"widows" value:widows priority:@""];
1363}
1364
1365- (NSString *)width
1366{
1367    return [self getPropertyValue:@"width"];
1368}
1369
1370- (void)setWidth:(NSString *)width
1371{
1372    [self setProperty:@"width" value:width priority:@""];
1373}
1374
1375- (NSString *)wordSpacing
1376{
1377    return [self getPropertyValue:@"word-spacing"];
1378}
1379
1380- (void)setWordSpacing:(NSString *)wordSpacing
1381{
1382    [self setProperty:@"word-spacing" value:wordSpacing priority:@""];
1383}
1384
1385- (NSString *)zIndex
1386{
1387    return [self getPropertyValue:@"z-index"];
1388}
1389
1390- (void)setZIndex:(NSString *)zIndex
1391{
1392    [self setProperty:@"z-index" value:zIndex priority:@""];
1393}
1394
1395@end
1396