1*b0724fc6SAndrew Rist /**************************************************************
2cdf0e10cSrcweir *
3*b0724fc6SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*b0724fc6SAndrew Rist * or more contributor license agreements. See the NOTICE file
5*b0724fc6SAndrew Rist * distributed with this work for additional information
6*b0724fc6SAndrew Rist * regarding copyright ownership. The ASF licenses this file
7*b0724fc6SAndrew Rist * to you under the Apache License, Version 2.0 (the
8*b0724fc6SAndrew Rist * "License"); you may not use this file except in compliance
9*b0724fc6SAndrew Rist * with the License. You may obtain a copy of the License at
10*b0724fc6SAndrew Rist *
11*b0724fc6SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0
12*b0724fc6SAndrew Rist *
13*b0724fc6SAndrew Rist * Unless required by applicable law or agreed to in writing,
14*b0724fc6SAndrew Rist * software distributed under the License is distributed on an
15*b0724fc6SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*b0724fc6SAndrew Rist * KIND, either express or implied. See the License for the
17*b0724fc6SAndrew Rist * specific language governing permissions and limitations
18*b0724fc6SAndrew Rist * under the License.
19*b0724fc6SAndrew Rist *
20*b0724fc6SAndrew Rist *************************************************************/
21*b0724fc6SAndrew Rist
22*b0724fc6SAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir #ifdef SVX_DLLIMPLEMENTATION
25cdf0e10cSrcweir #undef SVX_DLLIMPLEMENTATION
26cdf0e10cSrcweir #endif
27cdf0e10cSrcweir
28cdf0e10cSrcweir #if TEST_LAYOUT
29cdf0e10cSrcweir #include <cstdio>
30cdf0e10cSrcweir #endif /* TEST_LAYOUT */
31cdf0e10cSrcweir #include <com/sun/star/awt/XDialog2.hpp>
32cdf0e10cSrcweir #include <tools/shl.hxx>
33cdf0e10cSrcweir #include <svtools/itemset.hxx>
34cdf0e10cSrcweir #include <svtools/itempool.hxx>
35cdf0e10cSrcweir #include <sfx2/objsh.hxx>
36cdf0e10cSrcweir #include <vcl/msgbox.hxx>
37cdf0e10cSrcweir #include <toolkit/awt/vclxwindow.hxx>
38cdf0e10cSrcweir
39cdf0e10cSrcweir
40cdf0e10cSrcweir #include <com/sun/star/awt/PosSize.hpp> //redrawAlready
41cdf0e10cSrcweir
42cdf0e10cSrcweir using namespace com::sun::star;
43cdf0e10cSrcweir
44cdf0e10cSrcweir #define _SVX_RECOVER_CXX
45cdf0e10cSrcweir
46cdf0e10cSrcweir #include "recover.hxx"
47cdf0e10cSrcweir
48cdf0e10cSrcweir #include <layout/layout-pre.hxx>
49cdf0e10cSrcweir
50cdf0e10cSrcweir #if ENABLE_LAYOUT
51cdf0e10cSrcweir #undef SVX_RES
52cdf0e10cSrcweir #define SVX_RES(x) #x
53cdf0e10cSrcweir #undef SfxModalDialog
54cdf0e10cSrcweir #define SfxModalDialog( parent, id ) Dialog( parent, "recover.xml", id )
55cdf0e10cSrcweir #endif /* ENABLE_LAYOUT */
56cdf0e10cSrcweir
57cdf0e10cSrcweir #if TEST_LAYOUT
SvxRecoverDialog(Window * pParent)58cdf0e10cSrcweir SvxRecoverDialog::SvxRecoverDialog( Window* pParent )
59cdf0e10cSrcweir #else /* !TEST_LAYOUT */
60cdf0e10cSrcweir SvxRecoverDialog::SvxRecoverDialog( Window* pParent, const SfxItemSet& rCoreSet )
61cdf0e10cSrcweir #endif /* !TEST_LAYOUT */
62cdf0e10cSrcweir : SfxModalDialog( pParent, SVX_RES( RID_SVXDLG_RECOVER ) )
63cdf0e10cSrcweir
64cdf0e10cSrcweir , aHeaderImage( this, SVX_RES( FI_HEADER ) )
65cdf0e10cSrcweir , aHeaderText( this, SVX_RES( FT_HEADER ) )
66cdf0e10cSrcweir , aHeaderLine( this, SVX_RES( FL_HEADER ) )
67cdf0e10cSrcweir , aRecoverText( this, SVX_RES( FT_RECOVER ) )
68cdf0e10cSrcweir , aTextAdvanced( this, SVX_RES( FT_ADVANCED ) )
69cdf0e10cSrcweir
70cdf0e10cSrcweir , aCheckBoxDoc( this, SVX_RES( CB_DOC ) )
71cdf0e10cSrcweir , aImageDoc( this, SVX_RES( FI_DOC ) )
72cdf0e10cSrcweir , aTextDoc( this, SVX_RES( FT_DOC ) )
73cdf0e10cSrcweir
74cdf0e10cSrcweir , aCheckBoxSheet( this, SVX_RES( CB_SHEET ) )
75cdf0e10cSrcweir , aImageSheet( this, SVX_RES( FI_SHEET ) )
76cdf0e10cSrcweir , aTextSheet( this, SVX_RES( FT_SHEET ) )
77cdf0e10cSrcweir
78cdf0e10cSrcweir , aCheckBoxDraw( this, SVX_RES( CB_DRAW ) )
79cdf0e10cSrcweir , aImageDraw( this, SVX_RES( FI_DRAW ) )
80cdf0e10cSrcweir , aTextDraw( this, SVX_RES( FT_DRAW ) )
81cdf0e10cSrcweir
82cdf0e10cSrcweir , aCheckBoxPresent( this, SVX_RES( CB_PRESENT ) )
83cdf0e10cSrcweir , aImagePresent( this, SVX_RES( FI_PRESENT ) )
84cdf0e10cSrcweir , aTextPresent( this, SVX_RES( FT_PRESENT ) )
85cdf0e10cSrcweir
86cdf0e10cSrcweir , aButtonAdvanced( this, SVX_RES( PB_ADVANCED ) )
87cdf0e10cSrcweir
88cdf0e10cSrcweir , aProgressText( this, SVX_RES( FT_PROGRESS ) )
89cdf0e10cSrcweir , aProgressBar( this, SVX_RES( PB_RECOVER ) )
90cdf0e10cSrcweir , aCheckBoxLogFile( this, SVX_RES( CH_LOGFILE ) )
91cdf0e10cSrcweir , aOKBtn( this, SVX_RES( BTN_OK ) )
92cdf0e10cSrcweir , aCancelBtn( this, SVX_RES( BTN_CANCEL ) )
93cdf0e10cSrcweir , aHelpBtn( this, SVX_RES( BTN_HELP ) )
94cdf0e10cSrcweir {
95cdf0e10cSrcweir aButtonAdvanced.AddAdvanced( &aTextAdvanced );
96cdf0e10cSrcweir aButtonAdvanced.AddAdvanced( &aCheckBoxDoc );
97cdf0e10cSrcweir aButtonAdvanced.AddAdvanced( &aCheckBoxSheet );
98cdf0e10cSrcweir aButtonAdvanced.AddAdvanced( &aCheckBoxDraw );
99cdf0e10cSrcweir aButtonAdvanced.AddAdvanced( &aCheckBoxPresent );
100cdf0e10cSrcweir aButtonAdvanced.AddAdvanced( &aCheckBoxLogFile );
101cdf0e10cSrcweir }
102cdf0e10cSrcweir
103cdf0e10cSrcweir
~SvxRecoverDialog()104cdf0e10cSrcweir SvxRecoverDialog::~SvxRecoverDialog()
105cdf0e10cSrcweir {
106cdf0e10cSrcweir }
107