Forgot this in previous commit.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25845 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-07-23 12:55:24 +00:00
parent 396a90decb
commit 68d50628c1
2 changed files with 10 additions and 0 deletions

View File

@ -92,6 +92,14 @@ InsetText::InsetText()
{}
void InsetText::setBuffer(Buffer & buf)
{
ParagraphList::iterator end = paragraphs().end();
for (ParagraphList::iterator it = paragraphs().begin(); it != end; ++it)
it->setBuffer(buf);
}
void InsetText::initParagraphs(Buffer const & buf)
{
LASSERT(paragraphs().empty(), /**/);

View File

@ -42,6 +42,8 @@ public:
InsetText(InsetText const &);
///
void initParagraphs(Buffer const & buffer);
///
void setBuffer(Buffer &);
///
Dimension const dimension(BufferView const &) const;