LCOV - code coverage report
Current view: top level - sw/source/core/crsr - BlockCursor.cxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 1 26 3.8 %
Date: 2015-06-13 12:38:46 Functions: 2 9 22.2 %
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 <viscrs.hxx>
      21             : #include "BlockCursor.hxx"
      22             : 
      23           0 : SwBlockCursor::~SwBlockCursor()
      24             : {
      25           0 :     delete pStartPt;
      26           0 :     delete pEndPt;
      27           0 : }
      28             : 
      29           0 : SwShellCrsr& SwBlockCursor::getShellCrsr()
      30             : {
      31           0 :     return aCursor;
      32             : }
      33             : 
      34           0 : void SwBlockCursor::setStartPoint( const Point &rPt )
      35             : {
      36           0 :     if( pStartPt )
      37           0 :         *pStartPt = rPt;
      38             :     else
      39           0 :         pStartPt = new Point( rPt );
      40           0 : }
      41             : 
      42           0 : void SwBlockCursor::setEndPoint( const Point &rPt )
      43             : {
      44           0 :     if( pEndPt )
      45           0 :         *pEndPt = rPt;
      46             :     else
      47           0 :         pEndPt = new Point( rPt );
      48           0 : }
      49             : 
      50           0 : const Point* SwBlockCursor::getStartPoint() const
      51             : {
      52           0 :     return pStartPt;
      53             : }
      54             : 
      55           0 : const Point* SwBlockCursor::getEndPoint() const
      56             : {
      57           0 :     return pEndPt;
      58             : }
      59             : 
      60           0 : void SwBlockCursor::clearPoints()
      61             : {
      62           0 :     delete pStartPt;
      63           0 :     delete pEndPt;
      64           0 :     pStartPt = 0;
      65           0 :     pEndPt = 0;
      66         177 : }
      67             : 
      68             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11