merged tag ooo/OOO330_m14
[LibreOffice.git] / extensions / source / abpilot / abpfinalpage.hxx
blob27d6522d7df69a3172528b35e0e0edbead19a20d
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 //.........................................................................
39 namespace abp
41 //.........................................................................
43 //=====================================================================
44 //= FinalPage
45 //=====================================================================
46 class FinalPage : public AddressBookSourcePage
48 protected:
49 FixedText m_aExplanation;
50 FixedText m_aLocationLabel;
51 ::svt::OFileURLControl m_aLocation;
52 PushButton m_aBrowse;
53 CheckBox m_aRegisterName;
54 FixedText m_aNameLabel;
55 Edit m_aName;
56 FixedText m_aDuplicateNameError;
58 ::svx::DatabaseLocationInputController
59 m_aLocationController;
61 StringBag m_aInvalidDataSourceNames;
63 public:
64 FinalPage( OAddessBookSourcePilot* _pParent );
66 protected:
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;
78 private:
79 DECL_LINK( OnNameModified, Edit* );
80 DECL_LINK( OnRegister, CheckBox* );
82 sal_Bool isValidName() const;
83 void implCheckName();
84 void setFields();
87 //.........................................................................
88 } // namespace abp
89 //.........................................................................
91 #endif // EXTENSIONS_ABP_ABPFINALPAGE_HXX