New tests for last interfaces
[platform/upstream/at-spi2-atk.git] / tests / dummyatk / my-atk-document.h
1 /*
2  * AT-SPI - Assistive Technology Service Provider Interface
3  * (Gnome Accessibility Project; https://wiki.gnome.org/Accessibility)
4  *
5  * Copyright (c) 2015 Samsung Electronics Co., Ltd.
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Library General Public
9  * License as published by the Free Software Foundation; either
10  * version 2 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Library General Public License for more details.
16  *
17  * You should have received a copy of the GNU Library General Public
18  * License along with this library; if not, write to the
19  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20  * Boston, MA 02111-1307, USA.
21  */
22
23 #ifndef MY_ATK_DOCUMENT_H
24 #define MY_ATK_DOCUMENT_H
25
26 #include <glib.h>
27 #include <glib-object.h>
28 #include <atk/atk.h>
29 #include "my-atk-object.h"
30
31 #define MY_TYPE_ATK_DOCUMENT                (my_atk_document_get_type ())
32 #define MY_ATK_DOCUMENT(obj)                (G_TYPE_CHECK_INSTANCE_CAST ((obj), MY_TYPE_ATK_DOCUMENT, MyAtkDocument))
33 #define MY_ATK_DOCUMENT_CLASS(vdocument)    (G_TYPE_CHECK_CLASS_CAST ((vdocument), MY_TYPE_ATK_DOCUMENT, MyAtkDocumentClass))
34 #define MY_IS_ATK_DOCUMENT(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MY_TYPE_ATK_DOCUMENT))
35 #define MY_IS_ATK_DOCUMENT_CLASS(vdocument) (G_TYPE_CHECK_CLASS_TYPE ((vdocument), MY_TYPE_ATK_DOCUMENT))
36 #define MY_ATK_DOCUMENT_GET_CLASS(inst)     (G_TYPE_INSTANCE_GET_CLASS ((inst), MY_TYPE_ATK_DOCUMENT, MyAtkDocumentClass))
37
38 // default string values
39 #define DEF_LOCALE_TEXT  "en-US"
40 #define DEF_TYPE_TEXT    "default type"
41
42 typedef struct _MyAtkDocument MyAtkDocument;
43 typedef struct _MyAtkDocumentClass MyAtkDocumentClass;
44
45 struct _MyAtkDocument {
46   MyAtkObject parent;
47   gboolean disposed;
48   gchar *locale;
49   gchar *document_type;
50   gint pages;
51   gint current_page;
52   AtkAttributeSet *attributes;
53 };
54
55 struct _MyAtkDocumentClass {
56   MyAtkObjectClass parent;
57 };
58
59 GType my_atk_document_get_type (void);
60
61 void my_atk_set_document (AtkDocument *obj, gint page, gint page_num);
62
63 #endif /*MY_ATK_DOCUMENT_H*/