summaryrefslogtreecommitdiff
path: root/libjava/javax/swing/text/html/HTMLWriter.h
blob: 63684b7933bd5365e28e1675cc7fba20bb709d3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __javax_swing_text_html_HTMLWriter__
#define __javax_swing_text_html_HTMLWriter__

#pragma interface

#include <javax/swing/text/AbstractWriter.h>
#include <gcj/array.h>

extern "Java"
{
  namespace javax
  {
    namespace swing
    {
      namespace text
      {
          class AttributeSet;
          class Element;
        namespace html
        {
            class HTML$Tag;
            class HTMLDocument;
            class HTMLWriter;
            class Option;
        }
      }
    }
  }
}

class javax::swing::text::html::HTMLWriter : public ::javax::swing::text::AbstractWriter
{

public:
  HTMLWriter(::java::io::Writer *, ::javax::swing::text::html::HTMLDocument *);
  HTMLWriter(::java::io::Writer *, ::javax::swing::text::html::HTMLDocument *, jint, jint);
  virtual void write();
public: // actually protected
  virtual void writeAttributes(::javax::swing::text::AttributeSet *);
  virtual void emptyTag(::javax::swing::text::Element *);
  virtual jboolean isBlockTag(::javax::swing::text::AttributeSet *);
  virtual void startTag(::javax::swing::text::Element *);
  virtual void textAreaContent(::javax::swing::text::AttributeSet *);
  virtual void text(::javax::swing::text::Element *);
  virtual void selectContent(::javax::swing::text::AttributeSet *);
  virtual void writeOption(::javax::swing::text::html::Option *);
  virtual void endTag(::javax::swing::text::Element *);
  virtual void comment(::javax::swing::text::Element *);
  virtual jboolean synthesizedElement(::javax::swing::text::Element *);
  virtual jboolean matchNameAttribute(::javax::swing::text::AttributeSet *, ::javax::swing::text::html::HTML$Tag *);
  virtual void writeEmbeddedTags(::javax::swing::text::AttributeSet *);
  virtual void closeOutUnwantedEmbeddedTags(::javax::swing::text::AttributeSet *);
  virtual void writeLineSeparator();
  virtual void output(JArray< jchar > *, jint, jint);
private:
  void traverse(::javax::swing::text::Element *);
  void traverseHtmlFragment(::javax::swing::text::Element *);
  void writeRaw(::java::lang::String *);
  void writeContent(::java::lang::String *);
  void writeAllAttributes(::javax::swing::text::AttributeSet *);
  jboolean hasHtmlEntity(::java::lang::String *);
  jboolean isCharHtmlEntity(jchar);
  ::java::lang::String * escapeCharHtmlEntity(jchar);
  ::java::io::Writer * __attribute__((aligned(__alignof__( ::javax::swing::text::AbstractWriter)))) outWriter;
  ::javax::swing::text::html::HTMLDocument * htmlDoc;
  ::java::util::HashSet * openEmbeddedTagHashSet;
  ::java::lang::String * new_line_str;
  JArray< jchar > * html_entity_char_arr;
  JArray< ::java::lang::String * > * html_entity_escape_str_arr;
  jint doc_pos;
  jint doc_len;
  jint doc_offset_remaining;
  jint doc_len_remaining;
  ::java::util::HashSet * htmlFragmentParentHashSet;
  ::javax::swing::text::Element * startElem;
  ::javax::swing::text::Element * endElem;
  jboolean fg_pass_start_elem;
  jboolean fg_pass_end_elem;
public:
  static ::java::lang::Class class$;
};

#endif // __javax_swing_text_html_HTMLWriter__