2001-06-13 14:33:31 +00:00
|
|
|
// -*- C++ -*-
|
2002-09-05 14:10:50 +00:00
|
|
|
/**
|
|
|
|
* \file ControlPrint.h
|
2002-09-05 15:14:23 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
2001-03-27 10:43:10 +00:00
|
|
|
*
|
2002-09-05 14:10:50 +00:00
|
|
|
* \author Allan Rae
|
|
|
|
* \author Angus Leeming
|
2001-03-27 10:43:10 +00:00
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
* Full author contact details are available in file CREDITS.
|
2001-03-27 10:43:10 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CONTROLPRINT_H
|
|
|
|
#define CONTROLPRINT_H
|
|
|
|
|
2004-03-28 14:12:33 +00:00
|
|
|
#include "Dialog.h"
|
2006-10-09 16:33:20 +00:00
|
|
|
|
|
|
|
#include "support/docstring.h"
|
|
|
|
|
2004-03-28 14:12:33 +00:00
|
|
|
#include <boost/scoped_ptr.hpp>
|
2002-06-18 15:44:30 +00:00
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
namespace lyx {
|
|
|
|
|
2001-03-27 10:43:10 +00:00
|
|
|
class PrinterParams;
|
|
|
|
|
2004-05-19 15:11:37 +00:00
|
|
|
namespace frontend {
|
|
|
|
|
2001-03-27 10:43:10 +00:00
|
|
|
/** A controller for Print dialogs.
|
|
|
|
*/
|
2004-03-28 14:12:33 +00:00
|
|
|
class ControlPrint : public Dialog::Controller {
|
2001-03-27 10:43:10 +00:00
|
|
|
public:
|
2002-03-21 21:21:28 +00:00
|
|
|
///
|
2004-03-28 14:12:33 +00:00
|
|
|
ControlPrint(Dialog &);
|
|
|
|
///
|
|
|
|
virtual bool initialiseParams(std::string const & data);
|
|
|
|
///
|
|
|
|
virtual void clearParams();
|
|
|
|
///
|
|
|
|
virtual void dispatchParams();
|
|
|
|
///
|
|
|
|
virtual bool isBufferDependent() const { return true; }
|
2005-04-26 09:37:52 +00:00
|
|
|
///
|
2006-05-05 20:23:12 +00:00
|
|
|
virtual kb_action getLfun() const { return LFUN_BUFFER_PRINT; }
|
2001-03-27 10:43:10 +00:00
|
|
|
|
2001-03-30 09:51:46 +00:00
|
|
|
/// Browse for a file
|
2006-10-09 16:33:20 +00:00
|
|
|
lyx::docstring const browse(lyx::docstring const &) const;
|
2001-03-27 10:43:10 +00:00
|
|
|
///
|
|
|
|
PrinterParams & params() const;
|
|
|
|
private:
|
|
|
|
///
|
2004-03-28 14:12:33 +00:00
|
|
|
boost::scoped_ptr<PrinterParams> params_;
|
2001-03-27 10:43:10 +00:00
|
|
|
};
|
|
|
|
|
2004-05-19 15:11:37 +00:00
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
2001-03-27 10:43:10 +00:00
|
|
|
#endif // CONTROLPRINT_H
|