]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormSendto.C
Yet more dialog tweaking from Rob.
[lyx.git] / src / frontends / xforms / FormSendto.C
index ce9f5f5ea601f301014509f4e6e3a649555c9403..c226dd5b4d84ad4f98b25a75ab2486acca153fd2 100644 (file)
@@ -1,9 +1,11 @@
-/*
+/**
  * \file FormSendto.C
- * Copyright 2002 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- * \author Angus Leeming, a.leeming@ic.ac.uk
+ * \author Angus Leeming 
+ *
+ * Full author contact details are available in file CREDITS
  */
 
 #include <config.h>
@@ -26,8 +28,8 @@ using std::vector;
 
 typedef FormCB<ControlSendto, FormDB<FD_sendto> > base_class;
 
-FormSendto::FormSendto(ControlSendto & c)
-       : base_class(c, _("Send document to command"))
+FormSendto::FormSendto()
+       : base_class(_("Send document to command"))
 {}
 
 
@@ -69,7 +71,7 @@ void FormSendto::update()
        }
 
        vector<string> const browser_keys =
-               getVectorFromBrowser(dialog_->browser_formats);
+               getVector(dialog_->browser_formats);
 
        if (browser_keys == keys)
                return;
@@ -92,8 +94,8 @@ ButtonPolicy::SMInput FormSendto::input(FL_OBJECT *, long)
        if (line < 1 || line > fl_get_browser_maxline(dialog_->browser_formats))
                return ButtonPolicy::SMI_INVALID;
 
-       string cmd = getStringFromInput(dialog_->input_command);
-       cmd = strip(frontStrip(cmd));
+       string cmd = getString(dialog_->input_command);
+       cmd = trim(cmd);
        if (cmd.empty())
                return ButtonPolicy::SMI_INVALID;
 
@@ -107,7 +109,7 @@ void FormSendto::apply()
        if (line < 1 || line > fl_get_browser_maxline(dialog_->browser_formats))
                return;
 
-       string const cmd = getStringFromInput(dialog_->input_command);
+       string const cmd = getString(dialog_->input_command);
 
        controller().setFormat(all_formats_[line-1]);
        controller().setCommand(cmd);