update emoji autocorrect entries from po-files
[LibreOffice.git] / vcl / inc / unx / gtk / glomenu.h
blob197752f86b9cbc43990eabcad65f77e2826a527d
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_GLOMENU_H
12 #define INCLUDED_VCL_INC_UNX_GTK_GLOMENU_H
14 #include <gio/gio.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"
20 G_BEGIN_DECLS
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), \
26 G_TYPE_LO_MENU))
28 typedef struct _GLOMenu GLOMenu;
30 class GtkSalMenuItem;
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,
38 gint section);
40 void g_lo_menu_insert (GLOMenu *menu,
41 gint position,
42 const char *label);
44 void g_lo_menu_insert_in_section (GLOMenu *menu,
45 gint section,
46 gint position,
47 const gchar *label);
49 void g_lo_menu_new_section (GLOMenu *menu,
50 gint position,
51 const gchar *label);
53 void g_lo_menu_insert_section (GLOMenu *menu,
54 gint position,
55 const gchar *label,
56 GMenuModel *section);
58 GLOMenu * g_lo_menu_get_section (GLOMenu *menu,
59 gint section);
61 void g_lo_menu_remove (GLOMenu *menu,
62 gint position);
64 void g_lo_menu_remove_from_section (GLOMenu *menu,
65 gint section,
66 gint position);
68 void g_lo_menu_set_label (GLOMenu *menu,
69 gint position,
70 const gchar *label);
72 void g_lo_menu_set_label_to_item_in_section (GLOMenu *menu,
73 gint section,
74 gint position,
75 const gchar *label);
77 gchar * g_lo_menu_get_label_from_item_in_section (GLOMenu *menu,
78 gint section,
79 gint position);
81 void g_lo_menu_set_action_and_target_value (GLOMenu *menu,
82 gint position,
83 const gchar *command,
84 GVariant *target_value);
86 void g_lo_menu_set_action_and_target_value_to_item_in_section (GLOMenu *menu,
87 gint section,
88 gint position,
89 const gchar *command,
90 GVariant *target_value);
92 void g_lo_menu_set_command_to_item_in_section (GLOMenu *menu,
93 gint section,
94 gint position,
95 const gchar *command);
97 gchar * g_lo_menu_get_command_from_item_in_section (GLOMenu *menu,
98 gint section,
99 gint position);
101 void g_lo_menu_set_accelerator_to_item_in_section (GLOMenu *menu,
102 gint section,
103 gint position,
104 const gchar *accelerator);
106 gchar * g_lo_menu_get_accelerator_from_item_in_section (GLOMenu *menu,
107 gint section,
108 gint position);
110 void g_lo_menu_set_submenu_to_item_in_section (GLOMenu *menu,
111 gint section,
112 gint position,
113 GMenuModel *submenu);
115 void g_lo_menu_new_submenu_in_item_in_section (GLOMenu *menu,
116 gint section,
117 gint position);
119 GLOMenu * g_lo_menu_get_submenu_from_item_in_section (GLOMenu *menu,
120 gint section,
121 gint position);
123 void g_lo_menu_set_submenu_action_to_item_in_section (GLOMenu *menu,
124 gint section,
125 gint position,
126 const gchar *action);
128 GLOMenu * g_lo_menu_get_menu_containing_item (GLOMenu *menu,
129 gint item_id);
131 G_END_DECLS
133 #endif // INCLUDED_VCL_INC_UNX_GTK_GLOMENU_H
135 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */