3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Angus Leeming
8 * Full author contact details are available in file CREDITS.
13 #include "ControlNote.h"
14 #include "funcrequest.h"
15 #include "insets/insetnote.h"
23 ControlNote::ControlNote(Dialog & parent)
24 : Dialog::Controller(parent)
28 bool ControlNote::initialiseParams(string const & data)
30 InsetNoteParams params;
31 InsetNoteMailer::string2params(data, params);
32 params_.reset(new InsetNoteParams(params));
37 void ControlNote::clearParams()
43 void ControlNote::dispatchParams()
45 string const lfun = InsetNoteMailer::params2string(params());
46 kernel().dispatch(FuncRequest(LFUN_INSET_APPLY, lfun));
50 void note_gui_tokens(vector<string> & ids, vector<string> & gui_names)
52 char const * const ids_[] = {"Note", "Comment", "Greyedout"};
53 size_t const ids_size = sizeof(ids_) / sizeof(char *);
54 ids = vector<string>(ids_, ids_ + ids_size);
56 gui_names.push_back(_("LyX Note"));
57 gui_names.push_back(_("Comment"));
58 gui_names.push_back(_("Greyed Out"));