Make split-type math insets clickable.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9776 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Martin Vermeer 2005-04-04 13:40:27 +00:00
parent 5e98ec6251
commit 5f27947aef
3 changed files with 15 additions and 0 deletions

View File

@ -1,5 +1,10 @@
2005-04-04 Martin Vermeer <martin.vermeer@hut.fi>
* math_splitinset.[Ch]: add draw method calling setPosCache,
to make split-type insets clickable.
2005-04-04 Martin Vermeer <martin.vermeer@hut.fi> 2005-04-04 Martin Vermeer <martin.vermeer@hut.fi>
* math_amsarrayinset.C: * math_amsarrayinset.C:
* math_casesinset.C: * math_casesinset.C:
* math_gridinset.C: * math_gridinset.C:

View File

@ -55,6 +55,13 @@ char MathSplitInset::defaultColAlign(col_type col)
} }
void MathSplitInset::draw(PainterInfo & pi, int x, int y) const
{
MathGridInset::draw(pi, x, y);
setPosCache(pi, x, y);
}
bool MathSplitInset::getStatus(LCursor & cur, FuncRequest const & cmd, bool MathSplitInset::getStatus(LCursor & cur, FuncRequest const & cmd,
FuncStatus & flag) const FuncStatus & flag) const
{ {

View File

@ -20,6 +20,9 @@ public:
/// ///
explicit MathSplitInset(std::string const & name); explicit MathSplitInset(std::string const & name);
///
void draw(PainterInfo & pi, int x, int y) const;
/// ///
bool getStatus(LCursor & cur, FuncRequest const & cmd, bool getStatus(LCursor & cur, FuncRequest const & cmd,
FuncStatus & flag) const; FuncStatus & flag) const;