Branch libreoffice-5-0-4
[LibreOffice.git] / vcl / inc / unx / gtk / gloactiongroup.h
blobea005aef39357ac082cfe48e72dabb2f09d35eb1
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 /*
4 * This file is part of the LibreOffice project.
6 * This Source Code Form is subject to the terms of the Mozilla Public
7 * License, v. 2.0. If a copy of the MPL was not distributed with this
8 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 */
11 #ifndef INCLUDED_VCL_INC_UNX_GTK_GLOACTIONGROUP_H
12 #define INCLUDED_VCL_INC_UNX_GTK_GLOACTIONGROUP_H
14 #include <gio/gio.h>
16 G_BEGIN_DECLS
18 #define G_TYPE_LO_ACTION_GROUP (g_lo_action_group_get_type ())
19 #define G_LO_ACTION_GROUP(inst) (G_TYPE_CHECK_INSTANCE_CAST ((inst), \
20 G_TYPE_LO_ACTION_GROUP, GLOActionGroup))
21 #define G_LO_ACTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), \
22 G_TYPE_LO_ACTION_GROUP, GLOActionGroupClass))
23 #define G_IS_LO_ACTION_GROUP(inst) (G_TYPE_CHECK_INSTANCE_TYPE ((inst), \
24 G_TYPE_LO_ACTION_GROUP))
25 #define G_IS_LO_ACTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \
26 G_TYPE_LO_ACTION_GROUP))
27 #define G_LO_ACTION_GROUP_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((inst), \
28 G_TYPE_LO_ACTION_GROUP, GLOActionGroupClass))
30 typedef struct _GLOActionGroupPrivate GLOActionGroupPrivate;
31 typedef struct _GLOActionGroupClass GLOActionGroupClass;
32 typedef struct _GLOActionGroup GLOActionGroup;
34 struct _GLOActionGroup
36 /*< private >*/
37 GObject parent_instance;
39 GLOActionGroupPrivate *priv;
42 struct _GLOActionGroupClass
44 /*< private >*/
45 GObjectClass parent_class;
47 /*< private >*/
48 gpointer padding[12];
51 GType g_lo_action_group_get_type (void) G_GNUC_CONST;
53 GLOActionGroup * g_lo_action_group_new (gpointer frame);
55 void g_lo_action_group_insert (GLOActionGroup *group,
56 const gchar *action_name,
57 gint item_id,
58 gboolean submenu);
60 void g_lo_action_group_insert_stateful (GLOActionGroup *group,
61 const gchar *action_name,
62 gint item_id,
63 gboolean submenu,
64 const GVariantType *parameter_type,
65 const GVariantType *state_type,
66 GVariant *state_hint,
67 GVariant *state);
69 void g_lo_action_group_set_action_enabled (GLOActionGroup *group,
70 const gchar *action_name,
71 gboolean enabled);
73 void g_lo_action_group_remove (GLOActionGroup *group,
74 const gchar *action_name);
76 void g_lo_action_group_clear (GLOActionGroup *group);
78 G_END_DECLS
80 #endif // INCLUDED_VCL_INC_UNX_GTK_GLOACTIONGROUP_H
82 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */