mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
rename priv_dispatch to doDispatch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9301 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
ed064bdee6
commit
183239b7de
@ -1,3 +1,7 @@
|
||||
2004-11-24 Lars Gullik Bjønnes <larsbj@gullik.net>
|
||||
|
||||
* Most insets: rename priv_dispatch to doDispatch
|
||||
|
||||
2004-11-24 Georg Baum <Georg.Baum@post.rwth-aachen.de>
|
||||
|
||||
* insettabular.C (tabularFeatures): fix multicolumn handling
|
||||
|
@ -124,11 +124,11 @@ void InsetBase::dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
{
|
||||
cur.needsUpdate();
|
||||
cur.dispatched();
|
||||
priv_dispatch(cur, cmd);
|
||||
doDispatch(cur, cmd);
|
||||
}
|
||||
|
||||
|
||||
void InsetBase::priv_dispatch(LCursor & cur, FuncRequest &)
|
||||
void InsetBase::doDispatch(LCursor & cur, FuncRequest &)
|
||||
{
|
||||
cur.noUpdate();
|
||||
cur.undispatched();
|
||||
|
@ -386,7 +386,7 @@ protected:
|
||||
InsetBase();
|
||||
InsetBase(InsetBase const &);
|
||||
// the real dispatcher
|
||||
virtual void priv_dispatch(LCursor & cur, FuncRequest & cmd);
|
||||
virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
|
||||
private:
|
||||
virtual std::auto_ptr<InsetBase> doClone() const = 0;
|
||||
};
|
||||
|
@ -55,7 +55,7 @@ auto_ptr<InsetBase> InsetBibitem::doClone() const
|
||||
}
|
||||
|
||||
|
||||
void InsetBibitem::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
void InsetBibitem::doDispatch(LCursor & cur, FuncRequest & cmd)
|
||||
{
|
||||
switch (cmd.action) {
|
||||
|
||||
@ -71,7 +71,7 @@ void InsetBibitem::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
}
|
||||
|
||||
default:
|
||||
InsetCommand::priv_dispatch(cur, cmd);
|
||||
InsetCommand::doDispatch(cur, cmd);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -49,7 +49,7 @@ public:
|
||||
OutputParams const &) const;
|
||||
protected:
|
||||
///
|
||||
virtual void priv_dispatch(LCursor & cur, FuncRequest & cmd);
|
||||
virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
|
||||
private:
|
||||
virtual std::auto_ptr<InsetBase> doClone() const;
|
||||
|
||||
|
@ -68,7 +68,7 @@ std::auto_ptr<InsetBase> InsetBibtex::doClone() const
|
||||
}
|
||||
|
||||
|
||||
void InsetBibtex::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
void InsetBibtex::doDispatch(LCursor & cur, FuncRequest & cmd)
|
||||
{
|
||||
switch (cmd.action) {
|
||||
|
||||
@ -81,7 +81,7 @@ void InsetBibtex::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
}
|
||||
|
||||
default:
|
||||
InsetCommand::priv_dispatch(cur, cmd);
|
||||
InsetCommand::doDispatch(cur, cmd);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -45,7 +45,7 @@ public:
|
||||
///
|
||||
void validate(LaTeXFeatures &) const;
|
||||
protected:
|
||||
virtual void priv_dispatch(LCursor & cur, FuncRequest & cmd);
|
||||
virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
|
||||
private:
|
||||
virtual std::auto_ptr<InsetBase> doClone() const;
|
||||
|
||||
|
@ -170,7 +170,7 @@ bool InsetBox::showInsetDialog(BufferView * bv) const
|
||||
}
|
||||
|
||||
|
||||
void InsetBox::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
void InsetBox::doDispatch(LCursor & cur, FuncRequest & cmd)
|
||||
{
|
||||
switch (cmd.action) {
|
||||
|
||||
@ -190,11 +190,11 @@ void InsetBox::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
InsetBoxMailer(*this).showDialog(&cur.bv());
|
||||
break;
|
||||
}
|
||||
InsetCollapsable::priv_dispatch(cur, cmd);
|
||||
InsetCollapsable::doDispatch(cur, cmd);
|
||||
break;
|
||||
|
||||
default:
|
||||
InsetCollapsable::priv_dispatch(cur, cmd);
|
||||
InsetCollapsable::doDispatch(cur, cmd);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -101,7 +101,7 @@ public:
|
||||
};
|
||||
protected:
|
||||
InsetBox(InsetBox const &);
|
||||
virtual void priv_dispatch(LCursor & cur, FuncRequest & cmd);
|
||||
virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
|
||||
private:
|
||||
friend class InsetBoxParams;
|
||||
|
||||
|
@ -111,7 +111,7 @@ bool InsetBranch::showInsetDialog(BufferView * bv) const
|
||||
}
|
||||
|
||||
|
||||
void InsetBranch::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
void InsetBranch::doDispatch(LCursor & cur, FuncRequest & cmd)
|
||||
{
|
||||
switch (cmd.action) {
|
||||
case LFUN_INSET_MODIFY: {
|
||||
@ -124,7 +124,7 @@ void InsetBranch::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
|
||||
case LFUN_MOUSE_PRESS:
|
||||
if (cmd.button() != mouse_button::button3)
|
||||
InsetCollapsable::priv_dispatch(cur, cmd);
|
||||
InsetCollapsable::doDispatch(cur, cmd);
|
||||
else
|
||||
cur.undispatched();
|
||||
break;
|
||||
@ -137,7 +137,7 @@ void InsetBranch::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
if (cmd.button() == mouse_button::button3 && hitButton(cmd))
|
||||
InsetBranchMailer(*this).showDialog(&cur.bv());
|
||||
else
|
||||
InsetCollapsable::priv_dispatch(cur, cmd);
|
||||
InsetCollapsable::doDispatch(cur, cmd);
|
||||
break;
|
||||
|
||||
|
||||
@ -178,7 +178,7 @@ void InsetBranch::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
break;
|
||||
|
||||
default:
|
||||
InsetCollapsable::priv_dispatch(cur, cmd);
|
||||
InsetCollapsable::doDispatch(cur, cmd);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -77,7 +77,7 @@ public:
|
||||
|
||||
protected:
|
||||
InsetBranch(InsetBranch const &);
|
||||
virtual void priv_dispatch(LCursor & cur, FuncRequest & cmd);
|
||||
virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
|
||||
private:
|
||||
friend class InsetBranchParams;
|
||||
|
||||
|
@ -163,7 +163,7 @@ void InsetCharStyle::getDrawFont(LyXFont & font) const
|
||||
}
|
||||
|
||||
|
||||
void InsetCharStyle::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
void InsetCharStyle::doDispatch(LCursor & cur, FuncRequest & cmd)
|
||||
{
|
||||
setStatus(Inlined);
|
||||
switch (cmd.action) {
|
||||
@ -171,11 +171,11 @@ void InsetCharStyle::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
if (cmd.button() == mouse_button::button3)
|
||||
has_label_ = !has_label_;
|
||||
else
|
||||
InsetText::priv_dispatch(cur, cmd);
|
||||
InsetText::doDispatch(cur, cmd);
|
||||
break;
|
||||
|
||||
default:
|
||||
InsetCollapsable::priv_dispatch(cur, cmd);
|
||||
InsetCollapsable::doDispatch(cur, cmd);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -78,7 +78,7 @@ public:
|
||||
|
||||
protected:
|
||||
InsetCharStyle(InsetCharStyle const &);
|
||||
virtual void priv_dispatch(LCursor & cur, FuncRequest & cmd);
|
||||
virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
|
||||
///
|
||||
bool getStatus(LCursor & cur, FuncRequest const & cmd, FuncStatus &) const;
|
||||
|
||||
|
@ -251,30 +251,30 @@ InsetBase * InsetCollapsable::editXY(LCursor & cur, int x, int y) const
|
||||
}
|
||||
|
||||
|
||||
void InsetCollapsable::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
void InsetCollapsable::doDispatch(LCursor & cur, FuncRequest & cmd)
|
||||
{
|
||||
// lyxerr << "InsetCollapsable::priv_dispatch (begin): cmd: " << cmd
|
||||
// << " button y: " << button_dim.y2
|
||||
// << " coll/inline/open: " << status_ << endl;
|
||||
// lyxerr << "InsetCollapsable::doDispatch (begin): cmd: " << cmd
|
||||
// << " button y: " << button_dim.y2
|
||||
// << " coll/inline/open: " << status_ << endl;
|
||||
|
||||
lyxerr << "InsetCollapsable::priv_dispatch (begin): cmd: " << cmd
|
||||
lyxerr << "InsetCollapsable::doDispatch (begin): cmd: " << cmd
|
||||
<< " cur: " << cur << " bvcur: " << cur.bv().cursor() << endl;
|
||||
|
||||
switch (cmd.action) {
|
||||
case LFUN_MOUSE_PRESS:
|
||||
if (status_ == Inlined)
|
||||
InsetText::priv_dispatch(cur, cmd);
|
||||
InsetText::doDispatch(cur, cmd);
|
||||
else if (status_ == Open && !hitButton(cmd))
|
||||
InsetText::priv_dispatch(cur, cmd);
|
||||
InsetText::doDispatch(cur, cmd);
|
||||
else
|
||||
cur.noUpdate();
|
||||
break;
|
||||
|
||||
case LFUN_MOUSE_MOTION:
|
||||
if (status_ == Inlined)
|
||||
InsetText::priv_dispatch(cur, cmd);
|
||||
InsetText::doDispatch(cur, cmd);
|
||||
else if (status_ == Open && !hitButton(cmd))
|
||||
InsetText::priv_dispatch(cur, cmd);
|
||||
InsetText::doDispatch(cur, cmd);
|
||||
break;
|
||||
|
||||
case LFUN_MOUSE_RELEASE:
|
||||
@ -300,14 +300,14 @@ void InsetCollapsable::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
cur.bv().cursor() = cur;
|
||||
} else {
|
||||
lyxerr << "InsetCollapsable::lfunMouseRelease 3" << endl;
|
||||
InsetText::priv_dispatch(cur, cmd);
|
||||
InsetText::doDispatch(cur, cmd);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case Inlined:
|
||||
lyxerr << "InsetCollapsable::lfunMouseRelease 4" << endl;
|
||||
InsetText::priv_dispatch(cur, cmd);
|
||||
InsetText::doDispatch(cur, cmd);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
@ -331,7 +331,7 @@ void InsetCollapsable::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
break;
|
||||
|
||||
default:
|
||||
InsetText::priv_dispatch(cur, cmd);
|
||||
InsetText::doDispatch(cur, cmd);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -89,7 +89,7 @@ protected:
|
||||
///
|
||||
void setStatus(CollapseStatus st);
|
||||
///
|
||||
void priv_dispatch(LCursor & cur, FuncRequest & cmd);
|
||||
virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
|
||||
///
|
||||
void dimension_collapsed(Dimension &) const;
|
||||
///
|
||||
|
@ -98,7 +98,7 @@ int InsetCommand::docbook(Buffer const &, ostream &,
|
||||
}
|
||||
|
||||
|
||||
void InsetCommand::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
void InsetCommand::doDispatch(LCursor & cur, FuncRequest & cmd)
|
||||
{
|
||||
switch (cmd.action) {
|
||||
case LFUN_INSET_REFRESH:
|
||||
@ -129,7 +129,7 @@ void InsetCommand::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
}
|
||||
|
||||
default:
|
||||
InsetOld::priv_dispatch(cur, cmd);
|
||||
InsetOld::doDispatch(cur, cmd);
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -76,7 +76,7 @@ public:
|
||||
|
||||
protected:
|
||||
///
|
||||
void priv_dispatch(LCursor & cur, FuncRequest & cmd);
|
||||
virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
|
||||
///
|
||||
std::string const getCommand() const { return p_.getCommand(); }
|
||||
///
|
||||
|
@ -209,9 +209,9 @@ int InsetERT::docbook(Buffer const &, ostream & os,
|
||||
}
|
||||
|
||||
|
||||
void InsetERT::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
void InsetERT::doDispatch(LCursor & cur, FuncRequest & cmd)
|
||||
{
|
||||
//lyxerr << "\nInsetERT::priv_dispatch (begin): cmd: " << cmd << endl;
|
||||
//lyxerr << "\nInsetERT::doDispatch (begin): cmd: " << cmd << endl;
|
||||
switch (cmd.action) {
|
||||
|
||||
case LFUN_INSET_MODIFY: {
|
||||
@ -222,7 +222,7 @@ void InsetERT::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
}
|
||||
|
||||
default:
|
||||
InsetCollapsable::priv_dispatch(cur, cmd);
|
||||
InsetCollapsable::doDispatch(cur, cmd);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -71,7 +71,7 @@ public:
|
||||
protected:
|
||||
InsetERT(InsetERT const &);
|
||||
///
|
||||
virtual void priv_dispatch(LCursor & cur, FuncRequest & cmd);
|
||||
virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
|
||||
///
|
||||
bool getStatus(LCursor & cur, FuncRequest const & cmd, FuncStatus &) const;
|
||||
private:
|
||||
|
@ -433,7 +433,7 @@ void InsetExternal::statusChanged() const
|
||||
}
|
||||
|
||||
|
||||
void InsetExternal::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
void InsetExternal::doDispatch(LCursor & cur, FuncRequest & cmd)
|
||||
{
|
||||
switch (cmd.action) {
|
||||
|
||||
@ -462,7 +462,7 @@ void InsetExternal::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
break;
|
||||
|
||||
default:
|
||||
InsetOld::priv_dispatch(cur, cmd);
|
||||
InsetOld::doDispatch(cur, cmd);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -148,7 +148,7 @@ public:
|
||||
protected:
|
||||
InsetExternal(InsetExternal const &);
|
||||
///
|
||||
void priv_dispatch(LCursor & cur, FuncRequest & cmd);
|
||||
virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
|
||||
private:
|
||||
virtual std::auto_ptr<InsetBase> doClone() const;
|
||||
|
||||
|
@ -154,7 +154,7 @@ InsetFloat::~InsetFloat()
|
||||
}
|
||||
|
||||
|
||||
void InsetFloat::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
void InsetFloat::doDispatch(LCursor & cur, FuncRequest & cmd)
|
||||
{
|
||||
switch (cmd.action) {
|
||||
|
||||
@ -180,12 +180,12 @@ void InsetFloat::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
InsetFloatMailer(*this).showDialog(&cur.bv());
|
||||
break;
|
||||
}
|
||||
InsetCollapsable::priv_dispatch(cur, cmd);
|
||||
InsetCollapsable::doDispatch(cur, cmd);
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
InsetCollapsable::priv_dispatch(cur, cmd);
|
||||
InsetCollapsable::doDispatch(cur, cmd);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -80,7 +80,7 @@ public:
|
||||
///
|
||||
InsetFloatParams const & params() const { return params_; }
|
||||
protected:
|
||||
virtual void priv_dispatch(LCursor & cur, FuncRequest & cmd);
|
||||
virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
|
||||
private:
|
||||
virtual std::auto_ptr<InsetBase> doClone() const;
|
||||
|
||||
|
@ -179,7 +179,7 @@ InsetGraphics::~InsetGraphics()
|
||||
}
|
||||
|
||||
|
||||
void InsetGraphics::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
void InsetGraphics::doDispatch(LCursor & cur, FuncRequest & cmd)
|
||||
{
|
||||
switch (cmd.action) {
|
||||
case LFUN_GRAPHICS_EDIT: {
|
||||
@ -210,7 +210,7 @@ void InsetGraphics::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
break;
|
||||
|
||||
default:
|
||||
InsetOld::priv_dispatch(cur, cmd);
|
||||
InsetOld::doDispatch(cur, cmd);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -79,7 +79,7 @@ public:
|
||||
protected:
|
||||
InsetGraphics(InsetGraphics const &);
|
||||
///
|
||||
void priv_dispatch(LCursor & cur, FuncRequest & cmd);
|
||||
virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
|
||||
private:
|
||||
friend class InsetGraphicsMailer;
|
||||
|
||||
|
@ -119,7 +119,7 @@ InsetInclude::~InsetInclude()
|
||||
}
|
||||
|
||||
|
||||
void InsetInclude::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
void InsetInclude::doDispatch(LCursor & cur, FuncRequest & cmd)
|
||||
{
|
||||
switch (cmd.action) {
|
||||
|
||||
@ -143,7 +143,7 @@ void InsetInclude::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
break;
|
||||
|
||||
default:
|
||||
InsetOld::priv_dispatch(cur, cmd);
|
||||
InsetOld::doDispatch(cur, cmd);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -80,7 +80,7 @@ public:
|
||||
protected:
|
||||
InsetInclude(InsetInclude const &);
|
||||
///
|
||||
virtual void priv_dispatch(LCursor & cur, FuncRequest & cmd);
|
||||
virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
|
||||
private:
|
||||
virtual std::auto_ptr<InsetBase> doClone() const;
|
||||
|
||||
|
@ -92,7 +92,7 @@ void changeRefsIfUnique(BufferView & bv, string const & from, string const & to)
|
||||
} // namespace anon
|
||||
|
||||
|
||||
void InsetLabel::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
void InsetLabel::doDispatch(LCursor & cur, FuncRequest & cmd)
|
||||
{
|
||||
switch (cmd.action) {
|
||||
|
||||
@ -111,7 +111,7 @@ void InsetLabel::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
}
|
||||
|
||||
default:
|
||||
InsetCommand::priv_dispatch(cur, cmd);
|
||||
InsetCommand::doDispatch(cur, cmd);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -39,7 +39,7 @@ public:
|
||||
int docbook(Buffer const &, std::ostream &,
|
||||
OutputParams const &) const;
|
||||
protected:
|
||||
virtual void priv_dispatch(LCursor & cur, FuncRequest & cmd);
|
||||
virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
|
||||
private:
|
||||
virtual std::auto_ptr<InsetBase> doClone() const;
|
||||
};
|
||||
|
@ -184,7 +184,7 @@ bool InsetNote::showInsetDialog(BufferView * bv) const
|
||||
}
|
||||
|
||||
|
||||
void InsetNote::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
void InsetNote::doDispatch(LCursor & cur, FuncRequest & cmd)
|
||||
{
|
||||
switch (cmd.action) {
|
||||
|
||||
@ -202,11 +202,11 @@ void InsetNote::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
if (cmd.button() == mouse_button::button3 && hitButton(cmd))
|
||||
InsetNoteMailer(*this).showDialog(&cur.bv());
|
||||
else
|
||||
InsetCollapsable::priv_dispatch(cur, cmd);
|
||||
InsetCollapsable::doDispatch(cur, cmd);
|
||||
break;
|
||||
|
||||
default:
|
||||
InsetCollapsable::priv_dispatch(cur, cmd);
|
||||
InsetCollapsable::doDispatch(cur, cmd);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -72,7 +72,7 @@ public:
|
||||
protected:
|
||||
InsetNote(InsetNote const &);
|
||||
///
|
||||
virtual void priv_dispatch(LCursor & cur, FuncRequest & cmd);
|
||||
virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
|
||||
private:
|
||||
friend class InsetNoteParams;
|
||||
|
||||
|
@ -42,7 +42,7 @@ InsetRef::InsetRef(InsetRef const & ir)
|
||||
{}
|
||||
|
||||
|
||||
void InsetRef::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
void InsetRef::doDispatch(LCursor & cur, FuncRequest & cmd)
|
||||
{
|
||||
switch (cmd.action) {
|
||||
case LFUN_MOUSE_PRESS:
|
||||
@ -57,7 +57,7 @@ void InsetRef::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
return;
|
||||
|
||||
default:
|
||||
return InsetCommand::priv_dispatch(cur, cmd);
|
||||
return InsetCommand::doDispatch(cur, cmd);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -61,7 +61,7 @@ protected:
|
||||
InsetRef(InsetRef const &);
|
||||
|
||||
///
|
||||
void priv_dispatch(LCursor & cur, FuncRequest & cmd);
|
||||
virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
|
||||
private:
|
||||
virtual std::auto_ptr<InsetBase> doClone() const {
|
||||
return std::auto_ptr<InsetBase>(new InsetRef(*this));
|
||||
|
@ -410,7 +410,7 @@ InsetBase * InsetTabular::editXY(LCursor & cur, int x, int y) const
|
||||
}
|
||||
|
||||
|
||||
void InsetTabular::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
void InsetTabular::doDispatch(LCursor & cur, FuncRequest & cmd)
|
||||
{
|
||||
lyxerr << "# InsetTabular::dispatch: cmd: " << cmd << endl;
|
||||
//lyxerr << " cur:\n" << cur << endl;
|
||||
|
@ -138,8 +138,9 @@ public:
|
||||
|
||||
protected:
|
||||
InsetTabular(InsetTabular const &);
|
||||
///
|
||||
void priv_dispatch(LCursor & cur, FuncRequest & cmd);
|
||||
|
||||
virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
|
||||
|
||||
///
|
||||
bool getStatus(LCursor & cur, FuncRequest const & cmd, FuncStatus &) const;
|
||||
private:
|
||||
|
@ -290,9 +290,9 @@ InsetBase * InsetText::editXY(LCursor & cur, int x, int y) const
|
||||
}
|
||||
|
||||
|
||||
void InsetText::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
void InsetText::doDispatch(LCursor & cur, FuncRequest & cmd)
|
||||
{
|
||||
//lyxerr << "InsetText::priv_dispatch: " << cmd.action << " " << endl;
|
||||
//lyxerr << "InsetText::doDispatch: " << cmd.action << " " << endl;
|
||||
setViewCache(&cur.bv());
|
||||
|
||||
bool was_empty = paragraphs().begin()->empty() && paragraphs().size() == 1;
|
||||
|
@ -139,7 +139,7 @@ public:
|
||||
protected:
|
||||
InsetText(InsetText const &);
|
||||
///
|
||||
void priv_dispatch(LCursor & cur, FuncRequest & cmd);
|
||||
virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
|
||||
private:
|
||||
virtual std::auto_ptr<InsetBase> doClone() const;
|
||||
|
||||
|
@ -60,7 +60,7 @@ std::auto_ptr<InsetBase> InsetVSpace::doClone() const
|
||||
}
|
||||
|
||||
|
||||
void InsetVSpace::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
void InsetVSpace::doDispatch(LCursor & cur, FuncRequest & cmd)
|
||||
{
|
||||
switch (cmd.action) {
|
||||
|
||||
@ -74,7 +74,7 @@ void InsetVSpace::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
break;
|
||||
|
||||
default:
|
||||
InsetOld::priv_dispatch(cur, cmd);
|
||||
InsetOld::doDispatch(cur, cmd);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -52,7 +52,7 @@ public:
|
||||
|
||||
protected:
|
||||
///
|
||||
virtual void priv_dispatch(LCursor & cur, FuncRequest & cmd);
|
||||
virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
|
||||
|
||||
private:
|
||||
virtual std::auto_ptr<InsetBase> doClone() const;
|
||||
|
@ -80,7 +80,7 @@ InsetWrap::~InsetWrap()
|
||||
}
|
||||
|
||||
|
||||
void InsetWrap::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
void InsetWrap::doDispatch(LCursor & cur, FuncRequest & cmd)
|
||||
{
|
||||
switch (cmd.action) {
|
||||
case LFUN_INSET_MODIFY: {
|
||||
@ -101,12 +101,12 @@ void InsetWrap::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
InsetWrapMailer(*this).showDialog(&cur.bv());
|
||||
break;
|
||||
}
|
||||
InsetCollapsable::priv_dispatch(cur, cmd);
|
||||
InsetCollapsable::doDispatch(cur, cmd);
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
InsetCollapsable::priv_dispatch(cur, cmd);
|
||||
InsetCollapsable::doDispatch(cur, cmd);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -66,7 +66,7 @@ public:
|
||||
InsetWrapParams const & params() const { return params_; }
|
||||
protected:
|
||||
///
|
||||
virtual void priv_dispatch(LCursor & cur, FuncRequest & cmd);
|
||||
virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
|
||||
private:
|
||||
virtual std::auto_ptr<InsetBase> doClone() const;
|
||||
|
||||
|
@ -89,7 +89,7 @@ void UpdatableInset::scroll(BufferView & bv, int offset) const
|
||||
}
|
||||
|
||||
|
||||
void UpdatableInset::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
void UpdatableInset::doDispatch(LCursor & cur, FuncRequest & cmd)
|
||||
{
|
||||
switch (cmd.action) {
|
||||
//case LFUN_MOUSE_RELEASE:
|
||||
|
@ -38,7 +38,7 @@ public:
|
||||
|
||||
protected:
|
||||
/// An updatable inset could handle lyx editing commands
|
||||
void priv_dispatch(LCursor & cur, FuncRequest & cmd);
|
||||
virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
|
||||
/// scrolls to absolute position in bufferview-workwidth * sx units
|
||||
void scroll(BufferView &, float sx) const;
|
||||
/// scrolls offset pixels
|
||||
|
@ -9,7 +9,7 @@
|
||||
* To add a new function:
|
||||
* - add a new enum constant immediately before LFUN_LASTACTION
|
||||
* - add an appropriate line in LyXAction.C
|
||||
* - add a branch to a suitable ::priv_dispatch() method
|
||||
* - add a branch to a suitable ::doDispatch() method
|
||||
* - add correct test to the corresponding ::getStatus() method
|
||||
*/
|
||||
|
||||
@ -24,7 +24,7 @@
|
||||
* They are managed in LyXAction.C and handled in various
|
||||
* ::dispatch() functions, starting with LyXFunc.C:dispatch(),
|
||||
* BufferView_pimpl::dispatch(), LCursor::dispatch() and
|
||||
* Inset*::priv_dispatch();
|
||||
* Inset*::doDispatch();
|
||||
*/
|
||||
enum kb_action {
|
||||
LFUN_UNKNOWN_ACTION = -1,
|
||||
|
@ -1,3 +1,7 @@
|
||||
2004-11-24 Lars Gullik Bjønnes <larsbj@gullik.net>
|
||||
|
||||
* Most insets: rename priv_dispatch to doDispatch
|
||||
|
||||
2004-11-24 Lars Gullik Bjonnes <larsbj@gullik.net>
|
||||
|
||||
* math_hullinset.C (operator): use common semantics
|
||||
|
@ -1008,7 +1008,7 @@ void MathGridInset::splitCell(LCursor & cur)
|
||||
}
|
||||
|
||||
|
||||
void MathGridInset::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
void MathGridInset::doDispatch(LCursor & cur, FuncRequest & cmd)
|
||||
{
|
||||
//lyxerr << "*** MathGridInset: request: " << cmd << endl;
|
||||
switch (cmd.action) {
|
||||
@ -1018,7 +1018,7 @@ void MathGridInset::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
// GridInsetMailer(*this).showDialog();
|
||||
// return DispatchResult(true, true);
|
||||
//}
|
||||
MathNestInset::priv_dispatch(cur, cmd);
|
||||
MathNestInset::doDispatch(cur, cmd);
|
||||
break;
|
||||
|
||||
case LFUN_INSET_DIALOG_UPDATE:
|
||||
@ -1205,7 +1205,7 @@ void MathGridInset::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
break;
|
||||
|
||||
default:
|
||||
MathNestInset::priv_dispatch(cur, cmd);
|
||||
MathNestInset::doDispatch(cur, cmd);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -208,8 +208,7 @@ public:
|
||||
//void octave(OctaveStream &) const;
|
||||
|
||||
protected:
|
||||
///
|
||||
void priv_dispatch(LCursor & cur, FuncRequest & cmd);
|
||||
virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
|
||||
///
|
||||
bool getStatus(LCursor & cur, FuncRequest const & cmd,
|
||||
FuncStatus & flag) const;
|
||||
|
@ -970,7 +970,7 @@ void MathHullInset::doExtern(LCursor & cur, FuncRequest & func)
|
||||
}
|
||||
|
||||
|
||||
void MathHullInset::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
void MathHullInset::doDispatch(LCursor & cur, FuncRequest & cmd)
|
||||
{
|
||||
switch (cmd.action) {
|
||||
|
||||
@ -978,7 +978,7 @@ void MathHullInset::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
case LFUN_FINISHED_RIGHT:
|
||||
case LFUN_FINISHED_UP:
|
||||
case LFUN_FINISHED_DOWN:
|
||||
MathGridInset::priv_dispatch(cur, cmd);
|
||||
MathGridInset::doDispatch(cur, cmd);
|
||||
notifyCursorLeaves(cur);
|
||||
break;
|
||||
|
||||
@ -994,7 +994,7 @@ void MathHullInset::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
cur.idx() = 0;
|
||||
cur.pos() = cur.lastpos();
|
||||
}
|
||||
MathGridInset::priv_dispatch(cur, cmd);
|
||||
MathGridInset::doDispatch(cur, cmd);
|
||||
break;
|
||||
|
||||
case LFUN_MATH_NUMBER:
|
||||
@ -1076,7 +1076,7 @@ void MathHullInset::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
}
|
||||
|
||||
default:
|
||||
MathGridInset::priv_dispatch(cur, cmd);
|
||||
MathGridInset::doDispatch(cur, cmd);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -120,7 +120,7 @@ public:
|
||||
protected:
|
||||
MathHullInset(MathHullInset const &);
|
||||
|
||||
virtual void priv_dispatch(LCursor & cur, FuncRequest & cmd);
|
||||
virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
|
||||
|
||||
/// do we want to handle this event?
|
||||
bool getStatus(LCursor & cur, FuncRequest const & cmd,
|
||||
|
@ -90,7 +90,7 @@ int MathMBoxInset::latex(Buffer const & buf, std::ostream & os,
|
||||
}
|
||||
|
||||
|
||||
void MathMBoxInset::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
void MathMBoxInset::doDispatch(LCursor & cur, FuncRequest & cmd)
|
||||
{
|
||||
text_.dispatch(cur, cmd);
|
||||
}
|
||||
|
@ -26,9 +26,6 @@ public:
|
||||
void metrics(MetricsInfo & mi, Dimension & dim) const;
|
||||
/// draw according to cached metrics
|
||||
void draw(PainterInfo &, int x, int y) const;
|
||||
///
|
||||
void priv_dispatch(LCursor & cur, FuncRequest & cmd);
|
||||
|
||||
///
|
||||
bool inMathed() const { return false; }
|
||||
///
|
||||
@ -44,6 +41,8 @@ public:
|
||||
///
|
||||
void getCursorPos(LCursor const & cur, int & x, int & y) const;
|
||||
protected:
|
||||
virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
|
||||
|
||||
///
|
||||
mutable LyXText text_;
|
||||
///
|
||||
|
@ -380,7 +380,7 @@ void MathNestInset::handleFont2(LCursor & cur, string const & arg)
|
||||
}
|
||||
|
||||
|
||||
void MathNestInset::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
void MathNestInset::doDispatch(LCursor & cur, FuncRequest & cmd)
|
||||
{
|
||||
//lyxerr << "MathNestInset: request: " << cmd << std::endl;
|
||||
//CursorSlice sl = cur.current();
|
||||
@ -794,7 +794,7 @@ void MathNestInset::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
}
|
||||
|
||||
default:
|
||||
MathDimInset::priv_dispatch(cur, cmd);
|
||||
MathDimInset::doDispatch(cur, cmd);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -97,7 +97,7 @@ public:
|
||||
|
||||
protected:
|
||||
///
|
||||
void priv_dispatch(LCursor & cur, FuncRequest & cmd);
|
||||
virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
|
||||
/// do we want to handle this event?
|
||||
bool getStatus(LCursor & cur, FuncRequest const & cmd,
|
||||
FuncStatus & status) const;
|
||||
|
@ -573,7 +573,7 @@ if (1) {
|
||||
}
|
||||
|
||||
|
||||
void MathScriptInset::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
void MathScriptInset::doDispatch(LCursor & cur, FuncRequest & cmd)
|
||||
{
|
||||
//lyxerr << "MathScriptInset: request: " << cmd << std::endl;
|
||||
|
||||
@ -592,5 +592,5 @@ void MathScriptInset::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
return;
|
||||
}
|
||||
|
||||
MathNestInset::priv_dispatch(cur, cmd);
|
||||
MathNestInset::doDispatch(cur, cmd);
|
||||
}
|
||||
|
@ -98,8 +98,7 @@ public:
|
||||
/// say whether we have displayed limits
|
||||
void infoize2(std::ostream & os) const;
|
||||
protected:
|
||||
///
|
||||
void priv_dispatch(LCursor & cur, FuncRequest & cmd);
|
||||
virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
|
||||
private:
|
||||
virtual std::auto_ptr<InsetBase> doClone() const;
|
||||
/// returns x offset for main part
|
||||
|
@ -56,7 +56,7 @@ void RefInset::infoize(std::ostream & os) const
|
||||
}
|
||||
|
||||
|
||||
void RefInset::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
void RefInset::doDispatch(LCursor & cur, FuncRequest & cmd)
|
||||
{
|
||||
switch (cmd.action) {
|
||||
case LFUN_INSET_MODIFY:
|
||||
@ -91,7 +91,7 @@ void RefInset::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
break;
|
||||
|
||||
default:
|
||||
CommandInset::priv_dispatch(cur, cmd);
|
||||
CommandInset::doDispatch(cur, cmd);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -60,8 +60,7 @@ public:
|
||||
///
|
||||
static std::string const & getName(int type);
|
||||
protected:
|
||||
///
|
||||
void priv_dispatch(LCursor & cur, FuncRequest & cmd);
|
||||
virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user