mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 05:33:33 +00:00
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:
parent
0062cd3408
commit
62be565337
@ -15,6 +15,8 @@
|
|||||||
class ControlButtons;
|
class ControlButtons;
|
||||||
class ButtonController;
|
class ButtonController;
|
||||||
|
|
||||||
|
#include "LString.h"
|
||||||
|
|
||||||
#include <boost/utility.hpp>
|
#include <boost/utility.hpp>
|
||||||
|
|
||||||
class ViewBase : boost::noncopyable {
|
class ViewBase : boost::noncopyable {
|
||||||
|
@ -4,6 +4,8 @@
|
|||||||
|
|
||||||
2003-05-22 Lars Gullik Bjønnes <larsbj@gullik.net>
|
2003-05-22 Lars Gullik Bjønnes <larsbj@gullik.net>
|
||||||
|
|
||||||
|
* insettext.[Ch] (paragraph): delete unused function
|
||||||
|
|
||||||
* insetfloat.C (addToToc): parlist simplfication
|
* insetfloat.C (addToToc): parlist simplfication
|
||||||
|
|
||||||
2003-05-20 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
|
2003-05-20 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
|
||||||
|
@ -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
|
Inset * InsetText::getInsetFromID(int id_arg) const
|
||||||
{
|
{
|
||||||
if (id_arg == id())
|
if (id_arg == id())
|
||||||
|
@ -196,8 +196,6 @@ public:
|
|||||||
///
|
///
|
||||||
LyXCursor const & cursor(BufferView *) const;
|
LyXCursor const & cursor(BufferView *) const;
|
||||||
///
|
///
|
||||||
void paragraph(Paragraph *);
|
|
||||||
///
|
|
||||||
bool allowSpellcheck() const { return true; }
|
bool allowSpellcheck() const { return true; }
|
||||||
///
|
///
|
||||||
WordLangTuple const
|
WordLangTuple const
|
||||||
|
@ -160,9 +160,11 @@ bool textHandleUndo(BufferView * bv, Undo & undo)
|
|||||||
int id = undoParagraphs(bv, undo.number_of_inset_id).front().id();
|
int id = undoParagraphs(bv, undo.number_of_inset_id).front().id();
|
||||||
ParIterator op = bv->buffer()->getParFromID(id);
|
ParIterator op = bv->buffer()->getParFromID(id);
|
||||||
if (op != end && op->inInset()) {
|
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 {
|
} else {
|
||||||
bv->buffer()->paragraphs.set(undopar);
|
#warning FIXME reimplementation needed here
|
||||||
|
//bv->buffer()->paragraphs.set(undopar);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -173,9 +175,11 @@ bool textHandleUndo(BufferView * bv, Undo & undo)
|
|||||||
int id = undoParagraphs(bv, undo.number_of_inset_id).front().id();
|
int id = undoParagraphs(bv, undo.number_of_inset_id).front().id();
|
||||||
ParIterator op = bv->buffer()->getParFromID(id);
|
ParIterator op = bv->buffer()->getParFromID(id);
|
||||||
if (op != end && op->inInset()) {
|
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 {
|
} else {
|
||||||
bv->buffer()->paragraphs.set(&**behind);
|
#warning FIXME reimplementation needed here
|
||||||
|
//bv->buffer()->paragraphs.set(&**behind);
|
||||||
}
|
}
|
||||||
undopar = &**behind;
|
undopar = &**behind;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user