~ubuntu-branches/debian/sid/geany-plugins/sid

« back to all changes in this revision

Viewing changes to geanylatex/src/latexkeybindings.c

  • Committer: Bazaar Package Importer
  • Author(s): Evgeni Golov, Chow Loong Jin, Evgeni Golov
  • Date: 2010-09-04 23:05:00 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100904230500-4n99m507u6drouv5
Tags: 0.19-1
[ Chow Loong Jin ]
* New upstream release
  + Builds against geany 0.19 (Closes: #590346, #587141)
* debian/control, debian/rules:
  + Shift geany dependency to geany-plugins-common instead, since it's a
    common dependency for all plugins
* debian/control:
  + Add new packages for codenav, extrasel, gendoc, insertnum,
    prettyprinter and treebrowser plugins
  + Update build-deps:
    - Bump geany dependency to 0.19. (Closes: #573318)
    - Add libctpl-dev and python-docutils for geanygendoc
    - Add libxml2-dev for prettyprinter
  + No-change bump of Standards-Version from 3.8.3 to 3.9.0
  + Tighten dependency on geany-plugins-common (= instead of >=)
  + Add a Breaks on all geany-plugin-* packages prior to this version to
    ensure geany-plugins-common and geany-plugin-* versions match
* debian/geany-plugin-codenav.{docs,install},
  debian/geany-plugin-extrasel.{docs,install},
  geany-plugin-gendoc.{docs,install},
  geany-plugin-insertnum.{docs,install},
  geany-plugin-prettyprinter.install
  geany-plugin-treebrowser.{docs,install}:
  + Install plugin files into individual packages

[ Evgeni Golov ]
* debian/control:
  + Disable the new plugins for now.
    If you want to build them localy, just uncomment them.
  + Don't D-B on libctpl-dev (it's not in Debian yet).
  + Add myself to Uploaders.
  + Standards-Version: 3.9.1
* debian/copyright:
  + Update to include latest plugins.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 *      latexkeybindings.c
3
3
 *
4
 
 *      Copyright 2009 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
 
4
 *      Copyright 2009-2010 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
5
5
 *
6
6
 *      This program is free software; you can redistribute it and/or modify
7
7
 *      it under the terms of the GNU General Public License as published by
23
23
 
24
24
void glatex_kblabel_insert(G_GNUC_UNUSED guint key_id)
25
25
{
26
 
        if (NULL == document_get_current())
27
 
                return;
 
26
        g_return_if_fail(document_get_current != NULL);
28
27
        glatex_insert_label_activated(NULL, NULL);
29
28
}
30
29
 
 
30
 
31
31
void glatex_kbref_insert(G_GNUC_UNUSED guint key_id)
32
32
{
33
 
        if (NULL == document_get_current())
34
 
                return;
 
33
        g_return_if_fail(document_get_current != NULL); 
35
34
        glatex_insert_ref_activated(NULL, NULL);
36
35
}
37
36
 
38
37
 
39
38
void glatex_kbref_insert_environment(G_GNUC_UNUSED guint key_id)
40
39
{
41
 
        if (NULL == document_get_current())
42
 
                return;
 
40
        g_return_if_fail(document_get_current != NULL);
43
41
        glatex_insert_environment_dialog(NULL, NULL);
44
42
}
45
43
 
 
44
 
46
45
void glatex_kbwizard(G_GNUC_UNUSED guint key_id)
47
46
{
48
47
        glatex_wizard_activated(NULL, NULL);
49
48
}
50
49
 
 
50
 
51
51
void glatex_kb_insert_newline(G_GNUC_UNUSED guint key_id)
52
52
{
53
 
        if (NULL == document_get_current())
54
 
                return;
 
53
        g_return_if_fail(document_get_current != NULL);
55
54
        glatex_insert_string("\\\\\n", TRUE);
56
55
}
57
56
 
 
57
 
58
58
void glatex_kb_insert_newitem(G_GNUC_UNUSED guint key_id)
59
59
{
60
 
        if (NULL == document_get_current())
61
 
                return;
 
60
        g_return_if_fail(document_get_current != NULL);
62
61
        glatex_insert_string("\\item ", TRUE);
63
62
}
64
63
 
 
64
 
65
65
void glatex_kb_replace_special_chars(G_GNUC_UNUSED guint key_id)
66
66
{
67
 
        if (NULL == document_get_current())
68
 
                return;
 
67
        g_return_if_fail(document_get_current != NULL);
69
68
        glatex_replace_special_character();
70
69
}
71
70
 
 
71
 
72
72
void glatex_kb_format_bold(G_GNUC_UNUSED guint key_id)
73
73
{
74
 
        if (NULL == document_get_current())
75
 
                return;
 
74
        g_return_if_fail(document_get_current != NULL);
76
75
        glatex_insert_latex_format(NULL, GINT_TO_POINTER(LATEX_BOLD));
77
76
}
78
77
 
 
78
 
79
79
void glatex_kb_format_italic(G_GNUC_UNUSED guint key_id)
80
80
{
81
 
        if (NULL == document_get_current())
82
 
                return;
 
81
        g_return_if_fail(document_get_current != NULL);
83
82
        glatex_insert_latex_format(NULL, GINT_TO_POINTER(LATEX_ITALIC));
84
83
}
85
84
 
 
85
 
86
86
void glatex_kb_format_typewriter(G_GNUC_UNUSED guint key_id)
87
87
{
88
 
        if (NULL == document_get_current())
89
 
                return;
 
88
        g_return_if_fail(document_get_current != NULL);
90
89
        glatex_insert_latex_format(NULL, GINT_TO_POINTER(LATEX_TYPEWRITER));
91
90
}
92
91
 
 
92
 
93
93
void glatex_kb_format_centering(G_GNUC_UNUSED guint key_id)
94
94
{
95
 
        if (NULL == document_get_current())
96
 
                return;
 
95
        g_return_if_fail(document_get_current != NULL);
97
96
        glatex_insert_latex_format(NULL, GINT_TO_POINTER(LATEX_CENTER));
98
97
}
99
98
 
 
99
 
100
100
void glatex_kb_format_left(G_GNUC_UNUSED guint key_id)
101
101
{
102
 
        if (NULL == document_get_current())
103
 
                return;
 
102
        g_return_if_fail(document_get_current != NULL);
104
103
        glatex_insert_latex_format(NULL, GINT_TO_POINTER(LATEX_LEFT));
105
104
}
106
105
 
 
106
 
107
107
void glatex_kb_format_right(G_GNUC_UNUSED guint key_id)
108
108
{
109
 
        if (NULL == document_get_current())
110
 
                return;
 
109
        g_return_if_fail(document_get_current != NULL);
111
110
        glatex_insert_latex_format(NULL, GINT_TO_POINTER(LATEX_RIGHT));
112
111
}
 
112
 
 
113
 
 
114
void glatex_kb_insert_description_list(G_GNUC_UNUSED guint key_id)
 
115
{
 
116
        g_return_if_fail(document_get_current != NULL);
 
117
        glatex_insert_list_environment(GLATEX_LIST_DESCRIPTION);
 
118
}
 
119
 
 
120
 
 
121
void glatex_kb_insert_itemize_list(G_GNUC_UNUSED guint key_id)
 
122
{
 
123
        g_return_if_fail(document_get_current != NULL);
 
124
        glatex_insert_list_environment(GLATEX_LIST_ITEMIZE);
 
125
}
 
126
 
 
127
 
 
128
void glatex_kb_insert_enumerate_list(G_GNUC_UNUSED guint key_id)
 
129
{
 
130
        g_return_if_fail(document_get_current != NULL);
 
131
        glatex_insert_list_environment(GLATEX_LIST_ENUMERATE);
 
132
}
 
133
 
 
134
 
 
135
void glatex_kb_structure_lvlup(G_GNUC_UNUSED guint key_id)
 
136
{
 
137
        g_return_if_fail(document_get_current != NULL);
 
138
        glatex_structure_lvlup();
 
139
}
 
140
 
 
141
 
 
142
void glatex_kb_structure_lvldown(G_GNUC_UNUSED guint key_id)
 
143
{
 
144
        g_return_if_fail(document_get_current != NULL);
 
145
        glatex_structure_lvldown();
 
146
}
 
147
 
 
148
 
 
149
void glatex_kb_usepackage_dialog(G_GNUC_UNUSED guint key_id)
 
150
{
 
151
        g_return_if_fail(document_get_current != NULL);
 
152
        glatex_insert_usepackage_dialog(NULL, NULL);
 
153
}
 
154
 
 
155
void glatex_kb_insert_command_dialog(G_GNUC_UNUSED guint key_id)
 
156
{
 
157
        g_return_if_fail(document_get_current != NULL);
 
158
        glatex_insert_command_activated(NULL, NULL);
 
159
}