]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt2/QDocumentDialog.h
better selection and scrolling behaviour
[lyx.git] / src / frontends / qt2 / QDocumentDialog.h
index da61d0f7f3fd53521583237be207d3f8887c7932..129426f32cab00c6d12c37265894811578b46941 100644 (file)
@@ -1,86 +1,91 @@
+// -*- C++ -*-
 /**
  * \file QDocumentDialog.h
- * Copyright 2001 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- * \author Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
+ * \author Edwin Leuven
+ *
+ * Full author contact details are available in file CREDITS
  */
 
 #ifndef QDOCUMENTDIALOG_H
 #define QDOCUMENTDIALOG_H
 
+#ifdef __GNUG__
+#pragma interface
+#endif
+
 #include "ui/QDocumentDialogBase.h"
+#include "LString.h"
 
-class QDocument;
+#include "ui/BulletsModuleBase.h"
+#include "BulletsModule.h"
+
+#include "ui/ClassModuleBase.h"
+#include "ui/PackagesModuleBase.h"
+#include "ui/PaperModuleBase.h"
+#include "ui/LanguageModuleBase.h"
+#include "ui/BiblioModuleBase.h"
+#include "ui/NumberingModuleBase.h"
+#include "ui/MarginsModuleBase.h"
+#include "ui/PreambleModuleBase.h"
 
-class QDocumentDialog : public QDocumentDialogBase
-{ Q_OBJECT
+class QDocument;
 
+class QDocumentDialog : public QDocumentDialogBase {
+       Q_OBJECT
 public:
-       QDocumentDialog(QDocument * form, QWidget * parent = 0, const char * name = 0, bool modal = FALSE, WFlags fl = 0);
+       friend class QDocument;
+
+       QDocumentDialog(QDocument *);
        ~QDocumentDialog();
 
+       void updateFontsize(string const &, string const &);
+       void updatePagestyle(string const &, string const &);
+
 public slots:
-#if 0
-       void slotApply();
-       void slotBulletLaTeX(const QString&);
-       void slotAMSMath(bool);
-       void slotBulletDepth1();
-       void slotBulletDepth2();
-       void slotBulletDepth3();
-       void slotBulletDepth4();
-       void slotBulletDing1();
-       void slotBulletDing2();
-       void slotBulletDing3();
-       void slotBulletDing4();
-       void slotBulletMaths();
-       void slotBulletSize(int);
-       void slotBulletStandard();
-       void slotBulletSymbol(int);
-       void slotClass(int);
-       void slotClose();
-       void slotColumns(int);
-       void slotDefaultSkip(const QString&);
-       void slotDefaultSkip(int);
-       void slotEncoding(int);
-       void slotExtraOptions(const QString&);
-       void slotFloatPlacement(const QString&);
-       void slotFont(int);
-       void slotFontSize(int);
-       void slotFootskip(const QString&);
-       void slotHeadheight(const QString&);
-       void slotHeadsep(const QString&);
-       void slotHeight(const QString&);
-       void slotLanguage(int);
-       void slotMarginBottom(const QString&);
-       void slotMarginLeft(const QString&);
-       void slotMarginRight(const QString&);
-       void slotMarginTop(const QString&);
-       void slotOK();
-       void slotOrientation(int);
-       void slotPSDriver(int);
-       void slotPageStyle(int);
-       void slotPapersize(int);
-       void slotQuoteStyle(int);
-       void slotQuoteType(int);
-       void slotRestore();
-       void slotSectionNumberDepth(int);
-       void slotSeparation(int);
-       void slotSides(int);
-       void slotSpacing(const QString&);
-       void slotSpacing(int);
-       void slotSpecialPaperPackage(int);
-       void slotTOCDepth(int);
-       void slotUseGeometryPackage(bool);
-       void slotWidth(const QString&);
-#endif
+       void setTitle(int);
+       void change_adaptor();
+       void saveDefaultClicked();
+       void useDefaultsClicked();
+
+protected slots:
+       void setLSpacing(int);
+       void setMargins(int);
+       void setCustomPapersize(int);
+       void setCustomMargins(int);
+       void setSkip(int);
+       void enableSkip(bool);
+       void classChanged();
 
 protected:
-       void closeEvent(QCloseEvent *);
+       void closeEvent(QCloseEvent * e);
 
 private:
+       enum Module {
+               LAYOUT,
+               PACKAGES,
+               PAPER,
+               MARGINS,
+               LANGUAGE,
+               BULLETS,
+               NUMBERING,
+               BIBLIOGRAPHY,
+               PREAMBLE
+       };
+
+       ClassModuleBase * layoutModule;
+       PackagesModuleBase * packagesModule;
+       PaperModuleBase * paperModule;
+       MarginsModuleBase * marginsModule;
+       LanguageModuleBase * langModule;
+       BulletsModule * bulletsModule;
+       NumberingModuleBase * numberingModule;
+       BiblioModuleBase * biblioModule;
+       PreambleModuleBase * preambleModule;
+
        QDocument * form_;
-       QToolButton* bulletbuttons[36];
 };
 
-#endif // QDOCUMENTDIALOG_H
+#endif // DOCUMENTDIALOG_H