1 |
759 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __javax_swing_text_DefaultStyledDocument__
|
5 |
|
|
#define __javax_swing_text_DefaultStyledDocument__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <javax/swing/text/AbstractDocument.h>
|
10 |
|
|
#include <gcj/array.h>
|
11 |
|
|
|
12 |
|
|
extern "Java"
|
13 |
|
|
{
|
14 |
|
|
namespace java
|
15 |
|
|
{
|
16 |
|
|
namespace awt
|
17 |
|
|
{
|
18 |
|
|
class Color;
|
19 |
|
|
class Font;
|
20 |
|
|
}
|
21 |
|
|
}
|
22 |
|
|
namespace javax
|
23 |
|
|
{
|
24 |
|
|
namespace swing
|
25 |
|
|
{
|
26 |
|
|
namespace text
|
27 |
|
|
{
|
28 |
|
|
class AbstractDocument$AbstractElement;
|
29 |
|
|
class AbstractDocument$Content;
|
30 |
|
|
class AbstractDocument$DefaultDocumentEvent;
|
31 |
|
|
class AttributeSet;
|
32 |
|
|
class DefaultStyledDocument;
|
33 |
|
|
class DefaultStyledDocument$ElementBuffer;
|
34 |
|
|
class DefaultStyledDocument$ElementSpec;
|
35 |
|
|
class DefaultStyledDocument$StyleChangeListener;
|
36 |
|
|
class Element;
|
37 |
|
|
class Style;
|
38 |
|
|
class StyleContext;
|
39 |
|
|
}
|
40 |
|
|
}
|
41 |
|
|
}
|
42 |
|
|
}
|
43 |
|
|
|
44 |
|
|
class javax::swing::text::DefaultStyledDocument : public ::javax::swing::text::AbstractDocument
|
45 |
|
|
{
|
46 |
|
|
|
47 |
|
|
public:
|
48 |
|
|
DefaultStyledDocument();
|
49 |
|
|
DefaultStyledDocument(::javax::swing::text::StyleContext *);
|
50 |
|
|
DefaultStyledDocument(::javax::swing::text::AbstractDocument$Content *, ::javax::swing::text::StyleContext *);
|
51 |
|
|
virtual ::javax::swing::text::Style * addStyle(::java::lang::String *, ::javax::swing::text::Style *);
|
52 |
|
|
public: // actually protected
|
53 |
|
|
virtual ::javax::swing::text::AbstractDocument$AbstractElement * createDefaultRoot();
|
54 |
|
|
public:
|
55 |
|
|
virtual ::javax::swing::text::Element * getCharacterElement(jint);
|
56 |
|
|
virtual ::java::awt::Color * getBackground(::javax::swing::text::AttributeSet *);
|
57 |
|
|
virtual ::javax::swing::text::Element * getDefaultRootElement();
|
58 |
|
|
virtual ::java::awt::Font * getFont(::javax::swing::text::AttributeSet *);
|
59 |
|
|
virtual ::java::awt::Color * getForeground(::javax::swing::text::AttributeSet *);
|
60 |
|
|
virtual ::javax::swing::text::Style * getLogicalStyle(jint);
|
61 |
|
|
virtual ::javax::swing::text::Element * getParagraphElement(jint);
|
62 |
|
|
virtual ::javax::swing::text::Style * getStyle(::java::lang::String *);
|
63 |
|
|
virtual void removeStyle(::java::lang::String *);
|
64 |
|
|
virtual void setCharacterAttributes(jint, jint, ::javax::swing::text::AttributeSet *, jboolean);
|
65 |
|
|
virtual void setLogicalStyle(jint, ::javax::swing::text::Style *);
|
66 |
|
|
virtual void setParagraphAttributes(jint, jint, ::javax::swing::text::AttributeSet *, jboolean);
|
67 |
|
|
public: // actually protected
|
68 |
|
|
virtual void insertUpdate(::javax::swing::text::AbstractDocument$DefaultDocumentEvent *, ::javax::swing::text::AttributeSet *);
|
69 |
|
|
private:
|
70 |
|
|
jshort insertAfterNewline(::javax::swing::text::Element *, ::javax::swing::text::Element *, ::javax::swing::text::AttributeSet *, ::java::util::ArrayList *, jint, jint);
|
71 |
|
|
public: // actually package-private
|
72 |
|
|
virtual jshort handleInsertAfterNewline(::java::util::Vector *, jint, jint, ::javax::swing::text::Element *, ::javax::swing::text::Element *, ::javax::swing::text::AttributeSet *);
|
73 |
|
|
public: // actually protected
|
74 |
|
|
virtual void removeUpdate(::javax::swing::text::AbstractDocument$DefaultDocumentEvent *);
|
75 |
|
|
public:
|
76 |
|
|
virtual ::java::util::Enumeration * getStyleNames();
|
77 |
|
|
public: // actually protected
|
78 |
|
|
virtual void styleChanged(::javax::swing::text::Style *);
|
79 |
|
|
virtual void insert(jint, JArray< ::javax::swing::text::DefaultStyledDocument$ElementSpec * > *);
|
80 |
|
|
virtual void create(JArray< ::javax::swing::text::DefaultStyledDocument$ElementSpec * > *);
|
81 |
|
|
private:
|
82 |
|
|
static const jlong serialVersionUID = 940485415728614849LL;
|
83 |
|
|
public:
|
84 |
|
|
static const jint BUFFER_SIZE_DEFAULT = 4096;
|
85 |
|
|
public: // actually protected
|
86 |
|
|
::javax::swing::text::DefaultStyledDocument$ElementBuffer * __attribute__((aligned(__alignof__( ::javax::swing::text::AbstractDocument)))) buffer;
|
87 |
|
|
private:
|
88 |
|
|
::javax::swing::text::DefaultStyledDocument$StyleChangeListener * styleChangeListener;
|
89 |
|
|
public: // actually package-private
|
90 |
|
|
static jboolean $assertionsDisabled;
|
91 |
|
|
public:
|
92 |
|
|
static ::java::lang::Class class$;
|
93 |
|
|
};
|
94 |
|
|
|
95 |
|
|
#endif // __javax_swing_text_DefaultStyledDocument__
|