LCOV - code coverage report
Current view: top level - sc/source/ui/miscdlgs - shtabdlg.cxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 30 0.0 %
Date: 2014-04-14 Functions: 0 10 0.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             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : 
      20             : 
      21             : #undef SC_DLLIMPLEMENTATION
      22             : 
      23             : 
      24             : 
      25             : #include <vcl/msgbox.hxx>
      26             : 
      27             : #include "shtabdlg.hxx"
      28             : #include "scresid.hxx"
      29             : #include "miscdlgs.hrc"
      30             : 
      31             : 
      32           0 : ScShowTabDlg::ScShowTabDlg(Window* pParent)
      33           0 :     : ModalDialog(pParent, "ShowSheetDialog", "modules/scalc/ui/showsheetdialog.ui")
      34             : {
      35           0 :     get(m_pFrame, "frame");
      36           0 :     get(m_pLb, "treeview");
      37             : 
      38           0 :     m_pLb->Clear();
      39           0 :     m_pLb->EnableMultiSelection(true);
      40           0 :     m_pLb->set_height_request(m_pLb->GetTextHeight() * 10);
      41           0 :     m_pLb->SetDoubleClickHdl( LINK( this, ScShowTabDlg, DblClkHdl ) );
      42           0 : }
      43             : 
      44           0 : void ScShowTabDlg::SetDescription(
      45             :         const OUString& rTitle, const OUString& rFixedText,
      46             :         const OString& rDlgHelpId, const OString& sLbHelpId )
      47             : {
      48           0 :     SetText(rTitle);
      49           0 :     m_pFrame->set_label(rFixedText);
      50           0 :     SetHelpId( rDlgHelpId );
      51           0 :     m_pLb->SetHelpId( sLbHelpId );
      52           0 : }
      53             : 
      54           0 : void ScShowTabDlg::Insert( const OUString& rString, bool bSelected )
      55             : {
      56           0 :     m_pLb->InsertEntry( rString );
      57           0 :     if( bSelected )
      58           0 :         m_pLb->SelectEntryPos( m_pLb->GetEntryCount() - 1 );
      59           0 : }
      60             : 
      61           0 : sal_Int32 ScShowTabDlg::GetSelectEntryCount() const
      62             : {
      63           0 :     return m_pLb->GetSelectEntryCount();
      64             : }
      65             : 
      66           0 : OUString ScShowTabDlg::GetSelectEntry(sal_Int32 nPos) const
      67             : {
      68           0 :     return m_pLb->GetSelectEntry(nPos);
      69             : }
      70             : 
      71           0 : sal_Int32 ScShowTabDlg::GetSelectEntryPos(sal_Int32 nPos) const
      72             : {
      73           0 :     return m_pLb->GetSelectEntryPos(nPos);
      74             : }
      75             : 
      76           0 : IMPL_LINK_NOARG_INLINE_START(ScShowTabDlg, DblClkHdl)
      77             : {
      78           0 :     EndDialog( RET_OK );
      79           0 :     return 0;
      80             : }
      81           0 : IMPL_LINK_NOARG_INLINE_END(ScShowTabDlg, DblClkHdl)
      82             : 
      83             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10