2001-06-14 08:20:41 +00:00
|
|
|
// -*- C++ -*-
|
2001-02-14 19:43:56 +00:00
|
|
|
/**
|
2001-08-19 13:25:15 +00:00
|
|
|
* \file QPrint.h
|
2001-02-14 19:43:56 +00:00
|
|
|
* Copyright 2001 LyX Team
|
|
|
|
* see the file COPYING
|
|
|
|
*
|
|
|
|
* \author John Levon, moz@compsoc.man.ac.uk
|
|
|
|
*/
|
2001-08-19 13:25:15 +00:00
|
|
|
#ifndef QPRINT_H
|
|
|
|
#define QPRINT_H
|
2001-02-14 19:43:56 +00:00
|
|
|
|
|
|
|
#include "DialogBase.h"
|
|
|
|
#include "boost/utility.hpp"
|
|
|
|
|
|
|
|
class Dialogs;
|
|
|
|
class LyXView;
|
2001-08-19 13:25:15 +00:00
|
|
|
class QPrintDialog;
|
2001-02-14 19:43:56 +00:00
|
|
|
|
2001-08-19 13:25:15 +00:00
|
|
|
class QPrint : public DialogBase {
|
2001-02-14 19:43:56 +00:00
|
|
|
public:
|
2001-08-19 13:25:15 +00:00
|
|
|
QPrint(LyXView *, Dialogs *);
|
|
|
|
~QPrint();
|
2001-02-14 19:43:56 +00:00
|
|
|
|
|
|
|
/// start print
|
|
|
|
void print();
|
|
|
|
/// close
|
|
|
|
void close();
|
|
|
|
|
|
|
|
private:
|
|
|
|
/// Create the dialog if necessary, update it and display it.
|
|
|
|
void show();
|
|
|
|
/// Hide the dialog.
|
|
|
|
void hide();
|
|
|
|
/// Update the dialog.
|
|
|
|
void update(bool = false);
|
|
|
|
|
|
|
|
/// Real GUI implementation.
|
2001-08-19 13:25:15 +00:00
|
|
|
QPrintDialog * dialog_;
|
2001-02-14 19:43:56 +00:00
|
|
|
|
|
|
|
/// the LyXView we belong to
|
|
|
|
LyXView * lv_;
|
|
|
|
|
|
|
|
/** Which Dialogs do we belong to?
|
|
|
|
Used so we can get at the signals we have to connect to.
|
|
|
|
*/
|
|
|
|
Dialogs * d_;
|
|
|
|
|
|
|
|
/// Hide connection.
|
2001-03-15 18:21:56 +00:00
|
|
|
SigC::Connection h_;
|
2001-02-14 19:43:56 +00:00
|
|
|
/// Update connection.
|
2001-03-15 18:21:56 +00:00
|
|
|
SigC::Connection u_;
|
2001-02-14 19:43:56 +00:00
|
|
|
};
|
|
|
|
|
2001-08-19 13:25:15 +00:00
|
|
|
#endif // QPRINT_H
|