1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: abpfinalpage.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef EXTENSIONS_ABP_ABPFINALPAGE_HXX
32 #define EXTENSIONS_ABP_ABPFINALPAGE_HXX
34 #include "abspage.hxx"
35 #include "abptypes.hxx"
37 #include <svtools/urlcontrol.hxx>
38 #include <svx/databaselocationinput.hxx>
39 #include <vcl/edit.hxx>
41 //.........................................................................
44 //.........................................................................
46 //=====================================================================
48 //=====================================================================
49 class FinalPage
: public AddressBookSourcePage
52 FixedText m_aExplanation
;
53 FixedText m_aLocationLabel
;
54 ::svt::OFileURLControl m_aLocation
;
56 CheckBox m_aRegisterName
;
57 FixedText m_aNameLabel
;
59 FixedText m_aDuplicateNameError
;
61 ::svx::DatabaseLocationInputController
62 m_aLocationController
;
64 StringBag m_aInvalidDataSourceNames
;
67 FinalPage( OAddessBookSourcePilot
* _pParent
);
70 // OWizardPage overridables
71 virtual void initializePage();
72 virtual sal_Bool
commitPage( CommitPageReason _eReason
);
74 // TabDialog overridables
75 virtual void ActivatePage();
76 virtual void DeactivatePage();
78 // OImportPage overridables
79 virtual bool canAdvance() const;
82 DECL_LINK( OnNameModified
, Edit
* );
83 DECL_LINK( OnRegister
, CheckBox
* );
85 sal_Bool
isValidName() const;
90 //.........................................................................
92 //.........................................................................
94 #endif // EXTENSIONS_ABP_ABPFINALPAGE_HXX