LCOV - code coverage report
Current view: top level - libreoffice/chart2/source/controller/dialogs - tp_ErrorBars.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 1 29 3.4 %
Date: 2012-12-27 Functions: 2 12 16.7 %
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             : 
      21             : #include "tp_ErrorBars.hxx"
      22             : #include "ResId.hxx"
      23             : #include "TabPages.hrc"
      24             : #include "TabPageNotifiable.hxx"
      25             : 
      26             : using namespace ::com::sun::star;
      27             : 
      28             : //.............................................................................
      29             : namespace chart
      30             : {
      31             : //.............................................................................
      32             : 
      33           0 : ErrorBarsTabPage::ErrorBarsTabPage( Window* pParent, const SfxItemSet& rInAttrs ) :
      34             :         SfxTabPage( pParent, SchResId( TP_YERRORBAR ), rInAttrs ),
      35             :         m_aErrorBarResources(
      36             :             this,
      37             :             // the parent is the tab control, of which the parent is the dialog
      38           0 :             dynamic_cast< Dialog * >( pParent->GetParent() ),
      39           0 :             rInAttrs, /* bNoneAvailable = */ false )
      40             : {
      41           0 :     FreeResource();
      42           0 : }
      43             : 
      44           0 : ErrorBarsTabPage::~ErrorBarsTabPage()
      45             : {
      46           0 : }
      47             : 
      48           0 : SfxTabPage* ErrorBarsTabPage::Create(
      49             :     Window* pParent, const SfxItemSet& rOutAttrs )
      50             : {
      51           0 :     return new ErrorBarsTabPage( pParent, rOutAttrs );
      52             : }
      53             : 
      54           0 : sal_Bool ErrorBarsTabPage::FillItemSet( SfxItemSet& rOutAttrs )
      55             : {
      56           0 :     return m_aErrorBarResources.FillItemSet( rOutAttrs );
      57             : }
      58             : 
      59           0 : void ErrorBarsTabPage::Reset( const SfxItemSet& rInAttrs )
      60             : {
      61           0 :     m_aErrorBarResources.Reset( rInAttrs );
      62           0 : }
      63             : 
      64           0 : void ErrorBarsTabPage::DataChanged( const DataChangedEvent& rDCEvt )
      65             : {
      66           0 :     SfxTabPage::DataChanged( rDCEvt );
      67             : 
      68           0 :     if ( (rDCEvt.GetType() == DATACHANGED_SETTINGS) && (rDCEvt.GetFlags() & SETTINGS_STYLE) )
      69           0 :         m_aErrorBarResources.FillValueSets();
      70           0 : }
      71             : 
      72           0 : void ErrorBarsTabPage::SetAxisMinorStepWidthForErrorBarDecimals( double fMinorStepWidth )
      73             : {
      74           0 :     m_aErrorBarResources.SetAxisMinorStepWidthForErrorBarDecimals( fMinorStepWidth );
      75           0 : }
      76             : 
      77           0 : void ErrorBarsTabPage::SetErrorBarType( ErrorBarResources::tErrorBarType eNewType )
      78             : {
      79           0 :     m_aErrorBarResources.SetErrorBarType( eNewType );
      80           0 : }
      81             : 
      82           0 : void ErrorBarsTabPage::SetChartDocumentForRangeChoosing(
      83             :     const uno::Reference< chart2::XChartDocument > & xChartDocument )
      84             : {
      85           0 :     m_aErrorBarResources.SetChartDocumentForRangeChoosing( xChartDocument );
      86           0 : }
      87             : 
      88             : //.............................................................................
      89           3 : } //namespace chart
      90             : //.............................................................................
      91             : 
      92             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10