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
|
|
|
*
|
|
|
|
* 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
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
2001-03-29 15:02:19 +00:00
|
|
|
#include "Qt2Base.h"
|
2001-08-23 21:21:50 +00:00
|
|
|
#include "Qt2BC.h"
|
2002-09-24 13:57:09 +00:00
|
|
|
//#include "QtLyXView.h"
|
2001-03-23 06:31:30 +00:00
|
|
|
|
2002-05-22 01:16:37 +00:00
|
|
|
#include <boost/scoped_ptr.hpp>
|
|
|
|
|
2001-03-29 15:02:19 +00:00
|
|
|
class ControlDocument;
|
2001-08-19 13:25:15 +00:00
|
|
|
class QDocumentDialog;
|
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:
|
2001-03-29 15:02:19 +00:00
|
|
|
///
|
2002-10-09 08:59:02 +00:00
|
|
|
QDocument();
|
2001-03-29 15:02:19 +00:00
|
|
|
///
|
2002-10-09 08:59:02 +00:00
|
|
|
friend class QDocumentDialog;
|
|
|
|
private:
|
|
|
|
/// Apply changes
|
|
|
|
void apply();
|
|
|
|
/// update
|
|
|
|
void update_contents();
|
|
|
|
/// build the dialog
|
|
|
|
void build_dialog();
|
|
|
|
///
|
|
|
|
std::vector<string> lang_;
|
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
|