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