]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCommand.h
Pure HTML output for math macros.
[lyx.git] / src / insets / InsetCommand.h
index 090a85abbbb61b1d84656056615fb8cbac401b2d..d1f4af0d0f3344bec806ecb64ae907e6f48adbff 100644 (file)
@@ -58,6 +58,12 @@ public:
        docstring const getFirstNonOptParam() const { return p_.getFirstNonOptParam(); }
        /// update label and references.
        virtual void updateCommand(docstring const &, bool) {}
+       /// 
+       virtual InsetCommand * asInsetCommand() { return this; }
+       /// 
+       virtual InsetCommand const * asInsetCommand() const { return this; }
+       /// whether to include this inset in the strings generated for the TOC
+       virtual bool isInToc() const { return false; }
 
 protected:
        ///
@@ -69,7 +75,7 @@ protected:
        ///
        bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const;
        ///
-       docstring const getCommand() const { return p_.getCommand(); }
+       docstring const getCommand(OutputParams & rp) const { return p_.getCommand(rp); }
        ///
        std::string const & getCmdName() const { return p_.getCmdName(); }
        ///
@@ -109,8 +115,6 @@ private:
        virtual docstring screenLabel() const = 0;
        ///
        bool showInsetDialog(BufferView * bv) const;
-
-private:
        ///
        InsetCommandParams p_;
        ///