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 <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()
28 void SfxCheckinDialog::dispose()
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
)
52 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */