Line data Source code
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 :
10 : #ifndef INCLUDED_SVTOOLS_AUTHFALLBACKDLG_HXX
11 : #define INCLUDED_SVTOOLS_AUTHFALLBACKDLG_HXX
12 :
13 : #include <vcl/button.hxx>
14 : #include <vcl/dialog.hxx>
15 : #include <vcl/edit.hxx>
16 : #include <vcl/vclmedit.hxx>
17 :
18 :
19 : class AuthFallbackDlg : public ModalDialog
20 : {
21 : private:
22 : VclPtr<VclMultiLineEdit> m_pTVInstructions;
23 : VclPtr<Edit> m_pEDUrl;
24 : VclPtr<Edit> m_pEDCode;
25 : VclPtr<PushButton> m_pBTOk;
26 : VclPtr<PushButton> m_pBTCancel;
27 :
28 : public:
29 : AuthFallbackDlg(Window* pParent, const OUString& instructions,
30 : const OUString& url);
31 : virtual ~AuthFallbackDlg();
32 : virtual void dispose() SAL_OVERRIDE;
33 :
34 0 : OUString GetCode() const { return m_pEDCode->GetText(); }
35 :
36 : private:
37 :
38 : DECL_LINK ( OKHdl, Button * );
39 : DECL_LINK ( CancelHdl, Button * );
40 : };
41 :
42 : #endif // INCLUDED_SVTOOLS_AUTHFALLBACKDLG_HXX
|