bump product version to 5.0.4.1
[LibreOffice.git] / uui / source / authfallbackdlg.cxx
blobe801c746890c80d0b266baa2cfb85b5967916f7c
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 #include "authfallbackdlg.hxx"
12 #include <vcl/msgbox.hxx>
13 #include <iostream>
15 using namespace boost;
17 AuthFallbackDlg::AuthFallbackDlg(Window* pParent, const OUString& instructions,
18 const OUString& url)
19 : ModalDialog(pParent, "AuthFallbackDlg", "uui/ui/authfallback.ui")
21 get( m_pTVInstructions, "instructions" );
22 get( m_pEDUrl, "url" );
23 get( m_pEDCode, "code" );
24 get( m_pBTOk, "ok" );
25 get( m_pBTCancel, "cancel" );
27 m_pBTOk->SetClickHdl( LINK( this, AuthFallbackDlg, OKHdl) );
28 m_pBTCancel->SetClickHdl( LINK( this, AuthFallbackDlg, CancelHdl) );
29 m_pBTOk->Enable( true );
31 m_pTVInstructions->SetText( instructions );
32 m_pEDUrl->SetText( url );
35 AuthFallbackDlg::~AuthFallbackDlg()
37 disposeOnce();
40 void AuthFallbackDlg::dispose()
42 m_pTVInstructions.clear();
43 m_pEDUrl.clear();
44 m_pEDCode.clear();
45 m_pBTOk.clear();
46 m_pBTCancel.clear();
47 ModalDialog::dispose();
50 IMPL_LINK ( AuthFallbackDlg, OKHdl, Button *, )
52 EndDialog( RET_OK );
53 return 1;
56 IMPL_LINK ( AuthFallbackDlg, CancelHdl, Button *, )
58 EndDialog( RET_CANCEL );
59 return 0;