mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 21:49:51 +00:00
0c2a3e5960
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2118 a592a061-630c-0410-9148-cb99ea01b6c8
64 lines
1.4 KiB
C++
64 lines
1.4 KiB
C++
// -*- C++ -*-
|
|
/* This file is part of
|
|
* ======================================================
|
|
*
|
|
* LyX, The Document Processor
|
|
*
|
|
* Copyright 1995 Matthias Ettrich
|
|
* Copyright 1995-2001 The LyX Team.
|
|
*
|
|
* This file copyright 1999-2001
|
|
* Allan Rae
|
|
*======================================================
|
|
*
|
|
* \file FormPrint.h
|
|
* \author Allan Rae, rae@lyx.org
|
|
* \author Angus Leeming, a.leeming@.ac.uk
|
|
*/
|
|
|
|
#ifndef FORMPRINT_H
|
|
#define FORMPRINT_H
|
|
|
|
#include <boost/smart_ptr.hpp>
|
|
|
|
#ifdef __GNUG__
|
|
#pragma interface
|
|
#endif
|
|
|
|
#include "FormBase.h"
|
|
#include "RadioButtonGroup.h"
|
|
|
|
class ControlPrint;
|
|
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 FormCB<ControlPrint, FormDB<FD_form_print> > {
|
|
public:
|
|
///
|
|
FormPrint(ControlPrint &);
|
|
|
|
private:
|
|
/// Apply from dialog
|
|
virtual void apply();
|
|
/// Build the dialog
|
|
virtual void build();
|
|
/// Update the dialog.
|
|
virtual void update();
|
|
/// Filter the inputs on callback from xforms
|
|
virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
|
|
|
|
/// Fdesign generated method
|
|
FD_form_print * build_print();
|
|
|
|
/// print target
|
|
RadioButtonGroup target_;
|
|
/// page order
|
|
RadioButtonGroup order_;
|
|
/// which pages
|
|
RadioButtonGroup which_;
|
|
};
|
|
|
|
#endif // FORMPRINT_H
|