msvcrt/tests: Remove a space before a '\n'.
[wine/gsoc-2012-control.git] / dlls / mshtml / htmlstyle.h
blobb5433803cf73d8d9ada43a3b9464ad8cb2e08461
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 const IHTMLStyleVtbl *lpHTMLStyleVtbl;
22 const IHTMLStyle2Vtbl *lpHTMLStyle2Vtbl;
24 LONG ref;
26 nsIDOMCSSStyleDeclaration *nsstyle;
29 #define HTMLSTYLE(x) ((IHTMLStyle*) &(x)->lpHTMLStyleVtbl)
30 #define HTMLSTYLE2(x) ((IHTMLStyle2*) &(x)->lpHTMLStyle2Vtbl)
32 /* NOTE: Make sure to keep in sync with style_tbl in htmlstyle.c */
33 typedef enum {
34 STYLEID_BACKGROUND,
35 STYLEID_BACKGROUND_COLOR,
36 STYLEID_BACKGROUND_IMAGE,
37 STYLEID_BORDER,
38 STYLEID_BORDER_BOTTOM_STYLE,
39 STYLEID_BORDER_LEFT,
40 STYLEID_BORDER_LEFT_STYLE,
41 STYLEID_BORDER_RIGHT_STYLE,
42 STYLEID_BORDER_TOP_STYLE,
43 STYLEID_BORDER_WIDTH,
44 STYLEID_COLOR,
45 STYLEID_CURSOR,
46 STYLEID_DISPLAY,
47 STYLEID_FILTER,
48 STYLEID_FONT_FAMILY,
49 STYLEID_FONT_SIZE,
50 STYLEID_FONT_STYLE,
51 STYLEID_FONT_VARIANT,
52 STYLEID_FONT_WEIGHT,
53 STYLEID_HEIGHT,
54 STYLEID_LEFT,
55 STYLEID_MARGIN,
56 STYLEID_MARGIN_LEFT,
57 STYLEID_MARGIN_RIGHT,
58 STYLEID_OVERFLOW,
59 STYLEID_PADDING_LEFT,
60 STYLEID_POSITION,
61 STYLEID_TEXT_ALIGN,
62 STYLEID_TEXT_DECORATION,
63 STYLEID_TOP,
64 STYLEID_VERTICAL_ALIGN,
65 STYLEID_VISIBILITY,
66 STYLEID_WIDTH,
67 STYLEID_Z_INDEX
68 } styleid_t;
70 void HTMLStyle2_Init(HTMLStyle*);
72 HRESULT get_nsstyle_attr(nsIDOMCSSStyleDeclaration*,styleid_t,BSTR*);
73 HRESULT set_nsstyle_attr(nsIDOMCSSStyleDeclaration*,styleid_t,LPCWSTR,DWORD);