LCOV - code coverage report
Current view: top level - sc/source/ui/view - tabvwsh.cxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 51 59 86.4 %
Date: 2015-06-13 12:38:46 Functions: 12 15 80.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             : #include "scitems.hxx"
      21             : #include <svx/imapdlg.hxx>
      22             : #include <svx/srchdlg.hxx>
      23             : #include <svl/srchitem.hxx>
      24             : #include <sfx2/templdlg.hxx>
      25             : #include <sfx2/objface.hxx>
      26             : #include <sfx2/viewfrm.hxx>
      27             : #include <sfx2/bindings.hxx>
      28             : #include <sfx2/app.hxx>
      29             : #include <sfx2/infobar.hxx>
      30             : #include <sfx2/sidebar/SidebarChildWindow.hxx>
      31             : 
      32             : #include "cellvalue.hxx"
      33             : #include "docoptio.hxx"
      34             : 
      35             : #include "tabvwsh.hxx"
      36             : #include "docsh.hxx"
      37             : #include "reffact.hxx"
      38             : #include "scresid.hxx"
      39             : #include "dwfunctr.hxx"
      40             : #include "sc.hrc"
      41             : #include "spelldialog.hxx"
      42             : #include <searchresults.hxx>
      43             : 
      44             : #include <sfx2/request.hxx>
      45             :     // needed for -fsanitize=function visibility of typeinfo for functions of
      46             :     // type void(SfxShell*,SfxRequest&) defined in scslots.hxx
      47             : #define ScTabViewShell
      48             : #include "scslots.hxx"
      49             : 
      50      179881 : TYPEINIT2(ScTabViewShell,SfxViewShell,SfxListener);
      51             : 
      52       42006 : SFX_IMPL_INTERFACE(ScTabViewShell, SfxViewShell)
      53             : 
      54          52 : void ScTabViewShell::InitInterface_Impl()
      55             : {
      56             :     GetStaticInterface()->RegisterObjectBar(SFX_OBJECTBAR_TOOLS | SFX_VISIBILITY_STANDARD | SFX_VISIBILITY_FULLSCREEN | SFX_VISIBILITY_SERVER,
      57          52 :                                             RID_OBJECTBAR_TOOLS);
      58             : 
      59          52 :     GetStaticInterface()->RegisterChildWindow(FID_INPUTLINE_STATUS);
      60          52 :     GetStaticInterface()->RegisterChildWindow(SfxInfoBarContainerChild::GetChildWindowId());
      61             : 
      62          52 :     GetStaticInterface()->RegisterChildWindow(SID_NAVIGATOR, true);
      63             : 
      64          52 :     GetStaticInterface()->RegisterChildWindow(::sfx2::sidebar::SidebarChildWindow::GetChildWindowId());
      65          52 :     GetStaticInterface()->RegisterChildWindow(ScNameDlgWrapper::GetChildWindowId());
      66          52 :     GetStaticInterface()->RegisterChildWindow(ScNameDefDlgWrapper::GetChildWindowId());
      67          52 :     GetStaticInterface()->RegisterChildWindow(ScSolverDlgWrapper::GetChildWindowId());
      68          52 :     GetStaticInterface()->RegisterChildWindow(ScOptSolverDlgWrapper::GetChildWindowId());
      69          52 :     GetStaticInterface()->RegisterChildWindow(ScXMLSourceDlgWrapper::GetChildWindowId());
      70          52 :     GetStaticInterface()->RegisterChildWindow(ScPivotLayoutWrapper::GetChildWindowId());
      71          52 :     GetStaticInterface()->RegisterChildWindow(ScTabOpDlgWrapper::GetChildWindowId());
      72          52 :     GetStaticInterface()->RegisterChildWindow(ScFilterDlgWrapper::GetChildWindowId());
      73          52 :     GetStaticInterface()->RegisterChildWindow(ScSpecialFilterDlgWrapper::GetChildWindowId());
      74          52 :     GetStaticInterface()->RegisterChildWindow(ScDbNameDlgWrapper::GetChildWindowId());
      75          52 :     GetStaticInterface()->RegisterChildWindow(ScConsolidateDlgWrapper::GetChildWindowId());
      76          52 :     GetStaticInterface()->RegisterChildWindow(ScPrintAreasDlgWrapper::GetChildWindowId());
      77          52 :     GetStaticInterface()->RegisterChildWindow(ScColRowNameRangesDlgWrapper::GetChildWindowId());
      78          52 :     GetStaticInterface()->RegisterChildWindow(ScFormulaDlgWrapper::GetChildWindowId());
      79          52 :     GetStaticInterface()->RegisterChildWindow(SvxIMapDlgChildWindow::GetChildWindowId());
      80          52 :     GetStaticInterface()->RegisterChildWindow(ScFunctionChildWindow::GetChildWindowId());
      81          52 :     GetStaticInterface()->RegisterChildWindow(ScFormulaDlgWrapper::GetChildWindowId());
      82          52 :     GetStaticInterface()->RegisterChildWindow(ScAcceptChgDlgWrapper::GetChildWindowId());
      83          52 :     GetStaticInterface()->RegisterChildWindow(ScHighlightChgDlgWrapper::GetChildWindowId());
      84          52 :     GetStaticInterface()->RegisterChildWindow(ScSimpleRefDlgWrapper::GetChildWindowId());
      85          52 :     GetStaticInterface()->RegisterChildWindow(SvxSearchDialogWrapper::GetChildWindowId());
      86          52 :     GetStaticInterface()->RegisterChildWindow(SID_HYPERLINK_DIALOG);
      87          52 :     GetStaticInterface()->RegisterChildWindow(ScSpellDialogChildWindow::GetChildWindowId());
      88          52 :     GetStaticInterface()->RegisterChildWindow(ScValidityRefChildWin::GetChildWindowId());
      89          52 :     GetStaticInterface()->RegisterChildWindow(sc::SearchResultsDlgWrapper::GetChildWindowId());
      90             : 
      91          52 :     GetStaticInterface()->RegisterChildWindow(ScRandomNumberGeneratorDialogWrapper::GetChildWindowId());
      92          52 :     GetStaticInterface()->RegisterChildWindow(ScSamplingDialogWrapper::GetChildWindowId());
      93          52 :     GetStaticInterface()->RegisterChildWindow(ScDescriptiveStatisticsDialogWrapper::GetChildWindowId());
      94          52 :     GetStaticInterface()->RegisterChildWindow(ScAnalysisOfVarianceDialogWrapper::GetChildWindowId());
      95          52 :     GetStaticInterface()->RegisterChildWindow(ScCorrelationDialogWrapper::GetChildWindowId());
      96          52 :     GetStaticInterface()->RegisterChildWindow(ScCovarianceDialogWrapper::GetChildWindowId());
      97          52 :     GetStaticInterface()->RegisterChildWindow(ScExponentialSmoothingDialogWrapper::GetChildWindowId());
      98          52 :     GetStaticInterface()->RegisterChildWindow(ScMovingAverageDialogWrapper::GetChildWindowId());
      99          52 :     GetStaticInterface()->RegisterChildWindow(ScTTestDialogWrapper::GetChildWindowId());
     100          52 :     GetStaticInterface()->RegisterChildWindow(ScFTestDialogWrapper::GetChildWindowId());
     101          52 :     GetStaticInterface()->RegisterChildWindow(ScZTestDialogWrapper::GetChildWindowId());
     102          52 :     GetStaticInterface()->RegisterChildWindow(ScChiSquareTestDialogWrapper::GetChildWindowId());
     103          52 :     GetStaticInterface()->RegisterChildWindow(ScCondFormatDlgWrapper::GetChildWindowId());
     104          52 : }
     105             : 
     106         452 : SFX_IMPL_NAMED_VIEWFACTORY( ScTabViewShell, "Default" )
     107             : {
     108          52 :     SFX_VIEW_REGISTRATION(ScDocShell);
     109          52 : }
     110             : 
     111           0 : OUString ScTabViewShell::GetFormula(ScAddress& rAddress)
     112             : {
     113           0 :     OUString sFormula;
     114           0 :     ScDocument* pDoc = GetViewData().GetDocument();
     115           0 :     ScRefCellValue aCell;
     116           0 :     aCell.assign(*pDoc, rAddress);
     117           0 :     if (!aCell.isEmpty() && aCell.meType == CELLTYPE_FORMULA)
     118             :     {
     119           0 :         sFormula = aCell.mpString->getString();
     120             :     }
     121           0 :     return sFormula;
     122         156 : }
     123             : 
     124             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11