Kaydet (Commit) 5dcec0c5 authored tarafından Vladimir Glazounov's avatar Vladimir Glazounov

INTEGRATION: CWS uaa02 (1.19.14); FILE MERGED

2003/04/14 16:56:39 thb 1.19.14.2: #108900# Moved service descriptions from drafts, changed getCharacterBounds() behaviour and implemented TEXT_CHANGED new/old value calculations
2003/04/11 17:06:48 mt 1.19.14.1: #108656# Moved accessibility from drafts to final
üst e043a3da
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: AccessibleContextBase.cxx,v $ * $RCSfile: AccessibleContextBase.cxx,v $
* *
* $Revision: 1.19 $ * $Revision: 1.20 $
* *
* last change: $Author: hr $ $Date: 2003-03-27 15:00:23 $ * last change: $Author: vg $ $Date: 2003-04-24 16:52:52 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -62,22 +62,22 @@ ...@@ -62,22 +62,22 @@
#include "AccessibleContextBase.hxx" #include "AccessibleContextBase.hxx"
#ifndef _DRAFTS_COM_SUN_STAR_ACCESSIBILITY_ACCESSIBLEROLE_HPP_ #ifndef _COM_SUN_STAR_ACCESSIBILITY_ACCESSIBLEROLE_HPP_
#include <drafts/com/sun/star/accessibility/AccessibleRole.hpp> #include <com/sun/star/accessibility/AccessibleRole.hpp>
#endif #endif
#ifndef _COM_SUN_STAR_BEANS_PROPERTYCHANGEEVENT_HPP_ #ifndef _COM_SUN_STAR_BEANS_PROPERTYCHANGEEVENT_HPP_
#include <com/sun/star/beans/PropertyChangeEvent.hpp> #include <com/sun/star/beans/PropertyChangeEvent.hpp>
#endif #endif
#ifndef _DRAFTS_COM_SUN_STAR_ACCESSIBILITY_XACCESSIBLEEVENTLISTENER_HPP_ #ifndef _COM_SUN_STAR_ACCESSIBILITY_XACCESSIBLEEVENTLISTENER_HPP_
#include <drafts/com/sun/star/accessibility/XAccessibleEventListener.hpp> #include <com/sun/star/accessibility/XAccessibleEventListener.hpp>
#endif #endif
#ifndef _DRAFTS_COM_SUN_STAR_ACCESSIBILITY_ACCESSIBLESTATETYPE_HPP_ #ifndef _COM_SUN_STAR_ACCESSIBILITY_ACCESSIBLESTATETYPE_HPP_
#include <drafts/com/sun/star/accessibility/AccessibleStateType.hpp> #include <com/sun/star/accessibility/AccessibleStateType.hpp>
#endif #endif
#ifndef _DRAFTS_COM_SUN_STAR_ACCESSIBILITY_ACCESSIBLERELATIONTYPE_HPP_ #ifndef _COM_SUN_STAR_ACCESSIBILITY_ACCESSIBLERELATIONTYPE_HPP_
#include <drafts/com/sun/star/accessibility/AccessibleRelationType.hpp> #include <com/sun/star/accessibility/AccessibleRelationType.hpp>
#endif #endif
#ifndef _UTL_ACCESSIBLESTATESETHELPER_HXX_ #ifndef _UTL_ACCESSIBLESTATESETHELPER_HXX_
...@@ -101,7 +101,7 @@ ...@@ -101,7 +101,7 @@
using namespace ::rtl; using namespace ::rtl;
using namespace ::com::sun::star; using namespace ::com::sun::star;
using namespace ::drafts::com::sun::star::accessibility; using namespace ::com::sun::star::accessibility;
using ::com::sun::star::uno::Reference; using ::com::sun::star::uno::Reference;
namespace accessibility { namespace accessibility {
...@@ -110,9 +110,9 @@ namespace accessibility { ...@@ -110,9 +110,9 @@ namespace accessibility {
// Define a shortcut for the somewhot longish base class name. // Define a shortcut for the somewhot longish base class name.
typedef ::cppu::WeakComponentImplHelper4< typedef ::cppu::WeakComponentImplHelper4<
::drafts::com::sun::star::accessibility::XAccessible, ::com::sun::star::accessibility::XAccessible,
::drafts::com::sun::star::accessibility::XAccessibleContext, ::com::sun::star::accessibility::XAccessibleContext,
::drafts::com::sun::star::accessibility::XAccessibleEventBroadcaster, ::com::sun::star::accessibility::XAccessibleEventBroadcaster,
::com::sun::star::lang::XServiceInfo> BaseClass; ::com::sun::star::lang::XServiceInfo> BaseClass;
AccessibleContextBase::AccessibleContextBase ( AccessibleContextBase::AccessibleContextBase (
...@@ -173,7 +173,7 @@ sal_Bool AccessibleContextBase::SetState (sal_Int16 aState) ...@@ -173,7 +173,7 @@ sal_Bool AccessibleContextBase::SetState (sal_Int16 aState)
uno::Any aNewValue; uno::Any aNewValue;
aNewValue <<= aState; aNewValue <<= aState;
CommitChange( CommitChange(
AccessibleEventId::ACCESSIBLE_STATE_EVENT, AccessibleEventId::STATE_CHANGED,
aNewValue, aNewValue,
uno::Any()); uno::Any());
} }
...@@ -200,7 +200,7 @@ sal_Bool AccessibleContextBase::ResetState (sal_Int16 aState) ...@@ -200,7 +200,7 @@ sal_Bool AccessibleContextBase::ResetState (sal_Int16 aState)
uno::Any aOldValue; uno::Any aOldValue;
aOldValue <<= aState; aOldValue <<= aState;
CommitChange( CommitChange(
AccessibleEventId::ACCESSIBLE_STATE_EVENT, AccessibleEventId::STATE_CHANGED,
uno::Any(), uno::Any(),
aOldValue); aOldValue);
return sal_True; return sal_True;
...@@ -237,11 +237,11 @@ void AccessibleContextBase::SetRelationSet ( ...@@ -237,11 +237,11 @@ void AccessibleContextBase::SetRelationSet (
// both sets. // both sets.
typedef std::pair<short int,short int> RD; typedef std::pair<short int,short int> RD;
const RD aRelationDescriptors[] = { const RD aRelationDescriptors[] = {
RD(AccessibleRelationType::CONTROLLED_BY, AccessibleEventId::CONTROLLED_BY_EVENT), RD(AccessibleRelationType::CONTROLLED_BY, AccessibleEventId::CONTROLLED_BY_RELATION_CHANGED),
RD(AccessibleRelationType::CONTROLLER_FOR, AccessibleEventId::CONTROLLER_FOR_EVENT), RD(AccessibleRelationType::CONTROLLER_FOR, AccessibleEventId::CONTROLLER_FOR_RELATION_CHANGED),
RD(AccessibleRelationType::LABELED_BY, AccessibleEventId::LABELED_BY_EVENT), RD(AccessibleRelationType::LABELED_BY, AccessibleEventId::LABELED_BY_RELATION_CHANGED),
RD(AccessibleRelationType::LABEL_FOR, AccessibleEventId::LABEL_FOR_EVENT), RD(AccessibleRelationType::LABEL_FOR, AccessibleEventId::LABEL_FOR_RELATION_CHANGED),
RD(AccessibleRelationType::MEMBER_OF, AccessibleEventId::MEMBER_OF_EVENT), RD(AccessibleRelationType::MEMBER_OF, AccessibleEventId::MEMBER_OF_RELATION_CHANGED),
RD(AccessibleRelationType::INVALID, -1), RD(AccessibleRelationType::INVALID, -1),
}; };
for (int i=0; aRelationDescriptors[i].first!=AccessibleRelationType::INVALID; i++) for (int i=0; aRelationDescriptors[i].first!=AccessibleRelationType::INVALID; i++)
...@@ -569,9 +569,9 @@ uno::Sequence< ::rtl::OUString> SAL_CALL ...@@ -569,9 +569,9 @@ uno::Sequence< ::rtl::OUString> SAL_CALL
ThrowIfDisposed (); ThrowIfDisposed ();
static const OUString sServiceNames[2] = { static const OUString sServiceNames[2] = {
OUString(RTL_CONSTASCII_USTRINGPARAM( OUString(RTL_CONSTASCII_USTRINGPARAM(
"drafts.com.sun.star.accessibility.Accessible")), "com.sun.star.accessibility.Accessible")),
OUString(RTL_CONSTASCII_USTRINGPARAM( OUString(RTL_CONSTASCII_USTRINGPARAM(
"drafts.com.sun.star.accessibility.AccessibleContext")) "com.sun.star.accessibility.AccessibleContext"))
}; };
return uno::Sequence<OUString> (sServiceNames, 2); return uno::Sequence<OUString> (sServiceNames, 2);
} }
...@@ -644,7 +644,7 @@ void AccessibleContextBase::SetAccessibleDescription (const ::rtl::OUString& rDe ...@@ -644,7 +644,7 @@ void AccessibleContextBase::SetAccessibleDescription (const ::rtl::OUString& rDe
msDescription = rDescription; msDescription = rDescription;
CommitChange( CommitChange(
AccessibleEventId::ACCESSIBLE_DESCRIPTION_EVENT, AccessibleEventId::DESCRIPTION_CHANGED,
aNewValue, aNewValue,
aOldValue); aOldValue);
} }
...@@ -665,7 +665,7 @@ void AccessibleContextBase::SetAccessibleName (const ::rtl::OUString& rName) ...@@ -665,7 +665,7 @@ void AccessibleContextBase::SetAccessibleName (const ::rtl::OUString& rName)
msName = rName; msName = rName;
CommitChange( CommitChange(
AccessibleEventId::ACCESSIBLE_NAME_EVENT, AccessibleEventId::NAME_CHANGED,
aNewValue, aNewValue,
aOldValue); aOldValue);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment