cmd: Remove some superfluous casts.
[wine/wine64.git] / dlls / mshtml / htmlstyle.h
bloba6cc5e85fa675122f6346e3ef04c4a8e7eab65d6
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 {
20 DispatchEx dispex;
21 const IHTMLStyleVtbl *lpHTMLStyleVtbl;
22 const IHTMLStyle2Vtbl *lpHTMLStyle2Vtbl;
24 LONG ref;
26 nsIDOMCSSStyleDeclaration *nsstyle;
27 } HTMLStyle;
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_LEFT,
39 STYLEID_BORDER_WIDTH,
40 STYLEID_COLOR,
41 STYLEID_CURSOR,
42 STYLEID_DISPLAY,
43 STYLEID_FILTER,
44 STYLEID_FONT_FAMILY,
45 STYLEID_FONT_SIZE,
46 STYLEID_FONT_STYLE,
47 STYLEID_FONT_WEIGHT,
48 STYLEID_HEIGHT,
49 STYLEID_LEFT,
50 STYLEID_MARGIN,
51 STYLEID_MARGIN_LEFT,
52 STYLEID_MARGIN_RIGHT,
53 STYLEID_PADDING_LEFT,
54 STYLEID_POSITION,
55 STYLEID_TEXT_ALIGN,
56 STYLEID_TEXT_DECORATION,
57 STYLEID_TOP,
58 STYLEID_VERTICAL_ALIGN,
59 STYLEID_VISIBILITY,
60 STYLEID_WIDTH,
61 STYLEID_Z_INDEX
62 } styleid_t;
64 void HTMLStyle2_Init(HTMLStyle*);
66 HRESULT get_nsstyle_attr(nsIDOMCSSStyleDeclaration*,styleid_t,BSTR*);
67 HRESULT set_nsstyle_attr(nsIDOMCSSStyleDeclaration*,styleid_t,LPCWSTR,DWORD);