home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Divers / lyx-0.13.2.tar.gz / lyx-0.13.2.tar / lyx-0.13.2 / src / texoptions.C < prev    next >
C/C++ Source or Header  |  1998-04-23  |  1KB  |  49 lines

  1. /* This file is part of
  2. * ======================================================
  3. *           LyX, The Document Processor
  4. *
  5. *           Copyright (C) 1995 Matthias Ettrich
  6. *           Copyright (C) 1995-1998 The LyX Team.
  7. *
  8. *           This file is Copyleft (C) 1996-1998
  9. *           Lars Gullik Bj°nnes
  10. *
  11. *======================================================*/
  12.  
  13. #include <config.h>
  14. #include FORMS_H_LOCATION
  15. #include "latexoptions.h"
  16. #include "lyx_cb.h"
  17. #include "lyx_main.h"
  18. #include "buffer.h"
  19. #include "BufferView.h"
  20.  
  21. //     $Id: texoptions.C,v 1.1.1.1 1998/04/23 16:02:57 larsbj Exp $    
  22.  
  23. #if !defined(lint) && !defined(WITH_WARNINGS)
  24. static char vcid[] = "$Id: texoptions.C,v 1.1.1.1 1998/04/23 16:02:57 larsbj Exp $";
  25. #endif /* lint */
  26.  
  27. extern FD_LaTeXOptions *fd_latex_options;
  28. extern BufferView *current_view;
  29.  
  30. void LaTeXOptionsOK(FL_OBJECT *ob, long data)
  31. {
  32.     LaTeXOptionsApply(ob, data);
  33.     LaTeXOptionsCancel(ob, data);
  34. }
  35.  
  36. void LaTeXOptionsApply(FL_OBJECT *, long)
  37. {
  38.     if (fl_get_button(fd_latex_options->accents))
  39.         current_view->currentBuffer()->params.allowAccents = true;
  40.     else
  41.         current_view->currentBuffer()->params.allowAccents = false;
  42. }
  43.  
  44. void LaTeXOptionsCancel(FL_OBJECT *, long)
  45. {
  46.     fl_hide_form(fd_latex_options->LaTeXOptions);
  47. }
  48.