/* Copyright (C) 2003 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see .
*/
_CONFIGINCLUDE(atkmmconfig.h)
_DEFS(atkmm,atk)
_PINCLUDE(glibmm/private/object_p.h)
#include
#ifndef DOXYGEN_SHOULD_SKIP_THIS
extern "C"
{
typedef struct _AtkDocumentIface AtkDocumentIface;
typedef struct _AtkDocument AtkDocument;
}
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
namespace Atk
{
class ATKMM_API Object;
/** The ATK interface which allows access to a DOM associated with on object.
* This interface should be supported by any object that has an associated document object model (DOM). This interface
* provides the standard mechanism allowing an assistive technology access to the DOM.
*/
class ATKMM_API Document : public Glib::Interface
{
_CLASS_INTERFACE(Document, AtkDocument, ATK_DOCUMENT, AtkDocumentIface, , , ATKMM_API)
public:
_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.")
_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.")
_IGNORE(atk_document_get_locale)
//TODO: AtkAttributeSet* atk_document_get_attributes (AtkDocument *document);
_WRAP_METHOD(Glib::ustring get_attribute_value(const Glib::ustring& attribute_name) const, atk_document_get_attribute_value)
_WRAP_METHOD(bool set_attribute_value(const Glib::ustring& attribute_name, const Glib::ustring& attribute_value), atk_document_set_attribute_value)
protected:
_WRAP_VFUNC(const gchar* get_document_type(), get_document_type)
_WRAP_VFUNC(gpointer get_document() const, get_document)
};
} // namespace Atk