2 * Copyright 2008 Jacek Caban for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 typedef struct CSSStyle CSSStyle
;
20 typedef void *(*style_qi_t
)(CSSStyle
*,REFIID
);
24 IHTMLCSSStyleDeclaration IHTMLCSSStyleDeclaration_iface
;
25 IHTMLCSSStyleDeclaration2 IHTMLCSSStyleDeclaration2_iface
;
30 nsIDOMCSSStyleDeclaration
*nsstyle
;
35 IHTMLStyle IHTMLStyle_iface
;
36 IHTMLStyle2 IHTMLStyle2_iface
;
37 IHTMLStyle3 IHTMLStyle3_iface
;
38 IHTMLStyle4 IHTMLStyle4_iface
;
39 IHTMLStyle5 IHTMLStyle5_iface
;
40 IHTMLStyle6 IHTMLStyle6_iface
;
45 /* NOTE: Make sure to keep in sync with style_tbl in htmlstyle.c */
47 STYLEID_ANIMATION_NAME
,
49 STYLEID_BACKGROUND_ATTACHMENT
,
50 STYLEID_BACKGROUND_CLIP
,
51 STYLEID_BACKGROUND_COLOR
,
52 STYLEID_BACKGROUND_IMAGE
,
53 STYLEID_BACKGROUND_POSITION
,
54 STYLEID_BACKGROUND_POSITION_X
,
55 STYLEID_BACKGROUND_POSITION_Y
,
56 STYLEID_BACKGROUND_REPEAT
,
58 STYLEID_BORDER_BOTTOM
,
59 STYLEID_BORDER_BOTTOM_COLOR
,
60 STYLEID_BORDER_BOTTOM_STYLE
,
61 STYLEID_BORDER_BOTTOM_WIDTH
,
62 STYLEID_BORDER_COLLAPSE
,
65 STYLEID_BORDER_LEFT_COLOR
,
66 STYLEID_BORDER_LEFT_STYLE
,
67 STYLEID_BORDER_LEFT_WIDTH
,
69 STYLEID_BORDER_RIGHT_COLOR
,
70 STYLEID_BORDER_RIGHT_STYLE
,
71 STYLEID_BORDER_RIGHT_WIDTH
,
72 STYLEID_BORDER_SPACING
,
75 STYLEID_BORDER_TOP_COLOR
,
76 STYLEID_BORDER_TOP_STYLE
,
77 STYLEID_BORDER_TOP_WIDTH
,
88 STYLEID_COLUMN_RULE_COLOR
,
89 STYLEID_COLUMN_RULE_STYLE
,
90 STYLEID_COLUMN_RULE_WIDTH
,
101 STYLEID_FONT_VARIANT
,
105 STYLEID_LETTER_SPACING
,
108 STYLEID_LISTSTYLEPOSITION
,
109 STYLEID_LISTSTYLETYPE
,
111 STYLEID_MARGIN_BOTTOM
,
113 STYLEID_MARGIN_RIGHT
,
125 STYLEID_PADDING_BOTTOM
,
126 STYLEID_PADDING_LEFT
,
127 STYLEID_PADDING_RIGHT
,
129 STYLEID_PAGE_BREAK_AFTER
,
130 STYLEID_PAGE_BREAK_BEFORE
,
134 STYLEID_TABLE_LAYOUT
,
136 STYLEID_TEXT_DECORATION
,
138 STYLEID_TEXT_TRANSFORM
,
142 STYLEID_VERTICAL_ALIGN
,
146 STYLEID_WORD_SPACING
,
152 HRESULT
HTMLStyle_Create(HTMLElement
*,HTMLStyle
**) DECLSPEC_HIDDEN
;
153 HRESULT
create_computed_style(nsIDOMCSSStyleDeclaration
*,compat_mode_t
,IHTMLCSSStyleDeclaration
**) DECLSPEC_HIDDEN
;
154 void init_css_style(CSSStyle
*,nsIDOMCSSStyleDeclaration
*,style_qi_t
,
155 dispex_static_data_t
*,compat_mode_t
) DECLSPEC_HIDDEN
;
157 void CSSStyle_init_dispex_info(dispex_data_t
*info
, compat_mode_t mode
) DECLSPEC_HIDDEN
;
158 extern const dispex_static_data_vtbl_t CSSStyle_dispex_vtbl DECLSPEC_HIDDEN
;
160 HRESULT
get_style_property(CSSStyle
*,styleid_t
,BSTR
*) DECLSPEC_HIDDEN
;
161 HRESULT
get_style_property_var(CSSStyle
*,styleid_t
,VARIANT
*) DECLSPEC_HIDDEN
;
163 HRESULT
get_elem_style(HTMLElement
*,styleid_t
,BSTR
*) DECLSPEC_HIDDEN
;
164 HRESULT
set_elem_style(HTMLElement
*,styleid_t
,const WCHAR
*) DECLSPEC_HIDDEN
;