2001-03-23 06:31:30 +00:00
|
|
|
// -*- C++ -*-
|
2001-08-19 13:25:15 +00:00
|
|
|
/**
|
|
|
|
* \file QDocument.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-03-29 15:02:19 +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
|
|
|
*/
|
2001-03-23 06:31:30 +00:00
|
|
|
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2001-08-19 13:25:15 +00:00
|
|
|
#ifndef QDOCUMENT_H
|
|
|
|
#define QDOCUMENT_H
|
2001-03-23 06:31:30 +00:00
|
|
|
|
2002-09-24 13:57:09 +00:00
|
|
|
|
2001-03-29 15:02:19 +00:00
|
|
|
#include "Qt2Base.h"
|
2001-08-23 21:21:50 +00:00
|
|
|
#include "Qt2BC.h"
|
2001-03-23 06:31:30 +00:00
|
|
|
|
2003-10-23 11:58:01 +00:00
|
|
|
#include "BranchList.h"
|
|
|
|
|
2002-05-22 01:16:37 +00:00
|
|
|
#include <boost/scoped_ptr.hpp>
|
2003-10-07 08:16:04 +00:00
|
|
|
#include <string>
|
|
|
|
|
2002-05-22 01:16:37 +00:00
|
|
|
|
2001-03-29 15:02:19 +00:00
|
|
|
class ControlDocument;
|
2001-08-19 13:25:15 +00:00
|
|
|
class QDocumentDialog;
|
2002-12-04 02:57:14 +00:00
|
|
|
class LengthCombo;
|
|
|
|
class QLineEdit;
|
2001-03-23 06:31:30 +00:00
|
|
|
|
2001-08-19 13:25:15 +00:00
|
|
|
class QDocument
|
2002-10-09 08:59:02 +00:00
|
|
|
: public Qt2CB<ControlDocument, Qt2DB<QDocumentDialog> >
|
2001-03-29 15:02:19 +00:00
|
|
|
{
|
2001-03-23 06:31:30 +00:00
|
|
|
public:
|
2002-11-13 00:52:15 +00:00
|
|
|
|
2002-10-09 08:59:02 +00:00
|
|
|
friend class QDocumentDialog;
|
2002-11-13 00:52:15 +00:00
|
|
|
|
2002-10-20 01:48:28 +00:00
|
|
|
QDocument();
|
2003-03-28 02:10:23 +00:00
|
|
|
|
|
|
|
void showPreamble();
|
|
|
|
|
2002-10-09 08:59:02 +00:00
|
|
|
private:
|
|
|
|
/// Apply changes
|
|
|
|
void apply();
|
|
|
|
/// update
|
|
|
|
void update_contents();
|
|
|
|
/// build the dialog
|
|
|
|
void build_dialog();
|
2002-11-07 15:48:38 +00:00
|
|
|
/// save as default template
|
|
|
|
void saveDocDefault();
|
|
|
|
/// reset to default params
|
|
|
|
void useClassDefaults();
|
2002-12-01 22:59:25 +00:00
|
|
|
|
2002-11-13 00:52:15 +00:00
|
|
|
/// FIXME
|
2003-10-06 15:43:21 +00:00
|
|
|
std::vector<std::string> lang_;
|
2003-10-23 11:58:01 +00:00
|
|
|
/// Contains all legal branches for this doc
|
|
|
|
BranchList branchlist_;
|
2001-03-29 15:02:19 +00:00
|
|
|
};
|
2001-03-23 06:31:30 +00:00
|
|
|
|
2001-08-19 13:25:15 +00:00
|
|
|
#endif // QDOCUMENT_H
|