LCOV - code coverage report
Current view: top level - basctl/source/accessibility - accessibledialogcontrolshape.cxx (source / functions) Hit Total Coverage
Test: commit 0e63ca4fde4e446f346e35849c756a30ca294aab Lines: 0 243 0.0 %
Date: 2014-04-11 Functions: 0 42 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 <accessibledialogcontrolshape.hxx>
      21             : #include <baside3.hxx>
      22             : #include <dlgeddef.hxx>
      23             : #include <dlgedview.hxx>
      24             : #include <dlgedobj.hxx>
      25             : #include <com/sun/star/accessibility/AccessibleEventId.hpp>
      26             : #include <com/sun/star/accessibility/AccessibleRole.hpp>
      27             : #include <com/sun/star/accessibility/AccessibleStateType.hpp>
      28             : #include <cppuhelper/supportsservice.hxx>
      29             : #include <unotools/accessiblestatesethelper.hxx>
      30             : #include <unotools/accessiblerelationsethelper.hxx>
      31             : #include <toolkit/awt/vclxfont.hxx>
      32             : #include <toolkit/helper/externallock.hxx>
      33             : #include <toolkit/helper/convert.hxx>
      34             : #include <toolkit/helper/vclunohelper.hxx>
      35             : #include <vcl/svapp.hxx>
      36             : #include <vcl/settings.hxx>
      37             : 
      38             : namespace basctl
      39             : {
      40             : 
      41             : using namespace ::com::sun::star;
      42             : using namespace ::com::sun::star::uno;
      43             : using namespace ::com::sun::star::lang;
      44             : using namespace ::com::sun::star::beans;
      45             : using namespace ::com::sun::star::accessibility;
      46             : using namespace ::comphelper;
      47             : 
      48             : 
      49             : 
      50             : // class AccessibleDialogControlShape
      51             : 
      52             : 
      53           0 : AccessibleDialogControlShape::AccessibleDialogControlShape (DialogWindow* pDialogWindow, DlgEdObj* pDlgEdObj)
      54             :     :AccessibleExtendedComponentHelper_BASE( new VCLExternalSolarLock() )
      55             :     ,m_pDialogWindow( pDialogWindow )
      56           0 :     ,m_pDlgEdObj( pDlgEdObj )
      57             : {
      58           0 :     m_pExternalLock = static_cast< VCLExternalSolarLock* >( getExternalLock() );
      59             : 
      60           0 :     if ( m_pDlgEdObj )
      61           0 :         m_xControlModel = Reference< XPropertySet >( m_pDlgEdObj->GetUnoControlModel(), UNO_QUERY );
      62             : 
      63           0 :     if ( m_xControlModel.is() )
      64           0 :         m_xControlModel->addPropertyChangeListener( OUString(), static_cast< beans::XPropertyChangeListener* >( this ) );
      65             : 
      66           0 :     m_bFocused = IsFocused();
      67           0 :     m_bSelected = IsSelected();
      68           0 :     m_aBounds = GetBounds();
      69           0 : }
      70             : 
      71             : 
      72             : 
      73           0 : AccessibleDialogControlShape::~AccessibleDialogControlShape()
      74             : {
      75           0 :     if ( m_xControlModel.is() )
      76           0 :         m_xControlModel->removePropertyChangeListener( OUString(), static_cast< beans::XPropertyChangeListener* >( this ) );
      77             : 
      78           0 :     delete m_pExternalLock;
      79           0 :     m_pExternalLock = NULL;
      80           0 : }
      81             : 
      82             : 
      83             : 
      84           0 : bool AccessibleDialogControlShape::IsFocused()
      85             : {
      86           0 :     bool bFocused = false;
      87           0 :     if ( m_pDialogWindow )
      88             :     {
      89           0 :         SdrView& rView = m_pDialogWindow->GetView();
      90           0 :         if (rView.IsObjMarked(m_pDlgEdObj) && rView.GetMarkedObjectList().GetMarkCount() == 1)
      91           0 :             bFocused = true;
      92             :     }
      93             : 
      94           0 :     return bFocused;
      95             : }
      96             : 
      97             : 
      98             : 
      99           0 : bool AccessibleDialogControlShape::IsSelected()
     100             : {
     101           0 :     if ( m_pDialogWindow )
     102           0 :         return m_pDialogWindow->GetView().IsObjMarked(m_pDlgEdObj);
     103           0 :     return false;
     104             : }
     105             : 
     106             : 
     107             : 
     108           0 : void AccessibleDialogControlShape::SetFocused( bool bFocused )
     109             : {
     110           0 :     if ( m_bFocused != bFocused )
     111             :     {
     112           0 :         Any aOldValue, aNewValue;
     113           0 :         if ( m_bFocused )
     114           0 :             aOldValue <<= AccessibleStateType::FOCUSED;
     115             :         else
     116           0 :             aNewValue <<= AccessibleStateType::FOCUSED;
     117           0 :         m_bFocused = bFocused;
     118           0 :         NotifyAccessibleEvent( AccessibleEventId::STATE_CHANGED, aOldValue, aNewValue );
     119             :     }
     120           0 : }
     121             : 
     122             : 
     123             : 
     124           0 : void AccessibleDialogControlShape::SetSelected( bool bSelected )
     125             : {
     126           0 :     if ( m_bSelected != bSelected )
     127             :     {
     128           0 :         Any aOldValue, aNewValue;
     129           0 :         if ( m_bSelected )
     130           0 :             aOldValue <<= AccessibleStateType::SELECTED;
     131             :         else
     132           0 :             aNewValue <<= AccessibleStateType::SELECTED;
     133           0 :         m_bSelected = bSelected;
     134           0 :         NotifyAccessibleEvent( AccessibleEventId::STATE_CHANGED, aOldValue, aNewValue );
     135             :     }
     136           0 : }
     137             : 
     138             : 
     139             : 
     140           0 : awt::Rectangle AccessibleDialogControlShape::GetBounds()
     141             : {
     142           0 :     awt::Rectangle aBounds( 0, 0, 0, 0 );
     143           0 :     if ( m_pDlgEdObj )
     144             :     {
     145             :         // get the bounding box of the shape in logic units
     146           0 :         Rectangle aRect = m_pDlgEdObj->GetSnapRect();
     147             : 
     148           0 :         if ( m_pDialogWindow )
     149             :         {
     150             :             // transform coordinates relative to the parent
     151           0 :             MapMode aMap = m_pDialogWindow->GetMapMode();
     152           0 :             Point aOrg = aMap.GetOrigin();
     153           0 :             aRect.Move( aOrg.X(), aOrg.Y() );
     154             : 
     155             :             // convert logic units to pixel
     156           0 :             aRect = m_pDialogWindow->LogicToPixel( aRect, MapMode(MAP_100TH_MM) );
     157             : 
     158             :             // clip the shape's bounding box with the bounding box of its parent
     159           0 :             Rectangle aParentRect( Point( 0, 0 ), m_pDialogWindow->GetSizePixel() );
     160           0 :             aRect = aRect.GetIntersection( aParentRect );
     161           0 :             aBounds = AWTRectangle( aRect );
     162             :         }
     163             :     }
     164             : 
     165           0 :     return aBounds;
     166             : }
     167             : 
     168             : 
     169             : 
     170           0 : void AccessibleDialogControlShape::SetBounds( const awt::Rectangle& aBounds )
     171             : {
     172           0 :     if ( m_aBounds.X != aBounds.X || m_aBounds.Y != aBounds.Y || m_aBounds.Width != aBounds.Width || m_aBounds.Height != aBounds.Height )
     173             :     {
     174           0 :         m_aBounds = aBounds;
     175           0 :         NotifyAccessibleEvent( AccessibleEventId::BOUNDRECT_CHANGED, Any(), Any() );
     176             :     }
     177           0 : }
     178             : 
     179             : 
     180             : 
     181           0 : Window* AccessibleDialogControlShape::GetWindow() const
     182             : {
     183           0 :     Window* pWindow = NULL;
     184           0 :     if ( m_pDlgEdObj )
     185             :     {
     186           0 :         Reference< awt::XControl > xControl( m_pDlgEdObj->GetControl(), UNO_QUERY );
     187           0 :         if ( xControl.is() )
     188           0 :             pWindow = VCLUnoHelper::GetWindow( xControl->getPeer() );
     189             :     }
     190             : 
     191           0 :     return pWindow;
     192             : }
     193             : 
     194             : 
     195             : 
     196           0 : OUString AccessibleDialogControlShape::GetModelStringProperty( const sal_Char* pPropertyName )
     197             : {
     198           0 :     OUString sReturn;
     199             : 
     200             :     try
     201             :     {
     202           0 :         if ( m_xControlModel.is() )
     203             :         {
     204           0 :             OUString sPropertyName( OUString::createFromAscii( pPropertyName ) );
     205           0 :             Reference< XPropertySetInfo > xInfo = m_xControlModel->getPropertySetInfo();
     206           0 :             if ( xInfo.is() && xInfo->hasPropertyByName( sPropertyName ) )
     207           0 :                 m_xControlModel->getPropertyValue( sPropertyName ) >>= sReturn;
     208             :         }
     209             :     }
     210           0 :     catch ( const Exception& )
     211             :     {
     212             :         OSL_FAIL( "AccessibleDialogControlShape::GetModelStringProperty: caught an exception!" );
     213             :     }
     214             : 
     215           0 :     return sReturn;
     216             : }
     217             : 
     218             : 
     219             : 
     220           0 : void AccessibleDialogControlShape::FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet )
     221             : {
     222           0 :     rStateSet.AddState( AccessibleStateType::ENABLED );
     223             : 
     224           0 :     rStateSet.AddState( AccessibleStateType::VISIBLE );
     225             : 
     226           0 :     rStateSet.AddState( AccessibleStateType::SHOWING );
     227             : 
     228           0 :     rStateSet.AddState( AccessibleStateType::FOCUSABLE );
     229             : 
     230           0 :     if ( IsFocused() )
     231           0 :         rStateSet.AddState( AccessibleStateType::FOCUSED );
     232             : 
     233           0 :     rStateSet.AddState( AccessibleStateType::SELECTABLE );
     234             : 
     235           0 :     if ( IsSelected() )
     236           0 :         rStateSet.AddState( AccessibleStateType::SELECTED );
     237             : 
     238           0 :     rStateSet.AddState( AccessibleStateType::RESIZABLE );
     239           0 : }
     240             : 
     241             : 
     242             : // OCommonAccessibleComponent
     243             : 
     244             : 
     245           0 : awt::Rectangle AccessibleDialogControlShape::implGetBounds() throw (RuntimeException)
     246             : {
     247           0 :     return GetBounds();
     248             : }
     249             : 
     250             : 
     251             : // XInterface
     252             : 
     253             : 
     254           0 : IMPLEMENT_FORWARD_XINTERFACE2( AccessibleDialogControlShape, AccessibleExtendedComponentHelper_BASE, AccessibleDialogControlShape_BASE )
     255             : 
     256             : 
     257             : // XTypeProvider
     258             : 
     259             : 
     260           0 : IMPLEMENT_FORWARD_XTYPEPROVIDER2( AccessibleDialogControlShape, AccessibleExtendedComponentHelper_BASE, AccessibleDialogControlShape_BASE )
     261             : 
     262             : 
     263             : // XComponent
     264             : 
     265             : 
     266           0 : void AccessibleDialogControlShape::disposing()
     267             : {
     268           0 :     AccessibleExtendedComponentHelper_BASE::disposing();
     269             : 
     270           0 :     m_pDialogWindow = NULL;
     271           0 :     m_pDlgEdObj = NULL;
     272             : 
     273           0 :     if ( m_xControlModel.is() )
     274           0 :         m_xControlModel->removePropertyChangeListener( OUString(), static_cast< beans::XPropertyChangeListener* >( this ) );
     275           0 :     m_xControlModel.clear();
     276           0 : }
     277             : 
     278             : 
     279             : // XEventListener
     280             : 
     281             : 
     282           0 : void AccessibleDialogControlShape::disposing( const lang::EventObject& ) throw (RuntimeException, std::exception)
     283             : {
     284           0 :     if ( m_xControlModel.is() )
     285           0 :         m_xControlModel->removePropertyChangeListener( OUString(), static_cast< beans::XPropertyChangeListener* >( this ) );
     286           0 :     m_xControlModel.clear();
     287           0 : }
     288             : 
     289             : 
     290             : // XPropertyChangeListener
     291             : 
     292             : 
     293           0 : void AccessibleDialogControlShape::propertyChange( const beans::PropertyChangeEvent& rEvent ) throw (RuntimeException, std::exception)
     294             : {
     295           0 :     if ( rEvent.PropertyName == DLGED_PROP_NAME )
     296             :     {
     297           0 :         NotifyAccessibleEvent( AccessibleEventId::NAME_CHANGED, rEvent.OldValue, rEvent.NewValue );
     298             :     }
     299           0 :     else if ( rEvent.PropertyName == DLGED_PROP_POSITIONX ||
     300           0 :               rEvent.PropertyName == DLGED_PROP_POSITIONY ||
     301           0 :               rEvent.PropertyName == DLGED_PROP_WIDTH ||
     302           0 :               rEvent.PropertyName == DLGED_PROP_HEIGHT )
     303             :     {
     304           0 :         SetBounds( GetBounds() );
     305             :     }
     306           0 :     else if ( rEvent.PropertyName == DLGED_PROP_BACKGROUNDCOLOR ||
     307           0 :               rEvent.PropertyName == DLGED_PROP_TEXTCOLOR ||
     308           0 :               rEvent.PropertyName == DLGED_PROP_TEXTLINECOLOR )
     309             :     {
     310           0 :         NotifyAccessibleEvent( AccessibleEventId::VISIBLE_DATA_CHANGED, Any(), Any() );
     311             :     }
     312           0 : }
     313             : 
     314             : // XServiceInfo
     315           0 : OUString AccessibleDialogControlShape::getImplementationName() throw (RuntimeException, std::exception)
     316             : {
     317           0 :     return OUString( "com.sun.star.comp.basctl.AccessibleShape" );
     318             : }
     319             : 
     320           0 : sal_Bool AccessibleDialogControlShape::supportsService( const OUString& rServiceName ) throw (RuntimeException, std::exception)
     321             : {
     322           0 :     return cppu::supportsService(this, rServiceName);
     323             : }
     324             : 
     325           0 : Sequence< OUString > AccessibleDialogControlShape::getSupportedServiceNames() throw (RuntimeException, std::exception)
     326             : {
     327           0 :     Sequence< OUString > aNames(1);
     328           0 :     aNames[0] = "com.sun.star.drawing.AccessibleShape" ;
     329           0 :     return aNames;
     330             : }
     331             : 
     332             : // XAccessible
     333           0 : Reference< XAccessibleContext > AccessibleDialogControlShape::getAccessibleContext(  ) throw (RuntimeException, std::exception)
     334             : {
     335           0 :     OExternalLockGuard aGuard( this );
     336             : 
     337           0 :     return this;
     338             : }
     339             : 
     340             : // XAccessibleContext
     341           0 : sal_Int32 AccessibleDialogControlShape::getAccessibleChildCount() throw (RuntimeException, std::exception)
     342             : {
     343           0 :     OExternalLockGuard aGuard( this );
     344             : 
     345           0 :     return 0;
     346             : }
     347             : 
     348             : 
     349             : 
     350           0 : Reference< XAccessible > AccessibleDialogControlShape::getAccessibleChild( sal_Int32 i ) throw (IndexOutOfBoundsException, RuntimeException, std::exception)
     351             : {
     352           0 :     OExternalLockGuard aGuard( this );
     353             : 
     354           0 :     if ( i < 0 || i >= getAccessibleChildCount() )
     355           0 :         throw IndexOutOfBoundsException();
     356             : 
     357           0 :     return Reference< XAccessible >();
     358             : }
     359             : 
     360             : 
     361             : 
     362           0 : Reference< XAccessible > AccessibleDialogControlShape::getAccessibleParent(  ) throw (RuntimeException, std::exception)
     363             : {
     364           0 :     OExternalLockGuard aGuard( this );
     365             : 
     366           0 :     Reference< XAccessible > xParent;
     367           0 :     if ( m_pDialogWindow )
     368           0 :         xParent = m_pDialogWindow->GetAccessible();
     369             : 
     370           0 :     return xParent;
     371             : }
     372             : 
     373             : 
     374             : 
     375           0 : sal_Int32 AccessibleDialogControlShape::getAccessibleIndexInParent(  ) throw (RuntimeException, std::exception)
     376             : {
     377           0 :     OExternalLockGuard aGuard( this );
     378             : 
     379           0 :     sal_Int32 nIndexInParent = -1;
     380           0 :     Reference< XAccessible > xParent( getAccessibleParent() );
     381           0 :     if ( xParent.is() )
     382             :     {
     383           0 :         Reference< XAccessibleContext > xParentContext( xParent->getAccessibleContext() );
     384           0 :         if ( xParentContext.is() )
     385             :         {
     386           0 :             for ( sal_Int32 i = 0, nCount = xParentContext->getAccessibleChildCount(); i < nCount; ++i )
     387             :             {
     388           0 :                 Reference< XAccessible > xChild( xParentContext->getAccessibleChild( i ) );
     389           0 :                 if ( xChild.is() )
     390             :                 {
     391           0 :                     Reference< XAccessibleContext > xChildContext = xChild->getAccessibleContext();
     392           0 :                     if ( xChildContext == (XAccessibleContext*)this )
     393             :                     {
     394           0 :                         nIndexInParent = i;
     395           0 :                         break;
     396           0 :                     }
     397             :                 }
     398           0 :             }
     399           0 :         }
     400             :     }
     401             : 
     402           0 :     return nIndexInParent;
     403             : }
     404             : 
     405             : 
     406             : 
     407           0 : sal_Int16 AccessibleDialogControlShape::getAccessibleRole(  ) throw (RuntimeException, std::exception)
     408             : {
     409           0 :     OExternalLockGuard aGuard( this );
     410             : 
     411           0 :     return AccessibleRole::SHAPE;
     412             : }
     413             : 
     414             : 
     415             : 
     416           0 : OUString AccessibleDialogControlShape::getAccessibleDescription(  ) throw (RuntimeException, std::exception)
     417             : {
     418           0 :     OExternalLockGuard aGuard( this );
     419             : 
     420           0 :     return GetModelStringProperty( "HelpText" );
     421             : }
     422             : 
     423             : 
     424             : 
     425           0 : OUString AccessibleDialogControlShape::getAccessibleName(  ) throw (RuntimeException, std::exception)
     426             : {
     427           0 :     OExternalLockGuard aGuard( this );
     428             : 
     429           0 :     return GetModelStringProperty( "Name" );
     430             : }
     431             : 
     432             : 
     433             : 
     434           0 : Reference< XAccessibleRelationSet > AccessibleDialogControlShape::getAccessibleRelationSet(  ) throw (RuntimeException, std::exception)
     435             : {
     436           0 :     OExternalLockGuard aGuard( this );
     437             : 
     438           0 :     utl::AccessibleRelationSetHelper* pRelationSetHelper = new utl::AccessibleRelationSetHelper;
     439           0 :     Reference< XAccessibleRelationSet > xSet = pRelationSetHelper;
     440           0 :     return xSet;
     441             : }
     442             : 
     443             : 
     444             : 
     445           0 : Reference< XAccessibleStateSet > AccessibleDialogControlShape::getAccessibleStateSet(  ) throw (RuntimeException, std::exception)
     446             : {
     447           0 :     OExternalLockGuard aGuard( this );
     448             : 
     449           0 :     utl::AccessibleStateSetHelper* pStateSetHelper = new utl::AccessibleStateSetHelper;
     450           0 :     Reference< XAccessibleStateSet > xSet = pStateSetHelper;
     451             : 
     452           0 :     if ( !rBHelper.bDisposed && !rBHelper.bInDispose )
     453             :     {
     454           0 :         FillAccessibleStateSet( *pStateSetHelper );
     455             :     }
     456             :     else
     457             :     {
     458           0 :         pStateSetHelper->AddState( AccessibleStateType::DEFUNC );
     459             :     }
     460             : 
     461           0 :     return xSet;
     462             : }
     463             : 
     464             : 
     465             : 
     466           0 : Locale AccessibleDialogControlShape::getLocale(  ) throw (IllegalAccessibleComponentStateException, RuntimeException, std::exception)
     467             : {
     468           0 :     OExternalLockGuard aGuard( this );
     469             : 
     470           0 :     return Application::GetSettings().GetLanguageTag().getLocale();
     471             : }
     472             : 
     473             : 
     474             : // XAccessibleComponent
     475             : 
     476             : 
     477           0 : Reference< XAccessible > AccessibleDialogControlShape::getAccessibleAtPoint( const awt::Point& ) throw (RuntimeException, std::exception)
     478             : {
     479           0 :     OExternalLockGuard aGuard( this );
     480             : 
     481           0 :     return Reference< XAccessible >();
     482             : }
     483             : 
     484             : 
     485             : 
     486           0 : void AccessibleDialogControlShape::grabFocus(  ) throw (RuntimeException, std::exception)
     487             : {
     488             :     // no focus for shapes
     489           0 : }
     490             : 
     491             : 
     492             : 
     493           0 : sal_Int32 AccessibleDialogControlShape::getForeground(  ) throw (RuntimeException, std::exception)
     494             : {
     495           0 :     OExternalLockGuard aGuard( this );
     496             : 
     497           0 :     sal_Int32 nColor = 0;
     498           0 :     Window* pWindow = GetWindow();
     499           0 :     if ( pWindow )
     500             :     {
     501           0 :         if ( pWindow->IsControlForeground() )
     502           0 :             nColor = pWindow->GetControlForeground().GetColor();
     503             :         else
     504             :         {
     505           0 :             Font aFont;
     506           0 :             if ( pWindow->IsControlFont() )
     507           0 :                 aFont = pWindow->GetControlFont();
     508             :             else
     509           0 :                 aFont = pWindow->GetFont();
     510           0 :             nColor = aFont.GetColor().GetColor();
     511             :         }
     512             :     }
     513             : 
     514           0 :     return nColor;
     515             : }
     516             : 
     517             : 
     518             : 
     519           0 : sal_Int32 AccessibleDialogControlShape::getBackground(  ) throw (RuntimeException, std::exception)
     520             : {
     521           0 :     OExternalLockGuard aGuard( this );
     522             : 
     523           0 :     sal_Int32 nColor = 0;
     524           0 :     Window* pWindow = GetWindow();
     525           0 :     if ( pWindow )
     526             :     {
     527           0 :         if ( pWindow->IsControlBackground() )
     528           0 :             nColor = pWindow->GetControlBackground().GetColor();
     529             :         else
     530           0 :             nColor = pWindow->GetBackground().GetColor().GetColor();
     531             :     }
     532             : 
     533           0 :     return nColor;
     534             : }
     535             : 
     536             : 
     537             : // XAccessibleExtendedComponent
     538             : 
     539             : 
     540           0 : Reference< awt::XFont > AccessibleDialogControlShape::getFont(  ) throw (RuntimeException, std::exception)
     541             : {
     542           0 :     OExternalLockGuard aGuard( this );
     543             : 
     544           0 :     Reference< awt::XFont > xFont;
     545           0 :     Window* pWindow = GetWindow();
     546           0 :     if ( pWindow )
     547             :     {
     548           0 :         Reference< awt::XDevice > xDev( pWindow->GetComponentInterface(), UNO_QUERY );
     549           0 :         if ( xDev.is() )
     550             :         {
     551           0 :             Font aFont;
     552           0 :             if ( pWindow->IsControlFont() )
     553           0 :                 aFont = pWindow->GetControlFont();
     554             :             else
     555           0 :                 aFont = pWindow->GetFont();
     556           0 :             VCLXFont* pVCLXFont = new VCLXFont;
     557           0 :             pVCLXFont->Init( *xDev.get(), aFont );
     558           0 :             xFont = pVCLXFont;
     559           0 :         }
     560             :     }
     561             : 
     562           0 :     return xFont;
     563             : }
     564             : 
     565             : 
     566             : 
     567           0 : OUString AccessibleDialogControlShape::getTitledBorderText(  ) throw (RuntimeException, std::exception)
     568             : {
     569           0 :     OExternalLockGuard aGuard( this );
     570             : 
     571           0 :     return OUString();
     572             : }
     573             : 
     574             : 
     575             : 
     576           0 : OUString AccessibleDialogControlShape::getToolTipText(  ) throw (RuntimeException, std::exception)
     577             : {
     578           0 :     OExternalLockGuard aGuard( this );
     579             : 
     580           0 :     OUString sText;
     581           0 :     Window* pWindow = GetWindow();
     582           0 :     if ( pWindow )
     583           0 :         sText = pWindow->GetQuickHelpText();
     584             : 
     585           0 :     return sText;
     586             : }
     587             : 
     588             : 
     589             : 
     590             : } // namespace basctl
     591             : 
     592             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10