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 : #include <sfx2/checkin.hxx>
11 : #include <vcl/msgbox.hxx>
12 :
13 0 : SfxCheckinDialog::SfxCheckinDialog( Window* pParent ) :
14 0 : ModalDialog( pParent, "CheckinDialog", "sfx/ui/checkin.ui" )
15 : {
16 0 : get( m_pCommentED, "VersionComment" );
17 0 : get( m_pMajorCB, "MajorVersion" );
18 :
19 0 : get( m_pOKBtn, "ok" );
20 0 : m_pOKBtn->SetClickHdl( LINK( this, SfxCheckinDialog, OKHdl ) );
21 0 : }
22 :
23 0 : OUString SfxCheckinDialog::GetComment( )
24 : {
25 0 : return m_pCommentED->GetText( );
26 : }
27 :
28 0 : bool SfxCheckinDialog::IsMajor( )
29 : {
30 0 : return m_pMajorCB->IsChecked( );
31 : }
32 :
33 0 : IMPL_LINK_NOARG( SfxCheckinDialog, OKHdl )
34 : {
35 0 : EndDialog( RET_OK );
36 0 : return 0;
37 : }
38 :
39 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|