]> git.lyx.org Git - features.git/commitdiff
some ws
authorAndré Pönitz <poenitz@gmx.net>
Tue, 18 Feb 2003 16:58:16 +0000 (16:58 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Tue, 18 Feb 2003 16:58:16 +0000 (16:58 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6202 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/inset.h
src/insets/insettext.C
src/mathed/formula.C

index dc1f49782fdfc450aa90641c0a59bd54963cd45e..e2a01478d693c98b1f98a882696b96b578292990 100644 (file)
@@ -234,7 +234,7 @@ public:
        ///
        void parOwner(Paragraph * par) { par_owner_ = par; }
        ///
-       Paragraph * parOwner() const {return par_owner_; }
+       Paragraph * parOwner() const { return par_owner_; }
        ///
        void setBackgroundColor(LColor::color);
        ///
@@ -262,19 +262,12 @@ public:
 
        /// try to get a inset pointer from it's id if we have
        /// an inset to give back!
-       virtual Inset * getInsetFromID(int /* id */) const {
-               return 0;
-       }
+       virtual Inset * getInsetFromID(int /*id*/) const { return 0; }
        /// if this insets owns paragraphs (f.ex. InsetText) then it
        /// should return it's very first one!
-       virtual Paragraph * firstParagraph() const {
-               return 0;
-       }
-
+       virtual Paragraph * firstParagraph() const { return 0; }
        ///
-       virtual Paragraph * getFirstParagraph(int /*num*/) const {
-               return 0;
-       }
+       virtual Paragraph * getFirstParagraph(int /*num*/) const { return 0; }
 
        /// return the cursor if we own one otherwise giv'em just the
        /// BufferView cursor to work with.
@@ -495,9 +488,7 @@ public:
        ///
        virtual void selectSelectedWord(BufferView *) {}
        ///
-       virtual void toggleSelection(BufferView *, bool /*kill_selection*/) {
-               return;
-       }
+       virtual void toggleSelection(BufferView *, bool /*kill_selection*/) {}
 
        /// find the next change in the inset
        virtual bool nextChange(BufferView * bv, lyx::pos_type & length);
index d445cff1691e327ec688fc75cfc5595821c81343..b251d181eb8887e288223929c09b464eab0f9de3 100644 (file)
@@ -104,6 +104,7 @@ void InsetText::saveLyXTextState(LyXText * t) const
        }
 }
 
+
 void InsetText::restoreLyXTextState(BufferView * bv, LyXText * t) const
 {
        if (sstate.lpar) {
@@ -2533,9 +2534,9 @@ Paragraph * InsetText::getFirstParagraph(int i) const
 
 LyXCursor const & InsetText::cursor(BufferView * bv) const
 {
-               if (the_locking_inset)
-                               return the_locking_inset->cursor(bv);
-               return getLyXText(bv)->cursor;
+       if (the_locking_inset)
+               return the_locking_inset->cursor(bv);
+       return getLyXText(bv)->cursor;
 }
 
 
index b586aea753727ddc281985cd2879ff12701b7e4c..f903814baa299bad278763d0f7d3299fe342c93b 100644 (file)
@@ -261,7 +261,7 @@ void InsetFormula::validate(LaTeXFeatures & features) const
 bool InsetFormula::insetAllowed(Inset::Code code) const
 {
        return
-               (code == Inset::LABEL_CODE)
+                  code == Inset::LABEL_CODE
                || code == Inset::REF_CODE
                || code == Inset::ERT_CODE;
 }
@@ -330,3 +330,4 @@ string const InsetFormula::PreviewImpl::latexString() const
        parent().par_->write(wi);
        return STRCONV(ls.str());
 }
+