DefaultStyledDocument.h 3.9 KB

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