more not-so-useful stuff removed

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7526 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2003-08-08 16:24:32 +00:00
parent 0a2ca7c7e0
commit 87d49485e9
6 changed files with 4 additions and 46 deletions

View File

@ -5,7 +5,8 @@
with rebreak of full par
* lyxtext.h:
* text.C (breakAgainOneRow, redoHeightOfParagraph): removed
* text.C (breakAgainOneRow, redoHeightOfParagraph,
checkParagraph, updateInset): removed
2003-08-07 André Pönitz <poenitz@gmx.net>

View File

@ -532,7 +532,6 @@ bool InsetText::unlockInsetInInset(BufferView * bv, UpdatableInset * inset,
return false;
if (the_locking_inset == inset) {
the_locking_inset->insetUnlock(bv);
getLyXText(bv)->updateInset(inset);
the_locking_inset = 0;
if (lr)
moveRightIntern(bv, true, false);

View File

@ -364,14 +364,7 @@ public:
bool same_content);
///
void gotoInset(InsetOld::Code code, bool same_content);
///
/* for the greater insets */
/// returns false if inset wasn't found
bool updateInset(InsetOld *);
///
void checkParagraph(ParagraphList::iterator pit, lyx::pos_type pos);
///
int workWidth() const;

View File

@ -1389,7 +1389,7 @@ void LyXText::breakAgain(RowList::iterator rit)
bool not_ready = true;
do {
do {
pos_type z = rowBreakPoint(*rit);
RowList::iterator tmprit = rit;
RowList::iterator end = rows().end();
@ -2103,8 +2103,6 @@ void LyXText::changeCase(LyXText::TextCase action)
}
#warning changes
pit->setChar(pos, c);
checkParagraph(pit, pos);
++pos;
}
}

View File

@ -1428,38 +1428,6 @@ void LyXText::insertStringAsParagraphs(string const & str)
}
void LyXText::checkParagraph(ParagraphList::iterator pit, pos_type pos)
{
breakAgain(getRow(pit, pos));
setCursorIntern(cursor.par(), cursor.pos(), false, cursor.boundary());
}
// returns false if inset wasn't found
bool LyXText::updateInset(InsetOld * inset)
{
// first check the current paragraph
int pos = cursor.par()->getPositionOfInset(inset);
if (pos != -1) {
checkParagraph(cursor.par(), pos);
return true;
}
// check every paragraph
ParagraphList::iterator par = ownerParagraphs().begin();
ParagraphList::iterator end = ownerParagraphs().end();
for (; par != end; ++par) {
pos = par->getPositionOfInset(inset);
if (pos != -1) {
checkParagraph(par, pos);
return true;
}
}
return false;
}
bool LyXText::setCursor(ParagraphList::iterator pit,
pos_type pos,
bool setfont, bool boundary)

View File

@ -984,10 +984,9 @@ InsetOld::RESULT LyXText::dispatch(FuncRequest const & cmd)
case LFUN_TRANSPOSE_CHARS:
recordUndo(bv, Undo::ATOMIC, cursor.par());
if (transposeChars(cursor))
checkParagraph(cursor.par(), cursor.pos());
if (inset_owner)
bv->updateInset();
redoParagraph();
update();
break;