mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 21:49:51 +00:00
a410ecbf08
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1349 a592a061-630c-0410-9148-cb99ea01b6c8
69 lines
1.4 KiB
C++
69 lines
1.4 KiB
C++
// -*- C++ -*-
|
|
/* This file is part of
|
|
* ======================================================
|
|
*
|
|
* LyX, The Document Processor
|
|
*
|
|
* Copyright 1995 Matthias Ettrich
|
|
* Copyright 1995-2000 The LyX Team.
|
|
*
|
|
* This file copyright 1999-2000
|
|
* Allan Rae
|
|
*======================================================*/
|
|
/* FormPrint.h
|
|
* FormPrint Interface Class
|
|
*/
|
|
|
|
#ifndef FORMPRINT_H
|
|
#define FORMPRINT_H
|
|
|
|
#include "FormBase.h"
|
|
#include "RadioButtonGroup.h"
|
|
|
|
#ifdef __GNUG__
|
|
#pragma interface
|
|
#endif
|
|
|
|
class LyXView;
|
|
class Dialogs;
|
|
struct FD_form_print;
|
|
|
|
/** This class provides an XForms implementation of the FormPrint Dialog.
|
|
The print dialog allows users to print their documents.
|
|
*/
|
|
class FormPrint : public FormBaseBD {
|
|
public:
|
|
/// #FormPrint x(LyXView ..., Dialogs ...);#
|
|
FormPrint(LyXView *, Dialogs *);
|
|
///
|
|
~FormPrint();
|
|
|
|
private:
|
|
/// Update the dialog.
|
|
virtual void update();
|
|
/// Apply from dialog
|
|
virtual void apply();
|
|
/// Filter the inputs
|
|
virtual bool input(FL_OBJECT *, long);
|
|
/// Pointer to the actual instantiation of the xform's form
|
|
virtual FL_FORM * form() const;
|
|
/// Build the dialog
|
|
virtual void build();
|
|
/// Open the file browse dialog.
|
|
void browse();
|
|
|
|
///
|
|
FD_form_print * build_print();
|
|
|
|
/// Real GUI implementation.
|
|
FD_form_print * dialog_;
|
|
/// print target
|
|
RadioButtonGroup target_;
|
|
/// page order
|
|
RadioButtonGroup order_;
|
|
/// which pages
|
|
RadioButtonGroup which_;
|
|
};
|
|
|
|
#endif
|