]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetcommand.C
ws changes only
[lyx.git] / src / insets / insetcommand.C
index ffb0babd2ec3beb2fab6e152430f3aa301bfad9f..6eff3dc6a5941a8e09f4711f28b5747cd45ca1e8 100644 (file)
@@ -20,6 +20,8 @@
 
 #include "support/std_sstream.h"
 
+
+using std::string;
 using std::istringstream;
 using std::ostream;
 using std::ostringstream;
@@ -31,12 +33,6 @@ InsetCommand::InsetCommand(InsetCommandParams const & p)
 {}
 
 
-BufferView * InsetCommand::view() const
-{
-       return button_.view();
-}
-
-
 void InsetCommand::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        if (!set_label_) {
@@ -110,7 +106,7 @@ dispatch_result InsetCommand::localDispatch(FuncRequest const & cmd)
                return localDispatch(FuncRequest(cmd.view(), LFUN_INSET_EDIT));
 
        default:
-               return InsetOld::localDispatch(cmd);
+               return UNDISPATCHED;
        }
 
 }
@@ -131,9 +127,7 @@ string const InsetCommandMailer::inset2string(Buffer const &) const
 void InsetCommandMailer::string2params(string const & in,
                                       InsetCommandParams & params)
 {
-       params.setCmdName(string());
-       params.setContents(string());
-       params.setOptions(string());
+       params = InsetCommandParams();
 
        if (in.empty())
                return;