]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetRef.h
requires is a keyword in C++2a
[lyx.git] / src / insets / InsetRef.h
index 8976e03630987b0b52cdc7adf452f574d1a8bf75..8683ecf9899b9de82de088c70ee3164c31d4cb41 100644 (file)
@@ -29,15 +29,18 @@ public:
                std::string short_gui_name;
        };
        static const type_info types[];
-       ///
-       static int getType(std::string const & name);
 
        ///
        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;
@@ -47,7 +50,7 @@ public:
        docstring toolTip(BufferView const &, int, int) const
                { return tooltip_; }
        ///
-  docstring getTOCString() const;
+       docstring getTOCString() const;
        ///
        bool hasSettings() const { return true; }
        ///
@@ -70,12 +73,12 @@ 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;
        ///
-       bool forceLTR() const { return true; }
+       bool forceLTR(OutputParams const &) const;
        //@}
 
        /// \name Static public methods obligated for InsetCommand derived classes
@@ -87,6 +90,8 @@ public:
        ///
        static bool isCompatibleCommand(std::string const & s);
        //@}
+       ///
+       bool outputActive() const { return active_; }
 
 protected:
        ///
@@ -119,6 +124,8 @@ private:
        ///
        mutable bool broken_;
        ///
+       mutable bool active_;
+       ///
        mutable docstring tooltip_;
 };