summaryrefslogtreecommitdiff
path: root/pluma/pluma-commands.h
blob: 54860ea453913abddf0894248c0c7fd6eef74c39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
 * pluma-commands.h
 * This file is part of pluma
 *
 * Copyright (C) 1998, 1999 Alex Roberts, Evan Lawrence
 * Copyright (C) 2000, 2001 Chema Celorio, Paolo Maggi
 * Copyright (C) 2002-2005 Paolo Maggi
 * Copyright (C) 2012-2021 MATE Developers
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor,
 * Boston, MA 02110-1301, USA.
 */

/*
 * Modified by the pluma Team, 1998-2005. See the AUTHORS file for a
 * list of people on the pluma Team.
 * See the ChangeLog files for a list of changes.
 *
 * $Id$
 */

#ifndef __PLUMA_COMMANDS_H__
#define __PLUMA_COMMANDS_H__

#include <gtk/gtk.h>
#include <pluma/pluma-window.h>

G_BEGIN_DECLS

/* Do nothing if URI does not exist */
void		 pluma_commands_load_uri		(PlumaWindow         *window,
							 const gchar         *uri,
							 const PlumaEncoding *encoding,
							 gint                 line_pos);

/* Ignore non-existing URIs */
gint		 pluma_commands_load_uris		(PlumaWindow         *window,
							 const GSList        *uris,
							 const PlumaEncoding *encoding,
							 gint                 line_pos);

void		 pluma_commands_save_document		(PlumaWindow         *window,
                                                         PlumaDocument       *document);

void		 pluma_commands_save_all_documents 	(PlumaWindow         *window);

/*
 * Non-exported functions
 */

/* Create titled documens for non-existing URIs */
gint		_pluma_cmd_load_files_from_prompt	(PlumaWindow         *window,
							 GSList              *files,
							 const PlumaEncoding *encoding,
							 gint                 line_pos);

void		_pluma_cmd_file_new			(GtkAction   *action,
							 PlumaWindow *window);
void		_pluma_cmd_file_open			(GtkAction   *action,
							 PlumaWindow *window);
void		_pluma_cmd_file_save			(GtkAction   *action,
							 PlumaWindow *window);
void		_pluma_cmd_file_save_as			(GtkAction   *action,
							 PlumaWindow *window);
void		_pluma_cmd_file_save_all		(GtkAction   *action,
							 PlumaWindow *window);
void		_pluma_cmd_file_revert			(GtkAction   *action,
							 PlumaWindow *window);
void		_pluma_cmd_file_open_uri		(GtkAction   *action,
							 PlumaWindow *window);
void		_pluma_cmd_file_print_preview		(GtkAction   *action,
							 PlumaWindow *window);
void		_pluma_cmd_file_print			(GtkAction   *action,
							 PlumaWindow *window);
void		_pluma_cmd_file_close			(GtkAction   *action,
							 PlumaWindow *window);
void		_pluma_cmd_file_close_all		(GtkAction   *action,
							 PlumaWindow *window);
void		_pluma_cmd_file_quit			(GtkAction   *action,
							 PlumaWindow *window);

void		_pluma_cmd_edit_undo			(GtkAction   *action,
							 PlumaWindow *window);
void		_pluma_cmd_edit_redo			(GtkAction   *action,
							 PlumaWindow *window);
void		_pluma_cmd_edit_cut			(GtkAction   *action,
							 PlumaWindow *window);
void		_pluma_cmd_edit_copy			(GtkAction   *action,
							 PlumaWindow *window);
void		_pluma_cmd_edit_paste			(GtkAction   *action,
							 PlumaWindow *window);
void		_pluma_cmd_edit_delete			(GtkAction   *action,
							 PlumaWindow *window);
void		_pluma_cmd_edit_upper_case		  (GtkAction   *action,
							 PlumaWindow *window);
void		_pluma_cmd_edit_lower_case		(GtkAction   *action,
							 PlumaWindow *window);
void		_pluma_cmd_edit_invert_case		(GtkAction   *action,
							 PlumaWindow *window);
void		_pluma_cmd_edit_title_case		(GtkAction   *action,
							 PlumaWindow *window);
void		_pluma_cmd_edit_select_all		(GtkAction   *action,
							 PlumaWindow *window);
void		_pluma_cmd_edit_preferences		(GtkAction   *action,
							 PlumaWindow *window);

void		_pluma_cmd_view_show_toolbar		(GtkAction   *action,
							 PlumaWindow *window);
void		_pluma_cmd_view_show_statusbar		(GtkAction   *action,
							 PlumaWindow *window);
void		_pluma_cmd_view_show_side_pane		(GtkAction   *action,
							 PlumaWindow *window);
void		_pluma_cmd_view_show_bottom_pane	(GtkAction   *action,
							 PlumaWindow *window);
void		_pluma_cmd_view_toggle_fullscreen_mode	(GtkAction   *action,
							 PlumaWindow *window);
void		_pluma_cmd_view_leave_fullscreen_mode	(GtkAction   *action,
							 PlumaWindow *window);

void		_pluma_cmd_search_find			(GtkAction   *action,
							 PlumaWindow *window);
void		_pluma_cmd_search_find_next		(GtkAction   *action,
							 PlumaWindow *window);
void		_pluma_cmd_search_find_prev		(GtkAction   *action,
							 PlumaWindow *window);
void		_pluma_cmd_search_replace		(GtkAction   *action,
							 PlumaWindow *window);
void		_pluma_cmd_search_clear_highlight	(GtkAction   *action,
							 PlumaWindow *window);
void		_pluma_cmd_search_goto_line		(GtkAction   *action,
							 PlumaWindow *window);
void		_pluma_cmd_search_incremental_search	(GtkAction   *action,
							 PlumaWindow *window);

void		_pluma_cmd_documents_previous_document	(GtkAction   *action,
							 PlumaWindow *window);
void		_pluma_cmd_documents_next_document	(GtkAction   *action,
							 PlumaWindow *window);
void		_pluma_cmd_documents_move_to_new_window	(GtkAction   *action,
							 PlumaWindow *window);

void		_pluma_cmd_help_contents		(GtkAction   *action,
							 PlumaWindow *window);
void		_pluma_cmd_help_about			(GtkAction   *action,
							 PlumaWindow *window);

void		_pluma_cmd_file_close_tab 		(PlumaTab    *tab,
							 PlumaWindow *window);

void		_pluma_cmd_file_save_documents_list	(PlumaWindow *window,
							 GList       *docs);

G_END_DECLS

#endif /* __PLUMA_COMMANDS_H__ */