Revision: 621 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=621&view=rev Author: frlan Date: 2009-05-03 22:51:01 +0000 (Sun, 03 May 2009)
Log Message: ----------- GeanyLaTeX: Commit missed files from r620
Added Paths: ----------- trunk/geanylatex/src/latexkeybindings.c trunk/geanylatex/src/latexkeybindings.h
Added: trunk/geanylatex/src/latexkeybindings.c =================================================================== --- trunk/geanylatex/src/latexkeybindings.c (rev 0) +++ trunk/geanylatex/src/latexkeybindings.c 2009-05-03 22:51:01 UTC (rev 621) @@ -0,0 +1,91 @@ +/* + * latexkeybindings.c + * + * Copyright 2009 Frank Lanitz <frank(at)frank(dot)uvena(dot)de> + * + * 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 Street, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + +#include "latexkeybindings.h" + +void glatex_kblabel_insert(G_GNUC_UNUSED guint key_id) +{ + if (NULL == document_get_current()) + return; + glatex_insert_label_activated(NULL, NULL); +} + +void glatex_kbref_insert(G_GNUC_UNUSED guint key_id) +{ + if (NULL == document_get_current()) + return; + glatex_insert_ref_activated(NULL, NULL); +} + + +void glatex_kbref_insert_environment(G_GNUC_UNUSED guint key_id) +{ + if (NULL == document_get_current()) + return; + glatex_insert_environment_dialog(NULL, NULL); +} + +void glatex_kbwizard(G_GNUC_UNUSED guint key_id) +{ + glatex_wizard_activated(NULL, NULL); +} + +void glatex_kb_insert_newline(G_GNUC_UNUSED guint key_id) +{ + if (NULL == document_get_current()) + return; + glatex_insert_string("\\\n", TRUE); +} + +void glatex_kb_insert_newitem(G_GNUC_UNUSED guint key_id) +{ + if (NULL == document_get_current()) + return; + glatex_insert_string("\item ", TRUE); +} + +void glatex_kb_replace_special_chars(G_GNUC_UNUSED guint key_id) +{ + if (NULL == document_get_current()) + return; + glatex_replace_special_character(); +} + +void glatex_kb_format_bold(G_GNUC_UNUSED guint key_id) +{ + if (NULL == document_get_current()) + return; + glatex_insert_latex_format(NULL, GINT_TO_POINTER(LATEX_BOLD)); +} + +void glatex_kb_format_italic(G_GNUC_UNUSED guint key_id) +{ + if (NULL == document_get_current()) + return; + glatex_insert_latex_format(NULL, GINT_TO_POINTER(LATEX_ITALIC)); +} + +void glatex_kb_format_typewriter(G_GNUC_UNUSED guint key_id) +{ + if (NULL == document_get_current()) + return; + glatex_insert_latex_format(NULL, GINT_TO_POINTER(LATEX_TYPEWRITER)); +}
Added: trunk/geanylatex/src/latexkeybindings.h =================================================================== --- trunk/geanylatex/src/latexkeybindings.h (rev 0) +++ trunk/geanylatex/src/latexkeybindings.h 2009-05-03 22:51:01 UTC (rev 621) @@ -0,0 +1,38 @@ +/* + * latexkeybindings.h + * + * Copyright 2009 Frank Lanitz <frank(at)frank(dot)uvena(dot)de> + * + * 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 Street, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + +#ifndef LATEXKEYBINDINGS_H +#define LATEXKEYBINDINGS_H + +#include "geanylatex.h" + +void glatex_kblabel_insert(G_GNUC_UNUSED guint key_id); +void glatex_kbref_insert(G_GNUC_UNUSED guint key_id); +void glatex_kbref_insert_environment(G_GNUC_UNUSED guint key_id); +void glatex_kbwizard(G_GNUC_UNUSED guint key_id); +void glatex_kb_insert_newline(G_GNUC_UNUSED guint key_id); +void glatex_kb_insert_newitem(G_GNUC_UNUSED guint key_id); +void glatex_kb_replace_special_chars(G_GNUC_UNUSED guint key_id); +void glatex_kb_format_bold(G_GNUC_UNUSED guint key_id); +void glatex_kb_format_italic(G_GNUC_UNUSED guint key_id); +void glatex_kb_format_typewriter(G_GNUC_UNUSED guint key_id); + +#endif
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.