2006-03-05 17:24:44 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
2007-08-31 05:53:55 +00:00
|
|
|
* \file GuiPrint.h
|
2006-03-05 17:24:44 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
2007-10-06 21:31:01 +00:00
|
|
|
* \author Allan Rae
|
|
|
|
* \author Angus Leeming
|
2006-03-05 17:24:44 +00:00
|
|
|
* \author John Levon
|
|
|
|
* \author Edwin Leuven
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
*/
|
|
|
|
|
2007-08-31 22:16:11 +00:00
|
|
|
#ifndef GUIPRINT_H
|
|
|
|
#define GUIPRINT_H
|
2006-03-05 17:24:44 +00:00
|
|
|
|
2007-09-05 20:33:29 +00:00
|
|
|
#include "GuiDialog.h"
|
2007-08-31 22:16:11 +00:00
|
|
|
#include "ui_PrintUi.h"
|
|
|
|
|
2007-10-06 21:31:01 +00:00
|
|
|
#include "Dialog.h"
|
|
|
|
#include "PrinterParams.h"
|
|
|
|
|
2006-03-05 17:24:44 +00:00
|
|
|
namespace lyx {
|
|
|
|
namespace frontend {
|
|
|
|
|
2007-10-09 19:34:27 +00:00
|
|
|
class GuiPrint : public GuiDialog, public Ui::PrintUi
|
2007-09-05 20:33:29 +00:00
|
|
|
{
|
2007-08-31 22:16:11 +00:00
|
|
|
Q_OBJECT
|
2006-03-05 17:24:44 +00:00
|
|
|
|
|
|
|
public:
|
2007-11-23 09:44:02 +00:00
|
|
|
GuiPrint(GuiView & lv);
|
2007-09-05 20:33:29 +00:00
|
|
|
|
|
|
|
private Q_SLOTS:
|
|
|
|
void change_adaptor();
|
|
|
|
void browseClicked();
|
|
|
|
void fileChanged();
|
|
|
|
void copiesChanged(int);
|
|
|
|
void printerChanged();
|
|
|
|
void pagerangeChanged();
|
|
|
|
|
2006-03-05 17:24:44 +00:00
|
|
|
private:
|
|
|
|
/// Apply changes
|
2007-09-05 20:33:29 +00:00
|
|
|
void applyView();
|
2006-03-05 17:24:44 +00:00
|
|
|
/// update
|
2007-09-11 18:33:42 +00:00
|
|
|
void updateContents();
|
2007-10-06 21:31:01 +00:00
|
|
|
///
|
|
|
|
bool initialiseParams(std::string const & data);
|
|
|
|
///
|
|
|
|
void clearParams();
|
|
|
|
///
|
|
|
|
void dispatchParams();
|
|
|
|
///
|
|
|
|
bool isBufferDependent() const { return true; }
|
|
|
|
///
|
|
|
|
bool canApplyToReadOnly() const { return true; }
|
|
|
|
///
|
2008-03-15 01:20:36 +00:00
|
|
|
FuncCode getLfun() const { return LFUN_BUFFER_PRINT; }
|
2007-10-06 21:31:01 +00:00
|
|
|
|
|
|
|
///
|
|
|
|
PrinterParams params_;
|
2006-03-05 17:24:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
2007-08-31 22:16:11 +00:00
|
|
|
#endif // GUIPRINT_H
|