1 
2 // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
3 
4 #ifndef __javax_swing_text_AbstractDocument__
5 #define __javax_swing_text_AbstractDocument__
6 
7 #pragma interface
8 
9 #include <java/lang/Object.h>
10 #include <gcj/array.h>
11 
12 extern "Java"
13 {
14   namespace java
15   {
16     namespace text
17     {
18         class Bidi;
19     }
20   }
21   namespace javax
22   {
23     namespace swing
24     {
25       namespace event
26       {
27           class DocumentEvent;
28           class DocumentListener;
29           class EventListenerList;
30           class UndoableEditEvent;
31           class UndoableEditListener;
32       }
33       namespace text
34       {
35           class AbstractDocument;
36           class AbstractDocument$AttributeContext;
37           class AbstractDocument$BidiRootElement;
38           class AbstractDocument$Content;
39           class AbstractDocument$DefaultDocumentEvent;
40           class AttributeSet;
41           class DocumentFilter;
42           class DocumentFilter$FilterBypass;
43           class Element;
44           class Position;
45           class Segment;
46       }
47     }
48   }
49 }
50 
51 class javax::swing::text::AbstractDocument : public ::java::lang::Object
52 {
53 
54 public: // actually protected
55   AbstractDocument(::javax::swing::text::AbstractDocument$Content *);
56   AbstractDocument(::javax::swing::text::AbstractDocument$Content *, ::javax::swing::text::AbstractDocument$AttributeContext *);
57 private:
58   ::javax::swing::text::DocumentFilter$FilterBypass * getBypass();
59 public:
60   virtual ::javax::swing::text::Element * getParagraphElement(jint) = 0;
61   virtual ::javax::swing::text::Element * getDefaultRootElement() = 0;
62 public: // actually protected
63   virtual ::javax::swing::text::Element * createBranchElement(::javax::swing::text::Element *, ::javax::swing::text::AttributeSet *);
64   virtual ::javax::swing::text::Element * createLeafElement(::javax::swing::text::Element *, ::javax::swing::text::AttributeSet *, jint, jint);
65 public:
66   virtual ::javax::swing::text::Position * createPosition(jint);
67 public: // actually protected
68   virtual void fireChangedUpdate(::javax::swing::event::DocumentEvent *);
69   virtual void fireInsertUpdate(::javax::swing::event::DocumentEvent *);
70   virtual void fireRemoveUpdate(::javax::swing::event::DocumentEvent *);
71   virtual void fireUndoableEditUpdate(::javax::swing::event::UndoableEditEvent *);
72 public:
73   virtual jint getAsynchronousLoadPriority();
74 public: // actually protected
75   virtual ::javax::swing::text::AbstractDocument$AttributeContext * getAttributeContext();
76 public:
77   virtual ::javax::swing::text::Element * getBidiRootElement();
78 public: // actually protected
79   virtual ::javax::swing::text::AbstractDocument$Content * getContent();
80   virtual ::java::lang::Thread * getCurrentWriter();
81 public:
82   virtual ::java::util::Dictionary * getDocumentProperties();
83   virtual ::javax::swing::text::Position * getEndPosition();
84   virtual jint getLength();
85   virtual JArray< ::java::util::EventListener * > * getListeners(::java::lang::Class *);
86   virtual ::java::lang::Object * getProperty(::java::lang::Object *);
87   virtual JArray< ::javax::swing::text::Element * > * getRootElements();
88   virtual ::javax::swing::text::Position * getStartPosition();
89   virtual ::java::lang::String * getText(jint, jint);
90   virtual void getText(jint, jint, ::javax::swing::text::Segment *);
91   virtual void insertString(jint, ::java::lang::String *, ::javax::swing::text::AttributeSet *);
92 public: // actually package-private
93   virtual void insertStringImpl(jint, ::java::lang::String *, ::javax::swing::text::AttributeSet *);
94 public: // actually protected
95   virtual void insertUpdate(::javax::swing::text::AbstractDocument$DefaultDocumentEvent *, ::javax::swing::text::AttributeSet *);
96   virtual void postRemoveUpdate(::javax::swing::text::AbstractDocument$DefaultDocumentEvent *);
97 public:
98   virtual void putProperty(::java::lang::Object *, ::java::lang::Object *);
99 private:
100   void updateBidi(::javax::swing::text::AbstractDocument$DefaultDocumentEvent *);
101   JArray< ::java::text::Bidi * > * getBidis(jint, jint);
102 public:
103   virtual void readLock();
104   virtual void readUnlock();
105   virtual void remove(jint, jint);
106 public: // actually package-private
107   virtual void removeImpl(jint, jint);
108 public:
109   virtual void replace(jint, jint, ::java::lang::String *, ::javax::swing::text::AttributeSet *);
110 public: // actually package-private
111   virtual void replaceImpl(jint, jint, ::java::lang::String *, ::javax::swing::text::AttributeSet *);
112 public:
113   virtual void addDocumentListener(::javax::swing::event::DocumentListener *);
114   virtual void removeDocumentListener(::javax::swing::event::DocumentListener *);
115   virtual JArray< ::javax::swing::event::DocumentListener * > * getDocumentListeners();
116   virtual void addUndoableEditListener(::javax::swing::event::UndoableEditListener *);
117   virtual void removeUndoableEditListener(::javax::swing::event::UndoableEditListener *);
118   virtual JArray< ::javax::swing::event::UndoableEditListener * > * getUndoableEditListeners();
119 public: // actually protected
120   virtual void removeUpdate(::javax::swing::text::AbstractDocument$DefaultDocumentEvent *);
121 public:
122   virtual void render(::java::lang::Runnable *);
123   virtual void setAsynchronousLoadPriority(jint);
124   virtual void setDocumentProperties(::java::util::Dictionary *);
125 public: // actually protected
126   virtual void writeLock();
127   virtual void writeUnlock();
128 public:
129   virtual ::javax::swing::text::DocumentFilter * getDocumentFilter();
130   virtual void setDocumentFilter(::javax::swing::text::DocumentFilter *);
131   virtual void dump(::java::io::PrintStream *);
132 private:
133   static const jlong serialVersionUID = 6842927725919637215LL;
134 public: // actually protected
135   static ::java::lang::String * BAD_LOCATION;
136 public:
137   static ::java::lang::String * BidiElementName;
138   static ::java::lang::String * ContentElementName;
139   static ::java::lang::String * ParagraphElementName;
140   static ::java::lang::String * SectionElementName;
141   static ::java::lang::String * ElementNameAttribute;
142 private:
143   static ::java::lang::String * BidiRootName;
144   static ::java::lang::String * AsyncLoadPriority;
145   static ::java::lang::String * I18N;
146 public: // actually package-private
147   ::javax::swing::text::AbstractDocument$Content * __attribute__((aligned(__alignof__( ::java::lang::Object)))) content;
148   ::javax::swing::text::AbstractDocument$AttributeContext * context;
149   ::javax::swing::text::DocumentFilter * documentFilter;
150   ::java::util::Dictionary * properties;
151 public: // actually protected
152   ::javax::swing::event::EventListenerList * listenerList;
153 private:
154   ::java::lang::Thread * currentWriter;
155   jint numReaders;
156   jint numWriters;
157   ::javax::swing::text::DocumentFilter$FilterBypass * bypass;
158   ::javax::swing::text::AbstractDocument$BidiRootElement * bidiRoot;
159   jboolean notifyListeners;
160 public: // actually package-private
161   static jboolean $assertionsDisabled;
162 public:
163   static ::java::lang::Class class$;
164 };
165 
166 #endif // __javax_swing_text_AbstractDocument__
167