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 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00110 virtual void on_tag_changed(const Glib::RefPtr<Gtk::TextTag>& tag);
00111 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00112
00113
00114 private:
00115
00116
00117 public:
00118 typedef Gtk::TextIter iterator;
00119
00120 RichText(Group& parent, double x, double y, const Glib::ustring& text);
00121 explicit RichText(Group& parent);
00122
00123
00124 void cut_clipboard();
00125
00126 void copy_clipboard();
00127
00128 void paste_clipboard();
00129
00130
00131 void set_buffer(const Glib::RefPtr<Gtk::TextBuffer>& buffer);
00132
00133 Glib::RefPtr<Gtk::TextBuffer> get_buffer() const;
00134
00135
00136 void get_iter_location(const iterator& iter, Gdk::Rectangle& location) const;
00137 iterator get_iter_at_location(int x, int y) const;
00138
00139
00145 Glib::SignalProxy1< void,const Glib::RefPtr<Gtk::TextTag>& > signal_tag_changed();
00146
00147
00148 #ifdef GLIBMM_PROPERTIES_ENABLED
00149
00155 Glib::PropertyProxy<Glib::ustring> property_text() ;
00156 #endif //#GLIBMM_PROPERTIES_ENABLED
00157
00158 #ifdef GLIBMM_PROPERTIES_ENABLED
00159
00165 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_text() const;
00166 #endif //#GLIBMM_PROPERTIES_ENABLED
00167
00168 #ifdef GLIBMM_PROPERTIES_ENABLED
00169
00175 Glib::PropertyProxy<double> property_x() ;
00176 #endif //#GLIBMM_PROPERTIES_ENABLED
00177
00178 #ifdef GLIBMM_PROPERTIES_ENABLED
00179
00185 Glib::PropertyProxy_ReadOnly<double> property_x() const;
00186 #endif //#GLIBMM_PROPERTIES_ENABLED
00187
00188 #ifdef GLIBMM_PROPERTIES_ENABLED
00189
00195 Glib::PropertyProxy<double> property_y() ;
00196 #endif //#GLIBMM_PROPERTIES_ENABLED
00197
00198 #ifdef GLIBMM_PROPERTIES_ENABLED
00199
00205 Glib::PropertyProxy_ReadOnly<double> property_y() const;
00206 #endif //#GLIBMM_PROPERTIES_ENABLED
00207
00208 #ifdef GLIBMM_PROPERTIES_ENABLED
00209
00215 Glib::PropertyProxy<double> property_width() ;
00216 #endif //#GLIBMM_PROPERTIES_ENABLED
00217
00218 #ifdef GLIBMM_PROPERTIES_ENABLED
00219
00225 Glib::PropertyProxy_ReadOnly<double> property_width() const;
00226 #endif //#GLIBMM_PROPERTIES_ENABLED
00227
00228 #ifdef GLIBMM_PROPERTIES_ENABLED
00229
00235 Glib::PropertyProxy<double> property_height() ;
00236 #endif //#GLIBMM_PROPERTIES_ENABLED
00237
00238 #ifdef GLIBMM_PROPERTIES_ENABLED
00239
00245 Glib::PropertyProxy_ReadOnly<double> property_height() const;
00246 #endif //#GLIBMM_PROPERTIES_ENABLED
00247
00248 #ifdef GLIBMM_PROPERTIES_ENABLED
00249
00255 Glib::PropertyProxy<bool> property_editable() ;
00256 #endif //#GLIBMM_PROPERTIES_ENABLED
00257
00258 #ifdef GLIBMM_PROPERTIES_ENABLED
00259
00265 Glib::PropertyProxy_ReadOnly<bool> property_editable() const;
00266 #endif //#GLIBMM_PROPERTIES_ENABLED
00267
00268 #ifdef GLIBMM_PROPERTIES_ENABLED
00269
00275 Glib::PropertyProxy<bool> property_visible() ;
00276 #endif //#GLIBMM_PROPERTIES_ENABLED
00277
00278 #ifdef GLIBMM_PROPERTIES_ENABLED
00279
00285 Glib::PropertyProxy_ReadOnly<bool> property_visible() const;
00286 #endif //#GLIBMM_PROPERTIES_ENABLED
00287
00288 #ifdef GLIBMM_PROPERTIES_ENABLED
00289
00295 Glib::PropertyProxy<bool> property_cursor_visible() ;
00296 #endif //#GLIBMM_PROPERTIES_ENABLED
00297
00298 #ifdef GLIBMM_PROPERTIES_ENABLED
00299
00305 Glib::PropertyProxy_ReadOnly<bool> property_cursor_visible() const;
00306 #endif //#GLIBMM_PROPERTIES_ENABLED
00307
00308 #ifdef GLIBMM_PROPERTIES_ENABLED
00309
00315 Glib::PropertyProxy<bool> property_cursor_blink() ;
00316 #endif //#GLIBMM_PROPERTIES_ENABLED
00317
00318 #ifdef GLIBMM_PROPERTIES_ENABLED
00319
00325 Glib::PropertyProxy_ReadOnly<bool> property_cursor_blink() const;
00326 #endif //#GLIBMM_PROPERTIES_ENABLED
00327
00328 #ifdef GLIBMM_PROPERTIES_ENABLED
00329
00335 Glib::PropertyProxy<bool> property_grow_height() ;
00336 #endif //#GLIBMM_PROPERTIES_ENABLED
00337
00338 #ifdef GLIBMM_PROPERTIES_ENABLED
00339
00345 Glib::PropertyProxy_ReadOnly<bool> property_grow_height() const;
00346 #endif //#GLIBMM_PROPERTIES_ENABLED
00347
00348 #ifdef GLIBMM_PROPERTIES_ENABLED
00349
00355 Glib::PropertyProxy<Gtk::WrapMode> property_wrap_mode() ;
00356 #endif //#GLIBMM_PROPERTIES_ENABLED
00357
00358 #ifdef GLIBMM_PROPERTIES_ENABLED
00359
00365 Glib::PropertyProxy_ReadOnly<Gtk::WrapMode> property_wrap_mode() const;
00366 #endif //#GLIBMM_PROPERTIES_ENABLED
00367
00368 #ifdef GLIBMM_PROPERTIES_ENABLED
00369
00375 Glib::PropertyProxy<Gtk::Justification> property_justification() ;
00376 #endif //#GLIBMM_PROPERTIES_ENABLED
00377
00378 #ifdef GLIBMM_PROPERTIES_ENABLED
00379
00385 Glib::PropertyProxy_ReadOnly<Gtk::Justification> property_justification() const;
00386 #endif //#GLIBMM_PROPERTIES_ENABLED
00387
00388 #ifdef GLIBMM_PROPERTIES_ENABLED
00389
00395 Glib::PropertyProxy<Gtk::DirectionType> property_direction() ;
00396 #endif //#GLIBMM_PROPERTIES_ENABLED
00397
00398 #ifdef GLIBMM_PROPERTIES_ENABLED
00399
00405 Glib::PropertyProxy_ReadOnly<Gtk::DirectionType> property_direction() const;
00406 #endif //#GLIBMM_PROPERTIES_ENABLED
00407
00408 #ifdef GLIBMM_PROPERTIES_ENABLED
00409
00415 Glib::PropertyProxy<Gtk::AnchorType> property_anchor() ;
00416 #endif //#GLIBMM_PROPERTIES_ENABLED
00417
00418 #ifdef GLIBMM_PROPERTIES_ENABLED
00419
00425 Glib::PropertyProxy_ReadOnly<Gtk::AnchorType> property_anchor() const;
00426 #endif //#GLIBMM_PROPERTIES_ENABLED
00427
00428 #ifdef GLIBMM_PROPERTIES_ENABLED
00429
00435 Glib::PropertyProxy<int> property_pixels_above_lines() ;
00436 #endif //#GLIBMM_PROPERTIES_ENABLED
00437
00438 #ifdef GLIBMM_PROPERTIES_ENABLED
00439
00445 Glib::PropertyProxy_ReadOnly<int> property_pixels_above_lines() const;
00446 #endif //#GLIBMM_PROPERTIES_ENABLED
00447
00448 #ifdef GLIBMM_PROPERTIES_ENABLED
00449
00455 Glib::PropertyProxy<int> property_pixels_below_lines() ;
00456 #endif //#GLIBMM_PROPERTIES_ENABLED
00457
00458 #ifdef GLIBMM_PROPERTIES_ENABLED
00459
00465 Glib::PropertyProxy_ReadOnly<int> property_pixels_below_lines() const;
00466 #endif //#GLIBMM_PROPERTIES_ENABLED
00467
00468 #ifdef GLIBMM_PROPERTIES_ENABLED
00469
00475 Glib::PropertyProxy<int> property_pixels_inside_wrap() ;
00476 #endif //#GLIBMM_PROPERTIES_ENABLED
00477
00478 #ifdef GLIBMM_PROPERTIES_ENABLED
00479
00485 Glib::PropertyProxy_ReadOnly<int> property_pixels_inside_wrap() const;
00486 #endif //#GLIBMM_PROPERTIES_ENABLED
00487
00488 #ifdef GLIBMM_PROPERTIES_ENABLED
00489
00495 Glib::PropertyProxy<int> property_left_margin() ;
00496 #endif //#GLIBMM_PROPERTIES_ENABLED
00497
00498 #ifdef GLIBMM_PROPERTIES_ENABLED
00499
00505 Glib::PropertyProxy_ReadOnly<int> property_left_margin() const;
00506 #endif //#GLIBMM_PROPERTIES_ENABLED
00507
00508 #ifdef GLIBMM_PROPERTIES_ENABLED
00509
00515 Glib::PropertyProxy<int> property_right_margin() ;
00516 #endif //#GLIBMM_PROPERTIES_ENABLED
00517
00518 #ifdef GLIBMM_PROPERTIES_ENABLED
00519
00525 Glib::PropertyProxy_ReadOnly<int> property_right_margin() const;
00526 #endif //#GLIBMM_PROPERTIES_ENABLED
00527
00528 #ifdef GLIBMM_PROPERTIES_ENABLED
00529
00535 Glib::PropertyProxy<int> property_indent() ;
00536 #endif //#GLIBMM_PROPERTIES_ENABLED
00537
00538 #ifdef GLIBMM_PROPERTIES_ENABLED
00539
00545 Glib::PropertyProxy_ReadOnly<int> property_indent() const;
00546 #endif //#GLIBMM_PROPERTIES_ENABLED
00547
00548
00549 };
00550
00551 }
00552 }
00553
00554
00555 namespace Glib
00556 {
00565 Gnome::Canvas::RichText* wrap(GnomeCanvasRichText* object, bool take_copy = false);
00566 }
00567
00568
00569 #endif
00570