1 |
759 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __javax_swing_text_html_HTMLWriter__
|
5 |
|
|
#define __javax_swing_text_html_HTMLWriter__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <javax/swing/text/AbstractWriter.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 AttributeSet;
|
21 |
|
|
class Element;
|
22 |
|
|
namespace html
|
23 |
|
|
{
|
24 |
|
|
class HTML$Tag;
|
25 |
|
|
class HTMLDocument;
|
26 |
|
|
class HTMLWriter;
|
27 |
|
|
class Option;
|
28 |
|
|
}
|
29 |
|
|
}
|
30 |
|
|
}
|
31 |
|
|
}
|
32 |
|
|
}
|
33 |
|
|
|
34 |
|
|
class javax::swing::text::html::HTMLWriter : public ::javax::swing::text::AbstractWriter
|
35 |
|
|
{
|
36 |
|
|
|
37 |
|
|
public:
|
38 |
|
|
HTMLWriter(::java::io::Writer *, ::javax::swing::text::html::HTMLDocument *);
|
39 |
|
|
HTMLWriter(::java::io::Writer *, ::javax::swing::text::html::HTMLDocument *, jint, jint);
|
40 |
|
|
virtual void write();
|
41 |
|
|
public: // actually protected
|
42 |
|
|
virtual void writeAttributes(::javax::swing::text::AttributeSet *);
|
43 |
|
|
virtual void emptyTag(::javax::swing::text::Element *);
|
44 |
|
|
virtual jboolean isBlockTag(::javax::swing::text::AttributeSet *);
|
45 |
|
|
virtual void startTag(::javax::swing::text::Element *);
|
46 |
|
|
virtual void textAreaContent(::javax::swing::text::AttributeSet *);
|
47 |
|
|
virtual void text(::javax::swing::text::Element *);
|
48 |
|
|
virtual void selectContent(::javax::swing::text::AttributeSet *);
|
49 |
|
|
virtual void writeOption(::javax::swing::text::html::Option *);
|
50 |
|
|
virtual void endTag(::javax::swing::text::Element *);
|
51 |
|
|
virtual void comment(::javax::swing::text::Element *);
|
52 |
|
|
virtual jboolean synthesizedElement(::javax::swing::text::Element *);
|
53 |
|
|
virtual jboolean matchNameAttribute(::javax::swing::text::AttributeSet *, ::javax::swing::text::html::HTML$Tag *);
|
54 |
|
|
virtual void writeEmbeddedTags(::javax::swing::text::AttributeSet *);
|
55 |
|
|
virtual void closeOutUnwantedEmbeddedTags(::javax::swing::text::AttributeSet *);
|
56 |
|
|
virtual void writeLineSeparator();
|
57 |
|
|
virtual void output(JArray< jchar > *, jint, jint);
|
58 |
|
|
private:
|
59 |
|
|
void traverse(::javax::swing::text::Element *);
|
60 |
|
|
void traverseHtmlFragment(::javax::swing::text::Element *);
|
61 |
|
|
void writeRaw(::java::lang::String *);
|
62 |
|
|
void writeContent(::java::lang::String *);
|
63 |
|
|
void writeAllAttributes(::javax::swing::text::AttributeSet *);
|
64 |
|
|
jboolean hasHtmlEntity(::java::lang::String *);
|
65 |
|
|
jboolean isCharHtmlEntity(jchar);
|
66 |
|
|
::java::lang::String * escapeCharHtmlEntity(jchar);
|
67 |
|
|
::java::io::Writer * __attribute__((aligned(__alignof__( ::javax::swing::text::AbstractWriter)))) outWriter;
|
68 |
|
|
::javax::swing::text::html::HTMLDocument * htmlDoc;
|
69 |
|
|
::java::util::HashSet * openEmbeddedTagHashSet;
|
70 |
|
|
::java::lang::String * new_line_str;
|
71 |
|
|
JArray< jchar > * html_entity_char_arr;
|
72 |
|
|
JArray< ::java::lang::String * > * html_entity_escape_str_arr;
|
73 |
|
|
jint doc_pos;
|
74 |
|
|
jint doc_len;
|
75 |
|
|
jint doc_offset_remaining;
|
76 |
|
|
jint doc_len_remaining;
|
77 |
|
|
::java::util::HashSet * htmlFragmentParentHashSet;
|
78 |
|
|
::javax::swing::text::Element * startElem;
|
79 |
|
|
::javax::swing::text::Element * endElem;
|
80 |
|
|
jboolean fg_pass_start_elem;
|
81 |
|
|
jboolean fg_pass_end_elem;
|
82 |
|
|
public:
|
83 |
|
|
static ::java::lang::Class class$;
|
84 |
|
|
};
|
85 |
|
|
|
86 |
|
|
#endif // __javax_swing_text_html_HTMLWriter__
|