00001
00002
00003 #ifndef _LIBGNOMECANVASMM_RICH_TEXT_H
00004 #define _LIBGNOMECANVASMM_RICH_TEXT_H
00005
00006
00007 #include <glibmm.h>
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032 #include <gtkmm/textbuffer.h>
00033 #include <libgnomecanvasmm/item.h>
00034 #include <libgnomecanvas/gnome-canvas-rich-text.h>
00035
00036
00037 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00038 typedef struct _GnomeCanvasRichText GnomeCanvasRichText;
00039 typedef struct _GnomeCanvasRichTextClass GnomeCanvasRichTextClass;
00040 #endif
00041
00042
00043 namespace Gnome
00044 {
00045
00046 namespace Canvas
00047 { class RichText_Class; }
00048
00049 }
00050 namespace Gnome
00051 {
00052
00053 namespace Canvas
00054 {
00055
00056
00057 class RichText : public Item
00058 {
00059 public:
00060 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00061 typedef RichText CppObjectType;
00062 typedef RichText_Class CppClassType;
00063 typedef GnomeCanvasRichText BaseObjectType;
00064 typedef GnomeCanvasRichTextClass BaseClassType;
00065 #endif
00066
00067 virtual ~RichText();
00068
00069 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00070
00071 private:
00072 friend class RichText_Class;
00073 static CppClassType richtext_class_;
00074
00075
00076 RichText(const RichText&);
00077 RichText& operator=(const RichText&);
00078
00079 protected:
00080 explicit RichText(const Glib::ConstructParams& construct_params);
00081 explicit RichText(GnomeCanvasRichText* castitem);
00082
00083 #endif
00084
00085 public:
00086 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00087 static GType get_type() G_GNUC_CONST;
00088 static GType get_base_type() G_GNUC_CONST;
00089 #endif
00090
00092 GnomeCanvasRichText* gobj() { return reinterpret_cast<GnomeCanvasRichText*>(gobject_); }
00093
00095 const GnomeCanvasRichText* gobj() const { return reinterpret_cast<GnomeCanvasRichText*>(gobject_); }
00096
00097
00098 public:
00099
00100 #ifdef GLIBMM_VFUNCS_ENABLED
00101 #endif //GLIBMM_VFUNCS_ENABLED
00102
00103 protected:
00104
00105 #ifdef GLIBMM_VFUNCS_ENABLED
00106 #endif //GLIBMM_VFUNCS_ENABLED
00107
00108
00109 virtual void on_tag_changed(const Glib::RefPtr<Gtk::TextTag>& tag);
00110
00111
00112 private:
00113
00114
00115 public:
00116 typedef Gtk::TextIter iterator;
00117
00118 RichText(Group& parent, double x, double y, const Glib::ustring& text);
00119 explicit RichText(Group& parent);
00120
00121
00122 void cut_clipboard();
00123
00124 void copy_clipboard();
00125
00126 void paste_clipboard();
00127
00128
00129 void set_buffer(const Glib::RefPtr<Gtk::TextBuffer>& buffer);
00130
00131 Glib::RefPtr<Gtk::TextBuffer> get_buffer() const;
00132
00133
00134 void get_iter_location(const iterator& iter, Gdk::Rectangle& location) const;
00135 iterator get_iter_at_location(int x, int y) const;
00136
00137
00138 Glib::SignalProxy1< void,const Glib::RefPtr<Gtk::TextTag>& > signal_tag_changed();
00139
00140
00141 #ifdef GLIBMM_PROPERTIES_ENABLED
00142
00148 Glib::PropertyProxy<Glib::ustring> property_text() ;
00149 #endif //#GLIBMM_PROPERTIES_ENABLED
00150
00151 #ifdef GLIBMM_PROPERTIES_ENABLED
00152
00158 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_text() const;
00159 #endif //#GLIBMM_PROPERTIES_ENABLED
00160
00161 #ifdef GLIBMM_PROPERTIES_ENABLED
00162
00168 Glib::PropertyProxy<double> property_x() ;
00169 #endif //#GLIBMM_PROPERTIES_ENABLED
00170
00171 #ifdef GLIBMM_PROPERTIES_ENABLED
00172
00178 Glib::PropertyProxy_ReadOnly<double> property_x() const;
00179 #endif //#GLIBMM_PROPERTIES_ENABLED
00180
00181 #ifdef GLIBMM_PROPERTIES_ENABLED
00182
00188 Glib::PropertyProxy<double> property_y() ;
00189 #endif //#GLIBMM_PROPERTIES_ENABLED
00190
00191 #ifdef GLIBMM_PROPERTIES_ENABLED
00192
00198 Glib::PropertyProxy_ReadOnly<double> property_y() const;
00199 #endif //#GLIBMM_PROPERTIES_ENABLED
00200
00201 #ifdef GLIBMM_PROPERTIES_ENABLED
00202
00208 Glib::PropertyProxy<double> property_width() ;
00209 #endif //#GLIBMM_PROPERTIES_ENABLED
00210
00211 #ifdef GLIBMM_PROPERTIES_ENABLED
00212
00218 Glib::PropertyProxy_ReadOnly<double> property_width() const;
00219 #endif //#GLIBMM_PROPERTIES_ENABLED
00220
00221 #ifdef GLIBMM_PROPERTIES_ENABLED
00222
00228 Glib::PropertyProxy<double> property_height() ;
00229 #endif //#GLIBMM_PROPERTIES_ENABLED
00230
00231 #ifdef GLIBMM_PROPERTIES_ENABLED
00232
00238 Glib::PropertyProxy_ReadOnly<double> property_height() const;
00239 #endif //#GLIBMM_PROPERTIES_ENABLED
00240
00241 #ifdef GLIBMM_PROPERTIES_ENABLED
00242
00248 Glib::PropertyProxy<bool> property_editable() ;
00249 #endif //#GLIBMM_PROPERTIES_ENABLED
00250
00251 #ifdef GLIBMM_PROPERTIES_ENABLED
00252
00258 Glib::PropertyProxy_ReadOnly<bool> property_editable() const;
00259 #endif //#GLIBMM_PROPERTIES_ENABLED
00260
00261 #ifdef GLIBMM_PROPERTIES_ENABLED
00262
00268 Glib::PropertyProxy<bool> property_visible() ;
00269 #endif //#GLIBMM_PROPERTIES_ENABLED
00270
00271 #ifdef GLIBMM_PROPERTIES_ENABLED
00272
00278 Glib::PropertyProxy_ReadOnly<bool> property_visible() const;
00279 #endif //#GLIBMM_PROPERTIES_ENABLED
00280
00281 #ifdef GLIBMM_PROPERTIES_ENABLED
00282
00288 Glib::PropertyProxy<bool> property_cursor_visible() ;
00289 #endif //#GLIBMM_PROPERTIES_ENABLED
00290
00291 #ifdef GLIBMM_PROPERTIES_ENABLED
00292
00298 Glib::PropertyProxy_ReadOnly<bool> property_cursor_visible() const;
00299 #endif //#GLIBMM_PROPERTIES_ENABLED
00300
00301 #ifdef GLIBMM_PROPERTIES_ENABLED
00302
00308 Glib::PropertyProxy<bool> property_cursor_blink() ;
00309 #endif //#GLIBMM_PROPERTIES_ENABLED
00310
00311 #ifdef GLIBMM_PROPERTIES_ENABLED
00312
00318 Glib::PropertyProxy_ReadOnly<bool> property_cursor_blink() const;
00319 #endif //#GLIBMM_PROPERTIES_ENABLED
00320
00321 #ifdef GLIBMM_PROPERTIES_ENABLED
00322
00328 Glib::PropertyProxy<bool> property_grow_height() ;
00329 #endif //#GLIBMM_PROPERTIES_ENABLED
00330
00331 #ifdef GLIBMM_PROPERTIES_ENABLED
00332
00338 Glib::PropertyProxy_ReadOnly<bool> property_grow_height() const;
00339 #endif //#GLIBMM_PROPERTIES_ENABLED
00340
00341 #ifdef GLIBMM_PROPERTIES_ENABLED
00342
00348 Glib::PropertyProxy<Gtk::WrapMode> property_wrap_mode() ;
00349 #endif //#GLIBMM_PROPERTIES_ENABLED
00350
00351 #ifdef GLIBMM_PROPERTIES_ENABLED
00352
00358 Glib::PropertyProxy_ReadOnly<Gtk::WrapMode> property_wrap_mode() const;
00359 #endif //#GLIBMM_PROPERTIES_ENABLED
00360
00361 #ifdef GLIBMM_PROPERTIES_ENABLED
00362
00368 Glib::PropertyProxy<Gtk::Justification> property_justification() ;
00369 #endif //#GLIBMM_PROPERTIES_ENABLED
00370
00371 #ifdef GLIBMM_PROPERTIES_ENABLED
00372
00378 Glib::PropertyProxy_ReadOnly<Gtk::Justification> property_justification() const;
00379 #endif //#GLIBMM_PROPERTIES_ENABLED
00380
00381 #ifdef GLIBMM_PROPERTIES_ENABLED
00382
00388 Glib::PropertyProxy<Gtk::DirectionType> property_direction() ;
00389 #endif //#GLIBMM_PROPERTIES_ENABLED
00390
00391 #ifdef GLIBMM_PROPERTIES_ENABLED
00392
00398 Glib::PropertyProxy_ReadOnly<Gtk::DirectionType> property_direction() const;
00399 #endif //#GLIBMM_PROPERTIES_ENABLED
00400
00401 #ifdef GLIBMM_PROPERTIES_ENABLED
00402
00408 Glib::PropertyProxy<Gtk::AnchorType> property_anchor() ;
00409 #endif //#GLIBMM_PROPERTIES_ENABLED
00410
00411 #ifdef GLIBMM_PROPERTIES_ENABLED
00412
00418 Glib::PropertyProxy_ReadOnly<Gtk::AnchorType> property_anchor() const;
00419 #endif //#GLIBMM_PROPERTIES_ENABLED
00420
00421 #ifdef GLIBMM_PROPERTIES_ENABLED
00422
00428 Glib::PropertyProxy<int> property_pixels_above_lines() ;
00429 #endif //#GLIBMM_PROPERTIES_ENABLED
00430
00431 #ifdef GLIBMM_PROPERTIES_ENABLED
00432
00438 Glib::PropertyProxy_ReadOnly<int> property_pixels_above_lines() const;
00439 #endif //#GLIBMM_PROPERTIES_ENABLED
00440
00441 #ifdef GLIBMM_PROPERTIES_ENABLED
00442
00448 Glib::PropertyProxy<int> property_pixels_below_lines() ;
00449 #endif //#GLIBMM_PROPERTIES_ENABLED
00450
00451 #ifdef GLIBMM_PROPERTIES_ENABLED
00452
00458 Glib::PropertyProxy_ReadOnly<int> property_pixels_below_lines() const;
00459 #endif //#GLIBMM_PROPERTIES_ENABLED
00460
00461 #ifdef GLIBMM_PROPERTIES_ENABLED
00462
00468 Glib::PropertyProxy<int> property_pixels_inside_wrap() ;
00469 #endif //#GLIBMM_PROPERTIES_ENABLED
00470
00471 #ifdef GLIBMM_PROPERTIES_ENABLED
00472
00478 Glib::PropertyProxy_ReadOnly<int> property_pixels_inside_wrap() const;
00479 #endif //#GLIBMM_PROPERTIES_ENABLED
00480
00481 #ifdef GLIBMM_PROPERTIES_ENABLED
00482
00488 Glib::PropertyProxy<int> property_left_margin() ;
00489 #endif //#GLIBMM_PROPERTIES_ENABLED
00490
00491 #ifdef GLIBMM_PROPERTIES_ENABLED
00492
00498 Glib::PropertyProxy_ReadOnly<int> property_left_margin() const;
00499 #endif //#GLIBMM_PROPERTIES_ENABLED
00500
00501 #ifdef GLIBMM_PROPERTIES_ENABLED
00502
00508 Glib::PropertyProxy<int> property_right_margin() ;
00509 #endif //#GLIBMM_PROPERTIES_ENABLED
00510
00511 #ifdef GLIBMM_PROPERTIES_ENABLED
00512
00518 Glib::PropertyProxy_ReadOnly<int> property_right_margin() const;
00519 #endif //#GLIBMM_PROPERTIES_ENABLED
00520
00521 #ifdef GLIBMM_PROPERTIES_ENABLED
00522
00528 Glib::PropertyProxy<int> property_indent() ;
00529 #endif //#GLIBMM_PROPERTIES_ENABLED
00530
00531 #ifdef GLIBMM_PROPERTIES_ENABLED
00532
00538 Glib::PropertyProxy_ReadOnly<int> property_indent() const;
00539 #endif //#GLIBMM_PROPERTIES_ENABLED
00540
00541
00542 };
00543
00544 }
00545 }
00546
00547
00548 namespace Glib
00549 {
00555 Gnome::Canvas::RichText* wrap(GnomeCanvasRichText* object, bool take_copy = false);
00556 }
00557
00558
00559 #endif
00560