summaryrefslogtreecommitdiff
path: root/libjava/javax/swing/text/html/StyleSheet.h
blob: 57ebf9e3bf90dba4539a96f0755fa6f6edc9abe3 (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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __javax_swing_text_html_StyleSheet__
#define __javax_swing_text_html_StyleSheet__

#pragma interface

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

extern "Java"
{
  namespace java
  {
    namespace awt
    {
        class Color;
        class Font;
    }
    namespace net
    {
        class URL;
    }
  }
  namespace javax
  {
    namespace swing
    {
      namespace text
      {
          class AttributeSet;
          class Element;
          class MutableAttributeSet;
          class Style;
          class StyleContext$SmallAttributeSet;
          class View;
        namespace html
        {
            class CSS$Attribute;
            class HTML$Tag;
            class StyleSheet;
            class StyleSheet$BoxPainter;
            class StyleSheet$ListPainter;
        }
      }
    }
  }
}

class javax::swing::text::html::StyleSheet : public ::javax::swing::text::StyleContext
{

public:
  StyleSheet();
  virtual ::javax::swing::text::Style * getRule(::javax::swing::text::html::HTML$Tag *, ::javax::swing::text::Element *);
private:
  ::javax::swing::text::Style * getResolvedStyle(::java::lang::String *, ::java::util::List *, ::javax::swing::text::html::HTML$Tag *);
  ::javax::swing::text::Style * resolveStyle(::java::lang::String *, ::java::util::List *, ::javax::swing::text::html::HTML$Tag *);
  ::javax::swing::text::Style * resolveStyle(::java::lang::String *, JArray< ::java::lang::String * > *, ::java::util::List *);
public:
  virtual ::javax::swing::text::Style * getRule(::java::lang::String *);
  virtual void addRule(::java::lang::String *);
  virtual ::javax::swing::text::AttributeSet * getDeclaration(::java::lang::String *);
  virtual void loadRules(::java::io::Reader *, ::java::net::URL *);
  virtual ::javax::swing::text::AttributeSet * getViewAttributes(::javax::swing::text::View *);
  virtual void removeStyle(::java::lang::String *);
  virtual void addStyleSheet(::javax::swing::text::html::StyleSheet *);
  virtual void removeStyleSheet(::javax::swing::text::html::StyleSheet *);
  virtual JArray< ::javax::swing::text::html::StyleSheet * > * getStyleSheets();
  virtual void importStyleSheet(::java::net::URL *);
  virtual void setBase(::java::net::URL *);
  virtual ::java::net::URL * getBase();
  virtual void addCSSAttribute(::javax::swing::text::MutableAttributeSet *, ::javax::swing::text::html::CSS$Attribute *, ::java::lang::String *);
  virtual jboolean addCSSAttributeFromHTML(::javax::swing::text::MutableAttributeSet *, ::javax::swing::text::html::CSS$Attribute *, ::java::lang::String *);
  virtual ::javax::swing::text::AttributeSet * translateHTMLToCSS(::javax::swing::text::AttributeSet *);
private:
  ::javax::swing::text::AttributeSet * translateBorder(::javax::swing::text::AttributeSet *, ::java::lang::Object *);
public:
  virtual ::javax::swing::text::AttributeSet * addAttribute(::javax::swing::text::AttributeSet *, ::java::lang::Object *, ::java::lang::Object *);
  virtual ::javax::swing::text::AttributeSet * addAttributes(::javax::swing::text::AttributeSet *, ::javax::swing::text::AttributeSet *);
  virtual ::javax::swing::text::AttributeSet * removeAttribute(::javax::swing::text::AttributeSet *, ::java::lang::Object *);
  virtual ::javax::swing::text::AttributeSet * removeAttributes(::javax::swing::text::AttributeSet *, ::javax::swing::text::AttributeSet *);
  virtual ::javax::swing::text::AttributeSet * removeAttributes(::javax::swing::text::AttributeSet *, ::java::util::Enumeration *);
public: // actually protected
  virtual ::javax::swing::text::StyleContext$SmallAttributeSet * createSmallAttributeSet(::javax::swing::text::AttributeSet *);
  virtual ::javax::swing::text::MutableAttributeSet * createLargeAttributeSet(::javax::swing::text::AttributeSet *);
public:
  virtual ::java::awt::Font * getFont(::javax::swing::text::AttributeSet *);
public: // actually package-private
  virtual jfloat getEMBase(::javax::swing::text::AttributeSet *);
  virtual jfloat getEXBase(::javax::swing::text::AttributeSet *);
private:
  jint getFontSize(::javax::swing::text::AttributeSet *);
public:
  virtual ::java::awt::Color * getForeground(::javax::swing::text::AttributeSet *);
  virtual ::java::awt::Color * getBackground(::javax::swing::text::AttributeSet *);
  virtual ::javax::swing::text::html::StyleSheet$BoxPainter * getBoxPainter(::javax::swing::text::AttributeSet *);
  virtual ::javax::swing::text::html::StyleSheet$ListPainter * getListPainter(::javax::swing::text::AttributeSet *);
  virtual void setBaseFontSize(jint);
  virtual void setBaseFontSize(::java::lang::String *);
  static jint getIndexOfSize(jfloat);
  virtual jfloat getPointSize(jint);
  virtual jfloat getPointSize(::java::lang::String *);
  virtual ::java::awt::Color * stringToColor(::java::lang::String *);
private:
  ::java::util::Map * attributeSetToMap(::javax::swing::text::AttributeSet *);
public: // actually package-private
  ::java::net::URL * __attribute__((aligned(__alignof__( ::javax::swing::text::StyleContext)))) base;
  jint baseFontSize;
private:
  ::java::util::ArrayList * linked;
public: // actually package-private
  ::java::util::ArrayList * css;
private:
  ::java::util::HashMap * resolvedStyles;
public:
  static ::java::lang::Class class$;
};

#endif // __javax_swing_text_html_StyleSheet__