LCOV - code coverage report
Current view: top level - accessibility/source/standard - vclxaccessiblefixedtext.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 11 19 57.9 %
Date: 2012-08-25 Functions: 5 7 71.4 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 4 12 33.3 %

           Branch data     Line data    Source code
       1                 :            : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 :            : /*************************************************************************
       3                 :            :  *
       4                 :            :  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       5                 :            :  *
       6                 :            :  * Copyright 2000, 2010 Oracle and/or its affiliates.
       7                 :            :  *
       8                 :            :  * OpenOffice.org - a multi-platform office productivity suite
       9                 :            :  *
      10                 :            :  * This file is part of OpenOffice.org.
      11                 :            :  *
      12                 :            :  * OpenOffice.org is free software: you can redistribute it and/or modify
      13                 :            :  * it under the terms of the GNU Lesser General Public License version 3
      14                 :            :  * only, as published by the Free Software Foundation.
      15                 :            :  *
      16                 :            :  * OpenOffice.org is distributed in the hope that it will be useful,
      17                 :            :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      18                 :            :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      19                 :            :  * GNU Lesser General Public License version 3 for more details
      20                 :            :  * (a copy is included in the LICENSE file that accompanied this code).
      21                 :            :  *
      22                 :            :  * You should have received a copy of the GNU Lesser General Public License
      23                 :            :  * version 3 along with OpenOffice.org.  If not, see
      24                 :            :  * <http://www.openoffice.org/license.html>
      25                 :            :  * for a copy of the LGPLv3 License.
      26                 :            :  *
      27                 :            :  ************************************************************************/
      28                 :            : 
      29                 :            : #include <accessibility/standard/vclxaccessiblefixedtext.hxx>
      30                 :            : 
      31                 :            : #include <unotools/accessiblestatesethelper.hxx>
      32                 :            : #include <com/sun/star/accessibility/AccessibleStateType.hpp>
      33                 :            : #include <vcl/fixed.hxx>
      34                 :            : 
      35                 :            : using namespace ::com::sun::star;
      36                 :            : using namespace ::com::sun::star::uno;
      37                 :            : using namespace ::com::sun::star::lang;
      38                 :            : using namespace ::com::sun::star::beans;
      39                 :            : using namespace ::com::sun::star::accessibility;
      40                 :            : 
      41                 :            : 
      42                 :            : // -----------------------------------------------------------------------------
      43                 :            : // VCLXAccessibleFixedText
      44                 :            : // -----------------------------------------------------------------------------
      45                 :            : 
      46                 :          2 : VCLXAccessibleFixedText::VCLXAccessibleFixedText( VCLXWindow* pVCLWindow )
      47                 :          2 :     :VCLXAccessibleTextComponent( pVCLWindow )
      48                 :            : {
      49                 :          2 : }
      50                 :            : 
      51                 :            : // -----------------------------------------------------------------------------
      52                 :            : 
      53                 :          2 : VCLXAccessibleFixedText::~VCLXAccessibleFixedText()
      54                 :            : {
      55         [ -  + ]:          4 : }
      56                 :            : 
      57                 :            : // -----------------------------------------------------------------------------
      58                 :            : 
      59                 :          8 : void VCLXAccessibleFixedText::FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet )
      60                 :            : {
      61                 :          8 :     VCLXAccessibleTextComponent::FillAccessibleStateSet( rStateSet );
      62                 :            : 
      63 [ -  + ][ -  + ]:          8 :     if ( GetWindow() && GetWindow()->GetStyle() & WB_WORDBREAK )
                 [ +  - ]
      64                 :          0 :         rStateSet.AddState( AccessibleStateType::MULTI_LINE );
      65                 :          8 : }
      66                 :            : 
      67                 :            : // -----------------------------------------------------------------------------
      68                 :            : 
      69                 :          0 : void VCLXAccessibleFixedText::implGetLineBoundary( i18n::Boundary& rBoundary, sal_Int32 nIndex )
      70                 :            : {
      71                 :            :     // TODO
      72                 :          0 :     OCommonAccessibleText::implGetLineBoundary( rBoundary, nIndex );
      73                 :          0 : }
      74                 :            : 
      75                 :            : // -----------------------------------------------------------------------------
      76                 :            : // XServiceInfo
      77                 :            : // -----------------------------------------------------------------------------
      78                 :            : 
      79                 :          2 : ::rtl::OUString VCLXAccessibleFixedText::getImplementationName() throw (RuntimeException)
      80                 :            : {
      81                 :          2 :     return ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.comp.toolkit.AccessibleFixedText") );
      82                 :            : }
      83                 :            : 
      84                 :            : // -----------------------------------------------------------------------------
      85                 :            : 
      86                 :          0 : Sequence< ::rtl::OUString > VCLXAccessibleFixedText::getSupportedServiceNames() throw (RuntimeException)
      87                 :            : {
      88                 :          0 :     Sequence< ::rtl::OUString > aNames(1);
      89 [ #  # ][ #  # ]:          0 :     aNames[0] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.AccessibleFixedText") );
      90                 :          0 :     return aNames;
      91                 :            : }
      92                 :            : 
      93                 :            : // -----------------------------------------------------------------------------
      94                 :            : 
      95                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10