2001-06-13 14:33:31 +00:00
|
|
|
// -*- C++ -*-
|
2001-03-27 10:43:10 +00:00
|
|
|
/* This file is part of
|
|
|
|
* ======================================================
|
2002-03-21 21:21:28 +00:00
|
|
|
*
|
2001-03-27 10:43:10 +00:00
|
|
|
* LyX, The Document Processor
|
2002-03-21 21:21:28 +00:00
|
|
|
*
|
2001-03-27 10:43:10 +00:00
|
|
|
* 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
|
|
|
|
|
2002-01-16 14:47:58 +00:00
|
|
|
#include "ControlDialog_impl.h"
|
2001-03-27 10:43:10 +00:00
|
|
|
|
2002-06-18 15:44:30 +00:00
|
|
|
#include "LString.h"
|
|
|
|
|
2001-03-27 10:43:10 +00:00
|
|
|
class PrinterParams;
|
|
|
|
|
|
|
|
/** A controller for Print dialogs.
|
|
|
|
*/
|
2002-01-16 14:47:58 +00:00
|
|
|
class ControlPrint : public ControlDialogBD {
|
2001-03-27 10:43:10 +00:00
|
|
|
public:
|
2002-03-21 21:21:28 +00:00
|
|
|
///
|
2001-03-27 10:43:10 +00:00
|
|
|
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();
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2001-03-27 10:43:10 +00:00
|
|
|
///
|
|
|
|
PrinterParams * params_;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CONTROLPRINT_H
|