]> git.lyx.org Git - lyx.git/blob - src/texoptions.C
white-space changes, removed definitions.h several enum changes because of this,...
[lyx.git] / src / texoptions.C
1 /* This file is part of
2 * ====================================================== 
3
4 *           LyX, The Document Processor
5 *
6 *           Copyright (C) 1995 Matthias Ettrich
7 *           Copyright (C) 1995-1998 The LyX Team.
8 *
9 *           This file is Copyleft (C) 1996-1998
10 *           Lars Gullik Bjønnes
11 *
12 * ====================================================== */
13
14 #include <config.h>
15 #include FORMS_H_LOCATION
16 #include "latexoptions.h"
17 #include "lyx_cb.h"
18 #include "lyx_main.h"
19 #include "buffer.h"
20 #include "BufferView.h"
21
22 extern FD_LaTeXOptions *fd_latex_options;
23 extern BufferView *current_view;
24
25 void LaTeXOptionsOK(FL_OBJECT *ob, long data)
26 {
27         LaTeXOptionsApply(ob, data);
28         LaTeXOptionsCancel(ob, data);
29 }
30
31 void LaTeXOptionsApply(FL_OBJECT *, long)
32 {
33         if (fl_get_button(fd_latex_options->accents))
34                 current_view->buffer()->params.allowAccents = true;
35         else
36                 current_view->buffer()->params.allowAccents = false;
37 }
38
39 void LaTeXOptionsCancel(FL_OBJECT *, long)
40 {
41         fl_hide_form(fd_latex_options->LaTeXOptions);
42 }