LibreOffice Module extensions (master) 1
abpfinalpage.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
20#pragma once
21
22#include "abspage.hxx"
23#include "abptypes.hxx"
24
26#include <vcl/vclptr.hxx>
27
28namespace abp
29{
30
31 class FinalPage final : public AddressBookSourcePage
32 {
33 std::unique_ptr<SvtURLBox> m_xLocation;
34 std::unique_ptr<weld::Button> m_xBrowse;
35 std::unique_ptr<weld::CheckButton> m_xRegisterName;
36 std::unique_ptr<weld::CheckButton> m_xEmbed;
37 std::unique_ptr<weld::Label> m_xNameLabel;
38 std::unique_ptr<weld::Label> m_xLocationLabel;
39 std::unique_ptr<weld::Entry> m_xName;
40 std::unique_ptr<weld::Label> m_xDuplicateNameError;
41
42 std::unique_ptr<svx::DatabaseLocationInputController>
44
46
47 public:
48 explicit FinalPage(weld::Container* pPage, OAddressBookSourcePilot* pController);
49 virtual ~FinalPage() override;
50
51 private:
52 // OWizardPage overridables
53 virtual void initializePage() override;
54 virtual bool commitPage( ::vcl::WizardTypes::CommitPageReason _eReason ) override;
55
56 // BuilderPage overridables
57 virtual void Activate() override;
58 virtual void Deactivate() override;
59
60 // OImportPage overridables
61 virtual bool canAdvance() const override;
62
63 DECL_LINK(OnEntryNameModified, weld::Entry&, void);
64 DECL_LINK(OnComboNameModified, weld::ComboBox&, void);
65 DECL_LINK(OnRegister, weld::Toggleable&, void);
66 DECL_LINK(OnEmbed, weld::Toggleable&, void);
67
68 bool isValidName() const;
69 void implCheckName();
70 void setFields();
71 };
72
73} // namespace abp
74/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
the base class for all tab pages in the address book source wizard
Definition: abspage.hxx:36
bool isValidName() const
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
DECL_LINK(OnRegister, weld::Toggleable &, void)
std::unique_ptr< weld::Label > m_xLocationLabel
virtual ~FinalPage() override
virtual bool canAdvance() const override
virtual bool commitPage(::vcl::WizardTypes::CommitPageReason _eReason) override
virtual void Deactivate() override
DECL_LINK(OnEntryNameModified, weld::Entry &, void)
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< weld::Label > m_xNameLabel
std::unique_ptr< svx::DatabaseLocationInputController > m_xLocationController
DECL_LINK(OnEmbed, weld::Toggleable &, void)
DECL_LINK(OnComboNameModified, weld::ComboBox &, void)
std::set< OUString > StringBag
Definition: abptypes.hxx:34