LCOV - code coverage report
Current view: top level - sc/source/ui/miscdlgs - shtabdlg.cxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 38 0.0 %
Date: 2015-06-13 12:38:46 Functions: 0 13 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 : ScShowTabDlg::~ScShowTabDlg()
      41             : {
      42           0 :     disposeOnce();
      43           0 : }
      44             : 
      45           0 : void ScShowTabDlg::dispose()
      46             : {
      47           0 :     m_pFrame.clear();
      48           0 :     m_pLb.clear();
      49           0 :     ModalDialog::dispose();
      50           0 : }
      51             : 
      52           0 : void ScShowTabDlg::SetDescription(
      53             :         const OUString& rTitle, const OUString& rFixedText,
      54             :         const OString& rDlgHelpId, const OString& sLbHelpId )
      55             : {
      56           0 :     SetText(rTitle);
      57           0 :     m_pFrame->set_label(rFixedText);
      58           0 :     SetHelpId( rDlgHelpId );
      59           0 :     m_pLb->SetHelpId( sLbHelpId );
      60           0 : }
      61             : 
      62           0 : void ScShowTabDlg::Insert( const OUString& rString, bool bSelected )
      63             : {
      64           0 :     m_pLb->InsertEntry( rString );
      65           0 :     if( bSelected )
      66           0 :         m_pLb->SelectEntryPos( m_pLb->GetEntryCount() - 1 );
      67           0 : }
      68             : 
      69           0 : sal_Int32 ScShowTabDlg::GetSelectEntryCount() const
      70             : {
      71           0 :     return m_pLb->GetSelectEntryCount();
      72             : }
      73             : 
      74           0 : OUString ScShowTabDlg::GetSelectEntry(sal_Int32 nPos) const
      75             : {
      76           0 :     return m_pLb->GetSelectEntry(nPos);
      77             : }
      78             : 
      79           0 : sal_Int32 ScShowTabDlg::GetSelectEntryPos(sal_Int32 nPos) const
      80             : {
      81           0 :     return m_pLb->GetSelectEntryPos(nPos);
      82             : }
      83             : 
      84           0 : IMPL_LINK_NOARG(ScShowTabDlg, DblClkHdl)
      85             : {
      86           0 :     EndDialog( RET_OK );
      87           0 :     return 0;
      88           0 : }
      89             : 
      90             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11