mshtml: Use wide-char string literals.
[wine.git] / dlls / mshtml / htmlstyle.h
bloba21dfe88d3824fb49aecf362a07c323de4580177
1 /*
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);
22 struct CSSStyle {
23 DispatchEx dispex;
24 IHTMLCSSStyleDeclaration IHTMLCSSStyleDeclaration_iface;
25 IHTMLCSSStyleDeclaration2 IHTMLCSSStyleDeclaration2_iface;
27 LONG ref;
28 style_qi_t qi;
30 nsIDOMCSSStyleDeclaration *nsstyle;
33 struct HTMLStyle {
34 CSSStyle css_style;
35 IHTMLStyle IHTMLStyle_iface;
36 IHTMLStyle2 IHTMLStyle2_iface;
37 IHTMLStyle3 IHTMLStyle3_iface;
38 IHTMLStyle4 IHTMLStyle4_iface;
39 IHTMLStyle5 IHTMLStyle5_iface;
40 IHTMLStyle6 IHTMLStyle6_iface;
42 HTMLElement *elem;
45 /* NOTE: Make sure to keep in sync with style_tbl in htmlstyle.c */
46 typedef enum {
47 STYLEID_ANIMATION_NAME,
48 STYLEID_BACKGROUND,
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,
57 STYLEID_BORDER,
58 STYLEID_BORDER_BOTTOM,
59 STYLEID_BORDER_BOTTOM_COLOR,
60 STYLEID_BORDER_BOTTOM_STYLE,
61 STYLEID_BORDER_BOTTOM_WIDTH,
62 STYLEID_BORDER_COLLAPSE,
63 STYLEID_BORDER_COLOR,
64 STYLEID_BORDER_LEFT,
65 STYLEID_BORDER_LEFT_COLOR,
66 STYLEID_BORDER_LEFT_STYLE,
67 STYLEID_BORDER_LEFT_WIDTH,
68 STYLEID_BORDER_RIGHT,
69 STYLEID_BORDER_RIGHT_COLOR,
70 STYLEID_BORDER_RIGHT_STYLE,
71 STYLEID_BORDER_RIGHT_WIDTH,
72 STYLEID_BORDER_SPACING,
73 STYLEID_BORDER_STYLE,
74 STYLEID_BORDER_TOP,
75 STYLEID_BORDER_TOP_COLOR,
76 STYLEID_BORDER_TOP_STYLE,
77 STYLEID_BORDER_TOP_WIDTH,
78 STYLEID_BORDER_WIDTH,
79 STYLEID_BOTTOM,
80 STYLEID_BOX_SIZING,
81 STYLEID_CLEAR,
82 STYLEID_CLIP,
83 STYLEID_COLOR,
84 STYLEID_COLUMN_COUNT,
85 STYLEID_COLUMN_FILL,
86 STYLEID_COLUMN_GAP,
87 STYLEID_COLUMN_RULE,
88 STYLEID_COLUMN_RULE_COLOR,
89 STYLEID_COLUMN_RULE_STYLE,
90 STYLEID_COLUMN_RULE_WIDTH,
91 STYLEID_COLUMN_SPAN,
92 STYLEID_COLUMN_WIDTH,
93 STYLEID_CURSOR,
94 STYLEID_DIRECTION,
95 STYLEID_DISPLAY,
96 STYLEID_FILTER,
97 STYLEID_FLOAT,
98 STYLEID_FONT_FAMILY,
99 STYLEID_FONT_SIZE,
100 STYLEID_FONT_STYLE,
101 STYLEID_FONT_VARIANT,
102 STYLEID_FONT_WEIGHT,
103 STYLEID_HEIGHT,
104 STYLEID_LEFT,
105 STYLEID_LETTER_SPACING,
106 STYLEID_LINE_HEIGHT,
107 STYLEID_LIST_STYLE,
108 STYLEID_LISTSTYLEPOSITION,
109 STYLEID_LISTSTYLETYPE,
110 STYLEID_MARGIN,
111 STYLEID_MARGIN_BOTTOM,
112 STYLEID_MARGIN_LEFT,
113 STYLEID_MARGIN_RIGHT,
114 STYLEID_MARGIN_TOP,
115 STYLEID_MAX_HEIGHT,
116 STYLEID_MAX_WIDTH,
117 STYLEID_MIN_HEIGHT,
118 STYLEID_MIN_WIDTH,
119 STYLEID_OPACITY,
120 STYLEID_OUTLINE,
121 STYLEID_OVERFLOW,
122 STYLEID_OVERFLOW_X,
123 STYLEID_OVERFLOW_Y,
124 STYLEID_PADDING,
125 STYLEID_PADDING_BOTTOM,
126 STYLEID_PADDING_LEFT,
127 STYLEID_PADDING_RIGHT,
128 STYLEID_PADDING_TOP,
129 STYLEID_PAGE_BREAK_AFTER,
130 STYLEID_PAGE_BREAK_BEFORE,
131 STYLEID_PERSPECTIVE,
132 STYLEID_POSITION,
133 STYLEID_RIGHT,
134 STYLEID_TABLE_LAYOUT,
135 STYLEID_TEXT_ALIGN,
136 STYLEID_TEXT_DECORATION,
137 STYLEID_TEXT_INDENT,
138 STYLEID_TEXT_TRANSFORM,
139 STYLEID_TOP,
140 STYLEID_TRANSFORM,
141 STYLEID_TRANSITION,
142 STYLEID_VERTICAL_ALIGN,
143 STYLEID_VISIBILITY,
144 STYLEID_WHITE_SPACE,
145 STYLEID_WIDTH,
146 STYLEID_WORD_SPACING,
147 STYLEID_WORD_WRAP,
148 STYLEID_Z_INDEX,
149 STYLEID_MAX_VALUE
150 } styleid_t;
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;