LCOV - code coverage report
Current view: top level - chart2/source/controller/main - DragMethod_Base.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 17 0.0 %
Date: 2012-08-25 Functions: 0 7 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 20 0.0 %

           Branch data     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 "DragMethod_Base.hxx"
      22                 :            : 
      23                 :            : #include "Strings.hrc"
      24                 :            : #include "ResId.hxx"
      25                 :            : #include "macros.hxx"
      26                 :            : #include "ObjectNameProvider.hxx"
      27                 :            : #include "ObjectIdentifier.hxx"
      28                 :            : #include <rtl/math.hxx>
      29                 :            : //header for class SdrPageView
      30                 :            : #include <svx/svdpagv.hxx>
      31                 :            : #include <svx/ActionDescriptionProvider.hxx>
      32                 :            : #include <com/sun/star/beans/XPropertySet.hpp>
      33                 :            : 
      34                 :            : //.............................................................................
      35                 :            : namespace chart
      36                 :            : {
      37                 :            : //.............................................................................
      38                 :            : 
      39                 :            : using namespace ::com::sun::star;
      40                 :            : using ::com::sun::star::uno::Reference;
      41                 :            : using ::com::sun::star::uno::WeakReference;
      42                 :            : 
      43                 :          0 : DragMethod_Base::DragMethod_Base( DrawViewWrapper& rDrawViewWrapper
      44                 :            :                                              , const rtl::OUString& rObjectCID
      45                 :            :                                              , const Reference< frame::XModel >& xChartModel
      46                 :            :                                              , ActionDescriptionProvider::ActionType eActionType )
      47                 :            :     : SdrDragMethod( rDrawViewWrapper )
      48                 :            :     , m_rDrawViewWrapper(rDrawViewWrapper)
      49                 :            :     , m_aObjectCID(rObjectCID)
      50                 :            :     , m_eActionType( eActionType )
      51         [ #  # ]:          0 :     , m_xChartModel( WeakReference< frame::XModel >(xChartModel) )
      52                 :            : {
      53                 :          0 :     setMoveOnly(true);
      54                 :          0 : }
      55         [ #  # ]:          0 : DragMethod_Base::~DragMethod_Base()
      56                 :            : {
      57         [ #  # ]:          0 : }
      58                 :            : 
      59                 :          0 : Reference< frame::XModel > DragMethod_Base::getChartModel() const
      60                 :            : {
      61                 :          0 :     return Reference< frame::XModel >( m_xChartModel );
      62                 :            : }
      63                 :            : 
      64                 :          0 : rtl::OUString DragMethod_Base::getUndoDescription() const
      65                 :            : {
      66                 :            :     return ActionDescriptionProvider::createDescription(
      67                 :            :                 m_eActionType,
      68         [ #  # ]:          0 :                 ObjectNameProvider::getName( ObjectIdentifier::getObjectType( m_aObjectCID )));
      69                 :            : }
      70                 :          0 : void DragMethod_Base::TakeSdrDragComment(String& rStr) const
      71                 :            : {
      72 [ #  # ][ #  # ]:          0 :     rStr = String( getUndoDescription() );
                 [ #  # ]
      73                 :          0 : }
      74                 :          0 : Pointer DragMethod_Base::GetSdrDragPointer() const
      75                 :            : {
      76 [ #  # ][ #  # ]:          0 :     if( IsDraggingPoints() || IsDraggingGluePoints() )
                 [ #  # ]
      77                 :          0 :         return Pointer(POINTER_MOVEPOINT);
      78                 :            :     else
      79                 :          0 :         return Pointer(POINTER_MOVE);
      80                 :            : }
      81                 :            : //.............................................................................
      82                 :            : } //namespace chart
      83                 :            : //.............................................................................
      84                 :            : 
      85                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10