4
* Copyright 2009 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or
9
* (at your option) any later version.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
22
#include "latexkeybindings.h"
24
void glatex_kblabel_insert(G_GNUC_UNUSED guint key_id)
26
if (NULL == document_get_current())
28
glatex_insert_label_activated(NULL, NULL);
31
void glatex_kbref_insert(G_GNUC_UNUSED guint key_id)
33
if (NULL == document_get_current())
35
glatex_insert_ref_activated(NULL, NULL);
39
void glatex_kbref_insert_environment(G_GNUC_UNUSED guint key_id)
41
if (NULL == document_get_current())
43
glatex_insert_environment_dialog(NULL, NULL);
46
void glatex_kbwizard(G_GNUC_UNUSED guint key_id)
48
glatex_wizard_activated(NULL, NULL);
51
void glatex_kb_insert_newline(G_GNUC_UNUSED guint key_id)
53
if (NULL == document_get_current())
55
glatex_insert_string("\\\\\n", TRUE);
58
void glatex_kb_insert_newitem(G_GNUC_UNUSED guint key_id)
60
if (NULL == document_get_current())
62
glatex_insert_string("\\item ", TRUE);
65
void glatex_kb_replace_special_chars(G_GNUC_UNUSED guint key_id)
67
if (NULL == document_get_current())
69
glatex_replace_special_character();
72
void glatex_kb_format_bold(G_GNUC_UNUSED guint key_id)
74
if (NULL == document_get_current())
76
glatex_insert_latex_format(NULL, GINT_TO_POINTER(LATEX_BOLD));
79
void glatex_kb_format_italic(G_GNUC_UNUSED guint key_id)
81
if (NULL == document_get_current())
83
glatex_insert_latex_format(NULL, GINT_TO_POINTER(LATEX_ITALIC));
86
void glatex_kb_format_typewriter(G_GNUC_UNUSED guint key_id)
88
if (NULL == document_get_current())
90
glatex_insert_latex_format(NULL, GINT_TO_POINTER(LATEX_TYPEWRITER));
93
void glatex_kb_format_centering(G_GNUC_UNUSED guint key_id)
95
if (NULL == document_get_current())
97
glatex_insert_latex_format(NULL, GINT_TO_POINTER(LATEX_CENTER));
100
void glatex_kb_format_left(G_GNUC_UNUSED guint key_id)
102
if (NULL == document_get_current())
104
glatex_insert_latex_format(NULL, GINT_TO_POINTER(LATEX_LEFT));
107
void glatex_kb_format_right(G_GNUC_UNUSED guint key_id)
109
if (NULL == document_get_current())
111
glatex_insert_latex_format(NULL, GINT_TO_POINTER(LATEX_RIGHT));