1999-09-27 18:44:28 +00:00
|
|
|
|
/* This file is part of
|
1999-11-15 12:01:38 +00:00
|
|
|
|
* ======================================================
|
1999-09-27 18:44:28 +00:00
|
|
|
|
*
|
|
|
|
|
* LyX, The Document Processor
|
|
|
|
|
*
|
2000-02-23 16:39:03 +00:00
|
|
|
|
* Copyright 1995 Matthias Ettrich
|
|
|
|
|
* Copyright 1995-2000 The LyX Team.
|
1999-09-27 18:44:28 +00:00
|
|
|
|
*
|
2000-02-23 16:39:03 +00:00
|
|
|
|
* This file is Copyleft 1996-2000
|
1999-09-27 18:44:28 +00:00
|
|
|
|
* Lars Gullik Bj<EFBFBD>nnes
|
|
|
|
|
*
|
1999-11-15 12:01:38 +00:00
|
|
|
|
* ====================================================== */
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
|
#include FORMS_H_LOCATION
|
|
|
|
|
#include "latexoptions.h"
|
|
|
|
|
#include "lyx_main.h"
|
|
|
|
|
#include "buffer.h"
|
|
|
|
|
#include "BufferView.h"
|
|
|
|
|
|
2000-02-23 16:39:03 +00:00
|
|
|
|
extern FD_LaTeXOptions * fd_latex_options;
|
|
|
|
|
extern BufferView * current_view;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
2000-02-23 16:39:03 +00:00
|
|
|
|
void LaTeXOptionsOK(FL_OBJECT * ob, long data)
|
1999-09-27 18:44:28 +00:00
|
|
|
|
{
|
|
|
|
|
LaTeXOptionsApply(ob, data);
|
|
|
|
|
LaTeXOptionsCancel(ob, data);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void LaTeXOptionsApply(FL_OBJECT *, long)
|
|
|
|
|
{
|
|
|
|
|
if (fl_get_button(fd_latex_options->accents))
|
1999-11-09 23:52:04 +00:00
|
|
|
|
current_view->buffer()->params.allowAccents = true;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
else
|
1999-11-09 23:52:04 +00:00
|
|
|
|
current_view->buffer()->params.allowAccents = false;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void LaTeXOptionsCancel(FL_OBJECT *, long)
|
|
|
|
|
{
|
|
|
|
|
fl_hide_form(fd_latex_options->LaTeXOptions);
|
|
|
|
|
}
|