search & replace for symbols & function

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3039 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2001-11-16 12:00:27 +00:00
parent ecafa329be
commit 015b7a2f58
7 changed files with 28 additions and 5 deletions

View File

@ -759,3 +759,5 @@ void mathDispatchGreek(BufferView * bv, string const & arg)
}
void mathDispatch(BufferView *, kb_action, string const &)
{}

View File

@ -143,5 +143,7 @@ void mathDispatchInsertMatrix(BufferView *, string const &);
void mathDispatchGreek(BufferView *, string const &);
//
void mathDispatchMathImportSelection(BufferView *, string const &);
//
void mathDispatch(BufferView *, kb_action, string const &);
#endif

View File

@ -49,6 +49,13 @@ void MathFuncInset::draw(Painter & pain, int x, int y) const
}
bool MathFuncInset::match(MathInset * p) const
{
MathFuncInset const * q = p->asFuncInset();
return q && name_ == q->name_;
}
void MathFuncInset::maplize(MapleStream & os) const
{
os << ' ' << name_.c_str();

View File

@ -28,6 +28,8 @@ public:
MathFuncInset * asFuncInset() { return this; }
///
void setName(string const &);
///
bool match(MathInset * p) const;
///
void normalize(NormalStream &) const;

View File

@ -25,7 +25,7 @@ void MathLimitOpInset::write(WriteStream & os) const
}
void MathLimitOpInset::normalize(NormalStream & os) const
void MathLimitOpInset::normalize(NormalStream &) const
{
//os << "[int " << scripts_ << ' ' << core_ << ' ' << diff_ << ']'
}
@ -43,12 +43,12 @@ void MathLimitOpInset::draw(Painter &, int, int) const
}
void MathLimitOpInset::maplize(MapleStream & os) const
void MathLimitOpInset::maplize(MapleStream &) const
{
//os << name_.c_str() << '(' << cell(0) << ')';
}
void MathLimitOpInset::mathmlize(MathMLStream & os) const
void MathLimitOpInset::mathmlize(MathMLStream &) const
{
//os << name_.c_str() << '(' << cell(0) << ')';
}

View File

@ -135,6 +135,13 @@ char const * MathMLtype(string const & s)
}
bool MathSymbolInset::match(MathInset * p) const
{
MathSymbolInset const * q = p->asSymbolInset();
return q && name() == q->name();
}
void MathSymbolInset::mathmlize(MathMLStream & os) const
{
char const * type = MathMLtype(sym_->type);

View File

@ -29,6 +29,10 @@ public:
bool takesLimits() const;
///
MathSymbolInset * asSymbolInset() { return this; }
///
string name() const;
///
bool match(MathInset *) const;
///
void normalize(NormalStream &) const;
@ -40,8 +44,7 @@ public:
void octavize(OctaveStream &) const;
///
void write(WriteStream & os) const;
///
string name() const;
private:
///
MathTextCodes code() const;