xref: /aoo41x/main/toolkit/workben/layout/recover.cxx (revision cdf0e10c)
1*cdf0e10cSrcweir /*************************************************************************
2*cdf0e10cSrcweir  *
3*cdf0e10cSrcweir  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir  *
5*cdf0e10cSrcweir  * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir  *
7*cdf0e10cSrcweir  * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir  *
9*cdf0e10cSrcweir  * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir  *
11*cdf0e10cSrcweir  * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir  * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir  * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir  *
15*cdf0e10cSrcweir  * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir  * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir  * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir  *
21*cdf0e10cSrcweir  * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir  * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir  * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir  * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir  *
26*cdf0e10cSrcweir  ************************************************************************/
27*cdf0e10cSrcweir 
28*cdf0e10cSrcweir #ifdef SVX_DLLIMPLEMENTATION
29*cdf0e10cSrcweir #undef SVX_DLLIMPLEMENTATION
30*cdf0e10cSrcweir #endif
31*cdf0e10cSrcweir 
32*cdf0e10cSrcweir #if TEST_LAYOUT
33*cdf0e10cSrcweir #include <cstdio>
34*cdf0e10cSrcweir #endif /* TEST_LAYOUT */
35*cdf0e10cSrcweir #include <com/sun/star/awt/XDialog2.hpp>
36*cdf0e10cSrcweir #include <tools/shl.hxx>
37*cdf0e10cSrcweir #include <svtools/itemset.hxx>
38*cdf0e10cSrcweir #include <svtools/itempool.hxx>
39*cdf0e10cSrcweir #include <sfx2/objsh.hxx>
40*cdf0e10cSrcweir #include <vcl/msgbox.hxx>
41*cdf0e10cSrcweir #include <toolkit/awt/vclxwindow.hxx>
42*cdf0e10cSrcweir 
43*cdf0e10cSrcweir 
44*cdf0e10cSrcweir #include <com/sun/star/awt/PosSize.hpp> //redrawAlready
45*cdf0e10cSrcweir 
46*cdf0e10cSrcweir using namespace com::sun::star;
47*cdf0e10cSrcweir 
48*cdf0e10cSrcweir #define _SVX_RECOVER_CXX
49*cdf0e10cSrcweir 
50*cdf0e10cSrcweir #include "recover.hxx"
51*cdf0e10cSrcweir 
52*cdf0e10cSrcweir #include <layout/layout-pre.hxx>
53*cdf0e10cSrcweir 
54*cdf0e10cSrcweir #if ENABLE_LAYOUT
55*cdf0e10cSrcweir #undef SVX_RES
56*cdf0e10cSrcweir #define SVX_RES(x) #x
57*cdf0e10cSrcweir #undef SfxModalDialog
58*cdf0e10cSrcweir #define SfxModalDialog( parent, id ) Dialog( parent, "recover.xml", id )
59*cdf0e10cSrcweir #endif /* ENABLE_LAYOUT */
60*cdf0e10cSrcweir 
61*cdf0e10cSrcweir #if TEST_LAYOUT
62*cdf0e10cSrcweir SvxRecoverDialog::SvxRecoverDialog( Window* pParent )
63*cdf0e10cSrcweir #else /* !TEST_LAYOUT */
64*cdf0e10cSrcweir SvxRecoverDialog::SvxRecoverDialog( Window* pParent, const SfxItemSet& rCoreSet )
65*cdf0e10cSrcweir #endif /* !TEST_LAYOUT */
66*cdf0e10cSrcweir : SfxModalDialog( pParent, SVX_RES( RID_SVXDLG_RECOVER ) )
67*cdf0e10cSrcweir 
68*cdf0e10cSrcweir     , aHeaderImage( this, SVX_RES( FI_HEADER ) )
69*cdf0e10cSrcweir     , aHeaderText( this, SVX_RES( FT_HEADER ) )
70*cdf0e10cSrcweir     , aHeaderLine( this, SVX_RES( FL_HEADER ) )
71*cdf0e10cSrcweir     , aRecoverText( this, SVX_RES( FT_RECOVER ) )
72*cdf0e10cSrcweir     , aTextAdvanced( this, SVX_RES( FT_ADVANCED ) )
73*cdf0e10cSrcweir 
74*cdf0e10cSrcweir 	, aCheckBoxDoc( this, SVX_RES( CB_DOC ) )
75*cdf0e10cSrcweir 	, aImageDoc( this, SVX_RES( FI_DOC ) )
76*cdf0e10cSrcweir 	, aTextDoc( this, SVX_RES( FT_DOC ) )
77*cdf0e10cSrcweir 
78*cdf0e10cSrcweir 	, aCheckBoxSheet( this, SVX_RES( CB_SHEET ) )
79*cdf0e10cSrcweir 	, aImageSheet( this, SVX_RES( FI_SHEET ) )
80*cdf0e10cSrcweir 	, aTextSheet( this, SVX_RES( FT_SHEET ) )
81*cdf0e10cSrcweir 
82*cdf0e10cSrcweir 	, aCheckBoxDraw( this, SVX_RES( CB_DRAW ) )
83*cdf0e10cSrcweir 	, aImageDraw( this, SVX_RES( FI_DRAW ) )
84*cdf0e10cSrcweir 	, aTextDraw( this, SVX_RES( FT_DRAW ) )
85*cdf0e10cSrcweir 
86*cdf0e10cSrcweir 	, aCheckBoxPresent( this, SVX_RES( CB_PRESENT ) )
87*cdf0e10cSrcweir 	, aImagePresent( this, SVX_RES( FI_PRESENT ) )
88*cdf0e10cSrcweir 	, aTextPresent( this, SVX_RES( FT_PRESENT ) )
89*cdf0e10cSrcweir 
90*cdf0e10cSrcweir 	, aButtonAdvanced( this, SVX_RES( PB_ADVANCED ) )
91*cdf0e10cSrcweir 
92*cdf0e10cSrcweir     , aProgressText( this, SVX_RES( FT_PROGRESS ) )
93*cdf0e10cSrcweir     , aProgressBar( this, SVX_RES( PB_RECOVER ) )
94*cdf0e10cSrcweir 	, aCheckBoxLogFile( this, SVX_RES( CH_LOGFILE ) )
95*cdf0e10cSrcweir     , aOKBtn( this, SVX_RES( BTN_OK ) )
96*cdf0e10cSrcweir 	, aCancelBtn( this, SVX_RES( BTN_CANCEL ) )
97*cdf0e10cSrcweir 	, aHelpBtn( this, SVX_RES( BTN_HELP ) )
98*cdf0e10cSrcweir {
99*cdf0e10cSrcweir     aButtonAdvanced.AddAdvanced( &aTextAdvanced );
100*cdf0e10cSrcweir     aButtonAdvanced.AddAdvanced( &aCheckBoxDoc );
101*cdf0e10cSrcweir     aButtonAdvanced.AddAdvanced( &aCheckBoxSheet );
102*cdf0e10cSrcweir     aButtonAdvanced.AddAdvanced( &aCheckBoxDraw );
103*cdf0e10cSrcweir     aButtonAdvanced.AddAdvanced( &aCheckBoxPresent );
104*cdf0e10cSrcweir     aButtonAdvanced.AddAdvanced( &aCheckBoxLogFile );
105*cdf0e10cSrcweir }
106*cdf0e10cSrcweir 
107*cdf0e10cSrcweir 
108*cdf0e10cSrcweir SvxRecoverDialog::~SvxRecoverDialog()
109*cdf0e10cSrcweir {
110*cdf0e10cSrcweir }
111