]> git.lyx.org Git - lyx.git/blob - src/texoptions.C
f12c5c5ceaf2f786e209719fed64a41a76e16f10
[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 //      $Id: texoptions.C,v 1.1 1999/09/27 18:44:38 larsbj Exp $        
23
24 #if !defined(lint) && !defined(WITH_WARNINGS)
25 static char vcid[] = "$Id: texoptions.C,v 1.1 1999/09/27 18:44:38 larsbj Exp $";
26 #endif /* lint */
27
28 extern FD_LaTeXOptions *fd_latex_options;
29 extern BufferView *current_view;
30
31 void LaTeXOptionsOK(FL_OBJECT *ob, long data)
32 {
33         LaTeXOptionsApply(ob, data);
34         LaTeXOptionsCancel(ob, data);
35 }
36
37 void LaTeXOptionsApply(FL_OBJECT *, long)
38 {
39         if (fl_get_button(fd_latex_options->accents))
40                 current_view->currentBuffer()->params.allowAccents = true;
41         else
42                 current_view->currentBuffer()->params.allowAccents = false;
43 }
44
45 void LaTeXOptionsCancel(FL_OBJECT *, long)
46 {
47         fl_hide_form(fd_latex_options->LaTeXOptions);
48 }