2008-10-06 14:47:58 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2008 Jacek Caban for CodeWeavers
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
2008-12-30 20:23:56 +00:00
|
|
|
struct HTMLStyle {
|
2008-10-06 14:47:58 +00:00
|
|
|
DispatchEx dispex;
|
2011-01-04 01:00:53 +00:00
|
|
|
IHTMLStyle IHTMLStyle_iface;
|
2011-01-04 01:02:40 +00:00
|
|
|
IHTMLStyle2 IHTMLStyle2_iface;
|
2011-01-04 01:03:57 +00:00
|
|
|
IHTMLStyle3 IHTMLStyle3_iface;
|
2011-01-04 01:05:27 +00:00
|
|
|
IHTMLStyle4 IHTMLStyle4_iface;
|
2011-07-28 14:28:59 +00:00
|
|
|
IHTMLStyle5 IHTMLStyle5_iface;
|
2011-07-28 14:29:33 +00:00
|
|
|
IHTMLStyle6 IHTMLStyle6_iface;
|
2008-10-06 14:47:58 +00:00
|
|
|
|
|
|
|
LONG ref;
|
|
|
|
|
|
|
|
nsIDOMCSSStyleDeclaration *nsstyle;
|
2011-02-28 12:12:50 +00:00
|
|
|
WCHAR *filter;
|
2008-12-30 20:23:56 +00:00
|
|
|
};
|
2008-10-06 14:47:58 +00:00
|
|
|
|
2008-10-07 19:45:21 +00:00
|
|
|
/* NOTE: Make sure to keep in sync with style_tbl in htmlstyle.c */
|
2008-10-06 14:48:25 +00:00
|
|
|
typedef enum {
|
|
|
|
STYLEID_BACKGROUND,
|
|
|
|
STYLEID_BACKGROUND_COLOR,
|
|
|
|
STYLEID_BACKGROUND_IMAGE,
|
2011-02-25 13:11:16 +00:00
|
|
|
STYLEID_BACKGROUND_POSITION,
|
2009-03-05 09:24:24 +00:00
|
|
|
STYLEID_BACKGROUND_POSITION_X,
|
2009-03-05 09:26:36 +00:00
|
|
|
STYLEID_BACKGROUND_POSITION_Y,
|
2009-02-25 04:50:33 +00:00
|
|
|
STYLEID_BACKGROUND_REPEAT,
|
2008-10-06 14:50:03 +00:00
|
|
|
STYLEID_BORDER,
|
2009-12-01 20:04:38 +00:00
|
|
|
STYLEID_BORDER_BOTTOM,
|
2009-09-14 10:57:18 +00:00
|
|
|
STYLEID_BORDER_BOTTOM_COLOR,
|
2009-01-13 07:38:32 +00:00
|
|
|
STYLEID_BORDER_BOTTOM_STYLE,
|
2009-03-05 09:41:39 +00:00
|
|
|
STYLEID_BORDER_BOTTOM_WIDTH,
|
2009-03-03 10:04:49 +00:00
|
|
|
STYLEID_BORDER_COLOR,
|
2008-10-06 14:48:25 +00:00
|
|
|
STYLEID_BORDER_LEFT,
|
2009-09-14 10:41:22 +00:00
|
|
|
STYLEID_BORDER_LEFT_COLOR,
|
2009-01-13 07:30:17 +00:00
|
|
|
STYLEID_BORDER_LEFT_STYLE,
|
2009-03-05 09:44:38 +00:00
|
|
|
STYLEID_BORDER_LEFT_WIDTH,
|
2009-12-01 20:04:38 +00:00
|
|
|
STYLEID_BORDER_RIGHT,
|
2009-09-14 10:46:39 +00:00
|
|
|
STYLEID_BORDER_RIGHT_COLOR,
|
2009-01-13 07:39:23 +00:00
|
|
|
STYLEID_BORDER_RIGHT_STYLE,
|
2009-03-05 09:35:50 +00:00
|
|
|
STYLEID_BORDER_RIGHT_WIDTH,
|
2009-03-02 10:58:55 +00:00
|
|
|
STYLEID_BORDER_STYLE,
|
2009-12-01 20:04:38 +00:00
|
|
|
STYLEID_BORDER_TOP,
|
2009-09-14 10:44:29 +00:00
|
|
|
STYLEID_BORDER_TOP_COLOR,
|
2009-01-13 07:40:01 +00:00
|
|
|
STYLEID_BORDER_TOP_STYLE,
|
2009-03-05 09:32:41 +00:00
|
|
|
STYLEID_BORDER_TOP_WIDTH,
|
2008-10-10 10:00:53 +00:00
|
|
|
STYLEID_BORDER_WIDTH,
|
2009-09-16 05:56:16 +00:00
|
|
|
STYLEID_BOTTOM,
|
2011-07-15 13:38:08 +00:00
|
|
|
STYLEID_CLIP,
|
2008-10-06 14:48:25 +00:00
|
|
|
STYLEID_COLOR,
|
2008-10-06 14:50:46 +00:00
|
|
|
STYLEID_CURSOR,
|
2011-07-22 09:40:17 +00:00
|
|
|
STYLEID_DIRECTION,
|
2008-10-06 14:48:25 +00:00
|
|
|
STYLEID_DISPLAY,
|
2008-10-07 19:45:46 +00:00
|
|
|
STYLEID_FILTER,
|
2008-10-06 14:48:25 +00:00
|
|
|
STYLEID_FONT_FAMILY,
|
|
|
|
STYLEID_FONT_SIZE,
|
|
|
|
STYLEID_FONT_STYLE,
|
2008-12-11 11:37:18 +00:00
|
|
|
STYLEID_FONT_VARIANT,
|
2008-10-06 14:48:25 +00:00
|
|
|
STYLEID_FONT_WEIGHT,
|
2008-10-06 14:51:34 +00:00
|
|
|
STYLEID_HEIGHT,
|
2008-10-06 14:50:28 +00:00
|
|
|
STYLEID_LEFT,
|
2009-08-25 06:17:56 +00:00
|
|
|
STYLEID_LETTER_SPACING,
|
2009-09-18 10:18:45 +00:00
|
|
|
STYLEID_LINE_HEIGHT,
|
2008-10-06 14:48:25 +00:00
|
|
|
STYLEID_MARGIN,
|
2009-09-16 05:48:43 +00:00
|
|
|
STYLEID_MARGIN_BOTTOM,
|
2008-10-06 14:48:25 +00:00
|
|
|
STYLEID_MARGIN_LEFT,
|
|
|
|
STYLEID_MARGIN_RIGHT,
|
2009-09-16 05:46:16 +00:00
|
|
|
STYLEID_MARGIN_TOP,
|
2009-02-17 09:29:58 +00:00
|
|
|
STYLEID_MIN_HEIGHT,
|
2008-11-25 10:04:11 +00:00
|
|
|
STYLEID_OVERFLOW,
|
2010-11-28 23:18:48 +00:00
|
|
|
STYLEID_PADDING,
|
2009-09-14 11:15:31 +00:00
|
|
|
STYLEID_PADDING_BOTTOM,
|
2008-10-06 14:48:25 +00:00
|
|
|
STYLEID_PADDING_LEFT,
|
2009-09-14 11:13:12 +00:00
|
|
|
STYLEID_PADDING_RIGHT,
|
2009-09-14 11:05:54 +00:00
|
|
|
STYLEID_PADDING_TOP,
|
2011-07-18 11:39:37 +00:00
|
|
|
STYLEID_PAGE_BREAK_AFTER,
|
2011-07-21 10:26:37 +00:00
|
|
|
STYLEID_PAGE_BREAK_BEFORE,
|
2008-10-06 14:52:06 +00:00
|
|
|
STYLEID_POSITION,
|
2009-09-16 05:52:36 +00:00
|
|
|
STYLEID_RIGHT,
|
2008-10-07 19:45:31 +00:00
|
|
|
STYLEID_TEXT_ALIGN,
|
2008-10-06 14:48:25 +00:00
|
|
|
STYLEID_TEXT_DECORATION,
|
2009-09-18 10:21:56 +00:00
|
|
|
STYLEID_TEXT_INDENT,
|
2008-10-06 14:51:04 +00:00
|
|
|
STYLEID_TOP,
|
2008-10-06 14:51:21 +00:00
|
|
|
STYLEID_VERTICAL_ALIGN,
|
2008-10-06 14:48:25 +00:00
|
|
|
STYLEID_VISIBILITY,
|
2008-10-07 19:45:05 +00:00
|
|
|
STYLEID_WIDTH,
|
2009-08-21 10:55:29 +00:00
|
|
|
STYLEID_WORD_SPACING,
|
2009-08-01 22:09:49 +00:00
|
|
|
STYLEID_WORD_WRAP,
|
2008-10-07 19:45:05 +00:00
|
|
|
STYLEID_Z_INDEX
|
2008-10-06 14:48:25 +00:00
|
|
|
} styleid_t;
|
|
|
|
|
2011-05-01 18:27:06 +00:00
|
|
|
void HTMLStyle2_Init(HTMLStyle*) DECLSPEC_HIDDEN;
|
|
|
|
void HTMLStyle3_Init(HTMLStyle*) DECLSPEC_HIDDEN;
|
2008-10-06 14:49:24 +00:00
|
|
|
|
2011-07-15 13:37:56 +00:00
|
|
|
HRESULT get_nsstyle_attr(nsIDOMCSSStyleDeclaration*,styleid_t,BSTR*,DWORD) DECLSPEC_HIDDEN;
|
2011-05-01 18:27:06 +00:00
|
|
|
HRESULT set_nsstyle_attr(nsIDOMCSSStyleDeclaration*,styleid_t,LPCWSTR,DWORD) DECLSPEC_HIDDEN;
|
2009-02-17 09:29:58 +00:00
|
|
|
|
2011-05-01 18:27:06 +00:00
|
|
|
HRESULT set_nsstyle_attr_var(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, VARIANT *value, DWORD flags) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT get_nsstyle_attr_var(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, VARIANT *p, DWORD flags) DECLSPEC_HIDDEN;
|
2009-02-21 10:08:17 +00:00
|
|
|
|
2011-07-15 13:38:08 +00:00
|
|
|
#define ATTR_FIX_PX 0x0001
|
|
|
|
#define ATTR_FIX_URL 0x0002
|
|
|
|
#define ATTR_STR_TO_INT 0x0004
|
|
|
|
#define ATTR_HEX_INT 0x0008
|
|
|
|
#define ATTR_REMOVE_COMMA 0x0010
|