Version 6.4.0.3, tag libreoffice-6.4.0.3
[LibreOffice.git] / uui / source / authfallbackdlg.hxx
blob206cd87274a7785e1e62b2bf93a3d906bec563ee
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/.
8 */
10 #ifndef INCLUDED_SVTOOLS_AUTHFALLBACKDLG_HXX
11 #define INCLUDED_SVTOOLS_AUTHFALLBACKDLG_HXX
13 #include <vcl/weld.hxx>
15 class AuthFallbackDlg : public weld::GenericDialogController
17 private:
18 bool m_bGoogleMode;
20 std::unique_ptr<weld::Label> m_xTVInstructions;
21 std::unique_ptr<weld::Entry> m_xEDUrl;
22 std::unique_ptr<weld::Entry> m_xEDCode;
23 std::unique_ptr<weld::Entry> m_xEDGoogleCode;
24 std::unique_ptr<weld::Button> m_xBTOk;
25 std::unique_ptr<weld::Button> m_xBTCancel;
26 std::unique_ptr<weld::Widget> m_xGoogleBox;
27 std::unique_ptr<weld::Widget> m_xOneDriveBox;
29 public:
30 AuthFallbackDlg(weld::Window* pParent, const OUString& instructions,
31 const OUString& url);
32 virtual ~AuthFallbackDlg() override;
34 OUString GetCode() const;
36 private:
37 DECL_LINK(OKHdl, weld::Button&, void);
38 DECL_LINK(CancelHdl, weld::Button&, void);
41 #endif // INCLUDED_SVTOOLS_AUTHFALLBACKDLG_HXX