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
|
|
|
*
|
|
|
|
* 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
|
|
|
|
2002-09-24 13:57:09 +00:00
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
2001-08-19 13:25:15 +00:00
|
|
|
#include "ui/QDocumentDialogBase.h"
|
2002-10-09 08:59:02 +00:00
|
|
|
#include "LString.h"
|
|
|
|
|
|
|
|
#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"
|
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();
|
|
|
|
|
2002-11-13 00:52:15 +00:00
|
|
|
void updateFontsize(string const &, string const &);
|
|
|
|
void updatePagestyle(string const &, string const &);
|
|
|
|
|
2002-10-20 01:48:28 +00:00
|
|
|
public slots:
|
2002-10-09 08:59:02 +00:00
|
|
|
void setTitle(int);
|
|
|
|
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);
|
|
|
|
void classChanged();
|
2002-11-13 00:52:15 +00:00
|
|
|
|
2001-08-19 13:25:15 +00:00
|
|
|
protected:
|
2002-11-13 00:52:15 +00:00
|
|
|
void closeEvent(QCloseEvent * e);
|
|
|
|
|
2001-08-19 13:25:15 +00:00
|
|
|
private:
|
2002-10-09 08:59:02 +00:00
|
|
|
enum Module {
|
|
|
|
LAYOUT,
|
|
|
|
PACKAGES,
|
|
|
|
PAPER,
|
|
|
|
MARGINS,
|
|
|
|
LANGUAGE,
|
|
|
|
BULLETS,
|
|
|
|
NUMBERING,
|
|
|
|
BIBLIOGRAPHY,
|
|
|
|
PREAMBLE
|
|
|
|
};
|
2002-10-20 01:48:28 +00:00
|
|
|
|
2002-10-09 08:59:02 +00:00
|
|
|
ClassModuleBase * layoutModule;
|
|
|
|
PackagesModuleBase * packagesModule;
|
|
|
|
PaperModuleBase * paperModule;
|
|
|
|
MarginsModuleBase * marginsModule;
|
|
|
|
LanguageModuleBase * langModule;
|
|
|
|
BulletsModule * bulletsModule;
|
|
|
|
NumberingModuleBase * numberingModule;
|
|
|
|
BiblioModuleBase * biblioModule;
|
|
|
|
PreambleModuleBase * preambleModule;
|
|
|
|
|
2001-08-19 13:25:15 +00:00
|
|
|
QDocument * form_;
|
|
|
|
};
|
|
|
|
|
2002-10-09 08:59:02 +00:00
|
|
|
#endif // DOCUMENTDIALOG_H
|