mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-05 13:26:21 +00:00
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:
parent
0a2ca7c7e0
commit
87d49485e9
@ -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>
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
32
src/text2.C
32
src/text2.C
@ -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)
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user