~ubuntu-branches/ubuntu/precise/atkmm1.6/precise

« back to all changes in this revision

Viewing changes to atk/src/hyperlink.hg

  • Committer: Bazaar Package Importer
  • Author(s): Krzysztof Klimonda
  • Date: 2010-11-02 20:35:53 UTC
  • Revision ID: james.westby@ubuntu.com-20101102203553-syno2w6yedmcdgk8
Tags: upstream-2.22.1
ImportĀ upstreamĀ versionĀ 2.22.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Copyright (C) 2003 The gtkmm Development Team
 
2
 *
 
3
 * This library is free software; you can redistribute it and/or
 
4
 * modify it under the terms of the GNU Lesser General Public
 
5
 * License as published by the Free Software Foundation; either
 
6
 * version 2.1 of the License, or (at your option) any later version.
 
7
 *
 
8
 * This library is distributed in the hope that it will be useful,
 
9
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
11
 * Lesser General Public License for more details.
 
12
 *
 
13
 * You should have received a copy of the GNU Lesser General Public
 
14
 * License along with this library; if not, write to the Free
 
15
 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
16
 */
 
17
 
 
18
#include <atkmm/action.h>
 
19
 
 
20
_DEFS(atkmm,atk)
 
21
_PINCLUDE(glibmm/private/object_p.h)
 
22
_PINCLUDE(atk/atkobject.h)
 
23
 
 
24
namespace Atk
 
25
{
 
26
 
 
27
class Object;
 
28
 
 
29
/** Encapsulates a link or set of links in a hypertext document.
 
30
 */
 
31
class Hyperlink : public Glib::Object, public Atk::Action
 
32
{
 
33
  _CLASS_GOBJECT(Hyperlink, AtkHyperlink, ATK_HYPERLINK, Glib::Object, GObject)
 
34
  _IMPLEMENTS_INTERFACE(Action)
 
35
 
 
36
public:
 
37
  _WRAP_METHOD(Glib::ustring get_uri(int i) const, atk_hyperlink_get_uri)
 
38
 
 
39
  _WRAP_METHOD(Glib::RefPtr<Atk::Object> get_object(int i), atk_hyperlink_get_object, refreturn)
 
40
  _WRAP_METHOD(Glib::RefPtr<const Atk::Object> get_object(int i) const, atk_hyperlink_get_object, refreturn, constversion)
 
41
 
 
42
  _WRAP_METHOD(int get_end_index() const, atk_hyperlink_get_end_index)
 
43
  _WRAP_METHOD(int get_start_index() const, atk_hyperlink_get_start_index)
 
44
 
 
45
  _WRAP_METHOD(bool is_valid() const, atk_hyperlink_is_valid)
 
46
  _WRAP_METHOD(bool is_inline() const, atk_hyperlink_is_inline)
 
47
 
 
48
  _WRAP_METHOD(int get_n_anchors() const, atk_hyperlink_get_n_anchors)
 
49
  _IGNORE(atk_hyperlink_is_selected_link) // deprecated
 
50
  _WRAP_SIGNAL(void link_activated(), "link_activated")
 
51
 
 
52
  _WRAP_PROPERTY("selected-link", bool)
 
53
  _WRAP_PROPERTY("number-of-anchors", int)
 
54
  _WRAP_PROPERTY("end-index", int)
 
55
  _WRAP_PROPERTY("start-index", int)
 
56
 
 
57
protected:
 
58
  _WRAP_VFUNC(gchar* get_uri(int i) const, get_uri)
 
59
  _WRAP_VFUNC(Glib::RefPtr<Atk::Object> get_object(int i), get_object)
 
60
  _WRAP_VFUNC(int get_end_index() const, get_end_index)
 
61
  _WRAP_VFUNC(int get_start_index() const, get_start_index)
 
62
  _WRAP_VFUNC(bool is_valid() const, is_valid)
 
63
  _WRAP_VFUNC(int get_n_anchors() const, get_n_anchors)
 
64
  _WRAP_VFUNC(guint link_state() const, link_state)
 
65
  _WRAP_VFUNC(bool is_selected_link() const, is_selected_link)
 
66
};
 
67
 
 
68
} // namespace Atk