LCOV - code coverage report
Current view: top level - libreoffice/accessibility/source/extended - accessiblebrowseboxcell.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 16 0.0 %
Date: 2012-12-27 Functions: 0 6 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 "accessibility/extended/accessiblebrowseboxcell.hxx"
      21             : #include <svtools/accessibletableprovider.hxx>
      22             : 
      23             : // .................................................................................
      24             : namespace accessibility
      25             : {
      26             : // .................................................................................
      27             : 
      28             :     using namespace ::com::sun::star::uno;
      29             :     using namespace ::com::sun::star::awt;
      30             :     using namespace ::com::sun::star::accessibility;
      31             :     using namespace ::svt;
      32             : 
      33             :     // =============================================================================
      34             :     // = AccessibleBrowseBoxCell
      35             :     // =============================================================================
      36           0 :     AccessibleBrowseBoxCell::AccessibleBrowseBoxCell(
      37             :             const Reference< XAccessible >& _rxParent, IAccessibleTableProvider& _rBrowseBox,
      38             :             const Reference< XWindow >& _xFocusWindow,
      39             :             sal_Int32 _nRowPos, sal_uInt16 _nColPos, AccessibleBrowseBoxObjType _eType )
      40             :         :AccessibleBrowseBoxBase( _rxParent, _rBrowseBox, _xFocusWindow, _eType )
      41             :         ,m_nRowPos( _nRowPos )
      42           0 :         ,m_nColPos( _nColPos )
      43             :     {
      44             :         // set accessible name here, because for that we need the position of the cell
      45             :         // and so the base class isn't capable of doing this
      46           0 :         sal_Int32 nPos = _nRowPos * _rBrowseBox.GetColumnCount() + _nColPos;
      47           0 :         OUString aAccName = _rBrowseBox.GetAccessibleObjectName( BBTYPE_TABLECELL, nPos );
      48           0 :         implSetName( aAccName );
      49           0 :     }
      50             : 
      51             :     // -----------------------------------------------------------------------------
      52           0 :     AccessibleBrowseBoxCell::~AccessibleBrowseBoxCell()
      53             :     {
      54           0 :     }
      55             : 
      56             :     // -----------------------------------------------------------------------------
      57           0 :     void SAL_CALL AccessibleBrowseBoxCell::grabFocus() throw ( RuntimeException )
      58             :     {
      59           0 :         SolarMethodGuard aGuard( *this );
      60           0 :         mpBrowseBox->GoToCell( m_nRowPos, m_nColPos );
      61           0 :     }
      62             :     // -----------------------------------------------------------------------------
      63           0 :     ::Rectangle AccessibleBrowseBoxCell::implGetBoundingBox()
      64             :     {
      65           0 :         return mpBrowseBox->GetFieldRectPixelAbs( m_nRowPos, m_nColPos, sal_False, sal_False );
      66             :     }
      67             : 
      68             :     // -----------------------------------------------------------------------------
      69           0 :     ::Rectangle AccessibleBrowseBoxCell::implGetBoundingBoxOnScreen()
      70             :     {
      71           0 :         return mpBrowseBox->GetFieldRectPixelAbs( m_nRowPos, m_nColPos, sal_False );
      72             :     }
      73             : 
      74             : // .................................................................................
      75             : }   // namespace accessibility
      76             : // .................................................................................
      77             : 
      78             : 
      79             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10