]> git.lyx.org Git - lyx.git/blobdiff - src/texoptions.C
more changes, read the Changelog
[lyx.git] / src / texoptions.C
index f12c5c5ceaf2f786e209719fed64a41a76e16f10..c54e165ab5a152b94cd391d515d0554eaa8fdab2 100644 (file)
@@ -1,34 +1,27 @@
 /* This file is part of
-* ======================================================
+* ====================================================== 
 * 
 *           LyX, The Document Processor
 *
-*           Copyright (C) 1995 Matthias Ettrich
-*           Copyright (C) 1995-1998 The LyX Team.
+*           Copyright 1995 Matthias Ettrich
+*           Copyright 1995-2000 The LyX Team.
 *
-*           This file is Copyleft (C) 1996-1998
+*           This file is Copyleft 1996-2000
 *           Lars Gullik Bjønnes
 *
-*======================================================*/
+* ====================================================== */
 
 #include <config.h>
 #include FORMS_H_LOCATION
 #include "latexoptions.h"
-#include "lyx_cb.h"
 #include "lyx_main.h"
 #include "buffer.h"
 #include "BufferView.h"
 
-//     $Id: texoptions.C,v 1.1 1999/09/27 18:44:38 larsbj Exp $        
+extern FD_LaTeXOptions * fd_latex_options;
+extern BufferView * current_view;
 
-#if !defined(lint) && !defined(WITH_WARNINGS)
-static char vcid[] = "$Id: texoptions.C,v 1.1 1999/09/27 18:44:38 larsbj Exp $";
-#endif /* lint */
-
-extern FD_LaTeXOptions *fd_latex_options;
-extern BufferView *current_view;
-
-void LaTeXOptionsOK(FL_OBJECT *ob, long data)
+void LaTeXOptionsOK(FL_OBJECT * ob, long data)
 {
        LaTeXOptionsApply(ob, data);
        LaTeXOptionsCancel(ob, data);
@@ -37,9 +30,9 @@ void LaTeXOptionsOK(FL_OBJECT *ob, long data)
 void LaTeXOptionsApply(FL_OBJECT *, long)
 {
        if (fl_get_button(fd_latex_options->accents))
-               current_view->currentBuffer()->params.allowAccents = true;
+               current_view->buffer()->params.allowAccents = true;
        else
-               current_view->currentBuffer()->params.allowAccents = false;
+               current_view->buffer()->params.allowAccents = false;
 }
 
 void LaTeXOptionsCancel(FL_OBJECT *, long)