[API CHANGE] a11y: Drop com.sun.star.awt.AccessibleWindow

Drop the unpublished service
"com.sun.star.awt.AccessibleWindow"
because it's unused. (The IDL file only documents some
internal implementation details of the a11y classes
implementing the service.)

Change-Id: I958aeb6c6baaa48e2e02ab170b17db5c3510379b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210406
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
This commit is contained in:
Michael Weghorn
2026-09-03 09:22:26 +02:00
parent 10d43b72c5
commit 939a77b14c
6 changed files with 2 additions and 135 deletions
@@ -502,22 +502,6 @@ void AccessibleDialogWindow::disposing()
m_aAccessibleChildren.clear();
}
// XServiceInfo
OUString AccessibleDialogWindow::getImplementationName()
{
return u"com.sun.star.comp.basctl.AccessibleWindow"_ustr;
}
sal_Bool AccessibleDialogWindow::supportsService( const OUString& rServiceName )
{
return cppu::supportsService(this, rServiceName);
}
Sequence< OUString > AccessibleDialogWindow::getSupportedServiceNames()
{
return { u"com.sun.star.awt.AccessibleWindow"_ustr };
}
// XAccessibleContext
sal_Int64 AccessibleDialogWindow::getAccessibleChildCount()
{
+1 -8
View File
@@ -20,7 +20,6 @@
#pragma once
#include <com/sun/star/accessibility/XAccessibleSelection.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <comphelper/OAccessible.hxx>
#include <cppuhelper/implbase.hxx>
#include <svl/lstner.hxx>
@@ -40,8 +39,7 @@ class DlgEdObj;
class AccessibleDialogWindow final
: public cppu::ImplInheritanceHelper<comphelper::OAccessible,
css::accessibility::XAccessibleSelection,
css::lang::XServiceInfo>,
css::accessibility::XAccessibleSelection>,
public SfxListener
{
private:
@@ -94,11 +92,6 @@ public:
// SfxListener
virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override;
// XServiceInfo
virtual OUString SAL_CALL getImplementationName() override;
virtual sal_Bool SAL_CALL supportsService( const OUString& rServiceName ) override;
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
// XAccessibleContext
virtual sal_Int64 SAL_CALL getAccessibleChildCount( ) override;
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild( sal_Int64 i ) override;
@@ -20,7 +20,6 @@
#pragma once
#include <vcl/dllapi.h>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <cppuhelper/implbase.hxx>
#include <comphelper/OAccessible.hxx>
@@ -37,8 +36,7 @@ namespace utl {
class AccessibleRelationSetHelper;
}
class VCL_DLLPUBLIC VCLXAccessibleComponent
: public cppu::ImplInheritanceHelper<comphelper::OAccessible, css::lang::XServiceInfo>
class VCL_DLLPUBLIC VCLXAccessibleComponent : public comphelper::OAccessible
{
private:
VclPtr<vcl::Window> m_xWindow;
@@ -67,11 +65,6 @@ public:
virtual void SAL_CALL disposing() override;
// XServiceInfo
virtual OUString SAL_CALL getImplementationName() override;
virtual sal_Bool SAL_CALL supportsService( const OUString& rServiceName ) override;
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
// css::accessibility::XAccessibleContext
sal_Int64 SAL_CALL getAccessibleChildCount( ) override;
css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild( sal_Int64 i ) override;
-1
View File
@@ -480,7 +480,6 @@ $(eval $(call gb_UnoApi_add_idlfiles_nohdl,offapi,com/sun/star/xml/xslt,\
))
$(eval $(call gb_UnoApi_add_idlfiles_noheader,offapi,com/sun/star/awt,\
AccessibleWindow \
AnimatedImagesControl \
AnimatedImagesControlModel \
RoadmapItem \
@@ -1,86 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
module com { module sun { module star { module awt {
/** specifies accessibility support for a window.
@since OOo 1.1.2
*/
service AccessibleWindow
{
/** This interface gives access to the structural information of a window:
<ul>
<li>Role: The role of a window is not fixed. A window may have
one of the following roles:
<ul>
<li>com::sun::star::accessibility::AccessibleRole::DIALOG</li>
<li>com::sun::star::accessibility::AccessibleRole::FRAME</li>
<li>com::sun::star::accessibility::AccessibleRole::LAYERED_PANE</li>
<li>com::sun::star::accessibility::AccessibleRole::PANEL</li>
<li>com::sun::star::accessibility::AccessibleRole::ROOT_PANE</li>
<li>com::sun::star::accessibility::AccessibleRole::SCROLL_PANE</li>
<li>com::sun::star::accessibility::AccessibleRole::SPLIT_PANE</li>
<li>com::sun::star::accessibility::AccessibleRole::WINDOW</li>
<li>...</li>
</ul>
</li>
<li>Name: The name of a window is its localized title.</li>
<li>Description: The description of a window is its localized
help text.</li>
<li>Children: The children of a window are the child windows.</li>
<li>Parent: The parent of a window is the parent window.</li>
<li>Relations: There are no relations.</li>
<li>States: The states supported by this service are
<ul>
<li>com::sun::star::accessibility::AccessibleStateType::ACTIVE
is set if the object is currently the active object.</li>
<li>com::sun::star::accessibility::AccessibleStateType::DEFUNC
is set if the object has already been disposed
and subsequent calls to this object result in
com::sun::star::lang::DisposedException
exceptions.</li>
<li>com::sun::star::accessibility::AccessibleStateType::ENABLED
is set if the object is enabled.</li>
<li>com::sun::star::accessibility::AccessibleStateType::FOCUSABLE
is always set.</li>
<li>com::sun::star::accessibility::AccessibleStateType::FOCUSED
is set if the object currently has the keyboard focus.</li>
<li>com::sun::star::accessibility::AccessibleStateType::MODAL
is set if the object is modal.</li>
<li>com::sun::star::accessibility::AccessibleStateType::RESIZABLE
is set if the size of the object is not fixed.</li>
<li>com::sun::star::accessibility::AccessibleStateType::SHOWING
is set if the object is displayed on the screen.</li>
<li>com::sun::star::accessibility::AccessibleStateType::VISIBLE
is always set.</li>
</ul>
</li>
</ul>
*/
interface ::com::sun::star::accessibility::XAccessibleContext;
interface ::com::sun::star::accessibility::XAccessibleEventBroadcaster;
interface ::com::sun::star::accessibility::XAccessibleComponent;
interface ::com::sun::star::accessibility::XAccessibleExtendedComponent;
};
}; }; }; };
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
@@ -66,22 +66,6 @@ VCLXAccessibleComponent::~VCLXAccessibleComponent()
DisconnectEvents();
}
OUString VCLXAccessibleComponent::getImplementationName()
{
return u"com.sun.star.comp.toolkit.AccessibleWindow"_ustr;
}
sal_Bool VCLXAccessibleComponent::supportsService( const OUString& rServiceName )
{
return cppu::supportsService(this, rServiceName);
}
uno::Sequence< OUString > VCLXAccessibleComponent::getSupportedServiceNames()
{
uno::Sequence< OUString > aNames { u"com.sun.star.awt.AccessibleWindow"_ustr };
return aNames;
}
IMPL_LINK( VCLXAccessibleComponent, WindowEventListener, VclWindowEvent&, rEvent, void )
{
/* Ignore VclEventId::WindowEndPopupMode, because the UNO accessibility wrapper