1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
10 #include "authfallbackdlg.hxx"
12 #include <vcl/msgbox.hxx>
15 using namespace boost
;
17 AuthFallbackDlg::AuthFallbackDlg(Window
* pParent
, const OUString
& instructions
,
19 : ModalDialog(pParent
, "AuthFallbackDlg", "uui/ui/authfallback.ui")
21 get( m_pTVInstructions
, "instructions" );
22 get( m_pEDUrl
, "url" );
23 get( m_pEDCode
, "code" );
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()
40 void AuthFallbackDlg::dispose()
42 m_pTVInstructions
.clear();
47 ModalDialog::dispose();
50 IMPL_LINK ( AuthFallbackDlg
, OKHdl
, Button
*, )
56 IMPL_LINK ( AuthFallbackDlg
, CancelHdl
, Button
*, )
58 EndDialog( RET_CANCEL
);