3 * Copyright 2001 the LyX Team
4 * Read the file COPYING
15 #include "dlg/docsettingsdlgdata.h"
16 #include "dlg/docgeometrydlgdata.h"
17 #include "dlg/doclanguagedlgdata.h"
18 #include "dlg/docextradlgdata.h"
19 #include "dlg/docbulletsdlgdata.h"
20 #include "dlg/docdlgdata.h"
26 // to connect apply() and close()
27 #include "FormDocument.h"
29 class DocDialog : public DocDialogData {
32 DocDialog(FormDocument * form, QWidget * parent=0, char const * name=0,
33 bool modal=false, WFlags f=0);
38 * \brief set widgets read only status appropriately
40 void setReadOnly(bool readonly);
44 * \brief set dialog widgets from buffer parameters
46 void setFromParams(BufferParams const & params);
50 * \brief update the given params object based on the dialog widgets
52 * This will update the params object. It returns true if a redo
53 * of the related buffer is necessary
55 bool updateParams(BufferParams & params) const;
59 * \brief update the given params object based on the dialog widgets
61 * This will update the params object. It returns true if a redo
62 * of the related buffer is necessary
64 bool updateParams(BufferParams & params);
67 void closeEvent(QCloseEvent *e);
70 /// for generating the float placement string
71 string DocDialog::placementString(QComboBox * box) const;
77 DocSettingsDialogData * settings;
79 DocGeometryDialogData * geometry;
81 DocLanguageDialogData * language;
83 DocExtraDialogData * extra;
85 DocBulletsDialogData * bullets;
89 void paraspacingChanged(const char * sel);
91 void linespacingChanged(const char * sel);
93 void addspaceChanged(bool on);
95 void ok_adaptor(void) {
101 void apply_adaptor(void) {
105 void restore_adaptor(void) {
106 // this will reset to known values
110 void cancel_adaptor(void) {