* LyXFunc: new setLyXView() method
* LyXView::dispatch(): call LyXFunc::setLyXView() before lyx::dispatch()
What remains to be done is to ensure that every call to lyx::dispatch that is LyXView dependant is replaced with LyXView::dispatch().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15308
a592a061-630c-0410-9148-
cb99ea01b6c8
void LyXView::dispatch(FuncRequest const & cmd)
{
void LyXView::dispatch(FuncRequest const & cmd)
{
+ theLyXFunc().setLyXView(this);
+void LyXFunc::setLyXView(LyXView * lv)
+{
+ owner = lv;
+}
+
void LyXFunc::handleKeyFunc(kb_action action)
{
char c = encoded_last_key;
void LyXFunc::handleKeyFunc(kb_action action)
{
char c = encoded_last_key;
/// LyX dispatcher, executes lyx actions.
void dispatch(FuncRequest const &);
/// LyX dispatcher, executes lyx actions.
void dispatch(FuncRequest const &);
+ ///
+ void setLyXView(LyXView * lv);
+
/// return the status bar state string
std::string const viewStatusMessage();
/// return the status bar state string
std::string const viewStatusMessage();