1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
11 #ifndef INCLUDED_VCL_INC_UNX_GTK_GLOMENU_H
12 #define INCLUDED_VCL_INC_UNX_GTK_GLOMENU_H
16 #define G_LO_MENU_ATTRIBUTE_ACCELERATOR "accel"
17 #define G_LO_MENU_ATTRIBUTE_COMMAND "command"
18 #define G_LO_MENU_ATTRIBUTE_SUBMENU_ACTION "submenu-action"
22 #define G_TYPE_LO_MENU (g_lo_menu_get_type ())
23 #define G_LO_MENU(inst) (G_TYPE_CHECK_INSTANCE_CAST ((inst), \
24 G_TYPE_LO_MENU, GLOMenu))
25 #define G_IS_LO_MENU(inst) (G_TYPE_CHECK_INSTANCE_TYPE ((inst), \
32 GLIB_AVAILABLE_IN_2_32
33 GType
g_lo_menu_get_type (void) G_GNUC_CONST
;
34 GLIB_AVAILABLE_IN_2_32
35 GLOMenu
* g_lo_menu_new (void);
37 gint
g_lo_menu_get_n_items_from_section (GLOMenu
*menu
,
40 void g_lo_menu_insert (GLOMenu
*menu
,
44 void g_lo_menu_insert_in_section (GLOMenu
*menu
,
49 void g_lo_menu_new_section (GLOMenu
*menu
,
53 void g_lo_menu_insert_section (GLOMenu
*menu
,
58 GLOMenu
* g_lo_menu_get_section (GLOMenu
*menu
,
61 void g_lo_menu_remove (GLOMenu
*menu
,
64 void g_lo_menu_remove_from_section (GLOMenu
*menu
,
68 void g_lo_menu_set_label (GLOMenu
*menu
,
72 void g_lo_menu_set_icon (GLOMenu
*menu
,
77 void g_lo_menu_set_label_to_item_in_section (GLOMenu
*menu
,
82 void g_lo_menu_set_icon_to_item_in_section (GLOMenu
*menu
,
87 gchar
* g_lo_menu_get_label_from_item_in_section (GLOMenu
*menu
,
91 void g_lo_menu_set_action_and_target_value (GLOMenu
*menu
,
94 GVariant
*target_value
);
96 void g_lo_menu_set_action_and_target_value_to_item_in_section (GLOMenu
*menu
,
100 GVariant
*target_value
);
102 void g_lo_menu_set_command_to_item_in_section (GLOMenu
*menu
,
105 const gchar
*command
);
107 gchar
* g_lo_menu_get_command_from_item_in_section (GLOMenu
*menu
,
111 void g_lo_menu_set_accelerator_to_item_in_section (GLOMenu
*menu
,
114 const gchar
*accelerator
);
116 gchar
* g_lo_menu_get_accelerator_from_item_in_section (GLOMenu
*menu
,
120 void g_lo_menu_new_submenu_in_item_in_section (GLOMenu
*menu
,
124 GLOMenu
* g_lo_menu_get_submenu_from_item_in_section (GLOMenu
*menu
,
128 void g_lo_menu_set_submenu_action_to_item_in_section (GLOMenu
*menu
,
131 const gchar
*action
);
135 #endif // INCLUDED_VCL_INC_UNX_GTK_GLOMENU_H
137 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */