mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-30 13:20:58 +00:00
a040c0bc6f
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@314 a592a061-630c-0410-9148-cb99ea01b6c8
43 lines
1020 B
C
43 lines
1020 B
C
/* This file is part of
|
|
* ======================================================
|
|
*
|
|
* LyX, The Document Processor
|
|
*
|
|
* Copyright (C) 1995 Matthias Ettrich
|
|
* Copyright (C) 1995-1998 The LyX Team.
|
|
*
|
|
* This file is Copyleft (C) 1996-1998
|
|
* 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"
|
|
|
|
extern FD_LaTeXOptions *fd_latex_options;
|
|
extern BufferView *current_view;
|
|
|
|
void LaTeXOptionsOK(FL_OBJECT *ob, long data)
|
|
{
|
|
LaTeXOptionsApply(ob, data);
|
|
LaTeXOptionsCancel(ob, data);
|
|
}
|
|
|
|
void LaTeXOptionsApply(FL_OBJECT *, long)
|
|
{
|
|
if (fl_get_button(fd_latex_options->accents))
|
|
current_view->buffer()->params.allowAccents = true;
|
|
else
|
|
current_view->buffer()->params.allowAccents = false;
|
|
}
|
|
|
|
void LaTeXOptionsCancel(FL_OBJECT *, long)
|
|
{
|
|
fl_hide_form(fd_latex_options->LaTeXOptions);
|
|
}
|