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 */
48 STYLEID_BACKGROUND_ATTACHMENT
,
49 STYLEID_BACKGROUND_CLIP
,
50 STYLEID_BACKGROUND_COLOR
,
51 STYLEID_BACKGROUND_IMAGE
,
52 STYLEID_BACKGROUND_POSITION
,
53 STYLEID_BACKGROUND_POSITION_X
,
54 STYLEID_BACKGROUND_POSITION_Y
,
55 STYLEID_BACKGROUND_REPEAT
,
57 STYLEID_BORDER_BOTTOM
,
58 STYLEID_BORDER_BOTTOM_COLOR
,
59 STYLEID_BORDER_BOTTOM_STYLE
,
60 STYLEID_BORDER_BOTTOM_WIDTH
,
61 STYLEID_BORDER_COLLAPSE
,
64 STYLEID_BORDER_LEFT_COLOR
,
65 STYLEID_BORDER_LEFT_STYLE
,
66 STYLEID_BORDER_LEFT_WIDTH
,
68 STYLEID_BORDER_RIGHT_COLOR
,
69 STYLEID_BORDER_RIGHT_STYLE
,
70 STYLEID_BORDER_RIGHT_WIDTH
,
71 STYLEID_BORDER_SPACING
,
74 STYLEID_BORDER_TOP_COLOR
,
75 STYLEID_BORDER_TOP_STYLE
,
76 STYLEID_BORDER_TOP_WIDTH
,
95 STYLEID_LETTER_SPACING
,
98 STYLEID_LISTSTYLEPOSITION
,
99 STYLEID_LISTSTYLETYPE
,
101 STYLEID_MARGIN_BOTTOM
,
103 STYLEID_MARGIN_RIGHT
,
115 STYLEID_PADDING_BOTTOM
,
116 STYLEID_PADDING_LEFT
,
117 STYLEID_PADDING_RIGHT
,
119 STYLEID_PAGE_BREAK_AFTER
,
120 STYLEID_PAGE_BREAK_BEFORE
,
123 STYLEID_TABLE_LAYOUT
,
125 STYLEID_TEXT_DECORATION
,
127 STYLEID_TEXT_TRANSFORM
,
129 STYLEID_VERTICAL_ALIGN
,
133 STYLEID_WORD_SPACING
,
139 HRESULT
HTMLStyle_Create(HTMLElement
*,HTMLStyle
**) DECLSPEC_HIDDEN
;
140 HRESULT
create_computed_style(nsIDOMCSSStyleDeclaration
*,IHTMLCSSStyleDeclaration
**) DECLSPEC_HIDDEN
;
141 void init_css_style(CSSStyle
*,nsIDOMCSSStyleDeclaration
*,style_qi_t
,
142 dispex_static_data_t
*,compat_mode_t
) DECLSPEC_HIDDEN
;
144 void CSSStyle_init_dispex_info(dispex_data_t
*info
, compat_mode_t mode
) DECLSPEC_HIDDEN
;
145 extern const dispex_static_data_vtbl_t CSSStyle_dispex_vtbl DECLSPEC_HIDDEN
;
147 HRESULT
get_style_property(CSSStyle
*,styleid_t
,BSTR
*) DECLSPEC_HIDDEN
;
148 HRESULT
get_style_property_var(CSSStyle
*,styleid_t
,VARIANT
*) DECLSPEC_HIDDEN
;
150 HRESULT
get_elem_style(HTMLElement
*,styleid_t
,BSTR
*) DECLSPEC_HIDDEN
;
151 HRESULT
set_elem_style(HTMLElement
*,styleid_t
,const WCHAR
*) DECLSPEC_HIDDEN
;