4 * John Levon, moz@compsoc.man.ac.uk
7 /***************************************************************************
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
14 ***************************************************************************/
23 #include "dlg/docsettingsdlgdata.h"
24 #include "dlg/docgeometrydlgdata.h"
25 #include "dlg/doclanguagedlgdata.h"
26 #include "dlg/docextradlgdata.h"
27 #include "dlg/docbulletsdlgdata.h"
28 #include "dlg/docdlgdata.h"
34 // to connect apply() and close()
35 #include "FormDocument.h"
37 class DocDialog : public DocDialogData {
40 DocDialog(FormDocument *form, QWidget *parent=0, const char *name=0,
41 bool modal=false, WFlags f=0);
46 * \brief set widgets read only status appropriately
48 void setReadOnly(bool readonly);
52 * \brief set dialog widgets from buffer parameters
54 void setFromParams(BufferParams const & params);
58 * \brief update the given params object based on the dialog widgets
60 * This will update the params object. It returns true if a redo
61 * of the related buffer is necessary
63 bool updateParams(BufferParams & params) const;
67 * \brief update the given params object based on the dialog widgets
69 * This will update the params object. It returns true if a redo
70 * of the related buffer is necessary
72 bool updateParams(BufferParams & params);
75 void closeEvent(QCloseEvent *e);
82 DocSettingsDialogData *settings;
84 DocGeometryDialogData *geometry;
86 DocLanguageDialogData *language;
88 DocExtraDialogData *extra;
90 DocBulletsDialogData *bullets;
94 void skipspacingChanged(const char *sel);
96 void linespacingChanged(const char *sel);
98 void ok_adaptor(void) {
104 void apply_adaptor(void) {
108 void restore_adaptor(void) {
109 // this will reset to known values
113 void cancel_adaptor(void) {