tdf#130857 qt weld: Support mail merge "Server Auth" dialog
[LibreOffice.git] / vcl / inc / unx / gtk / gloactiongroup.h
blobfb84122a608b031238b7d8a33804b6489a12d1ec
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 #pragma once
13 #include <glib-object.h>
14 #include <glib.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_IS_LO_ACTION_GROUP(inst) (G_TYPE_CHECK_INSTANCE_TYPE ((inst), \
22 G_TYPE_LO_ACTION_GROUP))
24 struct GLOActionGroupPrivate;
26 struct GLOActionGroup
28 /*< private >*/
29 GObject parent_instance;
31 GLOActionGroupPrivate *priv;
34 struct GLOActionGroupClass
36 /*< private >*/
37 GObjectClass parent_class;
39 /*< private >*/
40 gpointer padding[12];
43 GType g_lo_action_group_get_type (void) G_GNUC_CONST;
45 GLOActionGroup * g_lo_action_group_new (void);
47 void g_lo_action_group_set_top_menu (GLOActionGroup *group,
48 gpointer top_menu);
50 void g_lo_action_group_insert (GLOActionGroup *group,
51 const gchar *action_name,
52 gint item_id,
53 gboolean submenu);
55 void g_lo_action_group_insert_stateful (GLOActionGroup *group,
56 const gchar *action_name,
57 gint item_id,
58 gboolean submenu,
59 const GVariantType *parameter_type,
60 const GVariantType *state_type,
61 GVariant *state_hint,
62 GVariant *state);
64 void g_lo_action_group_set_action_enabled (GLOActionGroup *group,
65 const gchar *action_name,
66 gboolean enabled);
68 void g_lo_action_group_remove (GLOActionGroup *group,
69 const gchar *action_name);
71 void g_lo_action_group_clear (GLOActionGroup *group);
73 G_END_DECLS
75 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */