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