LCOV - code coverage report
Current view: top level - sc/source/ui/view - tabvwsh.cxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 48 56 85.7 %
Date: 2014-11-03 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             : #define ScTabViewShell
      45             : #include "scslots.hxx"
      46             : 
      47      304810 : TYPEINIT2(ScTabViewShell,SfxViewShell,SfxListener);
      48             : 
      49       45678 : SFX_IMPL_INTERFACE(ScTabViewShell, SfxViewShell, ScResId(SCSTR_TABVIEWSHELL))
      50             : 
      51          76 : void ScTabViewShell::InitInterface_Impl()
      52             : {
      53             :     GetStaticInterface()->RegisterObjectBar(SFX_OBJECTBAR_TOOLS | SFX_VISIBILITY_STANDARD | SFX_VISIBILITY_FULLSCREEN | SFX_VISIBILITY_SERVER,
      54          76 :                                             ScResId(RID_OBJECTBAR_TOOLS));
      55             : 
      56          76 :     GetStaticInterface()->RegisterChildWindow(FID_INPUTLINE_STATUS);
      57          76 :     GetStaticInterface()->RegisterChildWindow(SfxInfoBarContainerChild::GetChildWindowId());
      58             : 
      59          76 :     GetStaticInterface()->RegisterChildWindow(SID_NAVIGATOR, true);
      60             : 
      61          76 :     GetStaticInterface()->RegisterChildWindow(::sfx2::sidebar::SidebarChildWindow::GetChildWindowId());
      62          76 :     GetStaticInterface()->RegisterChildWindow(ScNameDlgWrapper::GetChildWindowId());
      63          76 :     GetStaticInterface()->RegisterChildWindow(ScNameDefDlgWrapper::GetChildWindowId());
      64          76 :     GetStaticInterface()->RegisterChildWindow(ScSolverDlgWrapper::GetChildWindowId());
      65          76 :     GetStaticInterface()->RegisterChildWindow(ScOptSolverDlgWrapper::GetChildWindowId());
      66          76 :     GetStaticInterface()->RegisterChildWindow(ScXMLSourceDlgWrapper::GetChildWindowId());
      67          76 :     GetStaticInterface()->RegisterChildWindow(ScPivotLayoutWrapper::GetChildWindowId());
      68          76 :     GetStaticInterface()->RegisterChildWindow(ScTabOpDlgWrapper::GetChildWindowId());
      69          76 :     GetStaticInterface()->RegisterChildWindow(ScFilterDlgWrapper::GetChildWindowId());
      70          76 :     GetStaticInterface()->RegisterChildWindow(ScSpecialFilterDlgWrapper::GetChildWindowId());
      71          76 :     GetStaticInterface()->RegisterChildWindow(ScDbNameDlgWrapper::GetChildWindowId());
      72          76 :     GetStaticInterface()->RegisterChildWindow(ScConsolidateDlgWrapper::GetChildWindowId());
      73          76 :     GetStaticInterface()->RegisterChildWindow(ScPrintAreasDlgWrapper::GetChildWindowId());
      74          76 :     GetStaticInterface()->RegisterChildWindow(ScColRowNameRangesDlgWrapper::GetChildWindowId());
      75          76 :     GetStaticInterface()->RegisterChildWindow(ScFormulaDlgWrapper::GetChildWindowId());
      76          76 :     GetStaticInterface()->RegisterChildWindow(SvxIMapDlgChildWindow::GetChildWindowId());
      77          76 :     GetStaticInterface()->RegisterChildWindow(ScFunctionChildWindow::GetChildWindowId());
      78          76 :     GetStaticInterface()->RegisterChildWindow(ScFormulaDlgWrapper::GetChildWindowId());
      79          76 :     GetStaticInterface()->RegisterChildWindow(ScAcceptChgDlgWrapper::GetChildWindowId());
      80          76 :     GetStaticInterface()->RegisterChildWindow(ScHighlightChgDlgWrapper::GetChildWindowId());
      81          76 :     GetStaticInterface()->RegisterChildWindow(ScSimpleRefDlgWrapper::GetChildWindowId());
      82          76 :     GetStaticInterface()->RegisterChildWindow(SvxSearchDialogWrapper::GetChildWindowId());
      83          76 :     GetStaticInterface()->RegisterChildWindow(SID_HYPERLINK_DIALOG);
      84          76 :     GetStaticInterface()->RegisterChildWindow(ScSpellDialogChildWindow::GetChildWindowId());
      85          76 :     GetStaticInterface()->RegisterChildWindow(ScValidityRefChildWin::GetChildWindowId());
      86          76 :     GetStaticInterface()->RegisterChildWindow(sc::SearchResultsDlgWrapper::GetChildWindowId());
      87             : 
      88          76 :     GetStaticInterface()->RegisterChildWindow(ScRandomNumberGeneratorDialogWrapper::GetChildWindowId());
      89          76 :     GetStaticInterface()->RegisterChildWindow(ScSamplingDialogWrapper::GetChildWindowId());
      90          76 :     GetStaticInterface()->RegisterChildWindow(ScDescriptiveStatisticsDialogWrapper::GetChildWindowId());
      91          76 :     GetStaticInterface()->RegisterChildWindow(ScAnalysisOfVarianceDialogWrapper::GetChildWindowId());
      92          76 :     GetStaticInterface()->RegisterChildWindow(ScCorrelationDialogWrapper::GetChildWindowId());
      93          76 :     GetStaticInterface()->RegisterChildWindow(ScCovarianceDialogWrapper::GetChildWindowId());
      94          76 :     GetStaticInterface()->RegisterChildWindow(ScExponentialSmoothingDialogWrapper::GetChildWindowId());
      95          76 :     GetStaticInterface()->RegisterChildWindow(ScMovingAverageDialogWrapper::GetChildWindowId());
      96          76 :     GetStaticInterface()->RegisterChildWindow(ScTTestDialogWrapper::GetChildWindowId());
      97          76 :     GetStaticInterface()->RegisterChildWindow(ScFTestDialogWrapper::GetChildWindowId());
      98          76 : }
      99             : 
     100         698 : SFX_IMPL_NAMED_VIEWFACTORY( ScTabViewShell, "Default" )
     101             : {
     102          76 :     SFX_VIEW_REGISTRATION(ScDocShell);
     103          76 : }
     104             : 
     105           0 : OUString ScTabViewShell::GetFormula(ScAddress& rAddress)
     106             : {
     107           0 :     OUString sFormula;
     108           0 :     ScDocument* pDoc = GetViewData().GetDocument();
     109           0 :     ScRefCellValue aCell;
     110           0 :     aCell.assign(*pDoc, rAddress);
     111           0 :     if (!aCell.isEmpty() && aCell.meType == CELLTYPE_FORMULA)
     112             :     {
     113           0 :         sFormula = aCell.mpString->getString();
     114             :     }
     115           0 :     return sFormula;
     116         228 : }
     117             : 
     118             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10