+2004-08-14 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
+
+ * tabular.h: remove bogus comments
+
+ * tabular.C (getDescentOfRow):
+ (isPartOfMultiColumn): add assertions
+
+ * lyxlength.C (inPixels): remove #warning
2004-08-14 André Pönitz <poenitz@gmx.net>
2004-08-14 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
+ * insettext.C (editXY): compilation fix
+
* insetinclude.C (priv_dispatch): fix showing dialog on mouse
release
(metrics): the insets is not full width any more.
InsetBase * InsetText::editXY(LCursor & cur, int x, int y) const
{
- lyxerr[Debug::DEBUG] << BOOST_CURRENT_FUNCTION << endl;
old_par = -1;
return text_.editXY(cur, x, y);
//sanitizeEmptyText(cur.bv());
#include <sstream>
-using std::abs;
using std::ostringstream;
using std::string;
// between lengths and font sizes on the screen
// is the same as on paper.
-#ifdef WITH_WARNINGS
-#warning if you don't care than either call this function differently or let it return negative values and call abs() explicitly when needed (Andre')
-#endif
-
double result = 0.0;
switch (unit_) {
int LyXTabular::getDescentOfRow(int row) const
{
- if (row >= rows_)
- return 0;
+ BOOST_ASSERT(row < rows_);
return row_info[row].descent_of_row;
}
bool LyXTabular::isPartOfMultiColumn(int row, int column) const
{
- if (row >= rows_ || column >= columns_)
- return false;
+ BOOST_ASSERT(row < rows_);
+ BOOST_ASSERT(column < columns_);
return cell_info[row][column].multicolumn == CELL_PART_OF_MULTICOLUMN;
}
int LyXTabular::TeXTopHLine(ostream & os, int row) const
{
- if (row < 0 || row >= rows_)
- return 0;
+ BOOST_ASSERT(row >= 0);
+ BOOST_ASSERT(row < rows_);
int const fcell = getFirstCellInRow(row);
int const n = numberOfCellsInRow(fcell) + fcell;
int getDescentOfRow(int row) const;
///
int getHeightOfTabular() const;
- /// Returns true if a complete update is necessary, otherwise false
+ ///
void setAscentOfRow(int row, int height);
- /// Returns true if a complete update is necessary, otherwise false
+ ///
void setDescentOfRow(int row, int height);
- /// Returns true if a complete update is necessary, otherwise false
+ ///
void setWidthOfCell(int cell, int new_width);
///
void setAllLines(int cell, bool line);