25#include <com/sun/star/awt/XVclWindowPeer.hpp>
26#include <com/sun/star/accessibility/AccessibleEventId.hpp>
27#include <com/sun/star/accessibility/AccessibleRole.hpp>
28#include <com/sun/star/accessibility/AccessibleStateType.hpp>
29#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
55 :m_pDialogWindow( pDialogWindow )
56 ,m_pDlgEdObj( pDlgEdObj )
62 m_xControlModel->addPropertyChangeListener( OUString(),
static_cast< beans::XPropertyChangeListener*
>(
this ) );
73 m_xControlModel->removePropertyChangeListener( OUString(),
static_cast< beans::XPropertyChangeListener*
>(
this ) );
79 bool bFocused =
false;
103 Any aOldValue, aNewValue;
105 aOldValue <<= AccessibleStateType::FOCUSED;
107 aNewValue <<= AccessibleStateType::FOCUSED;
109 NotifyAccessibleEvent( AccessibleEventId::STATE_CHANGED, aOldValue, aNewValue );
118 Any aOldValue, aNewValue;
120 aOldValue <<= AccessibleStateType::SELECTED;
122 aNewValue <<= AccessibleStateType::SELECTED;
124 NotifyAccessibleEvent( AccessibleEventId::STATE_CHANGED, aOldValue, aNewValue );
131 awt::Rectangle aBounds( 0, 0, 0, 0 );
142 aRect.
Move( aOrg.
X(), aOrg.
Y() );
163 NotifyAccessibleEvent( AccessibleEventId::BOUNDRECT_CHANGED,
Any(),
Any() );
191 if ( xInfo.is() && xInfo->hasPropertyByName(
pPropertyName ) )
206 rStateSet |= AccessibleStateType::ENABLED;
208 rStateSet |= AccessibleStateType::VISIBLE;
210 rStateSet |= AccessibleStateType::SHOWING;
212 rStateSet |= AccessibleStateType::FOCUSABLE;
215 rStateSet |= AccessibleStateType::FOCUSED;
217 rStateSet |= AccessibleStateType::SELECTABLE;
220 rStateSet |= AccessibleStateType::SELECTED;
222 rStateSet |= AccessibleStateType::RESIZABLE;
234 OAccessibleExtendedComponentHelper::disposing();
240 m_xControlModel->removePropertyChangeListener( OUString(),
static_cast< beans::XPropertyChangeListener*
>(
this ) );
251 m_xControlModel->removePropertyChangeListener( OUString(),
static_cast< beans::XPropertyChangeListener*
>(
this ) );
263 NotifyAccessibleEvent( AccessibleEventId::NAME_CHANGED, rEvent.OldValue, rEvent.NewValue );
276 NotifyAccessibleEvent( AccessibleEventId::VISIBLE_DATA_CHANGED,
Any(),
Any() );
283 return "com.sun.star.comp.basctl.AccessibleShape";
293 return {
"com.sun.star.drawing.AccessibleShape" };
314 throw IndexOutOfBoundsException();
336 sal_Int64 nIndexInParent = -1;
341 if ( xParentContext.is() )
343 for ( sal_Int64
i = 0,
nCount = xParentContext->getAccessibleChildCount();
i <
nCount; ++
i )
349 if ( xChildContext ==
static_cast<XAccessibleContext*
>(
this) )
359 return nIndexInParent;
367 return AccessibleRole::SHAPE;
399 sal_Int64 nStateSet = 0;
401 if ( !rBHelper.bDisposed && !rBHelper.bInDispose )
407 nStateSet |= AccessibleStateType::DEFUNC;
460 return sal_Int32(nColor);
478 return sal_Int32(nColor);
502 pVCLXFont->Init( *xDev, aFont );
const char * pPropertyName
const LanguageTag & GetLanguageTag() const
static const AllSettings & GetSettings()
const css::lang::Locale & getLocale(bool bResolveSystem=true) const
constexpr tools::Long Y() const
constexpr tools::Long X() const
virtual const tools::Rectangle & GetSnapRect() const override
size_t GetMarkCount() const
bool IsObjMarked(SdrObject const *pObj) const
const SdrMarkList & GetMarkedObjectList() const
const css::uno::Reference< css::awt::XControlModel > & GetUnoControlModel() const
static vcl::Window * GetWindow(const css::uno::Reference< css::awt::XWindow > &rxWindow)
const Color & GetColor() const
virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet() override
VclPtr< DialogWindow > m_pDialogWindow
virtual void SAL_CALL grabFocus() override
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild(sal_Int64 i) override
css::awt::Rectangle GetBounds() const
void FillAccessibleStateSet(sal_Int64 &rStateSet)
virtual OUString SAL_CALL getToolTipText() override
OUString GetModelStringProperty(OUString const &pPropertyName)
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual ~AccessibleDialogControlShape() override
virtual sal_Int16 SAL_CALL getAccessibleRole() override
virtual OUString SAL_CALL getAccessibleName() override
virtual void SAL_CALL propertyChange(const css::beans::PropertyChangeEvent &rEvent) override
virtual sal_Int32 SAL_CALL getForeground() override
virtual OUString SAL_CALL getAccessibleDescription() override
void SetBounds(const css::awt::Rectangle &aBounds)
virtual sal_Bool SAL_CALL supportsService(const OUString &rServiceName) override
AccessibleDialogControlShape(DialogWindow *, DlgEdObj *)
vcl::Window * GetWindow() const
virtual sal_Int64 SAL_CALL getAccessibleStateSet() override
void SetFocused(bool bFocused)
virtual OUString SAL_CALL getTitledBorderText() override
virtual sal_Int32 SAL_CALL getBackground() override
virtual OUString SAL_CALL getImplementationName() override
virtual sal_Int64 SAL_CALL getAccessibleChildCount() override
void SetSelected(bool bSelected)
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint(const css::awt::Point &aPoint) override
virtual css::awt::Rectangle implGetBounds() override
virtual sal_Int64 SAL_CALL getAccessibleIndexInParent() override
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleParent() override
virtual void SAL_CALL disposing() override
virtual css::lang::Locale SAL_CALL getLocale() override
virtual css::uno::Reference< css::awt::XFont > SAL_CALL getFont() override
virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext() override
css::awt::Rectangle m_aBounds
css::uno::Reference< css::beans::XPropertySet > m_xControlModel
css::uno::Reference< css::awt::XControl > GetControl() const
const Color & GetColor() const
const Wallpaper & GetBackground() const
bool IsControlFont() const
const Color & GetControlForeground() const
bool IsControlForeground() const
vcl::Font GetControlFont() const
const vcl::Font & GetFont() const
virtual css::uno::Reference< css::awt::XVclWindowPeer > GetComponentInterface(bool bCreate=true)
bool IsControlBackground() const
const Color & GetControlBackground() const
const OUString & GetQuickHelpText() const
css::awt::Rectangle AWTRectangle(const ::tools::Rectangle &rVCLRect)
#define TOOLS_WARN_EXCEPTION(area, stream)
#define DLGED_PROP_TEXTLINECOLOR
#define DLGED_PROP_TEXTCOLOR
#define DLGED_PROP_BACKGROUNDCOLOR
constexpr OUStringLiteral DLGED_PROP_NAME
constexpr OUStringLiteral DLGED_PROP_WIDTH
constexpr OUStringLiteral DLGED_PROP_POSITIONX
constexpr OUStringLiteral DLGED_PROP_HEIGHT
constexpr OUStringLiteral DLGED_PROP_POSITIONY
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
HashMap_OWString_Interface aMap