X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt2%2FQDocumentDialog.h;h=bea8ef735bcc1e1dbf13ea08b3be8732b8a4306f;hb=7b214dd05e55597e49230da58f5525639c088d52;hp=da61d0f7f3fd53521583237be207d3f8887c7932;hpb=f7ba7c8e9f3dcd2a5de79c7e93bf8edeec3b8e35;p=lyx.git diff --git a/src/frontends/qt2/QDocumentDialog.h b/src/frontends/qt2/QDocumentDialog.h index da61d0f7f3..bea8ef735b 100644 --- a/src/frontends/qt2/QDocumentDialog.h +++ b/src/frontends/qt2/QDocumentDialog.h @@ -1,9 +1,12 @@ +// -*- 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 + * \author Edwin Leuven + * + * Full author contact details are available in file CREDITS. */ #ifndef QDOCUMENTDIALOG_H @@ -11,76 +14,83 @@ #include "ui/QDocumentDialogBase.h" -class QDocument; +#include "BulletsModule.h" + +#include "ui/TextLayoutModuleBase.h" +#include "ui/MathsModuleBase.h" +#include "ui/LaTeXModuleBase.h" +#include "ui/PageLayoutModuleBase.h" +#include "ui/LanguageModuleBase.h" +#include "ui/BiblioModuleBase.h" +#include "ui/NumberingModuleBase.h" +#include "ui/MarginsModuleBase.h" +#include "ui/PreambleModuleBase.h" +#include "ui/BranchesModuleBase.h" -class QDocumentDialog : public QDocumentDialogBase -{ Q_OBJECT +class FloatPlacement; + +namespace lyx { +namespace frontend { + +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(std::string const &, std::string const &); + void updatePagestyle(std::string const &, std::string const &); + void updateBranchView(); + void toggleBranch(QListViewItem * selItem); + + void showPreamble(); + 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 updateNumbering(); + 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 portraitChanged(); + void classChanged(); + void addBranchPressed(); + void deleteBranchPressed(); + void toggleBranchPressed(); + void branchDoubleClicked(QListViewItem * selItem); + void toggleBranchColor(); protected: - void closeEvent(QCloseEvent *); + void closeEvent(QCloseEvent * e); private: + TextLayoutModuleBase * textLayoutModule; + PageLayoutModuleBase * pageLayoutModule; + MarginsModuleBase * marginsModule; + LanguageModuleBase * langModule; + BulletsModule * bulletsModule; + NumberingModuleBase * numberingModule; + BiblioModuleBase * biblioModule; + MathsModuleBase * mathsModule; + LaTeXModuleBase * latexModule; + PreambleModuleBase * preambleModule; + FloatPlacement * floatModule; + BranchesModuleBase * branchesModule; + QDocument * form_; - QToolButton* bulletbuttons[36]; }; -#endif // QDOCUMENTDIALOG_H +} // namespace frontend +} // namespace lyx + +#endif // DOCUMENTDIALOG_H