2
// Generated by gtkmmproc -- DO NOT MODIFY!
3
#ifndef _ATKMM_DOCUMENT_H
4
#define _ATKMM_DOCUMENT_H
9
/* $Id: document.hg,v 1.3 2004/01/19 19:48:36 murrayc Exp $ */
11
/* Copyright (C) 2003 The gtkmm Development Team
13
* This library is free software; you can redistribute it and/or
14
* modify it under the terms of the GNU Lesser General Public
15
* License as published by the Free Software Foundation; either
16
* version 2.1 of the License, or (at your option) any later version.
18
* This library is distributed in the hope that it will be useful,
19
* but WITHOUT ANY WARRANTY; without even the implied warranty of
20
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21
* Lesser General Public License for more details.
23
* You should have received a copy of the GNU Lesser General Public
24
* License along with this library; if not, write to the Free
25
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
29
#ifndef DOXYGEN_SHOULD_SKIP_THIS
32
typedef struct _AtkDocumentIface AtkDocumentIface;
33
typedef struct _AtkDocument AtkDocument;
35
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
37
#ifndef DOXYGEN_SHOULD_SKIP_THIS
38
typedef struct _AtkDocument AtkDocument;
39
typedef struct _AtkDocumentClass AtkDocumentClass;
40
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
44
{ class Document_Class; } // namespace Atk
50
/** The ATK interface which allows access to a DOM associated with on object.
51
* This interface should be supported by any object that has an associated document object model (DOM). This interface
52
* provides the standard mechanism allowing an assistive technology access to the DOM.
55
class Document : public Glib::Interface
58
#ifndef DOXYGEN_SHOULD_SKIP_THIS
61
typedef Document CppObjectType;
62
typedef Document_Class CppClassType;
63
typedef AtkDocument BaseObjectType;
64
typedef AtkDocumentIface BaseClassType;
67
friend class Document_Class;
68
static CppClassType document_class_;
71
Document(const Document&);
72
Document& operator=(const Document&);
75
Document(); // you must derive from this class
77
/** Called by constructors of derived classes. Provide the result of
78
* the Class init() function to ensure that it is properly
81
* @param interface_class The Class object for the derived type.
83
explicit Document(const Glib::Interface_Class& interface_class);
86
// This is public so that C++ wrapper instances can be
87
// created for C instances of unwrapped types.
88
// For instance, if an unexpected C type implements the C interface.
89
explicit Document(AtkDocument* castitem);
92
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
97
static void add_interface(GType gtype_implementer);
99
#ifndef DOXYGEN_SHOULD_SKIP_THIS
100
static GType get_type() G_GNUC_CONST;
101
static GType get_base_type() G_GNUC_CONST;
104
///Provides access to the underlying C GObject.
105
AtkDocument* gobj() { return reinterpret_cast<AtkDocument*>(gobject_); }
107
///Provides access to the underlying C GObject.
108
const AtkDocument* gobj() const { return reinterpret_cast<AtkDocument*>(gobject_); }
115
/** Gets a string indicating the document type.
116
* @return A string indicating the document type.
118
Glib::ustring get_document_type() const;
120
/** Gets a %gpointer that points to an instance of the DOM. It is
121
* up to the caller to check atk_document_get_type to determine
122
* how to cast this pointer.
123
* @return A %gpointer that points to an instance of the DOM.
125
gpointer get_document();
128
virtual const gchar* get_document_type_vfunc();
130
virtual gpointer get_document_vfunc() const;
136
//C++ methods used to invoke GTK+ virtual functions:
139
//GTK+ Virtual Functions (override these to change behaviour):
141
//Default Signal Handlers::
151
/** A Glib::wrap() method for this object.
153
* @param object The C instance.
154
* @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
155
* @result A C++ instance that wraps this C instance.
157
* @relates Atk::Document
159
Glib::RefPtr<Atk::Document> wrap(AtkDocument* object, bool take_copy = false);
164
#endif /* _ATKMM_DOCUMENT_H */