]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetRef.h
Improve handling of top and bottom margin
[lyx.git] / src / insets / InsetRef.h
index 9243aa63faaf322faf9917755e608707225e27d4..192ca0d6967acedadccb490fb5ef94df90be2417 100644 (file)
@@ -33,9 +33,14 @@ public:
        ///
        InsetRef(Buffer * buffer, InsetCommandParams const &);
 
+       ///
+       void changeTarget(docstring const & new_label);
+
        /// \name Public functions inherited from Inset class
        //@{
        ///
+       docstring layoutName() const;
+       ///
        void doDispatch(Cursor & cur, FuncRequest & cmd);
        ///
        bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus & status) const;
@@ -51,16 +56,14 @@ public:
        ///
        InsetCode lyxCode() const { return REF_CODE; }
        ///
-       DisplayType display() const { return Inline; }
-       ///
        void latex(otexstream &, OutputParams const &) const;
        ///
        int plaintext(odocstringstream & ods, OutputParams const & op,
                      size_t max_length = INT_MAX) const;
        ///
-       int docbook(odocstream &, OutputParams const &) const;
+       void docbook(XMLStream &, OutputParams const &) const;
        ///
-       docstring xhtml(XHTMLStream &, OutputParams const &) const;
+       docstring xhtml(XMLStream &, OutputParams const &) const;
        ///
        void toString(odocstream &) const;
        ///
@@ -68,7 +71,7 @@ public:
        ///
        void validate(LaTeXFeatures & features) const;
        ///
-       void updateBuffer(ParIterator const & it, UpdateType);
+       void updateBuffer(ParIterator const & it, UpdateType, bool const deleted = false);
        ///
        void addToToc(DocIterator const & di, bool output_active,
                                  UpdateType utype, TocBackend & backend) const;
@@ -85,6 +88,8 @@ public:
        ///
        static bool isCompatibleCommand(std::string const & s);
        //@}
+       ///
+       bool outputActive() const { return active_; }
 
 protected:
        ///
@@ -117,6 +122,8 @@ private:
        ///
        mutable bool broken_;
        ///
+       mutable bool active_;
+       ///
        mutable docstring tooltip_;
 };