summaryrefslogtreecommitdiff
path: root/libjava/javax/swing/text/html/MinimalHTMLWriter.h
blob: a44b170055d6500fddd3b785c93e14e6687f991c (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
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __javax_swing_text_html_MinimalHTMLWriter__
#define __javax_swing_text_html_MinimalHTMLWriter__

#pragma interface

#include <javax/swing/text/AbstractWriter.h>
extern "Java"
{
  namespace java
  {
    namespace awt
    {
        class Color;
    }
  }
  namespace javax
  {
    namespace swing
    {
      namespace text
      {
          class AttributeSet;
          class Element;
          class Style;
          class StyledDocument;
        namespace html
        {
            class MinimalHTMLWriter;
        }
      }
    }
  }
}

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

public:
  MinimalHTMLWriter(::java::io::Writer *, ::javax::swing::text::StyledDocument *);
  MinimalHTMLWriter(::java::io::Writer *, ::javax::swing::text::StyledDocument *, jint, jint);
public: // actually protected
  virtual void startFontTag(::java::lang::String *);
  virtual jboolean inFontTag();
  virtual void endFontTag();
public:
  virtual void write();
public: // actually protected
  virtual void writeStartTag(::java::lang::String *);
  virtual void writeEndTag(::java::lang::String *);
  virtual void writeHeader();
  virtual void writeStartParagraph(::javax::swing::text::Element *);
  virtual void writeEndParagraph();
  virtual void writeBody();
  virtual void text(::javax::swing::text::Element *);
  virtual void writeHTMLTags(::javax::swing::text::AttributeSet *);
  virtual jboolean isText(::javax::swing::text::Element *);
  virtual void writeContent(::javax::swing::text::Element *, jboolean);
  virtual void writeLeaf(::javax::swing::text::Element *);
  virtual void writeNonHTMLAttributes(::javax::swing::text::AttributeSet *);
  virtual void writeStyles();
  virtual void writeAttributes(::javax::swing::text::AttributeSet *);
  virtual void writeComponent(::javax::swing::text::Element *);
  virtual void writeImage(::javax::swing::text::Element *);
private:
  ::java::lang::String * getAttribute(::java::lang::String *, ::java::lang::Object *);
  ::java::lang::String * getColor(::java::awt::Color *);
  void endOpenTags();
  void writeStyle(::javax::swing::text::Style *);
  jboolean hasText(::javax::swing::text::Element *);
  ::javax::swing::text::StyledDocument * __attribute__((aligned(__alignof__( ::javax::swing::text::AbstractWriter)))) doc;
  ::java::util::Deque * tagStack;
  jboolean inFontTag__;
public:
  static ::java::lang::Class class$;
};

#endif // __javax_swing_text_html_MinimalHTMLWriter__