]> git.lyx.org Git - features.git/commitdiff
*** empty log message ***
authorAndré Pönitz <poenitz@gmx.net>
Wed, 16 Jul 2003 07:15:10 +0000 (07:15 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Wed, 16 Jul 2003 07:15:10 +0000 (07:15 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7289 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/ChangeLog
src/insets/insettext.C
src/insets/insettext.h

index bfe7afbfc6b2ab135d78c8edce6c0920e7406946..38b6dc929107b2bf572441a9e065f785443b67a8 100644 (file)
@@ -1,3 +1,8 @@
+
+2003-07-16  André Pönitz  <poenitz@gmx.net>
+
+       * insettext.C (selectAll): remove
+
 2003-07-16  John Levon  <levon@movementarian.org>
 
        * insetnote.h:  
index 3fd0f978a01d93c6909bd78d4397abef269c249c..d56527f55cd965f8270461a1799c7c80c4d080de 100644 (file)
@@ -1731,12 +1731,15 @@ void InsetText::setFont(BufferView * bv, LyXFont const & font, bool toggleall,
        }
 
 
-       if (text_.selection.set()) {
+       if (text_.selection.set())
                setUndo(bv, Undo::EDIT, text_.cursor.par());
-       }
 
-       if (selectall)
-               selectAll(bv);
+       if (selectall) {
+               text_.cursorTop();
+               text_.selection.cursor = text_.cursor;
+               text_.cursorBottom();
+               text_.setSelection();
+       }
 
        text_.toggleFree(font, toggleall);
 
@@ -2106,15 +2109,6 @@ int InsetText::scroll(bool recursive) const
 }
 
 
-void InsetText::selectAll(BufferView * bv)
-{
-       getLyXText(bv)->cursorTop();
-       getLyXText(bv)->selection.cursor = getLyXText(bv)->cursor;
-       getLyXText(bv)->cursorBottom();
-       getLyXText(bv)->setSelection();
-}
-
-
 void InsetText::clearSelection(BufferView * bv)
 {
        getLyXText(bv)->clearSelection();
index 623123c96613896e8c0375546cec0eed99733d19..62db777f941a2ed8afddfa7e66712bad2b474c43 100644 (file)
@@ -187,8 +187,6 @@ public:
                UpdatableInset::scroll(bv, offset);
        }
        ///
-       void selectAll(BufferView * bv);
-       ///
        void clearSelection(BufferView * bv);
        ///
        Inset * getInsetFromID(int id) const;