]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetcommand.h
Enable convertDefault.sh to run even if its executable bit is not set.
[lyx.git] / src / insets / insetcommand.h
index 8478ac9a7a0404a0c1154b3a3f5f25ef334f382a..489c68e7a782ac12a23c4f7ebb641228cffb7b2a 100644 (file)
@@ -7,7 +7,7 @@
  * \author Angus Leeming
  * \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_LATEXCOMMAND_H
@@ -27,7 +27,7 @@
  */
 
 ///
-class InsetCommand : public Inset {
+class InsetCommand : public InsetOld {
 public:
        ///
        explicit
@@ -37,24 +37,24 @@ public:
        ///
        void draw(PainterInfo & pi, int x, int y) const;
        ///
-       void write(Buffer const *, std::ostream & os) const
+       void write(Buffer const &, std::ostream & os) const
                { p_.write(os); }
        ///
-       virtual void read(Buffer const *, LyXLex & lex)
+       virtual void read(Buffer const &, LyXLex & lex)
                { p_.read(lex); }
        /// Can remove one InsetBibKey is modified
        void scanCommand(string const & c) { p_.scanCommand(c); };
        ///
-       virtual int latex(Buffer const *, std::ostream &,
+       virtual 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;
        ///
-       virtual int linuxdoc(Buffer const *, std::ostream &) const;
+       virtual int linuxdoc(Buffer const &, std::ostream &) const;
        ///
-       virtual int docbook(Buffer const *, std::ostream &, bool) const;
+       virtual int docbook(Buffer const &, std::ostream &, bool) const;
        ///
-       Inset::Code lyxCode() const { return Inset::NO_CODE; }
+       InsetOld::Code lyxCode() const { return InsetOld::NO_CODE; }
 
        ///
        InsetCommandParams const & params() const { return p_; }
@@ -81,7 +81,7 @@ protected:
        ///
        virtual BufferView * view() const;
        /// This should provide the text for the button
-       virtual string const getScreenLabel(Buffer const *) const = 0;
+       virtual string const getScreenLabel(Buffer const &) const = 0;
 
 private:
        ///
@@ -100,7 +100,7 @@ public:
        ///
        virtual string const & name() const { return name_; }
        ///
-       virtual string const inset2string() const;
+       virtual string const inset2string(Buffer const &) const;
        ///
        static void string2params(string const &, InsetCommandParams &);
        ///