1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
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.
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).
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.
26 ************************************************************************/
28 #ifndef EXTENSIONS_ABP_ABPFINALPAGE_HXX
29 #define EXTENSIONS_ABP_ABPFINALPAGE_HXX
31 #include "abspage.hxx"
32 #include "abptypes.hxx"
34 #include <svtools/urlcontrol.hxx>
35 #include <svx/databaselocationinput.hxx>
36 #include <vcl/edit.hxx>
38 //.........................................................................
41 //.........................................................................
43 //=====================================================================
45 //=====================================================================
46 class FinalPage
: public AddressBookSourcePage
49 FixedText m_aExplanation
;
50 FixedText m_aLocationLabel
;
51 ::svt::OFileURLControl m_aLocation
;
53 CheckBox m_aRegisterName
;
54 FixedText m_aNameLabel
;
56 FixedText m_aDuplicateNameError
;
58 ::svx::DatabaseLocationInputController
59 m_aLocationController
;
61 StringBag m_aInvalidDataSourceNames
;
64 FinalPage( OAddessBookSourcePilot
* _pParent
);
67 // OWizardPage overridables
68 virtual void initializePage();
69 virtual sal_Bool
commitPage( ::svt::WizardTypes::CommitPageReason _eReason
);
71 // TabDialog overridables
72 virtual void ActivatePage();
73 virtual void DeactivatePage();
75 // OImportPage overridables
76 virtual bool canAdvance() const;
79 DECL_LINK( OnNameModified
, Edit
* );
80 DECL_LINK( OnRegister
, CheckBox
* );
82 sal_Bool
isValidName() const;
87 //.........................................................................
89 //.........................................................................
91 #endif // EXTENSIONS_ABP_ABPFINALPAGE_HXX