3 * \file ControlDocument.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
12 #ifndef CONTROLDOCUMENT_H
13 #define CONTROLDOCUMENT_H
16 #include "support/types.h"
17 #include <boost/scoped_ptr.hpp>
23 /** A controller for Document dialogs.
25 class ControlDocument : public Dialog::Controller {
28 ControlDocument(Dialog &);
32 virtual bool initialiseParams(std::string const & data);
34 virtual void clearParams();
36 virtual void dispatchParams();
38 virtual bool isBufferDependent() const { return true; }
40 LyXTextClass const & textClass() const;
42 BufferParams & params() const;
44 void setLanguage() const;
46 void saveAsDefault() const;
48 bool loadTextclass(lyx::textclass_type tc) const;
51 boost::scoped_ptr<BufferParams> bp_;
54 #endif // CONTROLDOCUMENT_H