]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetFloat.h
progress on buffer-reference-in-insets. beware of instabilities...
[lyx.git] / src / insets / InsetFloat.h
index febbc1dd213491f3872af975d6c0a4e17445be83..8a39303310834a0be85789308c4da2dbd5ffbbf2 100644 (file)
@@ -51,28 +51,25 @@ public:
        ///
        docstring name() const { return name_; }
        ///
-       void write(Buffer const & buf, std::ostream & os) const;
+       void write(std::ostream & os) const;
        ///
-       void read(Buffer const & buf, Lexer & lex);
+       void read(Lexer & lex);
        ///
        void validate(LaTeXFeatures & features) const;
        ///
-       Inset::Code lyxCode() const { return Inset::FLOAT_CODE; }
+       InsetCode lyxCode() const { return FLOAT_CODE; }
        ///
-       virtual bool wide() const { return false; }
+       bool isMacroScope() const { return true; }
        ///
-       int latex(Buffer const &, odocstream &,
-                 OutputParams const &) const;
+       int latex(odocstream &, OutputParams const &) const;
        ///
-       int plaintext(Buffer const &, odocstream &,
-                     OutputParams const &) const;
+       int plaintext(odocstream &, OutputParams const &) const;
        ///
-       int docbook(Buffer const &, odocstream &,
-                   OutputParams const &) const;
+       int docbook(odocstream &, OutputParams const &) const;
        ///
-       virtual docstring const editMessage() const;
+       docstring editMessage() const;
        ///
-       bool insetAllowed(Inset::Code) const;
+       bool insetAllowed(InsetCode) const;
        /** returns true if, when outputing LaTeX, font changes should
            be closed before generating this inset. This is needed for
            insets that may contain several paragraphs */
@@ -82,18 +79,18 @@ public:
        ///
        void sideways(bool s, BufferParams const &);
        ///
-       void addToToc(TocList &, Buffer const &) const;
-       ///
        bool  showInsetDialog(BufferView *) const;
        ///
        InsetFloatParams const & params() const { return params_; }
        ///
        bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
+       // Update the counters of this inset and of its contents
+       void updateLabels(ParIterator const &);
 protected:
        virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
 private:
        ///
-       virtual std::auto_ptr<Inset> doClone() const;
+       virtual Inset * clone() const;
        ///
        InsetFloatParams params_;
        ///