]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetlatexaccent.C
fix #832
[lyx.git] / src / insets / insetlatexaccent.C
index ea827026969356ae55b8f967f7acf8a57021892f..da4bbe4375143929aab8585eb8387e7ef748248d 100644 (file)
 
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
 #include "insetlatexaccent.h"
+
 #include "debug.h"
 #include "lyxrc.h"
 #include "support/lstrings.h"
@@ -27,6 +24,7 @@
 using std::ostream;
 using std::endl;
 
+
 /* LatexAccent. Proper handling of accented characters */
 /* This part is done by Ivan Schreter, schreter@ccsun.tuke.sk */
 /* Later modified by Lars G. Bjønnes, larsbj@lyx.org */
@@ -98,7 +96,9 @@ void InsetLatexAccent::checkContents()
 
        lyxerr[Debug::KEY] << "Decode: " << contents << endl;
 
-       remdot = false; plusasc = false; plusdesc = false;
+       remdot = false;
+       plusasc = false;
+       plusdesc = false;
 
        switch (contents[1]) { // second char should be one of these
        case '\'':  // acute
@@ -211,7 +211,7 @@ void InsetLatexAccent::checkContents()
                        break;
                }
                //ic = (modtype == DOT_LESS_J ? 'j' : 'i');
-               lyxerr[Debug::KEY] << "Contents: [" << contents << "]"
+               lyxerr[Debug::KEY] << "Contents: [" << contents << ']'
                                   << ", ic: " << ic
                                   << ", top: " << plusasc
                                   << ", bot: " << plusdesc
@@ -251,7 +251,7 @@ void InsetLatexAccent::checkContents()
                if (contents[++i] != '}' && contents[++i]) return;
 
                // fine, the char is properly decoded now (hopefully)
-               lyxerr[Debug::KEY] << "Contents: [" << contents << "]"
+               lyxerr[Debug::KEY] << "Contents: [" << contents << ']'
                                   << ", ic: " << ic
                                   << ", top: " << plusasc
                                   << ", bot: " << plusdesc
@@ -363,7 +363,7 @@ bool InsetLatexAccent::displayISO8859_9(BufferView * bv, LyXFont const & font,
 
 
 void InsetLatexAccent::draw(BufferView * bv, LyXFont const & font0,
-                           int baseline, float & x, bool) const
+                           int baseline, float & x) const
 {
        Painter & pain = bv->painter();
 
@@ -663,12 +663,6 @@ int InsetLatexAccent::docbook(Buffer const *, ostream & os, bool) const
 }
 
 
-bool InsetLatexAccent::deletable() const
-{
-       return true;
-}
-
-
 bool InsetLatexAccent::directWrite() const
 {
        return true;