bump product version to 5.0.4.1
[LibreOffice.git] / sfx2 / source / dialog / checkin.cxx
blobe628476df652a805f771d68629be8fb20b9af514
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 <sfx2/checkin.hxx>
11 #include <vcl/msgbox.hxx>
13 SfxCheckinDialog::SfxCheckinDialog( vcl::Window* pParent ) :
14 ModalDialog( pParent, "CheckinDialog", "sfx/ui/checkin.ui" )
16 get( m_pCommentED, "VersionComment" );
17 get( m_pMajorCB, "MajorVersion" );
19 get( m_pOKBtn, "ok" );
20 m_pOKBtn->SetClickHdl( LINK( this, SfxCheckinDialog, OKHdl ) );
23 SfxCheckinDialog::~SfxCheckinDialog()
25 disposeOnce();
28 void SfxCheckinDialog::dispose()
30 m_pCommentED.clear();
31 m_pMajorCB.clear();
32 m_pOKBtn.clear();
33 ModalDialog::dispose();
36 OUString SfxCheckinDialog::GetComment( )
38 return m_pCommentED->GetText( );
41 bool SfxCheckinDialog::IsMajor( )
43 return m_pMajorCB->IsChecked( );
46 IMPL_LINK_NOARG( SfxCheckinDialog, OKHdl )
48 EndDialog( RET_OK );
49 return 0;
52 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */