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
21 IHTMLStyle IHTMLStyle_iface;
22 IHTMLStyle2 IHTMLStyle2_iface;
23 IHTMLStyle3 IHTMLStyle3_iface;
24 IHTMLStyle4 IHTMLStyle4_iface;
25 IHTMLStyle5 IHTMLStyle5_iface;
26 IHTMLStyle6 IHTMLStyle6_iface;
30 nsIDOMCSSStyleDeclaration *nsstyle;
34 /* NOTE: Make sure to keep in sync with style_tbl in htmlstyle.c */
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,
44 STYLEID_BORDER_BOTTOM,
45 STYLEID_BORDER_BOTTOM_COLOR,
46 STYLEID_BORDER_BOTTOM_STYLE,
47 STYLEID_BORDER_BOTTOM_WIDTH,
50 STYLEID_BORDER_LEFT_COLOR,
51 STYLEID_BORDER_LEFT_STYLE,
52 STYLEID_BORDER_LEFT_WIDTH,
54 STYLEID_BORDER_RIGHT_COLOR,
55 STYLEID_BORDER_RIGHT_STYLE,
56 STYLEID_BORDER_RIGHT_WIDTH,
59 STYLEID_BORDER_TOP_COLOR,
60 STYLEID_BORDER_TOP_STYLE,
61 STYLEID_BORDER_TOP_WIDTH,
78 STYLEID_LETTER_SPACING,
81 STYLEID_MARGIN_BOTTOM,
90 STYLEID_PADDING_BOTTOM,
92 STYLEID_PADDING_RIGHT,
94 STYLEID_PAGE_BREAK_AFTER,
95 STYLEID_PAGE_BREAK_BEFORE,
99 STYLEID_TEXT_DECORATION,
102 STYLEID_VERTICAL_ALIGN,
105 STYLEID_WORD_SPACING,
110 HRESULT HTMLStyle_Create(HTMLElement*,HTMLStyle**) DECLSPEC_HIDDEN;
111 void HTMLStyle2_Init(HTMLStyle*) DECLSPEC_HIDDEN;
112 void HTMLStyle3_Init(HTMLStyle*) DECLSPEC_HIDDEN;
114 HRESULT get_nsstyle_attr(nsIDOMCSSStyleDeclaration*,styleid_t,BSTR*,DWORD) DECLSPEC_HIDDEN;
115 HRESULT set_nsstyle_attr(nsIDOMCSSStyleDeclaration*,styleid_t,LPCWSTR,DWORD) DECLSPEC_HIDDEN;
117 HRESULT set_nsstyle_attr_var(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, VARIANT *value, DWORD flags) DECLSPEC_HIDDEN;
118 HRESULT get_nsstyle_attr_var(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, VARIANT *p, DWORD flags) DECLSPEC_HIDDEN;
120 #define ATTR_FIX_PX 0x0001
121 #define ATTR_FIX_URL 0x0002
122 #define ATTR_STR_TO_INT 0x0004
123 #define ATTR_HEX_INT 0x0008
124 #define ATTR_REMOVE_COMMA 0x0010