1 |
759 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __javax_swing_text_html_StyleSheet__
|
5 |
|
|
#define __javax_swing_text_html_StyleSheet__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <javax/swing/text/StyleContext.h>
|
10 |
|
|
#include <gcj/array.h>
|
11 |
|
|
|
12 |
|
|
extern "Java"
|
13 |
|
|
{
|
14 |
|
|
namespace java
|
15 |
|
|
{
|
16 |
|
|
namespace awt
|
17 |
|
|
{
|
18 |
|
|
class Color;
|
19 |
|
|
class Font;
|
20 |
|
|
}
|
21 |
|
|
namespace net
|
22 |
|
|
{
|
23 |
|
|
class URL;
|
24 |
|
|
}
|
25 |
|
|
}
|
26 |
|
|
namespace javax
|
27 |
|
|
{
|
28 |
|
|
namespace swing
|
29 |
|
|
{
|
30 |
|
|
namespace text
|
31 |
|
|
{
|
32 |
|
|
class AttributeSet;
|
33 |
|
|
class Element;
|
34 |
|
|
class MutableAttributeSet;
|
35 |
|
|
class Style;
|
36 |
|
|
class StyleContext$SmallAttributeSet;
|
37 |
|
|
class View;
|
38 |
|
|
namespace html
|
39 |
|
|
{
|
40 |
|
|
class CSS$Attribute;
|
41 |
|
|
class HTML$Tag;
|
42 |
|
|
class StyleSheet;
|
43 |
|
|
class StyleSheet$BoxPainter;
|
44 |
|
|
class StyleSheet$ListPainter;
|
45 |
|
|
}
|
46 |
|
|
}
|
47 |
|
|
}
|
48 |
|
|
}
|
49 |
|
|
}
|
50 |
|
|
|
51 |
|
|
class javax::swing::text::html::StyleSheet : public ::javax::swing::text::StyleContext
|
52 |
|
|
{
|
53 |
|
|
|
54 |
|
|
public:
|
55 |
|
|
StyleSheet();
|
56 |
|
|
virtual ::javax::swing::text::Style * getRule(::javax::swing::text::html::HTML$Tag *, ::javax::swing::text::Element *);
|
57 |
|
|
private:
|
58 |
|
|
::javax::swing::text::Style * getResolvedStyle(::java::lang::String *, ::java::util::List *, ::javax::swing::text::html::HTML$Tag *);
|
59 |
|
|
::javax::swing::text::Style * resolveStyle(::java::lang::String *, ::java::util::List *, ::javax::swing::text::html::HTML$Tag *);
|
60 |
|
|
::javax::swing::text::Style * resolveStyle(::java::lang::String *, JArray< ::java::lang::String * > *, ::java::util::List *);
|
61 |
|
|
public:
|
62 |
|
|
virtual ::javax::swing::text::Style * getRule(::java::lang::String *);
|
63 |
|
|
virtual void addRule(::java::lang::String *);
|
64 |
|
|
virtual ::javax::swing::text::AttributeSet * getDeclaration(::java::lang::String *);
|
65 |
|
|
virtual void loadRules(::java::io::Reader *, ::java::net::URL *);
|
66 |
|
|
virtual ::javax::swing::text::AttributeSet * getViewAttributes(::javax::swing::text::View *);
|
67 |
|
|
virtual void removeStyle(::java::lang::String *);
|
68 |
|
|
virtual void addStyleSheet(::javax::swing::text::html::StyleSheet *);
|
69 |
|
|
virtual void removeStyleSheet(::javax::swing::text::html::StyleSheet *);
|
70 |
|
|
virtual JArray< ::javax::swing::text::html::StyleSheet * > * getStyleSheets();
|
71 |
|
|
virtual void importStyleSheet(::java::net::URL *);
|
72 |
|
|
virtual void setBase(::java::net::URL *);
|
73 |
|
|
virtual ::java::net::URL * getBase();
|
74 |
|
|
virtual void addCSSAttribute(::javax::swing::text::MutableAttributeSet *, ::javax::swing::text::html::CSS$Attribute *, ::java::lang::String *);
|
75 |
|
|
virtual jboolean addCSSAttributeFromHTML(::javax::swing::text::MutableAttributeSet *, ::javax::swing::text::html::CSS$Attribute *, ::java::lang::String *);
|
76 |
|
|
virtual ::javax::swing::text::AttributeSet * translateHTMLToCSS(::javax::swing::text::AttributeSet *);
|
77 |
|
|
private:
|
78 |
|
|
::javax::swing::text::AttributeSet * translateBorder(::javax::swing::text::AttributeSet *, ::java::lang::Object *);
|
79 |
|
|
public:
|
80 |
|
|
virtual ::javax::swing::text::AttributeSet * addAttribute(::javax::swing::text::AttributeSet *, ::java::lang::Object *, ::java::lang::Object *);
|
81 |
|
|
virtual ::javax::swing::text::AttributeSet * addAttributes(::javax::swing::text::AttributeSet *, ::javax::swing::text::AttributeSet *);
|
82 |
|
|
virtual ::javax::swing::text::AttributeSet * removeAttribute(::javax::swing::text::AttributeSet *, ::java::lang::Object *);
|
83 |
|
|
virtual ::javax::swing::text::AttributeSet * removeAttributes(::javax::swing::text::AttributeSet *, ::javax::swing::text::AttributeSet *);
|
84 |
|
|
virtual ::javax::swing::text::AttributeSet * removeAttributes(::javax::swing::text::AttributeSet *, ::java::util::Enumeration *);
|
85 |
|
|
public: // actually protected
|
86 |
|
|
virtual ::javax::swing::text::StyleContext$SmallAttributeSet * createSmallAttributeSet(::javax::swing::text::AttributeSet *);
|
87 |
|
|
virtual ::javax::swing::text::MutableAttributeSet * createLargeAttributeSet(::javax::swing::text::AttributeSet *);
|
88 |
|
|
public:
|
89 |
|
|
virtual ::java::awt::Font * getFont(::javax::swing::text::AttributeSet *);
|
90 |
|
|
public: // actually package-private
|
91 |
|
|
virtual jfloat getEMBase(::javax::swing::text::AttributeSet *);
|
92 |
|
|
virtual jfloat getEXBase(::javax::swing::text::AttributeSet *);
|
93 |
|
|
private:
|
94 |
|
|
jint getFontSize(::javax::swing::text::AttributeSet *);
|
95 |
|
|
public:
|
96 |
|
|
virtual ::java::awt::Color * getForeground(::javax::swing::text::AttributeSet *);
|
97 |
|
|
virtual ::java::awt::Color * getBackground(::javax::swing::text::AttributeSet *);
|
98 |
|
|
virtual ::javax::swing::text::html::StyleSheet$BoxPainter * getBoxPainter(::javax::swing::text::AttributeSet *);
|
99 |
|
|
virtual ::javax::swing::text::html::StyleSheet$ListPainter * getListPainter(::javax::swing::text::AttributeSet *);
|
100 |
|
|
virtual void setBaseFontSize(jint);
|
101 |
|
|
virtual void setBaseFontSize(::java::lang::String *);
|
102 |
|
|
static jint getIndexOfSize(jfloat);
|
103 |
|
|
virtual jfloat getPointSize(jint);
|
104 |
|
|
virtual jfloat getPointSize(::java::lang::String *);
|
105 |
|
|
virtual ::java::awt::Color * stringToColor(::java::lang::String *);
|
106 |
|
|
private:
|
107 |
|
|
::java::util::Map * attributeSetToMap(::javax::swing::text::AttributeSet *);
|
108 |
|
|
public: // actually package-private
|
109 |
|
|
::java::net::URL * __attribute__((aligned(__alignof__( ::javax::swing::text::StyleContext)))) base;
|
110 |
|
|
jint baseFontSize;
|
111 |
|
|
private:
|
112 |
|
|
::java::util::ArrayList * linked;
|
113 |
|
|
public: // actually package-private
|
114 |
|
|
::java::util::ArrayList * css;
|
115 |
|
|
private:
|
116 |
|
|
::java::util::HashMap * resolvedStyles;
|
117 |
|
|
public:
|
118 |
|
|
static ::java::lang::Class class$;
|
119 |
|
|
};
|
120 |
|
|
|
121 |
|
|
#endif // __javax_swing_text_html_StyleSheet__
|