printdlg.h
上传用户:hzhsqp
上传日期:2007-01-06
资源大小:1600k
文件大小:4k
- /*
- * printdlg.h
- *
- * Print dialog ancestor class.
- *
- * Portable Windows Library
- *
- * Copyright (c) 1993-1998 Equivalence Pty. Ltd.
- *
- * The contents of this file are subject to the Mozilla Public License
- * Version 1.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
- * the License for the specific language governing rights and limitations
- * under the License.
- *
- * The Original Code is Portable Windows Library.
- *
- * The Initial Developer of the Original Code is Equivalence Pty. Ltd.
- *
- * Portions are Copyright (C) 1993 Free Software Foundation, Inc.
- * All Rights Reserved.
- *
- * Contributor(s): ______________________________________.
- *
- * $Log: printdlg.h,v $
- * Revision 1.11 1999/03/10 03:49:53 robertj
- * More documentation adjustments.
- *
- * Revision 1.10 1999/03/09 08:01:49 robertj
- * Changed comments for doc++ support (more to come).
- *
- * Revision 1.9 1999/02/16 08:08:46 robertj
- * MSVC 6.0 compatibility changes.
- *
- * Revision 1.8 1998/09/23 06:28:25 robertj
- * Added open source copyright license.
- *
- * Revision 1.7 1995/06/17 11:13:03 robertj
- * Documentation update.
- *
- * Revision 1.6 1995/03/14 12:42:12 robertj
- * Updated documentation to use HTML codes.
- *
- * Revision 1.5 1995/01/21 10:13:54 robertj
- * Documentation.
- *
- * Revision 1.4 1995/01/11 09:45:06 robertj
- * Documentation and normalisation.
- *
- * Revision 1.3 1994/08/23 11:32:52 robertj
- * Oops
- *
- * Revision 1.2 1994/08/22 00:46:48 robertj
- * Added pragma fro GNU C++ compiler.
- *
- * Revision 1.1 1994/04/01 14:25:36 robertj
- * Initial revision
- *
- */
- #define _PPRINTDIALOG
- #ifdef __GNUC__
- #pragma interface
- #endif
- /**System specific standard dialogs for getting print job or printer setup
- information. This is an abstract class with two main descendents, the
- Ref{PPrintJobDialog} dialog is used when a print job is about to be
- started and the Ref{PPrinterSetupDialog} dialog is used to set default
- printer setup information for the application.
- Note that unlike most dialogs, most operations such as
- Ref{PInteractor::Show()}, Ref{PInteractorLayout::GetControl()} etc may
- {bf not} be executed before the Ref{PModalDialog::RunModal()} function
- has been executed. Furthermore, they are not available {bf after}
- Ref{PModalDialog::RunModal()} has returned. This is due to the
- implementation on some platforms which goes to great lengths to use the
- actual standard print dialogs for the platform.
- */
- class PPrintDialog : public PModalDialog
- {
- PCLASSINFO(PPrintDialog, PModalDialog);
- public:
- /**Create the standard printer dialog. The second form of constructor
- preinitialises the fields in the dialog to that specified in the
- printer information class. Otherwise a system default will be used.
- */
- PPrintDialog(
- PInteractor * parent, /// Owner interactor for the dialog.
- PRESOURCE_ID resID
- /// Resource identifier for the dialog description resource.
- );
- PPrintDialog(
- PInteractor * parent, /// Owner interactor for the dialog.
- const PPrintInfo & info, /// Initial setup printer information.
- PRESOURCE_ID resID
- /// Resource identifier for the dialog description resource.
- );
- /** Destroy the standard print dialog. */
- ~PPrintDialog();
- /**@name New functions for class */
- /**Get the printer setup infromation adjusted by this dialog.
-
- @return
- reference to Ref{PPrintInfo} member variable in this class.
- */
- const PPrintInfo & GetPrintInfo() const;
- protected:
- /**@name Member variables */
- /** Printer setup information for the dialog. */
- PPrintInfo printInfo;
-
-
- private:
- // New members for class
- void Construct();
- // Constructor code common to all constrcutors.
- #ifdef DOC_PLUS_PLUS
- };
- #endif
- // Class declaration continued in platform specific header file ///////////////