lyx_mirror/src/frontends/qt2/QDocumentDialog.h
Edwin Leuven 3995f53261 Brand new qt document dialog. Not finished yet though. TODO is updated and lists
what is left to do...


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5370 a592a061-630c-0410-9148-cb99ea01b6c8
2002-10-09 08:59:02 +00:00

103 lines
1.9 KiB
C++

// -*- C++ -*-
/**
* \file QDocumentDialog.h
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \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"
#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 QDocument;
class QDocumentDialog : public QDocumentDialogBase
{
Q_OBJECT
public:
QDocumentDialog( QDocument * );
~QDocumentDialog();
void showPreamble();
friend class QDocument;
void updateFontsize(string const & , string const & );
void updatePagestyle(string const & , string const & );
public slots:
void setTitle(int);
void change_adaptor();
void saveDocDefault();
void restore();
void useClassDefaults();
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 * 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_;
};
#endif // DOCUMENTDIALOG_H