1 
2 // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
3 
4 #ifndef __javax_swing_text_html_BlockView__
5 #define __javax_swing_text_html_BlockView__
6 
7 #pragma interface
8 
9 #include <javax/swing/text/BoxView.h>
10 #include <gcj/array.h>
11 
12 extern "Java"
13 {
14   namespace gnu
15   {
16     namespace javax
17     {
18       namespace swing
19       {
20         namespace text
21         {
22           namespace html
23           {
24             namespace css
25             {
26                 class Length;
27             }
28           }
29         }
30       }
31     }
32   }
33   namespace java
34   {
35     namespace awt
36     {
37         class Graphics;
38         class Shape;
39     }
40   }
41   namespace javax
42   {
43     namespace swing
44     {
45         class SizeRequirements;
46       namespace event
47       {
48           class DocumentEvent;
49       }
50       namespace text
51       {
52           class AttributeSet;
53           class Element;
54           class View;
55           class ViewFactory;
56         namespace html
57         {
58             class BlockView;
59             class StyleSheet;
60             class StyleSheet$BoxPainter;
61         }
62       }
63     }
64   }
65 }
66 
67 class javax::swing::text::html::BlockView : public ::javax::swing::text::BoxView
68 {
69 
70 public:
71   BlockView(::javax::swing::text::Element *, jint);
72   virtual void setParent(::javax::swing::text::View *);
73 public: // actually protected
74   virtual ::javax::swing::SizeRequirements * calculateMajorAxisRequirements(jint, ::javax::swing::SizeRequirements *);
75   virtual ::javax::swing::SizeRequirements * calculateMinorAxisRequirements(jint, ::javax::swing::SizeRequirements *);
76 private:
77   jboolean setCSSSpan(::javax::swing::SizeRequirements *, jint);
78   void constrainSize(jint, ::javax::swing::SizeRequirements *, ::javax::swing::SizeRequirements *);
79 public: // actually protected
80   virtual void layoutMinorAxis(jint, jint, JArray< jint > *, JArray< jint > *);
81   virtual void layoutMajorAxis(jint, jint, JArray< jint > *, JArray< jint > *);
82 private:
83   void positionView(jint, jint, jint, JArray< jint > *, JArray< jint > *);
84 public:
85   virtual void paint(::java::awt::Graphics *, ::java::awt::Shape *);
86   virtual ::javax::swing::text::AttributeSet * getAttributes();
87   virtual jint getResizeWeight(jint);
88   virtual jfloat getAlignment(jint);
89   virtual void changedUpdate(::javax::swing::event::DocumentEvent *, ::java::awt::Shape *, ::javax::swing::text::ViewFactory *);
90   virtual jfloat getPreferredSpan(jint);
91   virtual jfloat getMinimumSpan(jint);
92   virtual jfloat getMaximumSpan(jint);
93 public: // actually protected
94   virtual void setPropertiesFromAttributes();
95   virtual ::javax::swing::text::html::StyleSheet * getStyleSheet();
96 public:
97   virtual void replace(jint, jint, JArray< ::javax::swing::text::View * > *);
98 private:
99   void fetchLayoutInfo(::javax::swing::text::View *);
100   ::javax::swing::text::AttributeSet * __attribute__((aligned(__alignof__( ::javax::swing::text::BoxView)))) attributes;
101 public: // actually package-private
102   ::javax::swing::text::html::StyleSheet$BoxPainter * painter;
103 private:
104   JArray< ::gnu::javax::swing::text::html::css::Length * > * cssSpans;
105   ::java::util::HashMap * positionInfo;
106 public:
107   static ::java::lang::Class class$;
108 };
109 
110 #endif // __javax_swing_text_html_BlockView__
111