]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormSendto.C
get rid of broken_header.h and some unneeded tests
[lyx.git] / src / frontends / xforms / FormSendto.C
index 6c86a2cfd6514099d62de974f19936541e738fdc..7fd0484ca845ffacb612cd4c346fe74fd73517ea 100644 (file)
 
 #include "lyx_forms.h"
 
-using namespace lyx::support;
-
 using std::vector;
+using std::string;
+
+namespace lyx {
 
+using support::trim;
 
-typedef FormCB<ControlSendto, FormDB<FD_sendto> > base_class;
+namespace frontend {
 
-FormSendto::FormSendto()
-       : base_class(_("Send document to command"))
+typedef FormController<ControlSendto, FormView<FD_sendto> > base_class;
+
+FormSendto::FormSendto(Dialog & parent)
+       : base_class(parent, _("Send document to command"))
 {}
 
 
@@ -117,3 +121,6 @@ void FormSendto::apply()
        controller().setFormat(all_formats_[line-1]);
        controller().setCommand(cmd);
 }
+
+} // namespace frontend
+} // namespace lyx