offapi/UnoApi_offapi.mk | 1 offapi/com/sun/star/awt/AccessibleTreeListBox.idl | 92 ----------------- svx/source/accessibility/GraphCtlAccessibleContext.cxx | 6 - svx/source/inc/GraphCtlAccessibleContext.hxx | 5 vcl/source/accessibility/accessiblelistbox.cxx | 3 5 files changed, 2 insertions(+), 105 deletions(-)
New commits: commit dc513684282e732c7e8ff71dde431d5632f12824 Author: Michael Weghorn <[email protected]> AuthorDate: Wed Mar 4 18:18:08 2026 +0100 Commit: Michael Weghorn <[email protected]> CommitDate: Thu Mar 5 11:18:00 2026 +0100 [API CHANGE] a11y: Drop com.sun.star.awt.AccessibleTreeListBox Drop the unpublished service "com.sun.star.awt.AccessibleTreeListBox" because it's unused. (The IDL file only documents some internal implementation details of the a11y class implementing the service.) Change-Id: I98e6e241d17ddc725977a393e8d5da0c7d9569e8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200963 Tested-by: Jenkins Reviewed-by: Michael Weghorn <[email protected]> diff --git a/offapi/UnoApi_offapi.mk b/offapi/UnoApi_offapi.mk index df27ee5ea63c..686dc4498904 100644 --- a/offapi/UnoApi_offapi.mk +++ b/offapi/UnoApi_offapi.mk @@ -509,7 +509,6 @@ $(eval $(call gb_UnoApi_add_idlfiles_noheader,offapi,com/sun/star/awt,\ AccessibleTabControl \ AccessibleTabPage \ AccessibleTextField \ - AccessibleTreeListBox \ AccessibleWindow \ AnimatedImagesControl \ AnimatedImagesControlModel \ diff --git a/offapi/com/sun/star/awt/AccessibleTreeListBox.idl b/offapi/com/sun/star/awt/AccessibleTreeListBox.idl deleted file mode 100644 index 52203587c6a4..000000000000 --- a/offapi/com/sun/star/awt/AccessibleTreeListBox.idl +++ /dev/null @@ -1,92 +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 accessibility { - - interface XAccessibleSelection; - interface XAccessibleComponent; - -}; }; }; }; - -module com { module sun { module star { module awt { - -/** specifies accessibility support for a tree list box. - - @see com::sun::star::accessibility::AccessibleContext - - @see com::sun::star::accessibility::XAccessibleComponent - @see com::sun::star::accessibility::XAccessibleSelection - - @since OOo 1.1.2 -*/ -service AccessibleTreeListBox -{ - /** This interface gives access to the structural information of a tree list box: - - <ul> - <li>Role: The role of a tree list box is - com::sun::star::accessibility::AccessibleRole::TREE.</li> - <li>Name: The name of a tree list box is its localized label.</li> - <li>Description: The description of a tree list box is its localized - help text.</li> - <li>Children: There exists children representing the tree list box entries. - </li> - <li>Parent: The parent is the window that contains the tree list box.</li> - <li>Relations: There are no relations.</li> - <li>States: The states supported by this service are - <ul> - <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::ACTIVE - is set if a child has currently the focus.</li> - <li>com::sun::star::accessibility::AccessibleStateType::RESIZABLE - is set if the object can be resized.</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> - <li>com::sun::star::accessibility::AccessibleStateType::MULTI_SELECTABLE - is set when multi selection is enabled.</li> - </ul> - </li> - </ul> - */ - service com::sun::star::accessibility::AccessibleContext; - - interface com::sun::star::accessibility::XAccessibleComponent; - - /** This interface gives access to the selectable children of a - tree list box. - */ - interface com::sun::star::accessibility::XAccessibleSelection; -}; - -}; }; }; }; - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vcl/source/accessibility/accessiblelistbox.cxx b/vcl/source/accessibility/accessiblelistbox.cxx index 6e6ff710f713..58cb6b8ebd1f 100644 --- a/vcl/source/accessibility/accessiblelistbox.cxx +++ b/vcl/source/accessibility/accessiblelistbox.cxx @@ -250,8 +250,7 @@ OUString SAL_CALL AccessibleListBox::getImplementationName() Sequence< OUString > SAL_CALL AccessibleListBox::getSupportedServiceNames() { - return {u"com.sun.star.accessibility.AccessibleContext"_ustr, - u"com.sun.star.awt.AccessibleTreeListBox"_ustr}; + return {u"com.sun.star.accessibility.AccessibleContext"_ustr}; } // XAccessibleContext commit c7542c0255b91c9c1fae9d0830bb7f03abcc9bac Author: Michael Weghorn <[email protected]> AuthorDate: Wed Mar 4 18:08:26 2026 +0100 Commit: Michael Weghorn <[email protected]> CommitDate: Thu Mar 5 11:17:45 2026 +0100 svx a11y: Stop implementing XServiceName The documentation (in udkapi/com/sun/star/lang/XServiceName.idl) says: /** identifies the object with a service name which can be used to create such an object by a factory. */ published interface XServiceName: com::sun::star::uno::XInterface That's not the case for SvxGraphCtrlAccessibleContext, so stop implementing XServiceName. Change-Id: Icdda3ef941c532dc1f014427e43bcce6b64ccc94 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200962 Tested-by: Jenkins Reviewed-by: Michael Weghorn <[email protected]> diff --git a/svx/source/accessibility/GraphCtlAccessibleContext.cxx b/svx/source/accessibility/GraphCtlAccessibleContext.cxx index 10b11304900d..035d59094d7c 100644 --- a/svx/source/accessibility/GraphCtlAccessibleContext.cxx +++ b/svx/source/accessibility/GraphCtlAccessibleContext.cxx @@ -319,12 +319,6 @@ Sequence< OUString > SAL_CALL SvxGraphCtrlAccessibleContext::getSupportedService return { u"com.sun.star.accessibility.AccessibleContext"_ustr }; } -// XServiceName -OUString SvxGraphCtrlAccessibleContext::getServiceName() -{ - return u"com.sun.star.accessibility.AccessibleContext"_ustr; -} - // XAccessibleSelection void SAL_CALL SvxGraphCtrlAccessibleContext::selectAccessibleChild( sal_Int64 nIndex ) { diff --git a/svx/source/inc/GraphCtlAccessibleContext.hxx b/svx/source/inc/GraphCtlAccessibleContext.hxx index a67ff9550d00..3c9fa5e3a747 100644 --- a/svx/source/inc/GraphCtlAccessibleContext.hxx +++ b/svx/source/inc/GraphCtlAccessibleContext.hxx @@ -53,7 +53,7 @@ class SdrView; class SvxGraphCtrlAccessibleContext final : public cppu::ImplInheritanceHelper<comphelper::OAccessible, css::accessibility::XAccessibleSelection, - css::lang::XServiceInfo, css::lang::XServiceName>, + css::lang::XServiceInfo>, public SfxListener, public ::accessibility::IAccessibleViewForwarder { @@ -89,9 +89,6 @@ public: virtual sal_Bool SAL_CALL supportsService (const OUString& sServiceName) override; virtual css::uno::Sequence< OUString> SAL_CALL getSupportedServiceNames() override; - // XServiceName - virtual OUString SAL_CALL getServiceName() override; - // XAccessibleSelection virtual void SAL_CALL selectAccessibleChild( sal_Int64 nChildIndex ) override; virtual sal_Bool SAL_CALL isAccessibleChildSelected( sal_Int64 nChildIndex ) override;
