makefiles: Don't use standard libs for programs that specify -nodefaultlibs.
[wine/zf.git] / dlls / mshtml / htmlstyle.h
blob7a83897043be52b40414c95356d5ee04d0071e06
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_BACKGROUND,
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,
56 STYLEID_BORDER,
57 STYLEID_BORDER_BOTTOM,
58 STYLEID_BORDER_BOTTOM_COLOR,
59 STYLEID_BORDER_BOTTOM_STYLE,
60 STYLEID_BORDER_BOTTOM_WIDTH,
61 STYLEID_BORDER_COLLAPSE,
62 STYLEID_BORDER_COLOR,
63 STYLEID_BORDER_LEFT,
64 STYLEID_BORDER_LEFT_COLOR,
65 STYLEID_BORDER_LEFT_STYLE,
66 STYLEID_BORDER_LEFT_WIDTH,
67 STYLEID_BORDER_RIGHT,
68 STYLEID_BORDER_RIGHT_COLOR,
69 STYLEID_BORDER_RIGHT_STYLE,
70 STYLEID_BORDER_RIGHT_WIDTH,
71 STYLEID_BORDER_SPACING,
72 STYLEID_BORDER_STYLE,
73 STYLEID_BORDER_TOP,
74 STYLEID_BORDER_TOP_COLOR,
75 STYLEID_BORDER_TOP_STYLE,
76 STYLEID_BORDER_TOP_WIDTH,
77 STYLEID_BORDER_WIDTH,
78 STYLEID_BOTTOM,
79 STYLEID_BOX_SIZING,
80 STYLEID_CLEAR,
81 STYLEID_CLIP,
82 STYLEID_COLOR,
83 STYLEID_CURSOR,
84 STYLEID_DIRECTION,
85 STYLEID_DISPLAY,
86 STYLEID_FILTER,
87 STYLEID_FLOAT,
88 STYLEID_FONT_FAMILY,
89 STYLEID_FONT_SIZE,
90 STYLEID_FONT_STYLE,
91 STYLEID_FONT_VARIANT,
92 STYLEID_FONT_WEIGHT,
93 STYLEID_HEIGHT,
94 STYLEID_LEFT,
95 STYLEID_LETTER_SPACING,
96 STYLEID_LINE_HEIGHT,
97 STYLEID_LIST_STYLE,
98 STYLEID_LISTSTYLEPOSITION,
99 STYLEID_LISTSTYLETYPE,
100 STYLEID_MARGIN,
101 STYLEID_MARGIN_BOTTOM,
102 STYLEID_MARGIN_LEFT,
103 STYLEID_MARGIN_RIGHT,
104 STYLEID_MARGIN_TOP,
105 STYLEID_MAX_HEIGHT,
106 STYLEID_MAX_WIDTH,
107 STYLEID_MIN_HEIGHT,
108 STYLEID_MIN_WIDTH,
109 STYLEID_OPACITY,
110 STYLEID_OUTLINE,
111 STYLEID_OVERFLOW,
112 STYLEID_OVERFLOW_X,
113 STYLEID_OVERFLOW_Y,
114 STYLEID_PADDING,
115 STYLEID_PADDING_BOTTOM,
116 STYLEID_PADDING_LEFT,
117 STYLEID_PADDING_RIGHT,
118 STYLEID_PADDING_TOP,
119 STYLEID_PAGE_BREAK_AFTER,
120 STYLEID_PAGE_BREAK_BEFORE,
121 STYLEID_POSITION,
122 STYLEID_RIGHT,
123 STYLEID_TABLE_LAYOUT,
124 STYLEID_TEXT_ALIGN,
125 STYLEID_TEXT_DECORATION,
126 STYLEID_TEXT_INDENT,
127 STYLEID_TEXT_TRANSFORM,
128 STYLEID_TOP,
129 STYLEID_VERTICAL_ALIGN,
130 STYLEID_VISIBILITY,
131 STYLEID_WHITE_SPACE,
132 STYLEID_WIDTH,
133 STYLEID_WORD_SPACING,
134 STYLEID_WORD_WRAP,
135 STYLEID_Z_INDEX,
136 STYLEID_MAX_VALUE
137 } styleid_t;
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;