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"
|
|
|
|
#include <boost/scoped_ptr.hpp>
|
2002-06-18 15:44:30 +00:00
|
|
|
|
2001-03-27 10:43:10 +00:00
|
|
|
class PrinterParams;
|
|
|
|
|
2004-05-19 15:11:37 +00:00
|
|
|
namespace lyx {
|
|
|
|
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; }
|
2001-03-27 10:43:10 +00:00
|
|
|
|
2001-03-30 09:51:46 +00:00
|
|
|
/// Browse for a file
|
2004-01-08 10:59:51 +00:00
|
|
|
std::string const browse(std::string 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
|