+2001-03-16 André Pönitz <poenitz@htwm.de>
+
+ * math_matrixinset.h:
+ * math_parinset.[Ch]:
+ * math_rowst.[Ch]: move MathedRowContainer::row_ to the base
+
2001-03-13 John Levon <moz@compsoc.man.ac.uk>
* Makefile.am:
2001-03-15 André Pönitz <poenitz@htwm.de>
- * math_cursor.C: fix bug (cursor was leaving two insets at a time instead
- of one)
+ * math_cursor.C: fix bug (cursor was leaving two insets at a time
+ instead of one)
2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
int GetRows() const;
///
virtual bool isMatrix() const;
-
- /// Use this to manage the extra information independently of paragraph
- MathedRowContainer & getRowSt();
+
private:
/// Number of columns & rows
int nc_;
///
//std::vector<char> h_align;
string h_align_; // a vector would perhaps be more correct
- /// Vertical structure
- MathedRowContainer row_;
};
return true;
}
-
-inline
-MathedRowContainer & MathMatrixInset::getRowSt()
-{
- return row_;
-}
#endif
MathedRowContainer & MathParInset::getRowSt()
{
- static MathedRowContainer dummy;
- return dummy;
+ return row_;
}
///
virtual void SetStyle(short);
///
- virtual MathedRowContainer & getRowSt();
+ MathedRowContainer & getRowSt();
///
virtual bool Permit(short f) const;
///
void xo(int tx);
///
void yo(int ty);
+ ///
+ MathedRowContainer row_;
private:
/// Cursor start position
int xo_;
return (void *)(st_ && pos_ < st_->size());
}
-MathedRowStruct & MathedRowContainer::iterator::operator*()
-{
- Assert(st_);
- return st_->data_[pos_];
-}
-
MathedRowStruct * MathedRowContainer::iterator::operator->()
{
Assert(st_);
/// "better" conversion to bool
operator void *() const;
///
- MathedRowStruct & operator*();
- ///
MathedRowStruct * operator->();
///
MathedRowStruct const * operator->() const;
//private:
///
std::vector<MathedRowStruct> data_;
-
-private:
- // currently unimplemented just to make sure it's not used
- void operator=(MathedRowContainer const &); // unimplemented
};
#endif