mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 21:49:51 +00:00
56eb1dbdb1
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10342 a592a061-630c-0410-9148-cb99ea01b6c8
97 lines
2.2 KiB
C++
97 lines
2.2 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
|
|
|
|
#include "ui/QDocumentDialogBase.h"
|
|
|
|
#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 FloatPlacement;
|
|
|
|
namespace lyx {
|
|
namespace frontend {
|
|
|
|
class QDocument;
|
|
|
|
class QDocumentDialog : public QDocumentDialogBase {
|
|
Q_OBJECT
|
|
public:
|
|
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:
|
|
void updateNumbering();
|
|
void change_adaptor();
|
|
void saveDefaultClicked();
|
|
void useDefaultsClicked();
|
|
|
|
protected slots:
|
|
void setLSpacing(int);
|
|
void setMargins(bool);
|
|
void setCustomPapersize(int);
|
|
void setCustomMargins(bool);
|
|
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 * 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_;
|
|
};
|
|
|
|
} // namespace frontend
|
|
} // namespace lyx
|
|
|
|
#endif // DOCUMENTDIALOG_H
|