1 |
759 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __javax_swing_text_html_HTMLDocument$HTMLReader__
|
5 |
|
|
#define __javax_swing_text_html_HTMLDocument$HTMLReader__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <javax/swing/text/html/HTMLEditorKit$ParserCallback.h>
|
10 |
|
|
#include <gcj/array.h>
|
11 |
|
|
|
12 |
|
|
extern "Java"
|
13 |
|
|
{
|
14 |
|
|
namespace javax
|
15 |
|
|
{
|
16 |
|
|
namespace swing
|
17 |
|
|
{
|
18 |
|
|
namespace text
|
19 |
|
|
{
|
20 |
|
|
class MutableAttributeSet;
|
21 |
|
|
namespace html
|
22 |
|
|
{
|
23 |
|
|
class HTML$Tag;
|
24 |
|
|
class HTMLDocument;
|
25 |
|
|
class HTMLDocument$HTMLReader;
|
26 |
|
|
class HTMLDocument$HTMLReader$TagAction;
|
27 |
|
|
class Option;
|
28 |
|
|
class ResetablePlainDocument;
|
29 |
|
|
}
|
30 |
|
|
}
|
31 |
|
|
}
|
32 |
|
|
}
|
33 |
|
|
}
|
34 |
|
|
|
35 |
|
|
class javax::swing::text::html::HTMLDocument$HTMLReader : public ::javax::swing::text::html::HTMLEditorKit$ParserCallback
|
36 |
|
|
{
|
37 |
|
|
|
38 |
|
|
public:
|
39 |
|
|
HTMLDocument$HTMLReader(::javax::swing::text::html::HTMLDocument *, jint);
|
40 |
|
|
HTMLDocument$HTMLReader(::javax::swing::text::html::HTMLDocument *, jint, jint, jint, ::javax::swing::text::html::HTML$Tag *);
|
41 |
|
|
public: // actually package-private
|
42 |
|
|
virtual void initTags();
|
43 |
|
|
public: // actually protected
|
44 |
|
|
virtual void pushCharacterStyle();
|
45 |
|
|
virtual void popCharacterStyle();
|
46 |
|
|
virtual void registerTag(::javax::swing::text::html::HTML$Tag *, ::javax::swing::text::html::HTMLDocument$HTMLReader$TagAction *);
|
47 |
|
|
public:
|
48 |
|
|
virtual void flush();
|
49 |
|
|
private:
|
50 |
|
|
void flushImpl();
|
51 |
|
|
public:
|
52 |
|
|
virtual void handleText(JArray< jchar > *, jint);
|
53 |
|
|
private:
|
54 |
|
|
jboolean shouldInsert();
|
55 |
|
|
public:
|
56 |
|
|
virtual void handleStartTag(::javax::swing::text::html::HTML$Tag *, ::javax::swing::text::MutableAttributeSet *, jint);
|
57 |
|
|
virtual void handleComment(JArray< jchar > *, jint);
|
58 |
|
|
virtual void handleEndTag(::javax::swing::text::html::HTML$Tag *, jint);
|
59 |
|
|
virtual void handleSimpleTag(::javax::swing::text::html::HTML$Tag *, ::javax::swing::text::MutableAttributeSet *, jint);
|
60 |
|
|
virtual void handleEndOfLineString(::java::lang::String *);
|
61 |
|
|
public: // actually protected
|
62 |
|
|
virtual void textAreaContent(JArray< jchar > *);
|
63 |
|
|
virtual void preContent(JArray< jchar > *);
|
64 |
|
|
virtual void blockOpen(::javax::swing::text::html::HTML$Tag *, ::javax::swing::text::MutableAttributeSet *);
|
65 |
|
|
private:
|
66 |
|
|
jboolean inParagraph();
|
67 |
|
|
jboolean inImpliedParagraph();
|
68 |
|
|
public: // actually protected
|
69 |
|
|
virtual void blockClose(::javax::swing::text::html::HTML$Tag *);
|
70 |
|
|
virtual void addContent(JArray< jchar > *, jint, jint);
|
71 |
|
|
virtual void addContent(JArray< jchar > *, jint, jint, jboolean);
|
72 |
|
|
virtual void addSpecialElement(::javax::swing::text::html::HTML$Tag *, ::javax::swing::text::MutableAttributeSet *);
|
73 |
|
|
public: // actually package-private
|
74 |
|
|
static ::javax::swing::text::html::HTMLDocument * access$0(::javax::swing::text::html::HTMLDocument$HTMLReader *);
|
75 |
|
|
private:
|
76 |
|
|
static const jint MAX_THRESHOLD = 10000;
|
77 |
|
|
static const jint GROW_THRESHOLD = 5;
|
78 |
|
|
public: // actually protected
|
79 |
|
|
::javax::swing::text::MutableAttributeSet * __attribute__((aligned(__alignof__( ::javax::swing::text::html::HTMLEditorKit$ParserCallback)))) charAttr;
|
80 |
|
|
::java::util::Vector * parseBuffer;
|
81 |
|
|
private:
|
82 |
|
|
::java::util::Stack * parseStack;
|
83 |
|
|
public: // actually package-private
|
84 |
|
|
::java::util::Stack * charAttrStack;
|
85 |
|
|
::java::util::HashMap * tagToAction;
|
86 |
|
|
jboolean endHTMLEncountered;
|
87 |
|
|
jint popDepth;
|
88 |
|
|
jint pushDepth;
|
89 |
|
|
jint offset;
|
90 |
|
|
::javax::swing::text::html::HTML$Tag * insertTag;
|
91 |
|
|
jboolean insertTagEncountered;
|
92 |
|
|
jboolean debug;
|
93 |
|
|
jboolean inPreTag;
|
94 |
|
|
jboolean inStyleTag;
|
95 |
|
|
jboolean inTextArea;
|
96 |
|
|
::java::util::ArrayList * styles;
|
97 |
|
|
::javax::swing::text::html::ResetablePlainDocument * textAreaDocument;
|
98 |
|
|
::java::lang::Object * selectModel;
|
99 |
|
|
::javax::swing::text::html::Option * option;
|
100 |
|
|
jint numOptions;
|
101 |
|
|
::java::util::HashMap * buttonGroups;
|
102 |
|
|
private:
|
103 |
|
|
jint threshold;
|
104 |
|
|
public: // actually package-private
|
105 |
|
|
::javax::swing::text::html::HTMLDocument * this$0;
|
106 |
|
|
static jboolean $assertionsDisabled;
|
107 |
|
|
public:
|
108 |
|
|
static ::java::lang::Class class$;
|
109 |
|
|
};
|
110 |
|
|
|
111 |
|
|
#endif // __javax_swing_text_html_HTMLDocument$HTMLReader__
|