rich-text.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _LIBGNOMECANVASMM_RICH_TEXT_H
00004 #define _LIBGNOMECANVASMM_RICH_TEXT_H
00005 
00006 
00007 #include <glibmm.h>
00008 
00009 // -*- C++ -*-
00010 /* $Id: rich-text.hg,v 1.10 2002/12/09 16:08:51 aholzmann Exp $ */
00011 
00012 /* rich-text.h
00013  *
00014  *
00015  * Copyright (C) 2002 The libgnomecanvasmm Development Team
00016  *
00017  * This library is free software; you can redistribute it and/or
00018  * modify it under the terms of the GNU Library General Public
00019  * License as published by the Free Software Foundation; either
00020  * version 2 of the License, or (at your option) any later version.
00021  *
00022  * This library is distributed in the hope that it will be useful,
00023  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00024  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00025  * Library General Public License for more details.
00026  *
00027  * You should have received a copy of the GNU Library General Public
00028  * License along with this library; if not, write to the Free
00029  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
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 /* DOXYGEN_SHOULD_SKIP_THIS */
00041 
00042 
00043 namespace Gnome
00044 {
00045 
00046 namespace Canvas
00047 { class RichText_Class; } // namespace Canvas
00048 
00049 } // namespace Gnome
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 /* DOXYGEN_SHOULD_SKIP_THIS */
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   // noncopyable
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 /* DOXYGEN_SHOULD_SKIP_THIS */
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   //C++ methods used to invoke GTK+ virtual functions:
00100 #ifdef GLIBMM_VFUNCS_ENABLED
00101 #endif //GLIBMM_VFUNCS_ENABLED
00102 
00103 protected:
00104   //GTK+ Virtual Functions (override these to change behaviour):
00105 #ifdef GLIBMM_VFUNCS_ENABLED
00106 #endif //GLIBMM_VFUNCS_ENABLED
00107 
00108   //Default Signal Handlers::
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 } /* namespace Canvas */
00545 } /* namespace Gnome */
00546 
00547 
00548 namespace Glib
00549 {
00555   Gnome::Canvas::RichText* wrap(GnomeCanvasRichText* object, bool take_copy = false);
00556 } //namespace Glib
00557 
00558 
00559 #endif /* _LIBGNOMECANVASMM_RICH_TEXT_H */
00560 

Generated on Thu Sep 21 09:53:42 2006 for libgnomecanvasmm by  doxygen 1.4.7