]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlNote.C
Add a buffer_path arg to InsetGraphicsMailer's params2string, string2params.
[lyx.git] / src / frontends / controllers / ControlNote.C
1 /**
2  * \file ControlNote.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author Angus Leeming
7  *
8  * Full author contact details are available in file CREDITS
9  */
10
11 #include <config.h>
12
13 #include "ControlNote.h"
14 #include "funcrequest.h"
15 #include "insets/insetnote.h"
16 #include "debug.h"
17
18 ControlNote::ControlNote(Dialog & parent)
19         : Dialog::Controller(parent)
20 {}
21
22
23 bool ControlNote::initialiseParams(string const & data)
24 {
25     InsetNoteParams params;
26         InsetNoteMailer::string2params(data, params);
27         params_.reset(new InsetNoteParams(params));
28         
29         return true;
30
31 }
32
33
34 void ControlNote::clearParams()
35 {
36         params_.reset();
37 }
38
39 void ControlNote::dispatchParams()
40 {
41         string const lfun = InsetNoteMailer::params2string(string("note"), params());
42         kernel().dispatch(FuncRequest(LFUN_INSET_APPLY, lfun));
43 }
44