LCOV - code coverage report
Current view: top level - svx/source/sdr/contact - viewcontactofsdredgeobj.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 11 0.0 %
Date: 2012-08-25 Functions: 0 4 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 22 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 <svx/sdr/contact/viewcontactofsdredgeobj.hxx>
      22                 :            : #include <svx/svdoedge.hxx>
      23                 :            : #include <svx/sdr/primitive2d/sdrattributecreator.hxx>
      24                 :            : #include <svx/sdr/primitive2d/sdrconnectorprimitive2d.hxx>
      25                 :            : 
      26                 :            : //////////////////////////////////////////////////////////////////////////////
      27                 :            : 
      28                 :            : namespace sdr
      29                 :            : {
      30                 :            :     namespace contact
      31                 :            :     {
      32                 :          0 :         ViewContactOfSdrEdgeObj::ViewContactOfSdrEdgeObj(SdrEdgeObj& rEdgeObj)
      33                 :          0 :         :   ViewContactOfTextObj(rEdgeObj)
      34                 :            :         {
      35                 :          0 :         }
      36                 :            : 
      37                 :          0 :         ViewContactOfSdrEdgeObj::~ViewContactOfSdrEdgeObj()
      38                 :            :         {
      39         [ #  # ]:          0 :         }
      40                 :            : 
      41                 :          0 :         drawinglayer::primitive2d::Primitive2DSequence ViewContactOfSdrEdgeObj::createViewIndependentPrimitive2DSequence() const
      42                 :            :         {
      43         [ #  # ]:          0 :             const basegfx::B2DPolygon& rEdgeTrack = GetEdgeObj().getEdgeTrack();
      44                 :            : 
      45                 :            :             // what to do when no EdgeTrack is provided (HitTest and selectability) ?
      46                 :            :             OSL_ENSURE(0 != rEdgeTrack.count(), "Connectors with no geometry are not allowed (!)");
      47                 :            : 
      48                 :            :             // ckeck attributes
      49         [ #  # ]:          0 :             const SfxItemSet& rItemSet = GetEdgeObj().GetMergedItemSet();
      50                 :            :             const drawinglayer::attribute::SdrLineShadowTextAttribute aAttribute(
      51                 :            :                 drawinglayer::primitive2d::createNewSdrLineShadowTextAttribute(
      52                 :            :                     rItemSet,
      53 [ #  # ][ #  # ]:          0 :                     GetEdgeObj().getText(0)));
      54                 :            : 
      55                 :            :             // create primitive. Always create primitives to allow the decomposition of
      56                 :            :             // SdrConnectorPrimitive2D to create needed invisible elements for HitTest
      57                 :            :             // and/or BoundRect
      58                 :            :             const drawinglayer::primitive2d::Primitive2DReference xReference(
      59                 :            :                 new drawinglayer::primitive2d::SdrConnectorPrimitive2D(
      60                 :            :                     aAttribute,
      61 [ #  # ][ #  # ]:          0 :                     rEdgeTrack));
                 [ #  # ]
      62                 :            : 
      63 [ #  # ][ #  # ]:          0 :             return drawinglayer::primitive2d::Primitive2DSequence(&xReference, 1);
                 [ #  # ]
      64                 :            :         }
      65                 :            :     } // end of namespace contact
      66                 :            : } // end of namespace sdr
      67                 :            : 
      68                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10