00001
00002
00003 #ifndef _LIBGNOMECANVASMM_RICH_TEXT_H
00004 #define _LIBGNOMECANVASMM_RICH_TEXT_H
00005
00006 #include <glibmm.h>
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031 #include <gtkmm/textbuffer.h>
00032 #include <libgnomecanvasmm/item.h>
00033 #include <libgnomecanvas/gnome-canvas-rich-text.h>
00034
00035
00036 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00037 typedef struct _GnomeCanvasRichText GnomeCanvasRichText;
00038 typedef struct _GnomeCanvasRichTextClass GnomeCanvasRichTextClass;
00039 #endif
00040
00041
00042 namespace Gnome
00043 {
00044
00045 namespace Canvas
00046 { class RichText_Class; }
00047
00048 }
00049 namespace Gnome
00050 {
00051
00052 namespace Canvas
00053 {
00054
00055
00056 class RichText : public Item
00057 {
00058 public:
00059 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00060 typedef RichText CppObjectType;
00061 typedef RichText_Class CppClassType;
00062 typedef GnomeCanvasRichText BaseObjectType;
00063 typedef GnomeCanvasRichTextClass BaseClassType;
00064 #endif
00065
00066 virtual ~RichText();
00067
00068 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00069
00070 private:
00071 friend class RichText_Class;
00072 static CppClassType richtext_class_;
00073
00074
00075 RichText(const RichText&);
00076 RichText& operator=(const RichText&);
00077
00078 protected:
00079 explicit RichText(const Glib::ConstructParams& construct_params);
00080 explicit RichText(GnomeCanvasRichText* castitem);
00081
00082 #endif
00083
00084 public:
00085 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00086 static GType get_type() G_GNUC_CONST;
00087 static GType get_base_type() G_GNUC_CONST;
00088 #endif
00089
00091 GnomeCanvasRichText* gobj() { return reinterpret_cast<GnomeCanvasRichText*>(gobject_); }
00092
00094 const GnomeCanvasRichText* gobj() const { return reinterpret_cast<GnomeCanvasRichText*>(gobject_); }
00095
00096
00097 public:
00098
00099
00100 protected:
00101
00102
00103
00104 virtual void on_tag_changed(const Glib::RefPtr<Gtk::TextTag>& tag);
00105
00106
00107 private:
00108
00109
00110 public:
00111 typedef Gtk::TextIter iterator;
00112
00113 RichText(Group& parent, double x, double y, const Glib::ustring& text);
00114 explicit RichText(Group& parent);
00115
00116
00117 void cut_clipboard();
00118
00119 void copy_clipboard();
00120
00121 void paste_clipboard();
00122
00123
00124 void set_buffer(const Glib::RefPtr<Gtk::TextBuffer>& buffer);
00125
00126 Glib::RefPtr<Gtk::TextBuffer> get_buffer() const;
00127
00128
00129 void get_iter_location(const iterator& iter, Gdk::Rectangle& location) const;
00130 iterator get_iter_at_location(int x, int y) const;
00131
00132
00133 Glib::SignalProxy1< void,const Glib::RefPtr<Gtk::TextTag>& > signal_tag_changed();
00134
00135
00142 Glib::PropertyProxy<Glib::ustring> property_text() ;
00143
00150 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_text() const;
00151
00158 Glib::PropertyProxy<double> property_x() ;
00159
00166 Glib::PropertyProxy_ReadOnly<double> property_x() const;
00167
00174 Glib::PropertyProxy<double> property_y() ;
00175
00182 Glib::PropertyProxy_ReadOnly<double> property_y() const;
00183
00190 Glib::PropertyProxy<double> property_width() ;
00191
00198 Glib::PropertyProxy_ReadOnly<double> property_width() const;
00199
00206 Glib::PropertyProxy<double> property_height() ;
00207
00214 Glib::PropertyProxy_ReadOnly<double> property_height() const;
00215
00222 Glib::PropertyProxy<bool> property_editable() ;
00223
00230 Glib::PropertyProxy_ReadOnly<bool> property_editable() const;
00231
00238 Glib::PropertyProxy<bool> property_visible() ;
00239
00246 Glib::PropertyProxy_ReadOnly<bool> property_visible() const;
00247
00254 Glib::PropertyProxy<bool> property_cursor_visible() ;
00255
00262 Glib::PropertyProxy_ReadOnly<bool> property_cursor_visible() const;
00263
00270 Glib::PropertyProxy<bool> property_cursor_blink() ;
00271
00278 Glib::PropertyProxy_ReadOnly<bool> property_cursor_blink() const;
00279
00286 Glib::PropertyProxy<bool> property_grow_height() ;
00287
00294 Glib::PropertyProxy_ReadOnly<bool> property_grow_height() const;
00295
00302 Glib::PropertyProxy<Gtk::WrapMode> property_wrap_mode() ;
00303
00310 Glib::PropertyProxy_ReadOnly<Gtk::WrapMode> property_wrap_mode() const;
00311
00318 Glib::PropertyProxy<Gtk::Justification> property_justification() ;
00319
00326 Glib::PropertyProxy_ReadOnly<Gtk::Justification> property_justification() const;
00327
00334 Glib::PropertyProxy<Gtk::DirectionType> property_direction() ;
00335
00342 Glib::PropertyProxy_ReadOnly<Gtk::DirectionType> property_direction() const;
00343
00350 Glib::PropertyProxy<Gtk::AnchorType> property_anchor() ;
00351
00358 Glib::PropertyProxy_ReadOnly<Gtk::AnchorType> property_anchor() const;
00359
00366 Glib::PropertyProxy<int> property_pixels_above_lines() ;
00367
00374 Glib::PropertyProxy_ReadOnly<int> property_pixels_above_lines() const;
00375
00382 Glib::PropertyProxy<int> property_pixels_below_lines() ;
00383
00390 Glib::PropertyProxy_ReadOnly<int> property_pixels_below_lines() const;
00391
00398 Glib::PropertyProxy<int> property_pixels_inside_wrap() ;
00399
00406 Glib::PropertyProxy_ReadOnly<int> property_pixels_inside_wrap() const;
00407
00414 Glib::PropertyProxy<int> property_left_margin() ;
00415
00422 Glib::PropertyProxy_ReadOnly<int> property_left_margin() const;
00423
00430 Glib::PropertyProxy<int> property_right_margin() ;
00431
00438 Glib::PropertyProxy_ReadOnly<int> property_right_margin() const;
00439
00446 Glib::PropertyProxy<int> property_indent() ;
00447
00454 Glib::PropertyProxy_ReadOnly<int> property_indent() const;
00455
00456
00457 };
00458
00459 }
00460 }
00461
00462 namespace Glib
00463 {
00469 Gnome::Canvas::RichText* wrap(GnomeCanvasRichText* object, bool take_copy = false);
00470 }
00471 #endif
00472