Reference Manual

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

# hyperlink.h

Go to the documentation of this file.

    00001 /*  Inti: Integrated Foundation Classes
    00002  *  Copyright (C) 2002-2003 The Inti Development Team.
    00003  *
    00004  *  This program is free software; you can redistribute it and/or modify
    00005  *  it under the terms of the GNU General Public License as published by
    00006  *  the Free Software Foundation; either version 2 of the License, or
    00007  *  (at your option) any later version.
    00008  *
    00009  *  This program is distributed in the hope that it will be useful,
    00010  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
    00011  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    00012  *  GNU Library General Public License for more details.
    00013  *
    00014  *  You should have received a copy of the GNU Library General Public License
    00015  *  along with this program; if not, write to the Free Software
    00016  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
    00017  */
    00018
    00023
    00024 #ifndef INTI_ATK_HYPERLINK_H
    00025 #define INTI_ATK_HYPERLINK_H
    00026
    00027 #ifndef INTI_G_OBJECT
    00028 #include <inti/glib/object.h>
    00029 #endif
    00030
    00031 #ifndef INTI_ATK_ACTION_H
    00032 #include <inti/atk/action.h>
    00033 #endif
    00034
    00035 #ifndef __ATK_HYPERLINK_H__
    00036 #include <atk/atkhyperlink.h>
    00037 #endif
    00038
    00039 namespace Inti {
    00040
    00041 namespace Atk {
    00042
    00043 class HyperlinkClass;
    00044 class Object;
    00045
    00048
    00049 enum HyperlinkStateFlags
    00050 {
    00051         HYPERLINK_IS_INLINE = ATK_HYPERLINK_IS_INLINE
    00052 };
    00053
    00055
    00056 typedef unsigned int HyperlinkStateFlagsField;
    00057
    00063
    00064 class Hyperlink : public G::Object, public Action
    00065 {
    00066         friend class G::Object;
    00067         friend class HyperlinkClass;
    00068
    00069         Hyperlink(const Hyperlink&);
    00070         Hyperlink& operator=(const Hyperlink&);
    00071
    00072 protected:
    00075
    00076         explicit Hyperlink(AtkHyperlink *hyperlink, bool reference = true);
    00083
    00085 //  Override these do_ methods when you want to change the default behaviour of the AtkHyperlink.
    00086
    00087         virtual char* do_get_uri(int i);
    00088
    00089         virtual AtkObject* do_get_object(int i);
    00090
    00091         virtual int do_get_end_index();
    00092
    00093         virtual int do_get_start_index();
    00094
    00095         virtual bool do_is_valid();
    00096
    00097         virtual int do_get_n_anchors();
    00098
    00099         virtual unsigned int do_link_state();
    00100
    00101 public:
    00104
    00105         virtual ~Hyperlink();
    00107
    00111
    00112         AtkHyperlink* atk_hyperlink() const { return (AtkHyperlink*)instance; }
    00114
    00115         AtkHyperlinkClass* atk_hyperlink_class() const;
    00117
    00118         operator AtkHyperlink* () const;
    00120
    00121         String get_uri(int i) const;
    00127
    00128         Atk::Object* get_object(int i) const;
    00136
    00137         int get_end_index() const;
    00140
    00141         int get_start_index() const;
    00144
    00145         bool is_valid() const;
    00150
    00151         bool is_inline() const;
    00157
    00158         int get_n_anchors() const;
    00160
    00162 };
    00163
    00164 } // namespace Atk
    00165
    00166 } // namespace Inti
    00167
    00168 #endif // INTI_ATK_HYPERLINK_H
    00169

Main Page - Footer