LCOV - code coverage report
Current view: top level - sfx2/source/dialog - checkin.cxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 1 15 6.7 %
Date: 2014-11-03 Functions: 2 7 28.6 %
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 : 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         951 : }
      38             : 
      39             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10