accessibleruler.cxx (2bfcd321) accessibleruler.cxx (0deba7fb)
1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright IBM Corporation 2010.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 *
8 * OpenOffice.org - a multi-platform office productivity suite

--- 15 unchanged lines hidden (view full) ---

24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
26 *
27 ************************************************************************/
28
29// MARKER(update_precomp.py): autogen include statement, do not remove
30#include "precompiled_svtools.hxx"
31
1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright IBM Corporation 2010.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 *
8 * OpenOffice.org - a multi-platform office productivity suite

--- 15 unchanged lines hidden (view full) ---

24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
26 *
27 ************************************************************************/
28
29// MARKER(update_precomp.py): autogen include statement, do not remove
30#include "precompiled_svtools.hxx"
31
32//add by duan mei hua, 2006/09/04, for issue 174
33#ifndef _SVTRULERACCESSIBLE_HXX
34#include <svtools/accessibleruler.hxx>
35#endif
32#ifndef _SVTRULERACCESSIBLE_HXX
33#include <svtools/accessibleruler.hxx>
34#endif
36//end add by duan mei hua, 2006/09/04, for issue 174
35
37#ifndef _COM_SUN_STAR_ACCESSIBILITY_ACCESSIBLEROLE_HPP_
38#include <com/sun/star/accessibility/AccessibleRole.hpp>
39#endif
40#ifndef _COM_SUN_STAR_ACCESSIBILITY_ACCESSIBLEEVENTID_HPP_
41#include <com/sun/star/accessibility/AccessibleEventId.hpp>
42#endif
43#ifndef _UTL_ACCESSIBLESTATESETHELPER_HXX_
44#include <unotools/accessiblestatesethelper.hxx>

--- 453 unchanged lines hidden (view full) ---

498
499Rectangle SvtRulerAccessible::GetBoundingBoxOnScreen( void ) throw( RuntimeException )
500{
501 ::vos::OGuard aSolarGuard( Application::GetSolarMutex() );
502 ::osl::MutexGuard aGuard( m_aMutex );
503
504 ThrowExceptionIfNotAlive();
505//IAccessibility2 Implementation 2009-----
36#ifndef _COM_SUN_STAR_ACCESSIBILITY_ACCESSIBLEROLE_HPP_
37#include <com/sun/star/accessibility/AccessibleRole.hpp>
38#endif
39#ifndef _COM_SUN_STAR_ACCESSIBILITY_ACCESSIBLEEVENTID_HPP_
40#include <com/sun/star/accessibility/AccessibleEventId.hpp>
41#endif
42#ifndef _UTL_ACCESSIBLESTATESETHELPER_HXX_
43#include <unotools/accessiblestatesethelper.hxx>

--- 453 unchanged lines hidden (view full) ---

497
498Rectangle SvtRulerAccessible::GetBoundingBoxOnScreen( void ) throw( RuntimeException )
499{
500 ::vos::OGuard aSolarGuard( Application::GetSolarMutex() );
501 ::osl::MutexGuard aGuard( m_aMutex );
502
503 ThrowExceptionIfNotAlive();
504//IAccessibility2 Implementation 2009-----
506 //Modified by Li Xing, 2007/03/26, SODC_7333, the absolute on screen pixel is wrong
505 //the absolute on screen pixel is wrong
507 //return Rectangle( mpRepr->GetParent()->OutputToScreenPixel( mpRepr->GetPosPixel() ), mpRepr->GetSizePixel() );
508 return Rectangle( mpRepr->GetParent()->OutputToAbsoluteScreenPixel( mpRepr->GetPosPixel() ), mpRepr->GetSizePixel() );
506 //return Rectangle( mpRepr->GetParent()->OutputToScreenPixel( mpRepr->GetPosPixel() ), mpRepr->GetSizePixel() );
507 return Rectangle( mpRepr->GetParent()->OutputToAbsoluteScreenPixel( mpRepr->GetPosPixel() ), mpRepr->GetSizePixel() );
509 //Ended by Li Xing, 2007/03/26, SODC_7333.
510//-----IAccessibility2 Implementation 2009
511}
512
513Rectangle SvtRulerAccessible::GetBoundingBox( void ) throw( RuntimeException )
514{
515 ::vos::OGuard aSolarGuard( Application::GetSolarMutex() );
516 ::osl::MutexGuard aGuard( m_aMutex );
517

--- 39 unchanged lines hidden ---
508//-----IAccessibility2 Implementation 2009
509}
510
511Rectangle SvtRulerAccessible::GetBoundingBox( void ) throw( RuntimeException )
512{
513 ::vos::OGuard aSolarGuard( Application::GetSolarMutex() );
514 ::osl::MutexGuard aGuard( m_aMutex );
515

--- 39 unchanged lines hidden ---