LCOV - code coverage report
Current view: top level - sfx2/source/dialog - checkin.cxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 1 24 4.2 %
Date: 2015-06-13 12:38:46 Functions: 2 10 20.0 %
Legend: Lines: hit not hit

          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( vcl::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 : SfxCheckinDialog::~SfxCheckinDialog()
      24             : {
      25           0 :     disposeOnce();
      26           0 : }
      27             : 
      28           0 : void SfxCheckinDialog::dispose()
      29             : {
      30           0 :     m_pCommentED.clear();
      31           0 :     m_pMajorCB.clear();
      32           0 :     m_pOKBtn.clear();
      33           0 :     ModalDialog::dispose();
      34           0 : }
      35             : 
      36           0 : OUString SfxCheckinDialog::GetComment( )
      37             : {
      38           0 :     return m_pCommentED->GetText( );
      39             : }
      40             : 
      41           0 : bool SfxCheckinDialog::IsMajor( )
      42             : {
      43           0 :     return m_pMajorCB->IsChecked( );
      44             : }
      45             : 
      46           0 : IMPL_LINK_NOARG( SfxCheckinDialog, OKHdl )
      47             : {
      48           0 :     EndDialog( RET_OK );
      49           0 :     return 0;
      50         648 : }
      51             : 
      52             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11