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