]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlFloat.h
fix scrolling bug: 3320 and 3652, maybe not perfect
[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
17 namespace lyx {
18
19 class InsetFloatParams;
20
21 namespace frontend {
22
23 class ControlFloat : public Dialog::Controller {
24 public:
25         ///
26         ControlFloat(Dialog &);
27         ///
28         virtual bool initialiseParams(std::string const & data);
29         /// clean-up on hide.
30         virtual void clearParams();
31         /// clean-up on hide.
32         virtual void dispatchParams();
33         ///
34         virtual bool isBufferDependent() const { return true; }
35         ///
36         InsetFloatParams & params() { return *params_.get(); }
37         ///
38         InsetFloatParams const & params() const { return *params_.get(); }
39 private:
40         ///
41         boost::scoped_ptr<InsetFloatParams> params_;
42 };
43
44 } // namespace frontend
45 } // namespace lyx
46
47 #endif