]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetRef.h
New DocBook support
[lyx.git] / src / insets / InsetRef.h
index 1af1790bf917c13ffcbb8f057aa819c0d6ff4f06..192ca0d6967acedadccb490fb5ef94df90be2417 100644 (file)
@@ -29,17 +29,22 @@ public:
                std::string short_gui_name;
        };
        static const type_info types[];
-       ///
-       static int getType(std::string const & name);
-       ///
-       static std::string const & getName(int type);
 
        ///
        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;
+       ///
        bool isLabeled() const { return true; }
        ///
        docstring toolTip(BufferView const &, int, int) const
@@ -49,33 +54,29 @@ public:
        ///
        bool hasSettings() const { return true; }
        ///
-       bool inheritFont() const { return true; }
-       ///
        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(XMLStream &, OutputParams const &) const;
        ///
-       docstring xhtml(XHTMLStream &, OutputParams const &) const;
-       /// 
        void toString(odocstream &) const;
        ///
        void forOutliner(docstring &, size_t const, bool const) const;
        ///
        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,13 +88,8 @@ public:
        ///
        static bool isCompatibleCommand(std::string const & s);
        //@}
-
-       //FIXME: private
-       /// \name Private functions inherited from InsetCommand class
-       //@{
        ///
-       docstring screenLabel() const { return screen_label_; }
-       //@}
+       bool outputActive() const { return active_; }
 
 protected:
        ///
@@ -105,7 +101,13 @@ private:
        ///
        Inset * clone() const { return new InsetRef(*this); }
        //@}
-       
+
+       /// \name Private functions inherited from InsetCommand class
+       //@{
+       ///
+       docstring screenLabel() const;
+       //@}
+
        /// \return the label with things that need to be escaped escaped
        docstring getEscapedLabel(OutputParams const &) const;
        /// \return the command for a formatted reference to ref
@@ -118,6 +120,10 @@ private:
        ///
        mutable docstring screen_label_;
        ///
+       mutable bool broken_;
+       ///
+       mutable bool active_;
+       ///
        mutable docstring tooltip_;
 };