#103091# XServiceInfo added to SmEditAccessible and SmGraphicAccessible
This commit is contained in:
parent
4934da13b3
commit
9cff92399f
2 changed files with 87 additions and 8 deletions
|
@ -2,9 +2,9 @@
|
|||
*
|
||||
* $RCSfile: accessibility.cxx,v $
|
||||
*
|
||||
* $Revision: 1.13 $
|
||||
* $Revision: 1.14 $
|
||||
*
|
||||
* last change: $Author: thb $ $Date: 2002-08-02 11:36:23 $
|
||||
* last change: $Author: tl $ $Date: 2002-09-10 12:15:30 $
|
||||
*
|
||||
* The Contents of this file are made available subject to the terms of
|
||||
* either of the following licenses
|
||||
|
@ -148,6 +148,7 @@ using namespace com::sun::star::lang;
|
|||
using namespace com::sun::star::uno;
|
||||
using namespace drafts::com::sun::star::accessibility;
|
||||
|
||||
#define C2U(cChar) rtl::OUString::createFromAscii(cChar)
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
@ -798,6 +799,39 @@ sal_Bool SAL_CALL SmGraphicAccessible::copyText(
|
|||
return bReturn;
|
||||
}
|
||||
|
||||
OUString SAL_CALL SmGraphicAccessible::getImplementationName()
|
||||
throw (RuntimeException)
|
||||
{
|
||||
//vos::OGuard aGuard(Application::GetSolarMutex());
|
||||
return C2U("SmGraphicAccessible");
|
||||
}
|
||||
|
||||
sal_Bool SAL_CALL SmGraphicAccessible::supportsService(
|
||||
const OUString& rServiceName )
|
||||
throw (RuntimeException)
|
||||
{
|
||||
//vos::OGuard aGuard(Application::GetSolarMutex());
|
||||
return rServiceName == C2U( "drafts::com::sun::star::accessibility::XAccessible" ) ||
|
||||
rServiceName == C2U( "drafts::com::sun::star::accessibility::XAccessibleComponent" ) ||
|
||||
rServiceName == C2U( "drafts::com::sun::star::accessibility::XAccessibleContext" ) ||
|
||||
rServiceName == C2U( "drafts::com::sun::star::accessibility::XAccessibleText" ) ||
|
||||
rServiceName == C2U( "drafts::com::sun::star::accessibility::XAccessibleEventBroadcaster" );
|
||||
}
|
||||
|
||||
Sequence< OUString > SAL_CALL SmGraphicAccessible::getSupportedServiceNames()
|
||||
throw (RuntimeException)
|
||||
{
|
||||
//vos::OGuard aGuard(Application::GetSolarMutex());
|
||||
Sequence< OUString > aNames(5);
|
||||
OUString *pNames = aNames.getArray();
|
||||
pNames[0] = C2U( "drafts::com::sun::star::accessibility::XAccessible" );
|
||||
pNames[1] = C2U( "drafts::com::sun::star::accessibility::XAccessibleComponent" );
|
||||
pNames[2] = C2U( "drafts::com::sun::star::accessibility::XAccessibleContext" );
|
||||
pNames[3] = C2U( "drafts::com::sun::star::accessibility::XAccessibleText" );
|
||||
pNames[4] = C2U( "drafts::com::sun::star::accessibility::XAccessibleEventBroadcaster" );
|
||||
return aNames;
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
//------------------------------------------------------------------------
|
||||
|
@ -1765,6 +1799,36 @@ void SAL_CALL SmEditAccessible::removeEventListener( const uno::Reference< XAcce
|
|||
pTextHelper->RemoveEventListener( xListener );
|
||||
}
|
||||
|
||||
OUString SAL_CALL SmEditAccessible::getImplementationName()
|
||||
throw (RuntimeException)
|
||||
{
|
||||
//vos::OGuard aGuard(Application::GetSolarMutex());
|
||||
return C2U("SmEditAccessible");
|
||||
}
|
||||
|
||||
sal_Bool SAL_CALL SmEditAccessible::supportsService(
|
||||
const OUString& rServiceName )
|
||||
throw (RuntimeException)
|
||||
{
|
||||
//vos::OGuard aGuard(Application::GetSolarMutex());
|
||||
return rServiceName == C2U( "drafts::com::sun::star::accessibility::XAccessible" ) ||
|
||||
rServiceName == C2U( "drafts::com::sun::star::accessibility::XAccessibleComponent" ) ||
|
||||
rServiceName == C2U( "drafts::com::sun::star::accessibility::XAccessibleContext" ) ||
|
||||
rServiceName == C2U( "drafts::com::sun::star::accessibility::XAccessibleEventBroadcaster" );
|
||||
}
|
||||
|
||||
Sequence< OUString > SAL_CALL SmEditAccessible::getSupportedServiceNames()
|
||||
throw (RuntimeException)
|
||||
{
|
||||
//vos::OGuard aGuard(Application::GetSolarMutex());
|
||||
Sequence< OUString > aNames(4);
|
||||
OUString *pNames = aNames.getArray();
|
||||
pNames[0] = C2U( "drafts::com::sun::star::accessibility::XAccessible" );
|
||||
pNames[1] = C2U( "drafts::com::sun::star::accessibility::XAccessibleComponent" );
|
||||
pNames[2] = C2U( "drafts::com::sun::star::accessibility::XAccessibleContext" );
|
||||
pNames[3] = C2U( "drafts::com::sun::star::accessibility::XAccessibleEventBroadcaster" );
|
||||
return aNames;
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
*
|
||||
* $RCSfile: accessibility.hxx,v $
|
||||
*
|
||||
* $Revision: 1.10 $
|
||||
* $Revision: 1.11 $
|
||||
*
|
||||
* last change: $Author: thb $ $Date: 2002-08-02 11:36:24 $
|
||||
* last change: $Author: tl $ $Date: 2002-09-10 12:15:30 $
|
||||
*
|
||||
* The Contents of this file are made available subject to the terms of
|
||||
* either of the following licenses
|
||||
|
@ -85,6 +85,9 @@
|
|||
#ifndef _DRAFTS_COM_SUN_STAR_ACCESSIBILITY_ACCESSIBLEEVENTID_HPP_
|
||||
#include <drafts/com/sun/star/accessibility/AccessibleEventId.hpp>
|
||||
#endif
|
||||
#ifndef _COM_SUN_STAR_lang_XSERVICEINFO_HPP_
|
||||
#include <com/sun/star/lang/XServiceInfo.hpp>
|
||||
#endif
|
||||
|
||||
#ifndef _COM_SUN_STAR_UNO_REFERENCE_H_
|
||||
#include <com/sun/star/uno/Reference.h>
|
||||
|
@ -99,8 +102,8 @@
|
|||
#ifndef _CPPUHELPER_IMPLBASE5_HXX_
|
||||
#include <cppuhelper/implbase5.hxx>
|
||||
#endif
|
||||
#ifndef _CPPUHELPER_IMPLBASE4_HXX_
|
||||
#include <cppuhelper/implbase4.hxx>
|
||||
#ifndef _CPPUHELPER_IMPLBASE6_HXX_
|
||||
#include <cppuhelper/implbase6.hxx>
|
||||
#endif
|
||||
#ifndef _SFXBRDCST_HXX
|
||||
#include <svtools/brdcst.hxx>
|
||||
|
@ -130,8 +133,9 @@ struct AccessibleEventObject;
|
|||
//
|
||||
|
||||
typedef
|
||||
cppu::WeakImplHelper5
|
||||
cppu::WeakImplHelper6
|
||||
<
|
||||
com::sun::star::lang::XServiceInfo,
|
||||
drafts::com::sun::star::accessibility::XAccessible,
|
||||
drafts::com::sun::star::accessibility::XAccessibleComponent,
|
||||
drafts::com::sun::star::accessibility::XAccessibleContext,
|
||||
|
@ -219,6 +223,11 @@ public:
|
|||
virtual ::rtl::OUString SAL_CALL getTextBeforeIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
|
||||
virtual ::rtl::OUString SAL_CALL getTextBehindIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
|
||||
virtual sal_Bool SAL_CALL copyText( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
|
||||
|
||||
// XServiceInfo
|
||||
virtual ::rtl::OUString SAL_CALL getImplementationName( ) throw (::com::sun::star::uno::RuntimeException);
|
||||
virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException);
|
||||
virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException);
|
||||
};
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
@ -370,8 +379,9 @@ public:
|
|||
|
||||
|
||||
typedef
|
||||
cppu::WeakImplHelper4
|
||||
cppu::WeakImplHelper5
|
||||
<
|
||||
com::sun::star::lang::XServiceInfo,
|
||||
drafts::com::sun::star::accessibility::XAccessible,
|
||||
drafts::com::sun::star::accessibility::XAccessibleComponent,
|
||||
drafts::com::sun::star::accessibility::XAccessibleContext,
|
||||
|
@ -436,6 +446,11 @@ public:
|
|||
// XAccessibleEventBroadcaster
|
||||
virtual void SAL_CALL addEventListener( const ::com::sun::star::uno::Reference< ::drafts::com::sun::star::accessibility::XAccessibleEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException);
|
||||
virtual void SAL_CALL removeEventListener( const ::com::sun::star::uno::Reference< ::drafts::com::sun::star::accessibility::XAccessibleEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException);
|
||||
|
||||
// XServiceInfo
|
||||
virtual ::rtl::OUString SAL_CALL getImplementationName( ) throw (::com::sun::star::uno::RuntimeException);
|
||||
virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException);
|
||||
virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException);
|
||||
};
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Reference in a new issue