2001-03-27 10:43:10 +00:00
|
|
|
/* This file is part of
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
|
|
|
* Copyright 2001 The LyX Team.
|
|
|
|
*
|
|
|
|
*======================================================
|
|
|
|
*
|
|
|
|
* \file ControlPrint.h
|
|
|
|
* \author Angus Leeming, a.leeming@.ac.uk
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CONTROLPRINT_H
|
|
|
|
#define CONTROLPRINT_H
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "ControlDialogs.h"
|
|
|
|
|
|
|
|
class PrinterParams;
|
|
|
|
|
|
|
|
/** A controller for Print dialogs.
|
|
|
|
*/
|
|
|
|
class ControlPrint : public ControlDialog<ControlConnectBD> {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
ControlPrint(LyXView &, Dialogs &);
|
|
|
|
|
2001-03-30 09:51:46 +00:00
|
|
|
/// Browse for a file
|
|
|
|
string const Browse(string const &);
|
2001-03-27 10:43:10 +00:00
|
|
|
///
|
|
|
|
PrinterParams & params() const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
/// Get changed parameters and Dispatch them to the kernel.
|
|
|
|
virtual void apply();
|
|
|
|
/// set the params before show or update.
|
|
|
|
virtual void setParams();
|
|
|
|
/// clean-up on hide.
|
|
|
|
virtual void clearParams();
|
|
|
|
|
|
|
|
///
|
|
|
|
PrinterParams * params_;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CONTROLPRINT_H
|