mshtml: Added IHTMLCurrentStyle::get_display implementation.
[wine] / dlls / mshtml / htmlstyle.h
1 /*
2  * Copyright 2008 Jacek Caban for CodeWeavers
3  *
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.
8  *
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.
13  *
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
17  */
18
19 typedef struct {
20     DispatchEx dispex;
21     const IHTMLStyleVtbl    *lpHTMLStyleVtbl;
22     const IHTMLStyle2Vtbl   *lpHTMLStyle2Vtbl;
23
24     LONG ref;
25
26     nsIDOMCSSStyleDeclaration *nsstyle;
27 } HTMLStyle;
28
29 #define HTMLSTYLE(x)     ((IHTMLStyle*)                   &(x)->lpHTMLStyleVtbl)
30 #define HTMLSTYLE2(x)    ((IHTMLStyle2*)                  &(x)->lpHTMLStyle2Vtbl)
31
32 /* NOTE: Make sure to keep in sync with stryle_strings in htmlstrle.c */
33 typedef enum {
34     STYLEID_BACKGROUND,
35     STYLEID_BACKGROUND_COLOR,
36     STYLEID_BACKGROUND_IMAGE,
37     STYLEID_BORDER_LEFT,
38     STYLEID_COLOR,
39     STYLEID_DISPLAY,
40     STYLEID_FONT_FAMILY,
41     STYLEID_FONT_SIZE,
42     STYLEID_FONT_STYLE,
43     STYLEID_FONT_WEIGHT,
44     STYLEID_MARGIN,
45     STYLEID_MARGIN_LEFT,
46     STYLEID_MARGIN_RIGHT,
47     STYLEID_PADDING_LEFT,
48     STYLEID_TEXT_DECORATION,
49     STYLEID_VISIBILITY,
50     STYLEID_WIDTH
51 } styleid_t;
52
53 void HTMLStyle2_Init(HTMLStyle*);
54
55 HRESULT get_nsstyle_attr(nsIDOMCSSStyleDeclaration*,styleid_t,BSTR*);