xref: /aoo41x/main/sd/source/ui/inc/BreakDlg.hxx (revision cdf0e10c)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 
28 #ifndef SD_BREAK_DLG_HXX
29 #define SD_BREAK_DLG_HXX
30 
31 #include <vcl/group.hxx>
32 #ifndef _SV_BUTTON_HXX //autogen
33 #include <vcl/button.hxx>
34 #endif
35 #include <svx/dlgctrl.hxx>
36 #include <vcl/field.hxx>
37 #include <vcl/fixed.hxx>
38 #include <svtools/prgsbar.hxx>
39 #include <vcl/edit.hxx>
40 #include <svtools/stdctrl.hxx>
41 #include <sfx2/basedlgs.hxx>
42 
43 class SvdProgressInfo;
44 class SfxProgress;
45 
46 namespace sd {
47 
48 class DrawDocShell;
49 class DrawView;
50 
51 /*************************************************************************
52 |*
53 |* Dialog zum aufbrechen von Metafiles
54 |*
55 \************************************************************************/
56 class BreakDlg
57     : public SfxModalDialog
58 {
59 public:
60 	BreakDlg (
61         ::Window* pWindow,
62         DrawView* pDrView,
63         DrawDocShell* pShell,
64         sal_uLong nSumActionCount,
65         sal_uLong nObjCount);
66 	virtual ~BreakDlg();
67 
68 	short Execute();
69 
70 private:
71 	FixedText		aFtObjInfo;
72 	FixedText		aFtActInfo;
73 	FixedText		aFtInsInfo;
74 
75 	FixedInfo		aFiObjInfo;
76 	FixedInfo		aFiActInfo;
77 	FixedInfo		aFiInsInfo;
78 
79 	CancelButton	aBtnCancel;
80 	DrawView* 	pDrView;
81 
82 	sal_Bool			bCancel;
83 
84 	Timer			aTimer;
85 	SvdProgressInfo *pProgrInfo;
86 	Link			aLink;
87 	SfxProgress		*mpProgress;
88 
89 	DECL_LINK( CancelButtonHdl, void* );
90 	DECL_LINK( UpDate, void* );
91 	DECL_LINK( InitialUpdate, Timer* );
92 };
93 
94 } // end of namespace sd
95 
96 #endif
97