add warning make controllers compile and remove some alomost unused functions, comment out usage by undo

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7004 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 2003-05-22 16:10:34 +00:00
parent 0062cd3408
commit 62be565337
5 changed files with 16 additions and 28 deletions

View File

@ -15,6 +15,8 @@
class ControlButtons;
class ButtonController;
#include "LString.h"
#include <boost/utility.hpp>
class ViewBase : boost::noncopyable {

View File

@ -4,6 +4,8 @@
2003-05-22 Lars Gullik Bjønnes <larsbj@gullik.net>
* insettext.[Ch] (paragraph): delete unused function
* insetfloat.C (addToToc): parlist simplfication
2003-05-20 Jürgen Spitzmüller <j.spitzmueller@gmx.de>

View File

@ -2346,24 +2346,6 @@ LyXCursor const & InsetText::cursor(BufferView * bv) const
}
void InsetText::paragraph(Paragraph * p)
{
// GENERAL COMMENT: We don't have to free the old paragraphs as the
// caller of this function has to take care of it. This IS important
// as we could have to insert a paragraph before this one and just
// link the actual to a new ones next and set it with this function
// and are done!
paragraphs.set(p);
// set ourself as owner for all the paragraphs inserted!
for_each(paragraphs.begin(), paragraphs.end(),
boost::bind(&Paragraph::setInsetOwner, _1, this));
reinitLyXText();
// redraw myself when asked for
need_update = INIT;
}
Inset * InsetText::getInsetFromID(int id_arg) const
{
if (id_arg == id())

View File

@ -196,8 +196,6 @@ public:
///
LyXCursor const & cursor(BufferView *) const;
///
void paragraph(Paragraph *);
///
bool allowSpellcheck() const { return true; }
///
WordLangTuple const

View File

@ -160,9 +160,11 @@ bool textHandleUndo(BufferView * bv, Undo & undo)
int id = undoParagraphs(bv, undo.number_of_inset_id).front().id();
ParIterator op = bv->buffer()->getParFromID(id);
if (op != end && op->inInset()) {
static_cast<InsetText*>(op->inInset())->paragraph(undopar);
#warning FIXME reimplementaion needed here
//static_cast<InsetText*>(op->inInset())->paragraph(undopar);
} else {
bv->buffer()->paragraphs.set(undopar);
#warning FIXME reimplementation needed here
//bv->buffer()->paragraphs.set(undopar);
}
}
} else {
@ -173,9 +175,11 @@ bool textHandleUndo(BufferView * bv, Undo & undo)
int id = undoParagraphs(bv, undo.number_of_inset_id).front().id();
ParIterator op = bv->buffer()->getParFromID(id);
if (op != end && op->inInset()) {
static_cast<InsetText*>(op->inInset())->paragraph(&**behind);
#warning FIXME reimplementation needed here
//static_cast<InsetText*>(op->inInset())->paragraph(&**behind);
} else {
bv->buffer()->paragraphs.set(&**behind);
#warning FIXME reimplementation needed here
//bv->buffer()->paragraphs.set(&**behind);
}
undopar = &**behind;
}