LCOV - code coverage report
Current view: top level - chart2/source/controller/dialogs - tp_ErrorBars.cxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 1 25 4.0 %
Date: 2015-06-13 12:38:46 Functions: 2 10 20.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 "tp_ErrorBars.hxx"
      21             : #include "ResId.hxx"
      22             : #include "ResourceIds.hrc"
      23             : #include "TabPageNotifiable.hxx"
      24             : #include <vcl/settings.hxx>
      25             : 
      26             : using namespace ::com::sun::star;
      27             : 
      28             : namespace chart
      29             : {
      30             : 
      31           0 : ErrorBarsTabPage::ErrorBarsTabPage( vcl::Window* pParent, const SfxItemSet& rInAttrs ) :
      32             :         SfxTabPage( pParent
      33             :         ,"tp_ErrorBars"
      34             :         ,"modules/schart/ui/tp_ErrorBars.ui"
      35             :         , &rInAttrs ),
      36             :         m_aErrorBarResources(
      37             :             this,
      38             :             // the parent is the tab control, of which the parent is the dialog
      39             :             pParent->GetParentDialog(),
      40           0 :             rInAttrs, /* bNoneAvailable = */ false )
      41             : {
      42           0 : }
      43             : 
      44           0 : VclPtr<SfxTabPage> ErrorBarsTabPage::Create(
      45             :     vcl::Window* pParent, const SfxItemSet* rOutAttrs )
      46             : {
      47           0 :     return VclPtr<ErrorBarsTabPage>::Create( pParent, *rOutAttrs );
      48             : }
      49             : 
      50           0 : bool ErrorBarsTabPage::FillItemSet( SfxItemSet* rOutAttrs )
      51             : {
      52           0 :     return m_aErrorBarResources.FillItemSet( *rOutAttrs );
      53             : }
      54             : 
      55           0 : void ErrorBarsTabPage::Reset( const SfxItemSet* rInAttrs )
      56             : {
      57           0 :     m_aErrorBarResources.Reset( *rInAttrs );
      58           0 : }
      59             : 
      60           0 : void ErrorBarsTabPage::DataChanged( const DataChangedEvent& rDCEvt )
      61             : {
      62           0 :     SfxTabPage::DataChanged( rDCEvt );
      63             : 
      64           0 :     if ( (rDCEvt.GetType() == DataChangedEventType::SETTINGS) && (rDCEvt.GetFlags() & AllSettingsFlags::STYLE) )
      65           0 :         m_aErrorBarResources.FillValueSets();
      66           0 : }
      67             : 
      68           0 : void ErrorBarsTabPage::SetAxisMinorStepWidthForErrorBarDecimals( double fMinorStepWidth )
      69             : {
      70           0 :     m_aErrorBarResources.SetAxisMinorStepWidthForErrorBarDecimals( fMinorStepWidth );
      71           0 : }
      72             : 
      73           0 : void ErrorBarsTabPage::SetErrorBarType( ErrorBarResources::tErrorBarType eNewType )
      74             : {
      75           0 :     m_aErrorBarResources.SetErrorBarType( eNewType );
      76           0 : }
      77             : 
      78           0 : void ErrorBarsTabPage::SetChartDocumentForRangeChoosing(
      79             :     const uno::Reference< chart2::XChartDocument > & xChartDocument )
      80             : {
      81           0 :     m_aErrorBarResources.SetChartDocumentForRangeChoosing( xChartDocument );
      82           0 : }
      83             : 
      84          57 : } //namespace chart
      85             : 
      86             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11