bump product version to 6.3.0.0.beta1
[LibreOffice.git] / extensions / source / abpilot / typeselectionpage.hxx
blob0146e7c85ec545cc5783195b3809e55ddb383a20
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_EXTENSIONS_SOURCE_ABPILOT_TYPESELECTIONPAGE_HXX
21 #define INCLUDED_EXTENSIONS_SOURCE_ABPILOT_TYPESELECTIONPAGE_HXX
23 #include "abspage.hxx"
24 #include "addresssettings.hxx"
25 #include <vcl/edit.hxx>
26 #include <vcl/vclptr.hxx>
29 namespace abp
32 class TypeSelectionPage final : public AddressBookSourcePage
34 VclPtr<RadioButton> m_pEvolution;
35 VclPtr<RadioButton> m_pEvolutionGroupwise;
36 VclPtr<RadioButton> m_pEvolutionLdap;
37 VclPtr<RadioButton> m_pMORK;
38 VclPtr<RadioButton> m_pThunderbird;
39 VclPtr<RadioButton> m_pKab;
40 VclPtr<RadioButton> m_pMacab;
41 VclPtr<RadioButton> m_pOther;
43 struct ButtonItem {
44 VclPtr<RadioButton> m_pItem;
45 AddressSourceType m_eType;
46 bool m_bVisible;
48 ButtonItem( RadioButton *pItem,
49 AddressSourceType eType,
50 bool bVisible ) :
51 m_pItem( pItem ),
52 m_eType( eType ),
53 m_bVisible( bVisible )
57 std::vector< ButtonItem > m_aAllTypes;
59 public:
60 explicit TypeSelectionPage( OAddressBookSourcePilot* _pParent );
61 virtual ~TypeSelectionPage() override;
62 virtual void dispose() override;
64 // retrieves the currently selected type
65 AddressSourceType getSelectedType() const;
67 private:
68 // OWizardPage overridables
69 virtual void initializePage() override;
70 virtual bool commitPage( ::svt::WizardTypes::CommitPageReason _eReason ) override;
72 // TabDialog overridables
73 virtual void ActivatePage() override;
74 virtual void DeactivatePage() override;
76 // OImportPage overridables
77 virtual bool canAdvance() const override;
79 DECL_LINK( OnTypeSelected, Button*, void );
81 void selectType( AddressSourceType _eType );
85 } // namespace abp
88 #endif // INCLUDED_EXTENSIONS_SOURCE_ABPILOT_TYPESELECTIONPAGE_HXX
90 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */