1 /* This file is part of
2 * ======================================================
4 * LyX, The Document Processor
6 * Copyright (C) 1995 Matthias Ettrich
7 * Copyright (C) 1995-1998 The LyX Team.
9 * This file is Copyleft (C) 1996-1998
12 *======================================================*/
15 #include FORMS_H_LOCATION
16 #include "latexoptions.h"
20 #include "BufferView.h"
22 // $Id: texoptions.C,v 1.1 1999/09/27 18:44:38 larsbj Exp $
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 $";
28 extern FD_LaTeXOptions *fd_latex_options;
29 extern BufferView *current_view;
31 void LaTeXOptionsOK(FL_OBJECT *ob, long data)
33 LaTeXOptionsApply(ob, data);
34 LaTeXOptionsCancel(ob, data);
37 void LaTeXOptionsApply(FL_OBJECT *, long)
39 if (fl_get_button(fd_latex_options->accents))
40 current_view->currentBuffer()->params.allowAccents = true;
42 current_view->currentBuffer()->params.allowAccents = false;
45 void LaTeXOptionsCancel(FL_OBJECT *, long)
47 fl_hide_form(fd_latex_options->LaTeXOptions);