]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathSpace.h
Revert "XHTML: remove DOCTYPE, as the document is then understood as HTML4/XHTML1...
[lyx.git] / src / mathed / InsetMathSpace.h
index 15b79d2b58d2086bb47d17937a5d02b14103f501..32147dbe2549bce617dfd281cc7d2d6b6eb63e4f 100644 (file)
 #define MATH_SPACEINSET_H
 
 #include "InsetMath.h"
-#include "Length.h"
+
+#include "support/Length.h"
 
 
 namespace lyx {
 
+struct InsetSpaceParams;
 
 /// Smart spaces
 class InsetMathSpace : public InsetMath {
@@ -27,9 +29,7 @@ public:
        ///
        explicit InsetMathSpace(std::string const & name, std::string const & length);
        ///
-       explicit InsetMathSpace(Length const & length);
-       ///
-       ~InsetMathSpace();
+       explicit InsetMathSpace(Length const & length, bool const prot = false);
        ///
        InsetMathSpace const * asSpaceInset() const { return this; }
        ///
@@ -52,15 +52,22 @@ public:
        ///
        void octave(OctaveStream &) const;
        ///
+       void mathmlize(MathStream & ms) const;
+       ///
+       void htmlize(HtmlStream & ms) const;
+       ///
        void write(WriteStream & os) const;
        /// generate something that will be understood by the Dialogs.
-       std::string const createDialogStr() const;
+       InsetSpaceParams params() const;
        ///
-       EDITABLE editable() const { return IS_EDITABLE; }
+       bool hasSettings() const { return true; }
        ///
-       docstring contextMenu(BufferView const &, int, int) const;
+       std::string contextMenuName() const;
        ///
        bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
+       ///
+       InsetCode lyxCode() const { return MATH_SPACE_CODE; }
+
 protected:
        ///
        virtual void doDispatch(Cursor & cur, FuncRequest & cmd);