]> git.lyx.org Git - features.git/blobdiff - src/insets/insettext.C
use stringstream, remove some old footnote handling
[features.git] / src / insets / insettext.C
index b4aead7368dadb18d88da3387c3a808cd7607237..b72b19a4a3ca124aee328c651f08ba786d17a728 100644 (file)
@@ -165,7 +165,7 @@ void InsetText::Write(Buffer const * buf, ostream & os) const
 
 void InsetText::WriteParagraphData(Buffer const * buf, ostream & os) const
 {
-       par->writeFile(buf, os, buf->params, 0, 0);
+       par->writeFile(buf, os, buf->params, 0);
 }
 
 
@@ -947,7 +947,7 @@ InsetText::LocalDispatch(BufferView * bv,
                break;
        case LFUN_PASTESELECTION:
        {
-               string clip(bv->getClipboard());
+               string const clip(bv->getClipboard());
        
                if (clip.empty())
                        break;
@@ -1118,9 +1118,8 @@ int InsetText::Ascii(Buffer const * buf, ostream & os, int linelen) const
        LyXParagraph * p = par;
        unsigned int lines = 0;
        
-       string tmp;
        while (p) {
-               tmp = buf->asciiParagraph(p, linelen);
+               string const tmp = buf->asciiParagraph(p, linelen);
                lines += countChar(tmp, '\n');
                os << tmp;
                p = p->next();
@@ -1133,11 +1132,11 @@ int InsetText::DocBook(Buffer const * buf, ostream & os) const
 {
        LyXParagraph * p = par;
        unsigned int lines = 0;
-       int desc=0;
+       int desc = 0;
        
        string tmp;
        while (p) {
-               buf->SimpleDocBookOnePar(os,tmp,p,desc,0);
+               buf->SimpleDocBookOnePar(os, tmp, p, desc, 0);
                p = p->next();
        }
        
@@ -1148,7 +1147,7 @@ int InsetText::DocBook(Buffer const * buf, ostream & os) const
 void InsetText::Validate(LaTeXFeatures & features) const
 {
        LyXParagraph * p = par;
-       while(p) {
+       while (p) {
                p->validate(features);
                p = p->next();
        }
@@ -1243,6 +1242,7 @@ InsetText::moveRight(BufferView * bv, bool activate_inset, bool selecting)
                return moveRightIntern(bv, false, activate_inset, selecting);
 }
 
+
 UpdatableInset::RESULT
 InsetText::moveLeft(BufferView * bv, bool activate_inset, bool selecting)
 {
@@ -1558,6 +1558,7 @@ LyXParagraph * InsetText::cpar(BufferView * bv) const
        return TEXT(bv)->cursor.par();
 }
 
+
 bool InsetText::cboundary(BufferView * bv) const
 {
        return TEXT(bv)->cursor.boundary();
@@ -1691,6 +1692,7 @@ void InsetText::removeNewlines()
        }
 }
 
+
 bool InsetText::nodraw() const
 {
        if (the_locking_inset)
@@ -1698,6 +1700,7 @@ bool InsetText::nodraw() const
        return UpdatableInset::nodraw();
 }
 
+
 int InsetText::scroll(bool recursive) const
 {
        int sx = UpdatableInset::scroll(false);
@@ -1708,6 +1711,7 @@ int InsetText::scroll(bool recursive) const
        return sx;
 }
 
+
 bool InsetText::doClearArea() const
 {
        return !locked || (need_update & (FULL|INIT));