23#include <osl/diagnose.h>
35 using namespace ::
svt;
36 using namespace ::
utl;
41 OSL_ENSURE(pFilter,
"Filter: StarOffice XML (Base) could not be found!");
48 , m_xLocation(new
SvtURLBox(m_xBuilder->weld_combo_box(
"location")))
49 , m_xBrowse(m_xBuilder->weld_button(
"browse"))
50 , m_xRegisterName(m_xBuilder->weld_check_button(
"available"))
51 , m_xEmbed(m_xBuilder->weld_check_button(
"embed"))
52 , m_xNameLabel(m_xBuilder->weld_label(
"nameft"))
53 , m_xLocationLabel(m_xBuilder->weld_label(
"locationft"))
54 , m_xName(m_xBuilder->weld_entry(
"name"))
55 , m_xDuplicateNameError(m_xBuilder->weld_label(
"warning"))
78 OUString sCurrentName(
m_xName->get_text());
80 if (sCurrentName.isEmpty())
96 if(
aURL.GetProtocol() == INetProtocol::NotValid )
104 OUString sExt = pFilter->GetDefaultExtension();
110 OSL_ENSURE(
aURL.GetProtocol() != INetProtocol::NotValid ,
"No valid file name!");
137 if ( ( ::vcl::WizardTypes::eTravelBackward != _eReason )
188 bool bEmptyName =
m_xName->get_text().isEmpty();
189 bool bEmptyLocation =
m_xLocation->get_active_text().isEmpty();
210 bool bEnable = m_xRegisterName->get_active();
211 m_xNameLabel->set_sensitive(bEnable);
212 m_xName->set_sensitive(bEnable);
218 bool bEmbed = m_xEmbed->get_active();
219 m_xLocationLabel->set_sensitive(!bEmbed);
220 m_xLocation->set_sensitive(!bEmbed);
221 m_xBrowse->set_sensitive(!bEmbed);
static std::shared_ptr< const SfxFilter > GetFilterByName(const OUString &rName)
const OUString & GetWorkPath() const
the base class for all tab pages in the address book source wizard
const css::uno::Reference< css::uno::XComponentContext > & getORB() const
virtual void Activate() override
virtual void Deactivate() override
OAddressBookSourcePilot * getDialog()
AddressSettings & getSettings()
std::unique_ptr< weld::Button > m_xBrowse
std::unique_ptr< weld::CheckButton > m_xRegisterName
std::unique_ptr< weld::CheckButton > m_xEmbed
std::unique_ptr< SvtURLBox > m_xLocation
virtual ~FinalPage() override
virtual bool canAdvance() const override
virtual bool commitPage(::vcl::WizardTypes::CommitPageReason _eReason) override
virtual void Deactivate() override
std::unique_ptr< weld::Label > m_xDuplicateNameError
virtual void initializePage() override
StringBag m_aInvalidDataSourceNames
std::unique_ptr< weld::Entry > m_xName
FinalPage(weld::Container *pPage, OAddressBookSourcePilot *pController)
virtual void Activate() override
std::unique_ptr< svx::DatabaseLocationInputController > m_xLocationController
const css::uno::Reference< css::uno::XComponentContext > & getORB() const
get the service factory which was used to create the dialog
a non-UNO wrapper for the data source context
void getDataSourceNames(StringBag &_rNames) const
retrieves the names of all data sources
virtual bool commitPage(WizardTypes::CommitPageReason _eReason) override
virtual void initializePage() override
void defaultButton(WizardButtonFlags _nWizardButtonFlags)
void enableButtons(WizardButtonFlags _nWizardButtonFlags, bool _bEnable)
virtual Dialog * getDialog() override
#define LINK(Instance, Class, Member)
static std::shared_ptr< const SfxFilter > lcl_getBaseFilter()
IMPL_LINK_NOARG(FinalPage, OnEntryNameModified, weld::Entry &, void)
std::basic_string_view< charT, traits > getToken(std::basic_string_view< charT, traits > sv, charT delimiter, std::size_t &position)
OUString sRegisteredDataSourceName