]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlFloat.h
6ba718b5dfbda69e05deccb0b9d83f46b1b5b6d6
[lyx.git] / src / frontends / controllers / ControlFloat.h
1 // -*- C++ -*-
2 /**
3  * \file ControlFloat.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author unknown
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef CONTROLFLOAT_H
13 #define CONTROLFLOAT_H
14
15 #include "Dialog.h"
16 #include <boost/scoped_ptr.hpp>
17
18 namespace lyx {
19
20 class InsetFloatParams;
21
22 namespace frontend {
23
24 class ControlFloat : public Controller {
25 public:
26         ///
27         ControlFloat(Dialog &);
28         ///
29         virtual bool initialiseParams(std::string const & data);
30         /// clean-up on hide.
31         virtual void clearParams();
32         /// clean-up on hide.
33         virtual void dispatchParams();
34         ///
35         virtual bool isBufferDependent() const { return true; }
36         ///
37         InsetFloatParams & params() { return *params_.get(); }
38         ///
39         InsetFloatParams const & params() const { return *params_.get(); }
40 private:
41         ///
42         boost::scoped_ptr<InsetFloatParams> params_;
43 };
44
45 } // namespace frontend
46 } // namespace lyx
47
48 #endif