LCOV - code coverage report
Current view: top level - sc/source/ui/miscdlgs - shtabdlg.cxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 0 30 0.0 %
Date: 2014-11-03 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             : #undef SC_DLLIMPLEMENTATION
      21             : 
      22             : #include <vcl/msgbox.hxx>
      23             : 
      24             : #include "shtabdlg.hxx"
      25             : #include "scresid.hxx"
      26             : #include "miscdlgs.hrc"
      27             : 
      28           0 : ScShowTabDlg::ScShowTabDlg(vcl::Window* pParent)
      29           0 :     : ModalDialog(pParent, "ShowSheetDialog", "modules/scalc/ui/showsheetdialog.ui")
      30             : {
      31           0 :     get(m_pFrame, "frame");
      32           0 :     get(m_pLb, "treeview");
      33             : 
      34           0 :     m_pLb->Clear();
      35           0 :     m_pLb->EnableMultiSelection(true);
      36           0 :     m_pLb->set_height_request(m_pLb->GetTextHeight() * 10);
      37           0 :     m_pLb->SetDoubleClickHdl( LINK( this, ScShowTabDlg, DblClkHdl ) );
      38           0 : }
      39             : 
      40           0 : void ScShowTabDlg::SetDescription(
      41             :         const OUString& rTitle, const OUString& rFixedText,
      42             :         const OString& rDlgHelpId, const OString& sLbHelpId )
      43             : {
      44           0 :     SetText(rTitle);
      45           0 :     m_pFrame->set_label(rFixedText);
      46           0 :     SetHelpId( rDlgHelpId );
      47           0 :     m_pLb->SetHelpId( sLbHelpId );
      48           0 : }
      49             : 
      50           0 : void ScShowTabDlg::Insert( const OUString& rString, bool bSelected )
      51             : {
      52           0 :     m_pLb->InsertEntry( rString );
      53           0 :     if( bSelected )
      54           0 :         m_pLb->SelectEntryPos( m_pLb->GetEntryCount() - 1 );
      55           0 : }
      56             : 
      57           0 : sal_Int32 ScShowTabDlg::GetSelectEntryCount() const
      58             : {
      59           0 :     return m_pLb->GetSelectEntryCount();
      60             : }
      61             : 
      62           0 : OUString ScShowTabDlg::GetSelectEntry(sal_Int32 nPos) const
      63             : {
      64           0 :     return m_pLb->GetSelectEntry(nPos);
      65             : }
      66             : 
      67           0 : sal_Int32 ScShowTabDlg::GetSelectEntryPos(sal_Int32 nPos) const
      68             : {
      69           0 :     return m_pLb->GetSelectEntryPos(nPos);
      70             : }
      71             : 
      72           0 : IMPL_LINK_NOARG_INLINE_START(ScShowTabDlg, DblClkHdl)
      73             : {
      74           0 :     EndDialog( RET_OK );
      75           0 :     return 0;
      76             : }
      77           0 : IMPL_LINK_NOARG_INLINE_END(ScShowTabDlg, DblClkHdl)
      78             : 
      79             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10