Update ooo320-m1
[ooovba.git] / extensions / source / abpilot / abpfinalpage.hxx
blob8c9b86bab47f2ee076d890f5cd3517d8662423b2
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: abpfinalpage.hxx,v $
10 * $Revision: 1.7 $
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 //.........................................................................
42 namespace abp
44 //.........................................................................
46 //=====================================================================
47 //= FinalPage
48 //=====================================================================
49 class FinalPage : public AddressBookSourcePage
51 protected:
52 FixedText m_aExplanation;
53 FixedText m_aLocationLabel;
54 ::svt::OFileURLControl m_aLocation;
55 PushButton m_aBrowse;
56 CheckBox m_aRegisterName;
57 FixedText m_aNameLabel;
58 Edit m_aName;
59 FixedText m_aDuplicateNameError;
61 ::svx::DatabaseLocationInputController
62 m_aLocationController;
64 StringBag m_aInvalidDataSourceNames;
66 public:
67 FinalPage( OAddessBookSourcePilot* _pParent );
69 protected:
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;
81 private:
82 DECL_LINK( OnNameModified, Edit* );
83 DECL_LINK( OnRegister, CheckBox* );
85 sal_Bool isValidName() const;
86 void implCheckName();
87 void setFields();
90 //.........................................................................
91 } // namespace abp
92 //.........................................................................
94 #endif // EXTENSIONS_ABP_ABPFINALPAGE_HXX