]> git.lyx.org Git - lyx.git/blobdiff - src/insets/inset.h
Enable convertDefault.sh to run even if its executable bit is not set.
[lyx.git] / src / insets / inset.h
index 9d0313462ab00d836421c5ab78bec98dff5440e4..4ccb05d740b4dc0011dcc1d06e73c7dc6755fa51 100644 (file)
@@ -178,19 +178,19 @@ public:
        /// wrapper around the above
        bool insetAllowed(InsetOld * in) const;
        ///
-       virtual void write(Buffer const *, std::ostream &) const = 0;
+       virtual void write(Buffer const &, std::ostream &) const = 0;
        ///
-       virtual void read(Buffer const *, LyXLex & lex) = 0;
+       virtual void read(Buffer const &, LyXLex & lex) = 0;
        /// returns the number of rows (\n's) of generated tex code.
-       virtual int latex(Buffer const *, std::ostream &,
+       virtual int latex(Buffer const &, std::ostream &,
                          LatexRunParams const &) const = 0;
        ///
-       virtual int ascii(Buffer const *,
+       virtual int ascii(Buffer const &,
                          std::ostream &, int linelen = 0) const = 0;
        ///
-       virtual int linuxdoc(Buffer const *, std::ostream &) const = 0;
+       virtual int linuxdoc(Buffer const &, std::ostream &) const = 0;
        ///
-       virtual int docbook(Buffer const *, std::ostream &, bool) const = 0;
+       virtual int docbook(Buffer const &, std::ostream &, bool) const = 0;
 
        /// returns LyX code associated with the inset. Used for TOC, ...)
        virtual InsetOld::Code lyxCode() const { return NO_CODE; }
@@ -207,10 +207,6 @@ public:
        ///
        UpdatableInset * owner() const { return owner_; }
        ///
-       void parOwner(Paragraph * par) { par_owner_ = par; }
-       ///
-       Paragraph * parOwner() const { return par_owner_; }
-       ///
        void setBackgroundColor(LColor::color);
        ///
        LColor::color backgroundColor() const;
@@ -330,8 +326,6 @@ protected:
 private:
        ///
        UpdatableInset * owner_;
-       /// the paragraph in which this inset has been inserted
-       Paragraph * par_owner_;
        ///
        string name_;
        ///