2002-10-09 08:59:02 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file ControlDocument.h
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author Edwin Leuven
|
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
* Full author contact details are available in file CREDITS.
|
2002-10-09 08:59:02 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CONTROLDOCUMENT_H
|
|
|
|
#define CONTROLDOCUMENT_H
|
|
|
|
|
|
|
|
|
|
|
|
#include <boost/scoped_ptr.hpp>
|
|
|
|
#include "ControlDialog_impl.h"
|
2003-09-05 17:23:11 +00:00
|
|
|
#include "support/std_string.h"
|
2002-10-09 08:59:02 +00:00
|
|
|
#include "bufferparams.h"
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
class Language;
|
|
|
|
|
|
|
|
|
|
|
|
/** A controller for Document dialogs.
|
|
|
|
*/
|
|
|
|
class ControlDocument : public ControlDialogBD {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
ControlDocument(LyXView &, Dialogs &);
|
2002-10-20 01:48:28 +00:00
|
|
|
///
|
2002-10-09 08:59:02 +00:00
|
|
|
~ControlDocument();
|
|
|
|
///
|
|
|
|
void setLanguage();
|
|
|
|
///
|
|
|
|
LyXTextClass textClass();
|
|
|
|
///
|
|
|
|
BufferParams & params();
|
|
|
|
///
|
|
|
|
void saveAsDefault();
|
2002-10-20 01:48:28 +00:00
|
|
|
///
|
2002-11-22 10:47:56 +00:00
|
|
|
void classApply();
|
|
|
|
///
|
|
|
|
bool loadTextclass(lyx::textclass_type tc) const;
|
2002-10-09 08:59:02 +00:00
|
|
|
private:
|
|
|
|
/// apply settings
|
|
|
|
void apply();
|
|
|
|
/// set the params before show or update
|
|
|
|
void setParams();
|
|
|
|
///
|
|
|
|
boost::scoped_ptr<BufferParams> bp_;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CONTROLDOCUMENT_H
|