]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetFloat.h
Routines for calculating numerical labels for BibTeX citations.
[lyx.git] / src / insets / InsetFloat.h
index 65c306a93e076e9a04a22f36b0b1cdb50029f0a9..35539ece9de5cce67b1390ce76afdaa84adb841f 100644 (file)
@@ -18,8 +18,6 @@
 
 namespace lyx {
 
-class InsetCaption;
-
 class InsetFloatParams {
 public:
        ///
@@ -53,7 +51,7 @@ class InsetFloat : public InsetCollapsable
 {
 public:
        ///
-       InsetFloat(Buffer const &, std::string const &);
+       InsetFloat(Buffer *, std::string const &);
        ///
        ~InsetFloat();
 
@@ -62,13 +60,13 @@ public:
        ///
        static std::string params2string(InsetFloatParams const &);
        ///
-       void setWide(bool w, BufferParams const &, bool update_label = true);
+       void setWide(bool w, bool update_label = true);
        ///
-       void setSideways(bool s, BufferParams const &, bool update_label = true);
+       void setSideways(bool s, bool update_label = true);
        ///
-       void setSubfloat(bool s, BufferParams const &, bool update_label = true);
+       void setSubfloat(bool s, bool update_label = true);
        ///
-       void setNewLabel(BufferParams const &);
+       void setNewLabel();
        ///
        InsetFloatParams const & params() const { return params_; }
 private:
@@ -91,9 +89,7 @@ private:
        ///
        int docbook(odocstream &, OutputParams const &) const;
        ///
-       docstring xhtml(odocstream &, OutputParams const &) const;
-       ///
-       docstring editMessage() const;
+       docstring xhtml(XHTMLStream &, OutputParams const &) const;
        ///
        bool insetAllowed(InsetCode) const;
        /** returns true if, when outputing LaTeX, font changes should
@@ -105,7 +101,7 @@ private:
        ///
        bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
        // Update the counters of this inset and of its contents
-       void updateLabels(ParIterator const &);
+       void updateLabels(ParIterator const &, bool);
        ///
        void doDispatch(Cursor & cur, FuncRequest & cmd);
        ///
@@ -113,12 +109,6 @@ private:
        ///
        docstring getCaption(OutputParams const &) const;
        ///
-       docstring getCaptionText(OutputParams const &) const;
-       ///
-       docstring getCaptionHTML(OutputParams const &) const;
-       ///
-       InsetCaption const * getCaptionInset() const;
-       ///
        InsetFloatParams params_;
        ///
        docstring name_;