25#include <com/sun/star/sdbc/XDriver.hpp>
26#include <com/sun/star/sdbc/DriverManager.hpp>
36 , m_xEvolution(m_xBuilder->weld_radio_button(
"evolution"))
37 , m_xEvolutionGroupwise(m_xBuilder->weld_radio_button(
"groupwise"))
38 , m_xEvolutionLdap(m_xBuilder->weld_radio_button(
"evoldap"))
39 , m_xThunderbird(m_xBuilder->weld_radio_button(
"thunderbird"))
40 , m_xKab(m_xBuilder->weld_radio_button(
"kde"))
41 , m_xMacab(m_xBuilder->weld_radio_button(
"macosx"))
42 , m_xOther(m_xBuilder->weld_radio_button(
"other"))
65 bool bHaveEvolution =
false;
66 bool bHaveKab =
false;
67 bool bHaveMacab =
false;
69 Reference< XDriverManager2 > xManager = DriverManager::create( pDialog->
getORB() );
74 Reference< XDriver > xDriver( xManager->getDriverByURL(
"sdbc:address:evolution:local") );
76 bHaveEvolution =
true;
85 Reference< XDriver > xDriver( xManager->getDriverByURL(
"sdbc:address:kab") );
96 Reference< XDriver > xDriver( xManager->getDriverByURL(
"sdbc:address:macab") );
104 bool const bHaveEvolution =
false;
105 bool const bHaveKab =
false;
106 bool const bHaveMacab =
false;
121 if (!elem.m_bVisible)
122 elem.m_pItem->hide();
125 elem.m_pItem->connect_toggled( aTypeSelectionHandler );
126 elem.m_pItem->show();
135 elem.m_bVisible =
false;
145 if( elem.m_pItem->get_active() && elem.m_bVisible )
147 elem.m_pItem->grab_focus();
165 elem.m_pItem->set_active( _eType == elem.m_eType );
173 if ( elem.m_pItem->get_active() && elem.m_bVisible )
196 VclMessageType::Warning, VclButtonsType::Ok,
216 if (!rButton.get_active())
218 getDialog()->typeSelectionChanged( getSelectedType() );
219 updateDialogTravelUI();
static weld::MessageDialog * CreateMessageDialog(weld::Widget *pParent, VclMessageType eMessageType, VclButtonsType eButtonType, const OUString &rPrimaryMessage, const ILibreOfficeKitNotifier *pNotifier=nullptr)
std::unique_ptr< weld::Container > m_xContainer
the base class for all tab pages in the address book source wizard
virtual void Activate() override
virtual void Deactivate() override
OAddressBookSourcePilot * getDialog()
AddressSettings & getSettings()
const css::uno::Reference< css::uno::XComponentContext > & getORB() const
get the service factory which was used to create the dialog
virtual void Activate() override
virtual ~TypeSelectionPage() override
std::unique_ptr< weld::RadioButton > m_xEvolution
std::unique_ptr< weld::RadioButton > m_xThunderbird
std::vector< ButtonItem > m_aAllTypes
void selectType(AddressSourceType _eType)
AddressSourceType getSelectedType() const
virtual void Deactivate() override
std::unique_ptr< weld::RadioButton > m_xOther
TypeSelectionPage(weld::Container *pPage, OAddressBookSourcePilot *pController)
std::unique_ptr< weld::RadioButton > m_xEvolutionGroupwise
virtual void initializePage() override
virtual bool canAdvance() const override
std::unique_ptr< weld::RadioButton > m_xMacab
std::unique_ptr< weld::RadioButton > m_xKab
virtual bool commitPage(::vcl::WizardTypes::CommitPageReason _eReason) override
std::unique_ptr< weld::RadioButton > m_xEvolutionLdap
virtual bool canAdvance() const override
virtual bool commitPage(WizardTypes::CommitPageReason _eReason) override
virtual void initializePage() override
void enableButtons(WizardButtonFlags _nWizardButtonFlags, bool _bEnable)
#define LINK(Instance, Class, Member)
@ AST_EVOLUTION_GROUPWISE
IMPL_LINK(TypeSelectionPage, OnTypeSelected, weld::Toggleable &, rButton, void)
OUString ModuleRes(TranslateId pId)