/// Flags what action is taken by Kernel::dispatch()
/// Flags what action is taken by Kernel::dispatch()
-static std::string const lfun_name_ = "include";
+/// Needed because we're not inheriting from GuiCommand
+static std::string const lfun_include_ = "include";
GuiInclude::GuiInclude(LyXView & lv)
GuiInclude::GuiInclude(LyXView & lv)
bool GuiInclude::initialiseParams(string const & data)
{
bool GuiInclude::initialiseParams(string const & data)
{
- InsetCommandMailer::string2params(lfun_name_, data, params_);
+ InsetCommandMailer::string2params(lfun_include_, data, params_);
void GuiInclude::dispatchParams()
{
void GuiInclude::dispatchParams()
{
- dispatch(FuncRequest(getLfun(), InsetCommandMailer::params2string(lfun_name_, params_)));
+ dispatch(FuncRequest(getLfun(), InsetCommandMailer::params2string(lfun_include_, params_)));
using support::makeDisplayPath;
/// Flags what action is taken by Kernel::dispatch()
using support::makeDisplayPath;
/// Flags what action is taken by Kernel::dispatch()
-static std::string const lfun_name_ = "ref";
+/// Needed because we're not inheriting from GuiCommand
+static std::string const lfun_ref_ = "ref";
GuiRef::GuiRef(LyXView & lv)
: GuiDialog(lv, "ref"), params_(REF_CODE)
GuiRef::GuiRef(LyXView & lv)
: GuiDialog(lv, "ref"), params_(REF_CODE)
{
// The name passed with LFUN_INSET_APPLY is also the name
// used to identify the mailer.
{
// The name passed with LFUN_INSET_APPLY is also the name
// used to identify the mailer.
- InsetCommandMailer::string2params(lfun_name_, data, params_);
+ InsetCommandMailer::string2params(lfun_ref_, data, params_);
void GuiRef::dispatchParams()
{
void GuiRef::dispatchParams()
{
- string const lfun = InsetCommandMailer::params2string(lfun_name_, params_);
+ string const lfun = InsetCommandMailer::params2string(lfun_ref_, params_);
dispatch(FuncRequest(getLfun(), lfun));
}
dispatch(FuncRequest(getLfun(), lfun));
}