Debian Codegraph @

atk/src/document.hg

raw
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, see <https://www.gnu.org/licenses/>.
15 */
16
17 _CONFIGINCLUDE(atkmmconfig.h)
18
19 _DEFS(atkmm,atk)
20 _PINCLUDE(glibmm/private/object_p.h)
21
22 #include <glibmm/interface.h>
23
24 #ifndef DOXYGEN_SHOULD_SKIP_THIS
25 extern "C"
26 {
27 typedef struct _AtkDocumentIface AtkDocumentIface;
28 typedef struct _AtkDocument AtkDocument;
29 }
30 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
31
32 namespace Atk
33 {
34
35 class ATKMM_API Object;
36
37 /** The ATK interface which allows access to a DOM associated with on object.
38 * This interface should be supported by any object that has an associated document object model (DOM). This interface
39 * provides the standard mechanism allowing an assistive technology access to the DOM.
40 */
41 class ATKMM_API Document : public Glib::Interface
42 {
43 _CLASS_INTERFACE(Document, AtkDocument, ATK_DOCUMENT, AtkDocumentIface, , , ATKMM_API)
44 public:
45
46 _WRAP_METHOD(Glib::ustring get_document_type() const, atk_document_get_document_type, deprecated "Please use get_attribute() to ask for the document type if it applies.")
47 _WRAP_METHOD(gpointer get_document(), atk_document_get_document, deprecated "Document is already a representation of the document. Use it directly, or one of its children, as an instance of the DOM.")
48
49 _IGNORE(atk_document_get_locale)
50
51 //TODO: AtkAttributeSet* atk_document_get_attributes (AtkDocument *document);
52 _WRAP_METHOD(Glib::ustring get_attribute_value(const Glib::ustring& attribute_name) const, atk_document_get_attribute_value)
53 _WRAP_METHOD(bool set_attribute_value(const Glib::ustring& attribute_name, const Glib::ustring& attribute_value), atk_document_set_attribute_value)
54
55 protected:
56 _WRAP_VFUNC(const gchar* get_document_type(), get_document_type)
57 _WRAP_VFUNC(gpointer get_document() const, get_document)
58 };
59
60 } // namespace Atk