LCOV - code coverage report
Current view: top level - accessibility/source/standard - vclxaccessiblepopupmenu.cxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 1 23 4.3 %
Date: 2014-11-03 Functions: 2 11 18.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 <accessibility/standard/vclxaccessiblepopupmenu.hxx>
      21             : 
      22             : #include <com/sun/star/accessibility/AccessibleRole.hpp>
      23             : #include <vcl/svapp.hxx>
      24             : #include <vcl/settings.hxx>
      25             : 
      26             : using namespace ::com::sun::star::accessibility;
      27             : using namespace ::com::sun::star::uno;
      28             : using namespace ::comphelper;
      29             : 
      30             : 
      31             : 
      32             : // class VCLXAccessiblePopupMenu
      33             : 
      34             : 
      35           0 : VCLXAccessiblePopupMenu::VCLXAccessiblePopupMenu( Menu* pMenu )
      36           0 :     :OAccessibleMenuComponent( pMenu )
      37             : {
      38           0 : }
      39             : 
      40             : 
      41             : 
      42           0 : VCLXAccessiblePopupMenu::~VCLXAccessiblePopupMenu()
      43             : {
      44           0 : }
      45             : 
      46             : 
      47             : 
      48           0 : bool VCLXAccessiblePopupMenu::IsFocused()
      49             : {
      50           0 :     return !IsChildHighlighted();
      51             : }
      52             : 
      53             : 
      54             : // XServiceInfo
      55             : 
      56             : 
      57           0 : OUString VCLXAccessiblePopupMenu::getImplementationName() throw (RuntimeException, std::exception)
      58             : {
      59           0 :     return OUString( "com.sun.star.comp.toolkit.AccessiblePopupMenu" );
      60             : }
      61             : 
      62             : 
      63             : 
      64           0 : Sequence< OUString > VCLXAccessiblePopupMenu::getSupportedServiceNames() throw (RuntimeException, std::exception)
      65             : {
      66           0 :     Sequence< OUString > aNames(1);
      67           0 :     aNames[0] = "com.sun.star.awt.AccessiblePopupMenu";
      68           0 :     return aNames;
      69             : }
      70             : 
      71             : 
      72             : // XAccessibleContext
      73             : 
      74             : 
      75           0 : sal_Int32 VCLXAccessiblePopupMenu::getAccessibleIndexInParent(  ) throw (RuntimeException, std::exception)
      76             : {
      77           0 :     OExternalLockGuard aGuard( this );
      78             : 
      79           0 :     return 0;
      80             : }
      81             : 
      82             : 
      83             : 
      84           0 : sal_Int16 VCLXAccessiblePopupMenu::getAccessibleRole(  ) throw (RuntimeException, std::exception)
      85             : {
      86           0 :     OExternalLockGuard aGuard( this );
      87             : 
      88           0 :     return AccessibleRole::POPUP_MENU;
      89             : }
      90             : 
      91             : 
      92             : // XAccessibleExtendedComponent
      93             : 
      94             : 
      95           0 : sal_Int32 VCLXAccessiblePopupMenu::getBackground(  ) throw (RuntimeException, std::exception)
      96             : {
      97           0 :     OExternalLockGuard aGuard( this );
      98             : 
      99           0 :     return Application::GetSettings().GetStyleSettings().GetMenuColor().GetColor();
     100          60 : }
     101             : 
     102             : 
     103             : 
     104             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10