2002-09-24 13:57:09 +00:00
|
|
|
// -*- C++ -*-
|
2001-08-19 13:25:15 +00:00
|
|
|
/**
|
|
|
|
* \file QDocumentDialog.h
|
2002-09-24 13:57:09 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
2001-08-19 13:25:15 +00:00
|
|
|
*
|
2002-10-09 08:59:02 +00:00
|
|
|
* \author Edwin Leuven
|
2002-09-24 13:57:09 +00:00
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
* Full author contact details are available in file CREDITS.
|
2001-08-19 13:25:15 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef QDOCUMENTDIALOG_H
|
|
|
|
#define QDOCUMENTDIALOG_H
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2001-08-19 13:25:15 +00:00
|
|
|
#include "ui/QDocumentDialogBase.h"
|
2002-10-09 08:59:02 +00:00
|
|
|
|
|
|
|
#include "BulletsModule.h"
|
|
|
|
|
2003-03-28 17:19:49 +00:00
|
|
|
#include "ui/TextLayoutModuleBase.h"
|
|
|
|
#include "ui/MathsModuleBase.h"
|
|
|
|
#include "ui/LaTeXModuleBase.h"
|
|
|
|
#include "ui/PageLayoutModuleBase.h"
|
2002-10-09 08:59:02 +00:00
|
|
|
#include "ui/LanguageModuleBase.h"
|
|
|
|
#include "ui/BiblioModuleBase.h"
|
|
|
|
#include "ui/NumberingModuleBase.h"
|
|
|
|
#include "ui/MarginsModuleBase.h"
|
|
|
|
#include "ui/PreambleModuleBase.h"
|
2003-10-23 11:58:01 +00:00
|
|
|
#include "ui/BranchesModuleBase.h"
|
2001-08-19 13:25:15 +00:00
|
|
|
|
2004-05-19 15:11:37 +00:00
|
|
|
class FloatPlacement;
|
|
|
|
|
|
|
|
namespace lyx {
|
|
|
|
namespace frontend {
|
2003-09-07 21:25:37 +00:00
|
|
|
|
2001-08-19 13:25:15 +00:00
|
|
|
class QDocument;
|
|
|
|
|
2002-10-20 01:48:28 +00:00
|
|
|
class QDocumentDialog : public QDocumentDialogBase {
|
2002-10-09 08:59:02 +00:00
|
|
|
Q_OBJECT
|
2001-08-19 13:25:15 +00:00
|
|
|
public:
|
2002-10-20 01:48:28 +00:00
|
|
|
friend class QDocument;
|
|
|
|
|
|
|
|
QDocumentDialog(QDocument *);
|
2001-08-19 13:25:15 +00:00
|
|
|
~QDocumentDialog();
|
|
|
|
|
2003-10-06 15:43:21 +00:00
|
|
|
void updateFontsize(std::string const &, std::string const &);
|
|
|
|
void updatePagestyle(std::string const &, std::string const &);
|
2003-10-23 11:58:01 +00:00
|
|
|
void updateBranchView();
|
2003-12-01 07:54:02 +00:00
|
|
|
void toggleBranch(QListViewItem * selItem);
|
2002-12-01 22:59:25 +00:00
|
|
|
|
2003-03-28 02:10:23 +00:00
|
|
|
void showPreamble();
|
|
|
|
|
2002-10-20 01:48:28 +00:00
|
|
|
public slots:
|
2003-03-29 03:46:27 +00:00
|
|
|
void updateNumbering();
|
2002-10-09 08:59:02 +00:00
|
|
|
void change_adaptor();
|
2002-11-07 15:48:38 +00:00
|
|
|
void saveDefaultClicked();
|
|
|
|
void useDefaultsClicked();
|
2002-11-13 00:52:15 +00:00
|
|
|
|
2002-10-09 08:59:02 +00:00
|
|
|
protected slots:
|
|
|
|
void setLSpacing(int);
|
|
|
|
void setMargins(int);
|
|
|
|
void setCustomPapersize(int);
|
|
|
|
void setCustomMargins(int);
|
|
|
|
void setSkip(int);
|
|
|
|
void enableSkip(bool);
|
2003-02-12 17:05:56 +00:00
|
|
|
void portraitChanged();
|
2002-10-09 08:59:02 +00:00
|
|
|
void classChanged();
|
2003-10-23 11:58:01 +00:00
|
|
|
void addBranchPressed();
|
|
|
|
void deleteBranchPressed();
|
|
|
|
void toggleBranchPressed();
|
2003-12-01 07:54:02 +00:00
|
|
|
void branchDoubleClicked(QListViewItem * selItem);
|
2003-10-23 11:58:01 +00:00
|
|
|
void toggleBranchColor();
|
2002-12-01 22:59:25 +00:00
|
|
|
|
2001-08-19 13:25:15 +00:00
|
|
|
protected:
|
2002-11-13 00:52:15 +00:00
|
|
|
void closeEvent(QCloseEvent * e);
|
2002-12-01 22:59:25 +00:00
|
|
|
|
2001-08-19 13:25:15 +00:00
|
|
|
private:
|
2003-03-28 17:19:49 +00:00
|
|
|
TextLayoutModuleBase * textLayoutModule;
|
|
|
|
PageLayoutModuleBase * pageLayoutModule;
|
2002-10-09 08:59:02 +00:00
|
|
|
MarginsModuleBase * marginsModule;
|
|
|
|
LanguageModuleBase * langModule;
|
|
|
|
BulletsModule * bulletsModule;
|
|
|
|
NumberingModuleBase * numberingModule;
|
|
|
|
BiblioModuleBase * biblioModule;
|
2003-03-28 17:19:49 +00:00
|
|
|
MathsModuleBase * mathsModule;
|
|
|
|
LaTeXModuleBase * latexModule;
|
2002-10-09 08:59:02 +00:00
|
|
|
PreambleModuleBase * preambleModule;
|
2003-03-28 17:19:49 +00:00
|
|
|
FloatPlacement * floatModule;
|
2003-10-23 11:58:01 +00:00
|
|
|
BranchesModuleBase * branchesModule;
|
2002-10-09 08:59:02 +00:00
|
|
|
|
2001-08-19 13:25:15 +00:00
|
|
|
QDocument * form_;
|
|
|
|
};
|
|
|
|
|
2004-05-19 15:11:37 +00:00
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
2002-10-09 08:59:02 +00:00
|
|
|
#endif // DOCUMENTDIALOG_H
|