]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormPrint.C
Tiny clean-ups.
[lyx.git] / src / frontends / xforms / FormPrint.C
index 052ef23ab968728b4028d83d251c2b475e80201c..3da4346df45949b5073fc7bb2fee25b7f4fb95e2 100644 (file)
@@ -1,36 +1,41 @@
 /**
- * \file xforms/FormPrint.C
+ * \file FormPrint.C
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
  * \author Allan Rae
  * \author Angus Leeming
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #include <config.h>
 
-
-#include "xformsBC.h"
-#include "ControlPrint.h"
 #include "FormPrint.h"
+#include "ControlPrint.h"
 #include "forms/form_print.h"
-#include "Tooltips.h"
-
-#include "PrinterParams.h"
 
 #include "input_validators.h"
+#include "Tooltips.h"
 #include "xforms_helpers.h"
+#include "xformsBC.h"
+
+#include "PrinterParams.h"
 
 #include "support/lstrings.h"
-#include FORMS_H_LOCATION
+#include "support/tostr.h"
+
+#include "lyx_forms.h"
+
+using lyx::support::strToInt;
+
+using std::string;
 
 
 typedef FormCB<ControlPrint, FormDB<FD_print> > base_class;
 
 FormPrint::FormPrint()
-       : base_class(_("Print"))
+       : base_class(_("Print Document"))
 {}
 
 
@@ -39,9 +44,9 @@ void FormPrint::build()
        dialog_.reset(build_print(this));
 
        // Manage the ok, apply 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);
 
        // trigger an input event for cut&paste with middle mouse button.
        setPrehandler(dialog_->input_printer);