mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 11:16:55 +00:00
remove unneeded methods
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2794 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
f5f9c46c35
commit
0e9148aa78
@ -38,35 +38,3 @@ bool MathFracbaseInset::idxDown(int & idx, int &) const
|
||||
idx = 1;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
bool MathFracbaseInset::idxFirstUp(int & idx, int & pos) const
|
||||
{
|
||||
idx = 0;
|
||||
pos = 0;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
bool MathFracbaseInset::idxFirstDown(int & idx, int & pos) const
|
||||
{
|
||||
idx = 1;
|
||||
pos = 0;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
bool MathFracbaseInset::idxLastUp(int & idx, int & pos) const
|
||||
{
|
||||
idx = 0;
|
||||
pos = cell(idx).size();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
bool MathFracbaseInset::idxLastDown(int & idx, int & pos) const
|
||||
{
|
||||
idx = 1;
|
||||
pos = cell(idx).size();
|
||||
return true;
|
||||
}
|
||||
|
@ -20,14 +20,6 @@ public:
|
||||
bool idxLeft(int &, int &) const;
|
||||
///
|
||||
bool idxRight(int &, int &) const;
|
||||
///
|
||||
bool idxFirstUp(int & idx, int & pos) const;
|
||||
///
|
||||
bool idxFirstDown(int & idx, int & pos) const;
|
||||
///
|
||||
bool idxLastUp(int & idx, int & pos) const;
|
||||
///
|
||||
bool idxLastDown(int & idx, int & pos) const;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -185,18 +185,6 @@ bool MathInset::idxEnd(int &, int &) const
|
||||
}
|
||||
|
||||
|
||||
bool MathInset::idxFirstUp(int &, int &) const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
bool MathInset::idxFirstDown(int &, int &) const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
void MathInset::idxDelete(int &, bool & popit, bool & deleteit)
|
||||
{
|
||||
popit = false;
|
||||
@ -208,18 +196,6 @@ void MathInset::idxDeleteRange(int, int)
|
||||
{}
|
||||
|
||||
|
||||
bool MathInset::idxLastUp(int &, int &) const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
bool MathInset::idxLastDown(int &, int &) const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
void MathInset::getXY(int & x, int & y) const
|
||||
{
|
||||
x = xo();
|
||||
|
@ -90,17 +90,8 @@ public:
|
||||
|
||||
/// Target pos when we enter the inset from the left by pressing "Right"
|
||||
virtual bool idxFirst(int & idx, int & pos) const;
|
||||
/// Target pos when we enter the inset from the left by pressing "Up"
|
||||
virtual bool idxFirstUp(int & idx, int & pos) const;
|
||||
/// Target pos when we enter the inset from the left by pressing "Down"
|
||||
virtual bool idxFirstDown(int & idx, int & pos) const;
|
||||
|
||||
/// Target pos when we enter the inset from the right by pressing "Left"
|
||||
virtual bool idxLast(int & idx, int & pos) const;
|
||||
/// Target pos when we enter the inset from the right by pressing "Up"
|
||||
virtual bool idxLastUp(int & idx, int & pos) const;
|
||||
/// Target pos when we enter the inset from the right by pressing "Down"
|
||||
virtual bool idxLastDown(int & idx, int & pos) const;
|
||||
|
||||
/// Where should we go if we press home?
|
||||
virtual bool idxHome(int & idx, int & pos) const;
|
||||
|
@ -25,7 +25,7 @@ void MathXArray::metrics(MathStyles st) const
|
||||
if (data_.empty())
|
||||
return;
|
||||
|
||||
math_font_max_dim(LM_TC_TEXTRM, LM_ST_TEXT, ascent_, descent_);
|
||||
math_font_max_dim(LM_TC_TEXTRM, st, ascent_, descent_);
|
||||
width_ = 0;
|
||||
|
||||
//lyxerr << "MathXArray::metrics(): '" << data_ << "'\n";
|
||||
|
Loading…
Reference in New Issue
Block a user