po: Update Lithuanian translation.
[wine/multimedia.git] / dlls / mshtml / htmlstyle.h
bloba11161eb8eff8331e9b7717429187d51ac9f95b4
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 WCHAR *filter;
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_CLIP,
65 STYLEID_COLOR,
66 STYLEID_CURSOR,
67 STYLEID_DIRECTION,
68 STYLEID_DISPLAY,
69 STYLEID_FILTER,
70 STYLEID_FONT_FAMILY,
71 STYLEID_FONT_SIZE,
72 STYLEID_FONT_STYLE,
73 STYLEID_FONT_VARIANT,
74 STYLEID_FONT_WEIGHT,
75 STYLEID_HEIGHT,
76 STYLEID_LEFT,
77 STYLEID_LETTER_SPACING,
78 STYLEID_LINE_HEIGHT,
79 STYLEID_MARGIN,
80 STYLEID_MARGIN_BOTTOM,
81 STYLEID_MARGIN_LEFT,
82 STYLEID_MARGIN_RIGHT,
83 STYLEID_MARGIN_TOP,
84 STYLEID_MIN_HEIGHT,
85 STYLEID_OVERFLOW,
86 STYLEID_PADDING,
87 STYLEID_PADDING_BOTTOM,
88 STYLEID_PADDING_LEFT,
89 STYLEID_PADDING_RIGHT,
90 STYLEID_PADDING_TOP,
91 STYLEID_PAGE_BREAK_AFTER,
92 STYLEID_PAGE_BREAK_BEFORE,
93 STYLEID_POSITION,
94 STYLEID_RIGHT,
95 STYLEID_TEXT_ALIGN,
96 STYLEID_TEXT_DECORATION,
97 STYLEID_TEXT_INDENT,
98 STYLEID_TOP,
99 STYLEID_VERTICAL_ALIGN,
100 STYLEID_VISIBILITY,
101 STYLEID_WIDTH,
102 STYLEID_WORD_SPACING,
103 STYLEID_WORD_WRAP,
104 STYLEID_Z_INDEX
105 } styleid_t;
107 void HTMLStyle2_Init(HTMLStyle*) DECLSPEC_HIDDEN;
108 void HTMLStyle3_Init(HTMLStyle*) DECLSPEC_HIDDEN;
110 HRESULT get_nsstyle_attr(nsIDOMCSSStyleDeclaration*,styleid_t,BSTR*,DWORD) DECLSPEC_HIDDEN;
111 HRESULT set_nsstyle_attr(nsIDOMCSSStyleDeclaration*,styleid_t,LPCWSTR,DWORD) DECLSPEC_HIDDEN;
113 HRESULT set_nsstyle_attr_var(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, VARIANT *value, DWORD flags) DECLSPEC_HIDDEN;
114 HRESULT get_nsstyle_attr_var(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, VARIANT *p, DWORD flags) DECLSPEC_HIDDEN;
116 #define ATTR_FIX_PX 0x0001
117 #define ATTR_FIX_URL 0x0002
118 #define ATTR_STR_TO_INT 0x0004
119 #define ATTR_HEX_INT 0x0008
120 #define ATTR_REMOVE_COMMA 0x0010