mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-13 06:20:28 +00:00
small cleanups from andre
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2896 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
35d74b0e6f
commit
622e505857
@ -662,9 +662,9 @@ public:
|
||||
///
|
||||
Paragraph * ownerParagraph() const;
|
||||
//
|
||||
Paragraph * ownerParagraph(Paragraph *) const;
|
||||
void ownerParagraph(Paragraph *) const;
|
||||
// set it searching first for the right owner using the paragraph id
|
||||
Paragraph * ownerParagraph(int id, Paragraph *) const;
|
||||
void ownerParagraph(int id, Paragraph *) const;
|
||||
};
|
||||
|
||||
|
||||
|
14
src/text2.C
14
src/text2.C
@ -1137,8 +1137,7 @@ void LyXText::toggleFree(BufferView * bview,
|
||||
}
|
||||
|
||||
|
||||
string
|
||||
LyXText::getStringToIndex(BufferView * bview)
|
||||
string LyXText::getStringToIndex(BufferView * bview)
|
||||
{
|
||||
string idxstring;
|
||||
|
||||
@ -1170,8 +1169,8 @@ LyXText::getStringToIndex(BufferView * bview)
|
||||
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,
|
||||
@ -2576,17 +2575,17 @@ Paragraph * LyXText::ownerParagraph() const
|
||||
}
|
||||
|
||||
|
||||
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()) {
|
||||
@ -2598,7 +2597,6 @@ Paragraph * LyXText::ownerParagraph(int id, Paragraph * p) const
|
||||
bv_owner->buffer()->paragraph = p;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user