LCOV - code coverage report
Current view: top level - svtools/source/contnr - viewdataentry.cxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 43 0.0 %
Date: 2014-04-14 Functions: 0 17 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 "svtools/viewdataentry.hxx"
      21             : 
      22             : #include "tools/debug.hxx"
      23             : 
      24             : 
      25           0 : SvViewDataEntry::SvViewDataEntry() :
      26             :     nVisPos(0),
      27             :     mbSelected(false),
      28             :     mbHighlighted(false),
      29             :     mbExpanded(false),
      30             :     mbFocused(false),
      31             :     mbCursored(false),
      32           0 :     mbSelectable(true)
      33             : {
      34           0 : }
      35             : 
      36           0 : SvViewDataEntry::SvViewDataEntry( const SvViewDataEntry& rData ) :
      37             :     nVisPos(rData.nVisPos),
      38             :     mbSelected(false),
      39             :     mbHighlighted(false),
      40             :     mbExpanded(rData.mbExpanded),
      41             :     mbFocused(false),
      42             :     mbCursored(rData.mbCursored),
      43           0 :     mbSelectable(rData.mbSelectable)
      44             : {
      45           0 : }
      46             : 
      47           0 : SvViewDataEntry::~SvViewDataEntry()
      48             : {
      49             : #ifdef DBG_UTIL
      50             :     nVisPos = 0x12345678;
      51             : #endif
      52           0 : }
      53             : 
      54           0 : bool SvViewDataEntry::IsSelected() const
      55             : {
      56           0 :     return mbSelected;
      57             : }
      58             : 
      59           0 : bool SvViewDataEntry::IsHighlighted() const
      60             : {
      61           0 :     return mbHighlighted;
      62             : }
      63             : 
      64           0 : bool SvViewDataEntry::IsExpanded() const
      65             : {
      66           0 :     return mbExpanded;
      67             : }
      68             : 
      69           0 : bool SvViewDataEntry::HasFocus() const
      70             : {
      71           0 :     return mbFocused;
      72             : }
      73             : 
      74           0 : bool SvViewDataEntry::IsCursored() const
      75             : {
      76           0 :     return mbCursored;
      77             : }
      78             : 
      79           0 : bool SvViewDataEntry::IsSelectable() const
      80             : {
      81           0 :     return mbSelectable;
      82             : }
      83             : 
      84           0 : void SvViewDataEntry::SetFocus( bool bFocus )
      85             : {
      86           0 :     mbFocused = bFocus;
      87           0 : }
      88             : 
      89           0 : void SvViewDataEntry::SetSelected( bool bSelected )
      90             : {
      91           0 :     mbSelected = bSelected;
      92           0 :     mbHighlighted = bSelected;
      93           0 : }
      94             : 
      95           0 : void SvViewDataEntry::SetHighlighted( bool bHighlighted )
      96             : {
      97           0 :     mbHighlighted = bHighlighted;
      98           0 : }
      99             : 
     100           0 : void SvViewDataEntry::SetExpanded( bool bExpanded )
     101             : {
     102           0 :     mbExpanded = bExpanded;
     103           0 : }
     104             : 
     105           0 : void SvViewDataEntry::SetSelectable( bool bSelectable )
     106             : {
     107           0 :     mbSelectable = bSelectable;
     108           0 : }
     109             : 
     110           0 : void SvViewDataEntry::Init(size_t nSize)
     111             : {
     112           0 :     maItems.resize(nSize);
     113           0 : }
     114             : 
     115           0 : const SvViewDataItem* SvViewDataEntry::GetItem(size_t nPos) const
     116             : {
     117           0 :     return &maItems[nPos];
     118             : }
     119             : 
     120           0 : SvViewDataItem* SvViewDataEntry::GetItem(size_t nPos)
     121             : {
     122           0 :     return &maItems[nPos];
     123             : }
     124             : 
     125             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10