+
+bool GuiSendTo::initialiseParams(string const &)
+{
+ format_ = 0;
+ paramsToDialog(format_, command_);
+ return true;
+}
+
+
+void GuiSendTo::paramsToDialog(Format const * /*format*/, QString const & command)
+{
+ if (!command.isEmpty())
+ commandCO->addItem(command);
+
+ bc().setValid(isValid());
+}
+
+
+void GuiSendTo::dispatchParams()
+{
+ if (command_.isEmpty() || !format_ || format_->name().empty())
+ return;
+
+ string const data = format_->name() + " " + fromqstr(command_);
+ dispatch(FuncRequest(getLfun(), data));
+}
+
+Dialog * createGuiSendTo(GuiView & lv) { return new GuiSendTo(lv); }
+
+