StyledDocument.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __javax_swing_text_StyledDocument__
  3. #define __javax_swing_text_StyledDocument__
  4. #pragma interface
  5. #include <java/lang/Object.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 event
  22. {
  23. class DocumentListener;
  24. class UndoableEditListener;
  25. }
  26. namespace text
  27. {
  28. class AttributeSet;
  29. class Element;
  30. class Position;
  31. class Segment;
  32. class Style;
  33. class StyledDocument;
  34. }
  35. }
  36. }
  37. }
  38. class javax::swing::text::StyledDocument : public ::java::lang::Object
  39. {
  40. public:
  41. virtual ::javax::swing::text::Style * addStyle(::java::lang::String *, ::javax::swing::text::Style *) = 0;
  42. virtual void removeStyle(::java::lang::String *) = 0;
  43. virtual ::javax::swing::text::Style * getStyle(::java::lang::String *) = 0;
  44. virtual void setCharacterAttributes(jint, jint, ::javax::swing::text::AttributeSet *, jboolean) = 0;
  45. virtual void setParagraphAttributes(jint, jint, ::javax::swing::text::AttributeSet *, jboolean) = 0;
  46. virtual ::javax::swing::text::Style * getLogicalStyle(jint) = 0;
  47. virtual void setLogicalStyle(jint, ::javax::swing::text::Style *) = 0;
  48. virtual ::javax::swing::text::Element * getParagraphElement(jint) = 0;
  49. virtual ::javax::swing::text::Element * getCharacterElement(jint) = 0;
  50. virtual ::java::awt::Color * getForeground(::javax::swing::text::AttributeSet *) = 0;
  51. virtual ::java::awt::Color * getBackground(::javax::swing::text::AttributeSet *) = 0;
  52. virtual ::java::awt::Font * getFont(::javax::swing::text::AttributeSet *) = 0;
  53. virtual void addDocumentListener(::javax::swing::event::DocumentListener *) = 0;
  54. virtual void addUndoableEditListener(::javax::swing::event::UndoableEditListener *) = 0;
  55. virtual ::javax::swing::text::Position * createPosition(jint) = 0;
  56. virtual ::javax::swing::text::Element * getDefaultRootElement() = 0;
  57. virtual ::javax::swing::text::Position * getEndPosition() = 0;
  58. virtual jint getLength() = 0;
  59. virtual ::java::lang::Object * getProperty(::java::lang::Object *) = 0;
  60. virtual JArray< ::javax::swing::text::Element * > * getRootElements() = 0;
  61. virtual ::javax::swing::text::Position * getStartPosition() = 0;
  62. virtual ::java::lang::String * getText(jint, jint) = 0;
  63. virtual void getText(jint, jint, ::javax::swing::text::Segment *) = 0;
  64. virtual void insertString(jint, ::java::lang::String *, ::javax::swing::text::AttributeSet *) = 0;
  65. virtual void putProperty(::java::lang::Object *, ::java::lang::Object *) = 0;
  66. virtual void remove(jint, jint) = 0;
  67. virtual void removeDocumentListener(::javax::swing::event::DocumentListener *) = 0;
  68. virtual void removeUndoableEditListener(::javax::swing::event::UndoableEditListener *) = 0;
  69. virtual void render(::java::lang::Runnable *) = 0;
  70. static ::java::lang::Class class$;
  71. } __attribute__ ((java_interface));
  72. #endif // __javax_swing_text_StyledDocument__