mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +00:00
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:
parent
ecafa329be
commit
015b7a2f58
@ -759,3 +759,5 @@ void mathDispatchGreek(BufferView * bv, string const & arg)
|
||||
}
|
||||
|
||||
|
||||
void mathDispatch(BufferView *, kb_action, string const &)
|
||||
{}
|
||||
|
@ -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
|
||||
|
@ -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();
|
||||
|
@ -28,6 +28,8 @@ public:
|
||||
MathFuncInset * asFuncInset() { return this; }
|
||||
///
|
||||
void setName(string const &);
|
||||
///
|
||||
bool match(MathInset * p) const;
|
||||
|
||||
///
|
||||
void normalize(NormalStream &) const;
|
||||
|
@ -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) << ')';
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user