]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetref.h
fix compilation pb ; update eu.po
[lyx.git] / src / insets / insetref.h
index 3b889dda851c6cc644011d6c3f9168c50fa65ad5..102371acdb8e36c316e46f49219b822d9b0839d0 100644 (file)
@@ -23,12 +23,28 @@ struct LaTeXFeatures;
  */
 class InsetRef : public InsetCommand {
 public:
+       struct type_info {
+               ///
+               string latex_name;
+               ///
+               string gui_name;
+               ///
+               string short_gui_name;
+       };
+       static type_info types[];
        ///
-       InsetRef(InsetCommandParams const &);
+       static int getType(string const & name);
        ///
-       Inset * Clone() const { return new InsetRef(params()); }
+       static string const & getName(int type);
+
+       ///
+       InsetRef(InsetCommandParams const &, Buffer const &);
        ///
-       string getScreenLabel() const;
+       Inset * Clone(Buffer const & buffer) const {
+               return new InsetRef(params(), buffer);
+       }
+       ///
+       string const getScreenLabel() const;
        ///
        EDITABLE Editable() const { return IS_EDITABLE; }
        ///
@@ -41,7 +57,7 @@ public:
        int Latex(Buffer const *, std::ostream &,
                  bool fragile, bool free_spc) const;
        ///
-       int Ascii(Buffer const *, std::ostream &) const;
+       int Ascii(Buffer const *, std::ostream &, int linelen) const;
        ///
        int Linuxdoc(Buffer const *, std::ostream &) const;
        ///
@@ -50,6 +66,8 @@ public:
        void Validate(LaTeXFeatures & features) const;
 private:
        /// This function escapes 8-bit characters
-       string escape(string const &) const;
+       string const escape(string const &) const;
+       ///
+       bool isLatex;
 };
 #endif