X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fxforms%2FFormSendto.C;h=7fd0484ca845ffacb612cd4c346fe74fd73517ea;hb=37e82a546392d43f787826b85481a11f2a27af15;hp=d7920d20a2e4d7c6cbbba35513ed07a7e71b6650;hpb=c265d16ed06149b478c2d2c9b9b8e69cdb1bcf3d;p=lyx.git diff --git a/src/frontends/xforms/FormSendto.C b/src/frontends/xforms/FormSendto.C index d7920d20a2..7fd0484ca8 100644 --- a/src/frontends/xforms/FormSendto.C +++ b/src/frontends/xforms/FormSendto.C @@ -1,33 +1,42 @@ -/* +/** * \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 + * \author Angus Leeming + * + * Full author contact details are available in file CREDITS. */ #include -#ifdef __GNUG__ -#pragma implementation -#endif - #include "FormSendto.h" -#include "forms/form_sendto.h" #include "ControlSendto.h" -#include "xformsBC.h" +#include "forms/form_sendto.h" + #include "Tooltips.h" #include "xforms_helpers.h" -#include "converter.h" -#include "gettext.h" -#include FORMS_H_LOCATION +#include "xformsBC.h" + +#include "format.h" + +#include "support/lstrings.h" + +#include "lyx_forms.h" using std::vector; +using std::string; + +namespace lyx { -typedef FormCB > base_class; +using support::trim; -FormSendto::FormSendto() - : base_class(_("Send document to command")) +namespace frontend { + +typedef FormController > base_class; + +FormSendto::FormSendto(Dialog & parent) + : base_class(parent, _("Send document to command")) {} @@ -39,9 +48,9 @@ void FormSendto::build() setPrehandler(dialog_->input_command); // Manage the ok, apply, restore and cancel/close buttons - bc().setOK(dialog_->button_ok); - bc().setApply(dialog_->button_apply); - bc().setCancel(dialog_->button_close); + bcview().setOK(dialog_->button_ok); + bcview().setApply(dialog_->button_apply); + bcview().setCancel(dialog_->button_close); // Set up the tooltip mechanism string str = _("Export the buffer to this format before running the command below on it."); @@ -112,3 +121,6 @@ void FormSendto::apply() controller().setFormat(all_formats_[line-1]); controller().setCommand(cmd); } + +} // namespace frontend +} // namespace lyx