LCOV - code coverage report
Current view: top level - libreoffice/chart2/source/controller/main - ChartController_EditData.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 13 0.0 %
Date: 2012-12-27 Functions: 0 1 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 "ChartController.hxx"
      21             : #include "macros.hxx"
      22             : 
      23             : #include "dlg_DataEditor.hxx"
      24             : #include "DataSourceHelper.hxx"
      25             : #include "DiagramHelper.hxx"
      26             : #include "ControllerLockGuard.hxx"
      27             : #include "UndoGuard.hxx"
      28             : #include "ResId.hxx"
      29             : #include "Strings.hrc"
      30             : 
      31             : // for RET_OK
      32             : #include <vcl/msgbox.hxx>
      33             : #include <vcl/svapp.hxx>
      34             : #include <osl/mutex.hxx>
      35             : #include <com/sun/star/chart2/XChartDocument.hpp>
      36             : 
      37             : using namespace ::com::sun::star;
      38             : 
      39             : using ::com::sun::star::uno::Reference;
      40             : using ::com::sun::star::uno::Sequence;
      41             : 
      42             : namespace chart
      43             : {
      44             : 
      45           0 : void ChartController::executeDispatch_EditData()
      46             : {
      47           0 :     Reference< chart2::XChartDocument > xChartDoc( getModel(), uno::UNO_QUERY );
      48           0 :     if( xChartDoc.is())
      49             :     {
      50           0 :         Window* pParent( NULL );
      51             : 
      52           0 :         Reference< ::com::sun::star::chart2::data::XDataProvider > xDataProvider( xChartDoc->getDataProvider());
      53             : 
      54             :         {
      55           0 :             SolarMutexGuard aSolarGuard;
      56             :             // using assignment for broken gcc 3.3
      57             :             UndoLiveUpdateGuardWithData aUndoGuard = UndoLiveUpdateGuardWithData(
      58             :                 String( SchResId( STR_ACTION_EDIT_CHART_DATA )),
      59           0 :                 m_xUndoManager );
      60           0 :             DataEditor aDataEditorDialog( pParent, xChartDoc, m_xCC );
      61             :             // the dialog has no OK/Cancel
      62           0 :             aDataEditorDialog.Execute();
      63           0 :             aUndoGuard.commit();
      64           0 :         }
      65           0 :     }
      66           0 : }
      67             : 
      68             : } //  namespace chart
      69             : 
      70             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10