+
+2003-07-30 André Pönitz <poenitz@gmx.net>
+
+ * Paragraph.[Ch] (copyIntoMinibuffer) removed unused function
+
2003-07-30 Martin Vermeer <martin.vermeer@hut.fi>
- * LColor.[Ch]: Add comment and greyedout logical colors.
+ * LColor.[Ch]: Add comment and greyedout logical colors.
2003-07-30 André Pönitz <poenitz@gmx.net>
}
-// First few functions needed for cut and paste and paragraph breaking.
-void Paragraph::copyIntoMinibuffer(Buffer const & buffer, pos_type pos) const
-{
- BufferParams bparams = buffer.params;
-
- minibuffer_char = getChar(pos);
- minibuffer_font = getFontSettings(bparams, pos);
- minibuffer_inset = 0;
- if (minibuffer_char == Paragraph::META_INSET) {
- if (getInset(pos)) {
- minibuffer_inset = static_cast<InsetOld *>(getInset(pos)->clone().release());
- } else {
- minibuffer_inset = 0;
- minibuffer_char = ' ';
- // This reflects what GetInset() does (ARRae)
- }
- }
-}
-
-
void Paragraph::cutIntoMinibuffer(BufferParams const & bparams, pos_type pos)
{
minibuffer_char = getChar(pos);
return true;
}
+
// end of minibuffer
/** important for cut and paste
Temporary change from BufferParams to Buffer. Will revert when we
get rid of the argument to InsetOld::clone(Buffer const &) */
- void copyIntoMinibuffer(Buffer const &, lyx::pos_type pos) const;
- ///
void cutIntoMinibuffer(BufferParams const &, lyx::pos_type pos);
///
bool insertFromMinibuffer(lyx::pos_type pos);
// returns 1 if a complete update is necessary, otherwise 0
-bool LyXTabular::setWidthOfCell(int cell, int new_width)
+void LyXTabular::setWidthOfCell(int cell, int new_width)
{
int const row = row_of_cell(cell);
int const column1 = column_of_cell(cell);
column1 < columns_ - 1 &&
leftLine(cell_info[row][column1+1].cellno, true))
{
- // additional width
add_width = WIDTH_OF_LINE;
}
- if (getWidthOfCell(cell) == new_width + 2 * WIDTH_OF_LINE + add_width) {
- return false;
- }
+
+ if (getWidthOfCell(cell) == new_width + 2 * WIDTH_OF_LINE + add_width)
+ return;
+
if (isMultiColumn(cell, true)) {
tmp = setWidthOfMulticolCell(cell, new_width);
} else {
for (int i = 0; i < columns_; ++i)
calculate_width_of_column(i);
calculate_width_of_tabular();
- return true;
}
- return false;
}
// end longtable support functions
-bool LyXTabular::setAscentOfRow(int row, int height)
+void LyXTabular::setAscentOfRow(int row, int height)
{
if (row >= rows_ || row_info[row].ascent_of_row == height)
- return false;
+ return;
row_info[row].ascent_of_row = height;
- return true;
}
-bool LyXTabular::setDescentOfRow(int row, int height)
+void LyXTabular::setDescentOfRow(int row, int height)
{
if (row >= rows_ || row_info[row].descent_of_row == height)
- return false;
+ return;
row_info[row].descent_of_row = height;
- return true;
}
///
int getHeightOfTabular() const;
/// Returns true if a complete update is necessary, otherwise false
- bool setAscentOfRow(int row, int height);
+ void setAscentOfRow(int row, int height);
/// Returns true if a complete update is necessary, otherwise false
- bool setDescentOfRow(int row, int height);
+ void setDescentOfRow(int row, int height);
/// Returns true if a complete update is necessary, otherwise false
- bool setWidthOfCell(int cell, int new_width);
+ void setWidthOfCell(int cell, int new_width);
///
void setAllLines(int cell, bool line);
///
{
LyXLayout_ptr const & layout = pit->layout();
- if (!pit->getDepth()) {
+ if (!pit->getDepth())
return layout->resfont;
- }
LyXFont font = layout->font;
// Realize with the fonts of lesser depth.
{
LyXLayout_ptr const & layout = pit->layout();
- if (!pit->getDepth()) {
+ if (!pit->getDepth())
return layout->reslabelfont;
- }
LyXFont font = layout->labelfont;
// Realize with the fonts of lesser depth.