xref: /trunk/main/sfx2/inc/sfx2/prnmon.hxx (revision 353d8f4d)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef _SFX_PRNMON_HXX
24 #define _SFX_PRNMON_HXX
25 
26 #include "sal/config.h"
27 #include "sfx2/dllapi.h"
28 
29 #include <vcl/button.hxx>
30 #include <vcl/dialog.hxx>
31 #include <sfx2/printer.hxx>
32 //#include <sfx2/progress.hxx>
33 
34 class SfxViewShell;
35 //class SfxProgress;
36 struct SfxPrintProgress_Impl;
37 
38 // ------------------------------------------------------------------------
39 
40 #define PAGE_MAX    9999        //max. Anzahl der Seiten die gedruckt werden
41 
42 //--------------------------------------------------------------------
43 /*
44 class SFX2_DLLPUBLIC SfxPrintProgress: public SfxProgress
45 {
46 	SfxPrintProgress_Impl*  pImp;
47 
48 private:
49 //#if 0 // _SOLAR__PRIVATE
50 	DECL_DLLPRIVATE_LINK( PrintErrorNotify, void * );
51     DECL_DLLPRIVATE_LINK( StartPrintNotify, void * );
52 	DECL_DLLPRIVATE_LINK( EndPrintNotify, void * );
53 //#endif
54 public:
55 							SfxPrintProgress( SfxViewShell* pViewSh,
56 											  FASTBOOL bShow = sal_True );
57 	virtual                 ~SfxPrintProgress();
58 
59 	virtual void            SetText( const String &rText );
60 			sal_Bool            SetStateText( sal_uIntPtr nVal, const String &rVal, sal_uIntPtr nNewRange = 0 );
61 	virtual sal_Bool            SetState( sal_uIntPtr nVal, sal_uIntPtr nNewRange = 0 );
62 
63 	void                    RestoreOnEndPrint( SfxPrinter *pOldPrinter );
64 	void                    RestoreOnEndPrint( SfxPrinter *pOldPrinter,
65 											   sal_Bool bOldEnablePrintFile );
66 	void                    DeleteOnEndPrint();
67 	void					SetCancelHdl( const Link& aCancelHdl );
68 	sal_Bool					IsAborted() const;
69 };
70 */
71 // ------------------------------------------------------------------------
72 
73 struct SfxPrintOptDlg_Impl;
74 class SfxPrintOptionsDialog : public ModalDialog
75 {
76 private:
77 	OKButton                aOkBtn;
78 	CancelButton            aCancelBtn;
79 	HelpButton				aHelpBtn;
80 	SfxPrintOptDlg_Impl*	pDlgImpl;
81 	SfxViewShell*           pViewSh;
82 	SfxItemSet*             pOptions;
83 	SfxTabPage*             pPage;
84 
85 public:
86 							SfxPrintOptionsDialog( Window *pParent,
87 												   SfxViewShell *pViewShell,
88 												   const SfxItemSet *rOptions );
89 	virtual                 ~SfxPrintOptionsDialog();
90 
91 	sal_Bool                    Construct();
92 	virtual short           Execute();
93 	virtual long			Notify( NotifyEvent& rNEvt );
94 
GetTabPage() const95 	SfxTabPage*             GetTabPage() const { return pPage; }
GetOptions() const96 	const SfxItemSet&       GetOptions() const { return *pOptions; }
97 	void					DisableHelp();
98 };
99 
100 #endif
101