2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1995-2000 The LyX Team.
10 * This file copyright 1999-2000
12 *======================================================*/
14 * FormPreferences Interface Class
17 #ifndef FORMPREFERENCES_H
18 #define FORMPREFERENCES_H
29 struct FD_form_preferences;
30 struct FD_form_lnf_general;
31 struct FD_form_screen_fonts;
32 struct FD_form_interface;
33 struct FD_form_printer;
35 struct FD_form_outer_tab;
36 struct FD_form_outputs_general;
38 /** This class provides an XForms implementation of the FormPreferences Dialog.
39 The preferences dialog allows users to set/save their preferences.
41 class FormPreferences : public FormBaseBI {
43 /// #FormPreferences x(LyXFunc ..., Dialogs ...);#
44 FormPreferences(LyXView *, Dialogs *);
48 /// Update the dialog.
49 virtual void update(bool = false);
56 /// Restore from dialog
57 virtual void restore();
58 /// Filter the inputs -- return true if entries are valid
59 virtual bool input(FL_OBJECT *, long);
63 virtual FL_FORM * form() const;
65 FD_form_preferences * build_preferences();
67 FD_form_outer_tab * build_outer_tab();
69 FD_form_lnf_general * build_lnf_general();
71 FD_form_screen_fonts * build_screen_fonts();
73 FD_form_interface * build_interface();
75 FD_form_printer * build_printer();
77 FD_form_paths * build_paths();
79 FD_form_outputs_general * build_outputs_general();
81 /// Real GUI implementation.
82 FD_form_preferences * dialog_;
84 FD_form_outer_tab * outputs_tab_;
86 FD_form_outer_tab * look_n_feel_tab_;
87 /// reLyX and other import/input stuff
88 FD_form_outer_tab * inputs_tab_;
90 FD_form_lnf_general * lnf_general_;
92 FD_form_screen_fonts * screen_fonts_;
94 FD_form_interface * interface_;
96 FD_form_printer * printer_;
98 FD_form_paths * paths_;
100 FD_form_outputs_general * outputs_general_;