]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathRef.h
Revert "XHTML: remove DOCTYPE, as the document is then understood as HTML4/XHTML1...
[lyx.git] / src / mathed / InsetMathRef.h
index 7b788c78145cdda6d94153cbcc06f63a4479e16a..1f5e0b8bb8327d8aee6388d3470635918faf5cb7 100644 (file)
 #define REF_INSET_H
 
 
-#include "CommandInset.h"
+#include "InsetMathCommand.h"
 
 
 namespace lyx {
 class Buffer;
 
 // for \ref
-class InsetMathRef : public CommandInset {
+class InsetMathRef : public InsetMathCommand {
 public:
        ///
-       InsetMathRef(Buffer * buf);
+       explicit InsetMathRef(Buffer * buf);
        ///
        explicit InsetMathRef(Buffer * buf, docstring const & data);
        ///
+       void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false);
+       ///
        //void write(WriteStream & os) const;
        ///
        void infoize(odocstream & os) const;
        ///
+       mode_type currentMode() const { return TEXT_MODE; }
+       ///
+       bool lockedMode() const { return true; }
+       ///
+       bool asciiOnly() const { return true; }
+       ///
        docstring const screenLabel() const;
        ///
        void validate(LaTeXFeatures & features) const;
        ///
+       void changeTarget(docstring const & target);
+       ///
        virtual InsetMathRef * asRefInset() { return this; }
 
        /// docbook output
-       int docbook(odocstream & os, OutputParams const &) const;
+       void docbook(XMLStream &, OutputParams const &) const;
        /// generate something that will be understood by the Dialogs.
-       std::string const createDialogStr(std::string const & name) const;
+       std::string const createDialogStr() const;
 
        struct ref_type_info {
                ///
@@ -56,6 +66,8 @@ public:
        ///
        static docstring const & getName(int type);
        ///
+       docstring const getTarget() const;
+       ///
        InsetCode lyxCode() const { return MATH_REF_CODE; }
 
 protected: