]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlNote.h
Martin's changes to the Note inset.
[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 "debug.h"
18 #include <vector>
19
20 class InsetNoteParams;
21
22 class ControlNote : public Dialog::Controller {
23 public:
24         ///
25         ControlNote(Dialog &);
26         ///
27         virtual bool initialiseParams(string const & data);
28         ///
29         virtual void clearParams();
30         ///
31         virtual void dispatchParams();
32         ///
33         virtual bool isBufferDependent() const { return true; }
34         ///
35         InsetNoteParams & params() { return *params_.get(); }
36         ///
37         InsetNoteParams const & params() const { return *params_.get(); }
38         ///
39 private:
40         ///
41         boost::scoped_ptr<InsetNoteParams> params_;
42 };
43
44 ///
45 void note_gui_tokens(std::vector<string> &, std::vector<string> &);
46
47 #endif // CONTROLNOTE_H