lyx_mirror/src/frontends/qt2/FormPrint.h
Lars Gullik Bjønnes 6512edb15a qt2.diff.gz
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1517 a592a061-630c-0410-9148-cb99ea01b6c8
2001-02-14 19:43:56 +00:00

63 lines
1.0 KiB
C++

/**
* \file FormPrint.h
* Copyright 2001 LyX Team
* see the file COPYING
*
* \author John Levon, moz@compsoc.man.ac.uk
*/
#ifndef FORMPRINT_H
#define FORMPRINT_H
#include "DialogBase.h"
#include "boost/utility.hpp"
class Dialogs;
class LyXView;
class PrintDlgImpl;
#ifdef SIGC_CXX_NAMESPACES
using SigC::Connection;
#endif
class FormPrint : public DialogBase, public noncopyable {
public:
/**@name Constructors and Destructors */
//@{
///
FormPrint(LyXView *, Dialogs *);
///
~FormPrint();
//@}
/// 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.
PrintDlgImpl * dialog_;
/// 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.
Connection h_;
/// Update connection.
Connection u_;
};
#endif