]> git.lyx.org Git - features.git/blobdiff - src/insets/insetlatexaccent.h
Replace LString.h with support/std_string.h,
[features.git] / src / insets / insetlatexaccent.h
index 707b0853f5446f9689ede2c3285bf8e0b96ec477..4b49eec77fb15f19cda53ea141f820edd9542aa9 100644 (file)
@@ -6,14 +6,14 @@
  *
  * \author Lars Gullik Bjønnes
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #ifndef INSET_LATEX_ACCENT_H
 #define INSET_LATEX_ACCENT_H
 
 #include "inset.h"
-#include "LString.h"
+#include "support/std_string.h"
 #include "dimension.h"
 
 /** Insertion of accents
@@ -24,7 +24,7 @@
   it also can handle other special characters (e.g. Hstroke)
   Initiated by Ivan Schreter, later modified by Lgb.
   */
-class InsetLatexAccent : public Inset {
+class InsetLatexAccent : public InsetOld {
 public:
        ///
        InsetLatexAccent();
@@ -42,24 +42,24 @@ public:
        ///
        bool displayISO8859_9(PainterInfo & pi, int x, int y) const;
        ///
-       void write(Buffer const *, std::ostream &) const;
+       void write(Buffer const &, std::ostream &) const;
        ///
-       void read(Buffer const *, LyXLex & lex);
+       void read(Buffer const &, LyXLex & lex);
        ///
-       int latex(Buffer const *, std::ostream &,
+       int latex(Buffer const &, std::ostream &,
                  LatexRunParams const &) const;
        ///
-       int ascii(Buffer const *, std::ostream &, int linelen) const;
+       int ascii(Buffer const &, std::ostream &, int linelen) const;
        ///
-       int linuxdoc(Buffer const *, std::ostream &) const;
+       int linuxdoc(Buffer const &, std::ostream &) const;
        ///
-       int docbook(Buffer const *, std::ostream &, bool mixcont) const;
+       int docbook(Buffer const &, std::ostream &, bool mixcont) const;
        ///
        bool directWrite() const;
        ///
-       virtual Inset * clone() const;
+       virtual std::auto_ptr<InsetBase> clone() const;
        ///
-       Inset::Code lyxCode()const;
+       InsetOld::Code lyxCode()const;
        ///
        inline bool canDisplay();
        // should this inset be handled like a normal charater
@@ -129,8 +129,6 @@ private:
        bool  plusdesc;
        /// international char
        mutable char  ic;
-       ///
-       mutable Dimension dim_;
 };