]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/command_inset.C
revert Buffer LyxText->InsetText commit
[lyx.git] / src / mathed / command_inset.C
index aee12628e2cc3ec54cd67fc7fd41b46450d68503..eaf57d62304e685839fc31d6084bd709fc22e10e 100644 (file)
 #include <config.h>
 
 #include "command_inset.h"
+#include "math_data.h"
 #include "math_mathmlstream.h"
+#include "dispatchresult.h"
 #include "funcrequest.h"
 #include "support/std_sstream.h"
 
+
+using std::string;
 using std::auto_ptr;
+using std::ostringstream;
 
 
 CommandInset::CommandInset(string const & name)
@@ -48,16 +53,6 @@ void CommandInset::draw(PainterInfo & pi, int x, int y) const
        button_.draw(pi, x, y);
 }
 
-dispatch_result
-CommandInset::dispatch(FuncRequest const & cmd, idx_type & idx, pos_type & pos)
-{
-       switch (cmd.action) {
-               default:
-                       return MathNestInset::dispatch(cmd, idx, pos);
-       }
-       return UNDISPATCHED;
-}
-
 
 void CommandInset::write(WriteStream & os) const
 {
@@ -81,5 +76,5 @@ string const CommandInset::createDialogStr(string const & name) const
        WriteStream wsdata(data);
        write(wsdata);
        wsdata << "\n\\end_inset\n\n";
-       return STRCONV(data.str());
+       return data.str();
 }