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

Generated by: LCOV version 1.10