wineconsole: Free registry key name (valgrind).
[wine.git] / dlls / mshtml / htmlstyle.h
blob030d8a1026c37a22ad1d2ffaffdd04eb396ee726
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 struct HTMLStyle {
20 DispatchEx dispex;
21 IHTMLStyle IHTMLStyle_iface;
22 IHTMLStyle2 IHTMLStyle2_iface;
23 IHTMLStyle3 IHTMLStyle3_iface;
24 IHTMLStyle4 IHTMLStyle4_iface;
25 IHTMLStyle5 IHTMLStyle5_iface;
26 IHTMLStyle6 IHTMLStyle6_iface;
28 LONG ref;
30 nsIDOMCSSStyleDeclaration *nsstyle;
31 HTMLElement *elem;
34 /* NOTE: Make sure to keep in sync with style_tbl in htmlstyle.c */
35 typedef enum {
36 STYLEID_BACKGROUND,
37 STYLEID_BACKGROUND_COLOR,
38 STYLEID_BACKGROUND_IMAGE,
39 STYLEID_BACKGROUND_POSITION,
40 STYLEID_BACKGROUND_POSITION_X,
41 STYLEID_BACKGROUND_POSITION_Y,
42 STYLEID_BACKGROUND_REPEAT,
43 STYLEID_BORDER,
44 STYLEID_BORDER_BOTTOM,
45 STYLEID_BORDER_BOTTOM_COLOR,
46 STYLEID_BORDER_BOTTOM_STYLE,
47 STYLEID_BORDER_BOTTOM_WIDTH,
48 STYLEID_BORDER_COLOR,
49 STYLEID_BORDER_LEFT,
50 STYLEID_BORDER_LEFT_COLOR,
51 STYLEID_BORDER_LEFT_STYLE,
52 STYLEID_BORDER_LEFT_WIDTH,
53 STYLEID_BORDER_RIGHT,
54 STYLEID_BORDER_RIGHT_COLOR,
55 STYLEID_BORDER_RIGHT_STYLE,
56 STYLEID_BORDER_RIGHT_WIDTH,
57 STYLEID_BORDER_STYLE,
58 STYLEID_BORDER_TOP,
59 STYLEID_BORDER_TOP_COLOR,
60 STYLEID_BORDER_TOP_STYLE,
61 STYLEID_BORDER_TOP_WIDTH,
62 STYLEID_BORDER_WIDTH,
63 STYLEID_BOTTOM,
64 STYLEID_BOX_SIZING,
65 STYLEID_CLEAR,
66 STYLEID_CLIP,
67 STYLEID_COLOR,
68 STYLEID_CURSOR,
69 STYLEID_DIRECTION,
70 STYLEID_DISPLAY,
71 STYLEID_FILTER,
72 STYLEID_FONT_FAMILY,
73 STYLEID_FONT_SIZE,
74 STYLEID_FONT_STYLE,
75 STYLEID_FONT_VARIANT,
76 STYLEID_FONT_WEIGHT,
77 STYLEID_HEIGHT,
78 STYLEID_LEFT,
79 STYLEID_LETTER_SPACING,
80 STYLEID_LINE_HEIGHT,
81 STYLEID_LISTSTYLETYPE,
82 STYLEID_MARGIN,
83 STYLEID_MARGIN_BOTTOM,
84 STYLEID_MARGIN_LEFT,
85 STYLEID_MARGIN_RIGHT,
86 STYLEID_MARGIN_TOP,
87 STYLEID_MIN_HEIGHT,
88 STYLEID_OUTLINE,
89 STYLEID_OVERFLOW,
90 STYLEID_OVERFLOW_X,
91 STYLEID_OVERFLOW_Y,
92 STYLEID_PADDING,
93 STYLEID_PADDING_BOTTOM,
94 STYLEID_PADDING_LEFT,
95 STYLEID_PADDING_RIGHT,
96 STYLEID_PADDING_TOP,
97 STYLEID_PAGE_BREAK_AFTER,
98 STYLEID_PAGE_BREAK_BEFORE,
99 STYLEID_POSITION,
100 STYLEID_RIGHT,
101 STYLEID_TEXT_ALIGN,
102 STYLEID_TEXT_DECORATION,
103 STYLEID_TEXT_INDENT,
104 STYLEID_TOP,
105 STYLEID_VERTICAL_ALIGN,
106 STYLEID_VISIBILITY,
107 STYLEID_WHITE_SPACE,
108 STYLEID_WIDTH,
109 STYLEID_WORD_SPACING,
110 STYLEID_WORD_WRAP,
111 STYLEID_Z_INDEX
112 } styleid_t;
114 HRESULT HTMLStyle_Create(HTMLElement*,HTMLStyle**) DECLSPEC_HIDDEN;
115 void HTMLStyle2_Init(HTMLStyle*) DECLSPEC_HIDDEN;
116 void HTMLStyle3_Init(HTMLStyle*) DECLSPEC_HIDDEN;
118 HRESULT get_nsstyle_attr(nsIDOMCSSStyleDeclaration*,styleid_t,BSTR*,DWORD) DECLSPEC_HIDDEN;
119 HRESULT set_nsstyle_attr(nsIDOMCSSStyleDeclaration*,styleid_t,LPCWSTR,DWORD) DECLSPEC_HIDDEN;
121 HRESULT set_nsstyle_attr_var(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, VARIANT *value, DWORD flags) DECLSPEC_HIDDEN;
122 HRESULT get_nsstyle_attr_var(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, VARIANT *p, DWORD flags) DECLSPEC_HIDDEN;
124 HRESULT get_elem_style(HTMLElement*,styleid_t,BSTR*) DECLSPEC_HIDDEN;
125 HRESULT set_elem_style(HTMLElement*,styleid_t,const WCHAR*) DECLSPEC_HIDDEN;
127 #define ATTR_FIX_PX 0x0001
128 #define ATTR_FIX_URL 0x0002
129 #define ATTR_STR_TO_INT 0x0004
130 #define ATTR_HEX_INT 0x0008
131 #define ATTR_REMOVE_COMMA 0x0010
132 #define ATTR_NO_NULL 0x0020