}
-string
-LyXText::getStringToIndex(BufferView * bview)
+string LyXText::getStringToIndex(BufferView * bview)
{
string idxstring;
return idxstring;
}
-Paragraph::size_type
-LyXText::beginningOfMainBody(Buffer const * buf,
+
+Paragraph::size_type LyXText::beginningOfMainBody(Buffer const * buf,
Paragraph const * par) const
{
if (textclasslist.Style(buf->params.textclass,
bool pagebreak_top, bool pagebreak_bottom,
VSpace const & space_top,
VSpace const & space_bottom,
- Spacing const & spacing,
+ Spacing const & spacing,
LyXAlignment align,
string labelwidthstring,
bool noindent)
int pos = selection.end.pos();
CutAndPaste::cutSelection(selection.start.par(), &endpar,
selection.start.pos(), pos,
- bview->buffer()->params.textclass, doclear,
- realcut);
+ bview->buffer()->params.textclass,
+ doclear, realcut);
selection.end.pos(pos);
} else {
endpar = selection.end.par();
int pos = selection.end.pos();
CutAndPaste::cutSelection(selection.start.par(), &endpar,
selection.start.pos(), pos,
- bview->buffer()->params.textclass, doclear,
- realcut);
+ bview->buffer()->params.textclass,
+ doclear, realcut);
cursor.par(endpar);
selection.end.par(endpar);
selection.end.pos(pos);
void LyXText::checkParagraph(BufferView * bview, Paragraph * par,
- Paragraph::size_type pos)
+ Paragraph::size_type pos)
{
LyXCursor tmpcursor;
// check the special right address boxes
if (textclasslist.Style(bview->buffer()->params.textclass,
par->getLayout()).margintype
- == MARGIN_RIGHT_ADDRESS_BOX) {
+ == MARGIN_RIGHT_ADDRESS_BOX)
+ {
tmpcursor.par(par);
tmpcursor.row(row);
tmpcursor.y(y);
{
// first check the current paragraph
int pos = cursor.par()->getPositionOfInset(inset);
- if (pos != -1){
+ if (pos != -1) {
checkParagraph(bview, cursor.par(), pos);
return true;
}
Paragraph * par = firstParagraph();
do {
pos = par->getPositionOfInset(inset);
- if (pos != -1){
+ if (pos != -1) {
checkParagraph(bview, par, pos);
return true;
}
Row * row = getRowNearY(y);
bool bound = false;
- int const column = getColumnNearX(bview, row, x, bound);
+ Paragraph::size_type const column = getColumnNearX(bview, row, x,
+ bound);
cur.par(row->par());
cur.pos(row->pos() + column);
}
-Paragraph * LyXText::ownerParagraph(Paragraph * p) const
+void LyXText::ownerParagraph(Paragraph * p) const
{
if (inset_owner) {
inset_owner->paragraph(p);
} else {
bv_owner->buffer()->paragraph = p;
}
- return 0;
}
-Paragraph * LyXText::ownerParagraph(int id, Paragraph * p) const
+
+void LyXText::ownerParagraph(int id, Paragraph * p) const
{
Paragraph * op = bv_owner->buffer()->getParFromID(id);
if (op && op->inInset()) {
bv_owner->buffer()->paragraph = p;
}
}
- return 0;
}