]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlWrap.h
If I ever see another licence blurb again, it'll be too soon...
[lyx.git] / src / frontends / controllers / ControlWrap.h
1 // -*- C++ -*-
2 /**
3  * \file ControlWrap.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Dekel Tsur
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef CONTROLWRAP_H
13 #define CONTROLWRAP_H
14
15 #include "Dialog.h"
16
17 class InsetWrapParams;
18
19 class ControlWrap : public Dialog::Controller  {
20 public:
21         ///
22         ControlWrap(Dialog &);
23         ///
24         virtual bool initialiseParams(string const & data);
25         /// clean-up on hide.
26         virtual void clearParams();
27         /// clean-up on hide.
28         virtual void dispatchParams();
29         ///
30         virtual bool isBufferDependent() const { return true; }
31         ///
32         InsetWrapParams & params() { return *params_.get(); }
33         ///
34         InsetWrapParams const & params() const { return *params_.get(); }
35 private:
36         ///
37         boost::scoped_ptr<InsetWrapParams> params_;
38 };
39
40 #endif