]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlVSpace.h
fix crash due to invalidated iterator
[lyx.git] / src / frontends / controllers / ControlVSpace.h
1 // -*- C++ -*-
2 /**
3  * \file ControlVSpace.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Edwin Leuven
8  * \author André Pönitz
9  *
10  * Full author contact details are available in file CREDITS.
11  */
12
13 #ifndef CONTROLVSPACE_H
14 #define CONTROLVSPACE_H
15
16 #include "Dialog.h"
17 #include "vspace.h"
18
19 namespace lyx {
20 namespace frontend {
21
22 class ControlVSpace : public Dialog::Controller {
23 public:
24         ///
25         ControlVSpace(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         VSpace & params();
36         ///
37         VSpace const & params() const;
38         ///
39         bool inInset() const;
40
41 private:
42         ///
43         VSpace params_;
44 };
45
46 } // namespace frontend
47 } // namespace lyx
48
49 #endif // CONTROLPARAGRAPH_H