Blame SOURCES/0001-Resolves-tdf-133411-drop-CONTENT_FLOWS_TO-from-dialo.patch

842991
From 0eab7dfc71e61c75d5c07093a95c64d05bc2f0c1 Mon Sep 17 00:00:00 2001
842991
From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@redhat.com>
842991
Date: Wed, 27 May 2020 17:11:34 +0100
842991
Subject: [PATCH] Resolves: tdf#133411 drop CONTENT_FLOWS_TO from dialog to
842991
 search results
842991
MIME-Version: 1.0
842991
Content-Type: text/plain; charset=UTF-8
842991
Content-Transfer-Encoding: 8bit
842991
842991
in the document, looks like only the calc one actually works, and when
842991
it works on large quantities of results calc grinds to a complete halt
842991
842991
This was introduced with:
842991
842991
commit b41332475783c31136673fb44cf4c411bb0148f8
842991
Date:   Mon Dec 2 15:54:29 2013 +0000
842991
842991
    Integrate branch of IAccessible2
842991
842991
and has been a problem on and off with calc's potentially ~infinite grid
842991
842991
There is the on-by-default search results dialog in calc (which has a limit on
842991
how many it shows) which provides an alternative route to iterate through the
842991
results
842991
842991
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95006
842991
Tested-by: Jenkins
842991
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
842991
(cherry picked from commit 0b94169d820482434dc98a37c3c1633ca46fd0dc)
842991
842991
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95014
842991
Tested-by: Jenkins
842991
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
842991
(cherry picked from commit f753baddc057a3bf4881ac78a15cd11fa847ee28)
842991
842991
Change-Id: I2685e480d2d15220be0bddbc83baad3992e7d5d1
842991
---
842991
 include/comphelper/accflowenum.hxx            |  34 ----
842991
 include/svx/srchdlg.hxx                       |   5 -
842991
 include/vcl/weld.hxx                          |   5 -
842991
 include/vcl/window.hxx                        |   4 -
842991
 .../ui/Accessibility/AccessibleDocument.cxx   | 154 ------------------
842991
 sc/source/ui/inc/AccessibleDocument.hxx       |   7 +-
842991
 sc/source/ui/view/tabvwshe.cxx                |  40 +----
842991
 sd/IwyuFilter_sd.yaml                         |   1 -
842991
 .../AccessibleDocumentViewBase.cxx            |   9 -
842991
 .../AccessibleDrawDocumentView.cxx            | 151 -----------------
842991
 .../ui/inc/AccessibleDocumentViewBase.hxx     |   7 +-
842991
 .../ui/inc/AccessibleDrawDocumentView.hxx     |   6 -
842991
 sd/source/ui/view/Outliner.cxx                |  11 --
842991
 svx/source/dialog/srchdlg.cxx                 |  57 -------
842991
 sw/source/core/access/accdoc.cxx              | 121 --------------
842991
 sw/source/core/access/accdoc.hxx              |   8 +-
842991
 sw/source/uibase/uiview/viewsrch.cxx          |  38 -----
842991
 .../source/awt/vclxaccessiblecomponent.cxx    |   3 -
842991
 vcl/inc/window.h                              |   1 -
842991
 vcl/source/app/salvtables.cxx                 |  10 --
842991
 vcl/source/window/window2.cxx                 |  15 --
842991
 vcl/unx/gtk3/gtk3gtkinst.cxx                  |  29 +---
842991
 22 files changed, 5 insertions(+), 711 deletions(-)
842991
 delete mode 100644 include/comphelper/accflowenum.hxx
842991
842991
diff --git a/include/comphelper/accflowenum.hxx b/include/comphelper/accflowenum.hxx
842991
deleted file mode 100644
842991
index fc6b7ea2d8ec..000000000000
842991
--- a/include/comphelper/accflowenum.hxx
842991
+++ /dev/null
842991
@@ -1,34 +0,0 @@
842991
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
842991
-/*
842991
- * This file is part of the LibreOffice project.
842991
- *
842991
- * This Source Code Form is subject to the terms of the Mozilla Public
842991
- * License, v. 2.0. If a copy of the MPL was not distributed with this
842991
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
842991
- *
842991
- * This file incorporates work covered by the following license notice:
842991
- *
842991
- *   Licensed to the Apache Software Foundation (ASF) under one or more
842991
- *   contributor license agreements. See the NOTICE file distributed
842991
- *   with this work for additional information regarding copyright
842991
- *   ownership. The ASF licenses this file to you under the Apache
842991
- *   License, Version 2.0 (the "License"); you may not use this file
842991
- *   except in compliance with the License. You may obtain a copy of
842991
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
842991
- */
842991
-
842991
-#ifndef INCLUDED_COMPHELPER_ACCFLOWENUM_HXX
842991
-#define INCLUDED_COMPHELPER_ACCFLOWENUM_HXX
842991
-
842991
-#include <sal/types.h>
842991
-
842991
-enum AccessibilityFlowTo : sal_Int32
842991
-{
842991
-    FORSPELLCHECKFLOWTO = 1,
842991
-    FORFINDREPLACEFLOWTO_ITEM = 2,
842991
-    FORFINDREPLACEFLOWTO_RANGE = 3
842991
-};
842991
-
842991
-#endif // INCLUDED_COMPHELPER_ACCFLOWENUM_HXX
842991
-
842991
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
842991
diff --git a/include/svx/srchdlg.hxx b/include/svx/srchdlg.hxx
842991
index 01f5b07663d5..3d1be499c399 100644
842991
--- a/include/svx/srchdlg.hxx
842991
+++ b/include/svx/srchdlg.hxx
842991
@@ -126,16 +126,11 @@ public:
842991
 
842991
     TransliterationFlags        GetTransliterationFlags() const;
842991
 
842991
-    void SetDocWin(vcl::Window* pDocWin, SvxSearchCmd eCommand);
842991
-    void SetSrchFlag( bool bSuccess ) { mbSuccess = bSuccess; }
842991
-    bool GetSrchFlag() { return mbSuccess; }
842991
     void            SetSaveToModule(bool b);
842991
 
842991
     void SetSearchLabel(const OUString& rStr);
842991
 
842991
 private:
842991
-    bool            mbSuccess;
842991
-
842991
     SfxBindings&    rBindings;
842991
     bool            bWriter;
842991
     bool            bSearch;
842991
diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx
842991
index b6c4c22d502c..bd76a44c846e 100644
842991
--- a/include/vcl/weld.hxx
842991
+++ b/include/vcl/weld.hxx
842991
@@ -147,11 +147,6 @@ public:
842991
     virtual void set_accessible_relation_labeled_by(weld::Widget* pLabel) = 0;
842991
     virtual void set_accessible_relation_label_for(weld::Widget* pLabeled) = 0;
842991
 
842991
-    virtual void
842991
-    add_extra_accessible_relation(const css::accessibility::AccessibleRelation& rRelation)
842991
-        = 0;
842991
-    virtual void clear_extra_accessible_relations() = 0;
842991
-
842991
     virtual void set_tooltip_text(const OUString& rTip) = 0;
842991
     virtual OUString get_tooltip_text() const = 0;
842991
 
842991
diff --git a/include/vcl/window.hxx b/include/vcl/window.hxx
842991
index 3b28f9a503a0..a4965b2acab8 100644
842991
--- a/include/vcl/window.hxx
842991
+++ b/include/vcl/window.hxx
842991
@@ -1253,10 +1253,6 @@ public:
842991
     void                                SetAccessibleRelationMemberOf( vcl::Window* pMemberOf );
842991
     vcl::Window*                        GetAccessibleRelationMemberOf() const;
842991
 
842991
-    void                                AddExtraAccessibleRelation(const css::accessibility::AccessibleRelation &rRelation);
842991
-    const std::vector<css::accessibility::AccessibleRelation>& GetExtraAccessibleRelations() const;
842991
-    void                                ClearExtraAccessibleRelations();
842991
-
842991
     // to avoid sending accessibility events in cases like closing dialogs
842991
     // by default checks complete parent path
842991
     bool                                IsAccessibilityEventsSuppressed( bool bTraverseParentPath = true );
842991
diff --git a/sc/source/ui/Accessibility/AccessibleDocument.cxx b/sc/source/ui/Accessibility/AccessibleDocument.cxx
842991
index a63e419754be..8273d78dc8d3 100644
842991
--- a/sc/source/ui/Accessibility/AccessibleDocument.cxx
842991
+++ b/sc/source/ui/Accessibility/AccessibleDocument.cxx
842991
@@ -52,7 +52,6 @@
842991
 #include <svx/AccessibleShapeTreeInfo.hxx>
842991
 #include <svx/AccessibleShapeInfo.hxx>
842991
 #include <svx/IAccessibleParent.hxx>
842991
-#include <comphelper/accflowenum.hxx>
842991
 #include <comphelper/sequence.hxx>
842991
 #include <sfx2/viewfrm.hxx>
842991
 #include <sfx2/docfile.hxx>
842991
@@ -1607,13 +1606,6 @@ void SAL_CALL ScAccessibleDocument::selectionChanged( const lang::EventObject& /
842991
 
842991
 uno::Any SAL_CALL ScAccessibleDocument::queryInterface( uno::Type const & rType )
842991
 {
842991
-    uno::Any aAnyTmp;
842991
-    if(rType == cppu::UnoType<XAccessibleGetAccFlowTo>::get())
842991
-    {
842991
-         css::uno::Reference<XAccessibleGetAccFlowTo> AccFromXShape = this;
842991
-         aAnyTmp <<= AccFromXShape;
842991
-         return aAnyTmp;
842991
-    }
842991
     uno::Any aAny (ScAccessibleDocumentImpl::queryInterface(rType));
842991
     return aAny.hasValue() ? aAny : ScAccessibleContextBase::queryInterface(rType);
842991
 }
842991
@@ -2232,152 +2224,6 @@ uno::Any SAL_CALL ScAccessibleDocument::getExtendedAttributes()
842991
     return anyAtrribute;
842991
 }
842991
 
842991
-css::uno::Sequence< css::uno::Any > ScAccessibleDocument::GetScAccFlowToSequence()
842991
-{
842991
-    if ( getAccessibleChildCount() )
842991
-    {
842991
-        uno::Reference < XAccessible > xSCTableAcc = getAccessibleChild( 0 ); // table
842991
-        if ( xSCTableAcc.is() )
842991
-        {
842991
-            uno::Reference < XAccessibleSelection > xAccSelection( xSCTableAcc, uno::UNO_QUERY );
842991
-            sal_Int32 nSelCount = xAccSelection->getSelectedAccessibleChildCount();
842991
-            if( nSelCount )
842991
-            {
842991
-                uno::Reference < XAccessible > xSel = xAccSelection->getSelectedAccessibleChild( 0 ); // selected cell
842991
-                if ( xSel.is() )
842991
-                {
842991
-                    uno::Reference < XAccessibleContext > xSelContext( xSel->getAccessibleContext() );
842991
-                    if ( xSelContext.is() )
842991
-                    {
842991
-                        if ( xSelContext->getAccessibleRole() == AccessibleRole::TABLE_CELL )
842991
-                        {
842991
-                            sal_Int32 nParaCount = 0;
842991
-                            uno::Sequence <uno::Any> aSequence(nSelCount);
842991
-                            for ( sal_Int32 i = 0; i < nSelCount; i++ )
842991
-                            {
842991
-                                xSel = xAccSelection->getSelectedAccessibleChild( i )   ;
842991
-                                if ( xSel.is() )
842991
-                                {
842991
-                                    xSelContext = xSel->getAccessibleContext();
842991
-                                    if ( xSelContext.is() )
842991
-                                    {
842991
-                                        if ( xSelContext->getAccessibleRole() == AccessibleRole::TABLE_CELL )
842991
-                                        {
842991
-                                            aSequence[nParaCount] <<= xSel;
842991
-                                            nParaCount++;
842991
-                                        }
842991
-                                    }
842991
-                                }
842991
-                            }
842991
-                            return aSequence;
842991
-                        }
842991
-                    }
842991
-                }
842991
-            }
842991
-        }
842991
-    }
842991
-    uno::Sequence <uno::Any> aEmpty;
842991
-    return aEmpty;
842991
-}
842991
-
842991
-css::uno::Sequence< css::uno::Any >
842991
-        SAL_CALL ScAccessibleDocument::getAccFlowTo(const css::uno::Any& rAny, sal_Int32 nType)
842991
-{
842991
-    SolarMutexGuard g;
842991
-
842991
-    if (nType == AccessibilityFlowTo::FORSPELLCHECKFLOWTO)
842991
-    {
842991
-        uno::Reference< css::drawing::XShape > xShape;
842991
-        rAny >>= xShape;
842991
-        if ( xShape.is() )
842991
-        {
842991
-            uno::Reference < XAccessible > xAcc = mpChildrenShapes->GetAccessibleCaption(xShape);
842991
-            uno::Reference < XAccessibleSelection > xAccSelection( xAcc, uno::UNO_QUERY );
842991
-            if ( xAccSelection.is() )
842991
-            {
842991
-                if ( xAccSelection->getSelectedAccessibleChildCount() )
842991
-                {
842991
-                    uno::Reference < XAccessible > xSel = xAccSelection->getSelectedAccessibleChild( 0 );
842991
-                    if ( xSel.is() )
842991
-                    {
842991
-                        uno::Reference < XAccessibleContext > xSelContext( xSel->getAccessibleContext() );
842991
-                        if ( xSelContext.is() )
842991
-                        {
842991
-                            //if in sw we find the selected paragraph here
842991
-                            if ( xSelContext->getAccessibleRole() == AccessibleRole::PARAGRAPH )
842991
-                            {
842991
-                                uno::Sequence<uno::Any> aRet( 1 );
842991
-                                aRet[0] <<= xSel;
842991
-                                return aRet;
842991
-                            }
842991
-                        }
842991
-                    }
842991
-                }
842991
-            }
842991
-        }
842991
-        else
842991
-        {
842991
-            if ( getSelectedAccessibleChildCount() )
842991
-            {
842991
-                uno::Reference < XAccessible > xSel = getSelectedAccessibleChild( 0 );
842991
-                if ( xSel.is() )
842991
-                {
842991
-                    uno::Reference < XAccessibleContext > xSelContext( xSel->getAccessibleContext() );
842991
-                    if ( xSelContext.is() )
842991
-                    {
842991
-                        uno::Reference < XAccessibleSelection > xAccChildSelection( xSel, uno::UNO_QUERY );
842991
-                        if ( xAccChildSelection.is() )
842991
-                        {
842991
-                            if ( xAccChildSelection->getSelectedAccessibleChildCount() )
842991
-                            {
842991
-                                uno::Reference < XAccessible > xChildSel = xAccChildSelection->getSelectedAccessibleChild( 0 );
842991
-                                if ( xChildSel.is() )
842991
-                                {
842991
-                                    uno::Reference < css::accessibility::XAccessibleContext > xChildSelContext( xChildSel->getAccessibleContext() );
842991
-                                    if ( xChildSelContext.is() &&
842991
-                                        xChildSelContext->getAccessibleRole() == css::accessibility::AccessibleRole::PARAGRAPH )
842991
-                                    {
842991
-                                        uno::Sequence<uno::Any> aRet( 1 );
842991
-                                        aRet[0] <<= xChildSel;
842991
-                                        return aRet;
842991
-                                    }
842991
-                                }
842991
-                            }
842991
-                        }
842991
-                    }
842991
-                }
842991
-            }
842991
-        }
842991
-    }
842991
-    else if (nType == AccessibilityFlowTo::FORFINDREPLACEFLOWTO_ITEM || nType == AccessibilityFlowTo::FORFINDREPLACEFLOWTO_RANGE)
842991
-    {
842991
-        bool bSuccess(false);
842991
-        rAny >>= bSuccess;
842991
-        if ( bSuccess )
842991
-        {
842991
-            if (nType == AccessibilityFlowTo::FORFINDREPLACEFLOWTO_RANGE)
842991
-            {
842991
-                uno::Sequence< uno::Any> aSeq = GetScAccFlowToSequence();
842991
-                if ( aSeq.hasElements() )
842991
-                {
842991
-                    return aSeq;
842991
-                }
842991
-            }
842991
-
842991
-            if( mpAccessibleSpreadsheet.is() )
842991
-            {
842991
-                uno::Reference < XAccessible > xFindCellAcc = mpAccessibleSpreadsheet->GetActiveCell();
842991
-                // add xFindCellAcc to the return the Sequence
842991
-                uno::Sequence< uno::Any> aSeq2(1);
842991
-                aSeq2[0] <<= xFindCellAcc;
842991
-                return aSeq2;
842991
-            }
842991
-        }
842991
-    }
842991
-    uno::Sequence< uno::Any> aEmpty;
842991
-    return aEmpty;
842991
-}
842991
-
842991
 sal_Int32 SAL_CALL ScAccessibleDocument::getForeground(  )
842991
 {
842991
     return sal_Int32(COL_BLACK);
842991
diff --git a/sc/source/ui/inc/AccessibleDocument.hxx b/sc/source/ui/inc/AccessibleDocument.hxx
842991
index c3441465121c..e2598051974c 100644
842991
--- a/sc/source/ui/inc/AccessibleDocument.hxx
842991
+++ b/sc/source/ui/inc/AccessibleDocument.hxx
842991
@@ -26,7 +26,6 @@
842991
 #include <com/sun/star/view/XSelectionChangeListener.hpp>
842991
 #include <cppuhelper/implbase3.hxx>
842991
 #include <com/sun/star/accessibility/XAccessibleExtendedAttributes.hpp>
842991
-#include <com/sun/star/accessibility/XAccessibleGetAccFlowTo.hpp>
842991
 #include <svx/IAccessibleViewForwarder.hxx>
842991
 
842991
 class ScTabViewShell;
842991
@@ -52,7 +51,6 @@ typedef cppu::ImplHelper3< css::accessibility::XAccessibleSelection,
842991
 class ScAccessibleDocument
842991
     :   public ScAccessibleDocumentBase,
842991
         public ScAccessibleDocumentImpl,
842991
-        public css::accessibility::XAccessibleGetAccFlowTo,
842991
         public accessibility::IAccessibleViewForwarder
842991
 {
842991
 public:
842991
@@ -257,11 +255,8 @@ private:
842991
 public:
842991
     ScDocument *GetDocument() const ;
842991
     ScAddress   GetCurCellAddress() const;
842991
-    //=====  XAccessibleGetAccFromXShape  ============================================
842991
-    css::uno::Sequence< css::uno::Any >
842991
-        SAL_CALL getAccFlowTo(const css::uno::Any& rAny, sal_Int32 nType) override;
842991
 
842991
-     virtual sal_Int32 SAL_CALL getForeground(  ) override;
842991
+    virtual sal_Int32 SAL_CALL getForeground(  ) override;
842991
 
842991
     virtual sal_Int32 SAL_CALL getBackground(  ) override;
842991
 };
842991
diff --git a/sc/source/ui/view/tabvwshe.cxx b/sc/source/ui/view/tabvwshe.cxx
842991
index 516cb11e3cba..23e84b6f6dfe 100644
842991
--- a/sc/source/ui/view/tabvwshe.cxx
842991
+++ b/sc/source/ui/view/tabvwshe.cxx
842991
@@ -232,26 +232,7 @@ void ScTabViewShell::ExecSearch( SfxRequest& rReq )
842991
                     const SvxSearchItem* pSearchItem = static_cast<const SvxSearchItem*>(pItem);
842991
 
842991
                     ScGlobal::SetSearchItem( *pSearchItem );
842991
-                    bool bSuccess = SearchAndReplace( pSearchItem, true, rReq.IsAPI() );
842991
-                    SfxChildWindow* pChildWindow = SfxViewFrame::Current()->GetChildWindow(
842991
-                            SvxSearchDialogWrapper::GetChildWindowId());
842991
-                    if (pChildWindow)
842991
-                    {
842991
-                        SvxSearchDialog* pSearchDlg = static_cast<SvxSearchDialog*>(pChildWindow->GetController().get());
842991
-                        if( pSearchDlg )
842991
-                        {
842991
-                            ScTabView* pTabView = GetViewData().GetView();
842991
-                            if( pTabView )
842991
-                            {
842991
-                                vcl::Window* pWin = pTabView->GetActiveWin();
842991
-                                if( pWin )
842991
-                                {
842991
-                                    pSearchDlg->SetDocWin( pWin, pSearchItem->GetCommand() );
842991
-                                    pSearchDlg->SetSrchFlag( bSuccess );
842991
-                                }
842991
-                            }
842991
-                        }
842991
-                    }
842991
+                    SearchAndReplace( pSearchItem, true, rReq.IsAPI() );
842991
                     rReq.Done();
842991
                 }
842991
             }
842991
@@ -303,25 +284,6 @@ void ScTabViewShell::ExecSearch( SfxRequest& rReq )
842991
                             rReq.IsAPI() ? SfxCallMode::API|SfxCallMode::SYNCHRON :
842991
                                             SfxCallMode::RECORD,
842991
                             { &aSearchItem });
842991
-                    SfxChildWindow* pChildWindow = SfxViewFrame::Current()->GetChildWindow(
842991
-                            SvxSearchDialogWrapper::GetChildWindowId());
842991
-                    if (pChildWindow)
842991
-                    {
842991
-                        SvxSearchDialog* pSearchDlg = static_cast<SvxSearchDialog*>(pChildWindow->GetController().get());
842991
-                        if( pSearchDlg )
842991
-                        {
842991
-                            ScTabView* pTabView = GetViewData().GetView();
842991
-                            if( pTabView )
842991
-                            {
842991
-                                vcl::Window* pWin = pTabView->GetActiveWin();
842991
-                                if( pWin )
842991
-                                {
842991
-                                    pSearchDlg->SetDocWin( pWin, aSearchItem.GetCommand() );
842991
-                                    pSearchDlg->SetSrchFlag(false);
842991
-                                }
842991
-                            }
842991
-                        }
842991
-                    }
842991
                 }
842991
                 else
842991
                 {
842991
diff --git a/sd/IwyuFilter_sd.yaml b/sd/IwyuFilter_sd.yaml
842991
index 930f081dd117..f1573298c194 100644
842991
--- a/sd/IwyuFilter_sd.yaml
842991
+++ b/sd/IwyuFilter_sd.yaml
842991
@@ -145,7 +145,6 @@ blacklist:
842991
     sd/source/ui/inc/AccessibleDocumentViewBase.hxx:
842991
     # base class has to be a complete type
842991
     - com/sun/star/accessibility/XAccessibleExtendedAttributes.hpp
842991
-    - com/sun/star/accessibility/XAccessibleGetAccFlowTo.hpp
842991
     - com/sun/star/awt/XFocusListener.hpp
842991
     - com/sun/star/awt/XWindowListener.hpp
842991
     - com/sun/star/beans/XPropertyChangeListener.hpp
842991
diff --git a/sd/source/ui/accessibility/AccessibleDocumentViewBase.cxx b/sd/source/ui/accessibility/AccessibleDocumentViewBase.cxx
842991
index c271e70718cb..60cff2911b8b 100644
842991
--- a/sd/source/ui/accessibility/AccessibleDocumentViewBase.cxx
842991
+++ b/sd/source/ui/accessibility/AccessibleDocumentViewBase.cxx
842991
@@ -381,7 +381,6 @@ uno::Any SAL_CALL
842991
             static_cast<awt::XWindowListener*>(this),
842991
             static_cast<awt::XFocusListener*>(this)
842991
            ,static_cast<XAccessibleExtendedAttributes*>(this)
842991
-           ,static_cast<XAccessibleGetAccFlowTo*>(this)
842991
             );
842991
     return aReturn;
842991
 }
842991
@@ -765,14 +764,6 @@ uno::Any SAL_CALL AccessibleDocumentViewBase::getExtendedAttributes()
842991
     return anyAtrribute;
842991
 }
842991
 
842991
-css::uno::Sequence< css::uno::Any >
842991
-        SAL_CALL AccessibleDocumentViewBase::getAccFlowTo(const css::uno::Any&, sal_Int32 )
842991
-{
842991
-    css::uno::Sequence< uno::Any> aRet;
842991
-
842991
-    return aRet;
842991
-}
842991
-
842991
 sal_Int32 SAL_CALL AccessibleDocumentViewBase::getForeground(  )
842991
 {
842991
     return sal_Int32(COL_BLACK);
842991
diff --git a/sd/source/ui/accessibility/AccessibleDrawDocumentView.cxx b/sd/source/ui/accessibility/AccessibleDrawDocumentView.cxx
842991
index e178d93e7baf..6b644bc439d7 100644
842991
--- a/sd/source/ui/accessibility/AccessibleDrawDocumentView.cxx
842991
+++ b/sd/source/ui/accessibility/AccessibleDrawDocumentView.cxx
842991
@@ -30,7 +30,6 @@
842991
 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
842991
 #include <com/sun/star/view/XSelectionSupplier.hpp>
842991
 #include <cppuhelper/queryinterface.hxx>
842991
-#include <comphelper/accflowenum.hxx>
842991
 #include <comphelper/processfactory.hxx>
842991
 #include <sal/log.hxx>
842991
 #include <tools/debug.hxx>
842991
@@ -739,156 +738,6 @@ void SAL_CALL AccessibleDrawDocumentView::disposing()
842991
     AccessibleDocumentViewBase::disposing ();
842991
 }
842991
 
842991
-css::uno::Sequence< css::uno::Any >
842991
-        SAL_CALL AccessibleDrawDocumentView::getAccFlowTo(const css::uno::Any& rAny, sal_Int32 nType)
842991
-{
842991
-    SolarMutexGuard g;
842991
-
842991
-    if (nType == AccessibilityFlowTo::FORSPELLCHECKFLOWTO)
842991
-    {
842991
-        uno::Reference< css::drawing::XShape > xShape;
842991
-        rAny >>= xShape;
842991
-        if ( mpChildrenManager && xShape.is() )
842991
-        {
842991
-            uno::Reference < XAccessible > xAcc = mpChildrenManager->GetChild(xShape);
842991
-            uno::Reference < XAccessibleSelection > xAccSelection( xAcc, uno::UNO_QUERY );
842991
-            if ( xAccSelection.is() )
842991
-            {
842991
-                if ( xAccSelection->getSelectedAccessibleChildCount() )
842991
-                {
842991
-                    uno::Reference < XAccessible > xSel = xAccSelection->getSelectedAccessibleChild( 0 );
842991
-                    if ( xSel.is() )
842991
-                    {
842991
-                        uno::Reference < XAccessibleContext > xSelContext( xSel->getAccessibleContext() );
842991
-                        if ( xSelContext.is() )
842991
-                        {
842991
-                            //if in sw we find the selected paragraph here
842991
-                            if ( xSelContext->getAccessibleRole() == AccessibleRole::PARAGRAPH )
842991
-                            {
842991
-                                uno::Sequence<uno::Any> aRet( 1 );
842991
-                                aRet[0] <<= xSel;
842991
-                                return aRet;
842991
-                            }
842991
-                        }
842991
-                    }
842991
-                }
842991
-            }
842991
-            uno::Reference<XAccessible> xPara = GetSelAccContextInTable();
842991
-            if ( xPara.is() )
842991
-            {
842991
-                uno::Sequence<uno::Any> aRet( 1 );
842991
-                aRet[0] <<= xPara;
842991
-                return aRet;
842991
-            }
842991
-        }
842991
-        else
842991
-        {
842991
-            goto Rt;
842991
-        }
842991
-    }
842991
-    else if (nType == AccessibilityFlowTo::FORFINDREPLACEFLOWTO_ITEM || nType == AccessibilityFlowTo::FORFINDREPLACEFLOWTO_RANGE)
842991
-    {
842991
-        sal_Int32 nChildCount = getSelectedAccessibleChildCount();
842991
-        if ( nChildCount )
842991
-        {
842991
-            uno::Reference < XAccessible > xSel = getSelectedAccessibleChild( 0 );
842991
-            if ( xSel.is() )
842991
-            {
842991
-                uno::Reference < XAccessibleSelection > xAccChildSelection( xSel, uno::UNO_QUERY );
842991
-                if ( xAccChildSelection.is() )
842991
-                {
842991
-                    if ( xAccChildSelection->getSelectedAccessibleChildCount() )
842991
-                    {
842991
-                        uno::Reference < XAccessible > xChildSel = xAccChildSelection->getSelectedAccessibleChild( 0 );
842991
-                        if ( xChildSel.is() )
842991
-                        {
842991
-                            uno::Reference < XAccessibleContext > xChildSelContext( xChildSel->getAccessibleContext() );
842991
-                            if ( xChildSelContext.is() &&
842991
-                                xChildSelContext->getAccessibleRole() == AccessibleRole::PARAGRAPH )
842991
-                            {
842991
-                                uno::Sequence<uno::Any> aRet( 1 );
842991
-                                aRet[0] <<= xChildSel;
842991
-                                return aRet;
842991
-                            }
842991
-                        }
842991
-                    }
842991
-                }
842991
-            }
842991
-        }
842991
-        else
842991
-        {
842991
-            uno::Reference<XAccessible> xPara = GetSelAccContextInTable();
842991
-            if ( xPara.is() )
842991
-            {
842991
-                uno::Sequence<uno::Any> aRet( 1 );
842991
-                aRet[0] <<= xPara;
842991
-                return aRet;
842991
-            }
842991
-        }
842991
-    }
842991
-
842991
-Rt:
842991
-    css::uno::Sequence< uno::Any> aRet;
842991
-    return aRet;
842991
-}
842991
-uno::Reference<XAccessible> AccessibleDrawDocumentView::GetSelAccContextInTable()
842991
-{
842991
-    uno::Reference<XAccessible> xRet;
842991
-    sal_Int32 nCount = mpChildrenManager ? mpChildrenManager->GetChildCount() : 0;
842991
-    if ( nCount )
842991
-    {
842991
-        for ( sal_Int32 i = 0; i < nCount; i++ )
842991
-        {
842991
-            try
842991
-            {
842991
-                uno::Reference<XAccessible> xObj = mpChildrenManager->GetChild(i);
842991
-                if ( xObj.is() )
842991
-                {
842991
-                    uno::Reference<XAccessibleContext> xObjContext( xObj, uno::UNO_QUERY );
842991
-                    if ( xObjContext.is() && xObjContext->getAccessibleRole() == AccessibleRole::TABLE )
842991
-                    {
842991
-                        uno::Reference<XAccessibleSelection> xObjSelection( xObj, uno::UNO_QUERY );
842991
-                        if ( xObjSelection.is() && xObjSelection->getSelectedAccessibleChildCount() )
842991
-                        {
842991
-                            uno::Reference<XAccessible> xCell = xObjSelection->getSelectedAccessibleChild(0);
842991
-                            if ( xCell.is() )
842991
-                            {
842991
-                                uno::Reference<XAccessibleSelection> xCellSel( xCell, uno::UNO_QUERY );
842991
-                                if ( xCellSel.is() && xCellSel->getSelectedAccessibleChildCount() )
842991
-                                {
842991
-                                    uno::Reference<XAccessible> xPara = xCellSel->getSelectedAccessibleChild( 0 );
842991
-                                    if ( xPara.is() )
842991
-                                    {
842991
-                                        uno::Reference<XAccessibleContext> xParaContext( xPara, uno::UNO_QUERY );
842991
-                                        if ( xParaContext.is() &&
842991
-                                            xParaContext->getAccessibleRole() == AccessibleRole::PARAGRAPH )
842991
-                                        {
842991
-                                            xRet = xPara;
842991
-                                            return xRet;
842991
-                                        }
842991
-                                    }
842991
-                                }
842991
-                            }
842991
-                        }
842991
-                    }
842991
-                }
842991
-            }
842991
-            catch (const lang::IndexOutOfBoundsException&)
842991
-            {
842991
-                uno::Reference<XAccessible> xEmpty;
842991
-                return xEmpty;
842991
-            }
842991
-            catch (const uno::RuntimeException&)
842991
-            {
842991
-                uno::Reference<XAccessible> xEmpty;
842991
-                return xEmpty;
842991
-            }
842991
-        }
842991
-    }
842991
-
842991
-    return xRet;
842991
-}
842991
-
842991
 void AccessibleDrawDocumentView::UpdateAccessibleName()
842991
 {
842991
     OUString sNewName (CreateAccessibleName());
842991
diff --git a/sd/source/ui/inc/AccessibleDocumentViewBase.hxx b/sd/source/ui/inc/AccessibleDocumentViewBase.hxx
842991
index ee2acf119ce4..b29cc9533757 100644
842991
--- a/sd/source/ui/inc/AccessibleDocumentViewBase.hxx
842991
+++ b/sd/source/ui/inc/AccessibleDocumentViewBase.hxx
842991
@@ -33,7 +33,6 @@
842991
 #include <tools/link.hxx>
842991
 
842991
 #include <com/sun/star/accessibility/XAccessibleExtendedAttributes.hpp>
842991
-#include <com/sun/star/accessibility/XAccessibleGetAccFlowTo.hpp>
842991
 
842991
 #include "Window.hxx"
842991
 
842991
@@ -87,8 +86,7 @@ class AccessibleDocumentViewBase
842991
         public css::beans::XPropertyChangeListener,
842991
         public css::awt::XWindowListener,
842991
         public css::awt::XFocusListener,
842991
-        public css::accessibility::XAccessibleExtendedAttributes,
842991
-        public css::accessibility::XAccessibleGetAccFlowTo
842991
+        public css::accessibility::XAccessibleExtendedAttributes
842991
 {
842991
 public:
842991
     //=====  internal  ========================================================
842991
@@ -313,9 +311,6 @@ protected:
842991
     */
842991
     void SetAccessibleOLEObject (
842991
         const css::uno::Reference<css::accessibility::XAccessible>& xOLEObject);
842991
-    //=====  XAccessibleGetAccFromXShape  ============================================
842991
-    css::uno::Sequence< css::uno::Any >
842991
-        SAL_CALL getAccFlowTo(const css::uno::Any& rAny, sal_Int32 nType) override;
842991
 
842991
 public:
842991
     void SwitchViewActivated() { Activated(); }
842991
diff --git a/sd/source/ui/inc/AccessibleDrawDocumentView.hxx b/sd/source/ui/inc/AccessibleDrawDocumentView.hxx
842991
index fd8b42f7161f..15097459bf76 100644
842991
--- a/sd/source/ui/inc/AccessibleDrawDocumentView.hxx
842991
+++ b/sd/source/ui/inc/AccessibleDrawDocumentView.hxx
842991
@@ -158,12 +158,6 @@ private:
842991
 
842991
     virtual void impl_dispose() override;
842991
 
842991
-    //=====  XAccessibleGetAccFromXShape  ============================================
842991
-    css::uno::Sequence< css::uno::Any >
842991
-        SAL_CALL getAccFlowTo(const css::uno::Any& rAny, sal_Int32 nType) override;
842991
-    css::uno::Reference< css::accessibility::XAccessible >
842991
-        GetSelAccContextInTable();
842991
-
842991
     void UpdateAccessibleName();
842991
 };
842991
 
842991
diff --git a/sd/source/ui/view/Outliner.cxx b/sd/source/ui/view/Outliner.cxx
842991
index f2094296fa0f..71e4391e3d7a 100644
842991
--- a/sd/source/ui/view/Outliner.cxx
842991
+++ b/sd/source/ui/view/Outliner.cxx
842991
@@ -501,17 +501,6 @@ bool SdOutliner::StartSearchAndReplace (const SvxSearchItem* pSearchItem)
842991
             }
842991
             mnStartPageIndex = sal_uInt16(-1);
842991
         }
842991
-
842991
-        SfxChildWindow *pChildWin =
842991
-            SfxViewFrame::Current()->GetChildWindow(
842991
-            SvxSearchDialogWrapper::GetChildWindowId());
842991
-        if (pChildWin)
842991
-        {
842991
-            SvxSearchDialog* pSearchDlg =
842991
-                static_cast<SvxSearchDialog*>(pChildWin->GetController().get());
842991
-            pSearchDlg->SetDocWin( pViewShell->GetActiveWindow(), nCommand );
842991
-            pSearchDlg->SetSrchFlag(false);
842991
-        }
842991
     }
842991
     else
842991
         mpDrawDocument->GetDocSh()->SetWaitCursor( false );
842991
diff --git a/svx/source/dialog/srchdlg.cxx b/svx/source/dialog/srchdlg.cxx
842991
index 445bc318718b..7501bcb6f9fd 100644
842991
--- a/svx/source/dialog/srchdlg.cxx
842991
+++ b/svx/source/dialog/srchdlg.cxx
842991
@@ -36,9 +36,6 @@
842991
 #include <svl/cjkoptions.hxx>
842991
 #include <svl/ctloptions.hxx>
842991
 #include <com/sun/star/awt/XWindow.hpp>
842991
-#include <com/sun/star/accessibility/AccessibleRelation.hpp>
842991
-#include <com/sun/star/accessibility/AccessibleRelationType.hpp>
842991
-#include <com/sun/star/accessibility/XAccessibleGetAccFlowTo.hpp>
842991
 #include <com/sun/star/container/XNameAccess.hpp>
842991
 #include <com/sun/star/frame/XDispatch.hpp>
842991
 #include <com/sun/star/frame/XDispatchProvider.hpp>
842991
@@ -48,7 +45,6 @@
842991
 #include <com/sun/star/configuration/theDefaultProvider.hpp>
842991
 #include <com/sun/star/frame/ModuleManager.hpp>
842991
 #include <com/sun/star/ui/XUIElement.hpp>
842991
-#include <comphelper/accflowenum.hxx>
842991
 #include <comphelper/processfactory.hxx>
842991
 #include <comphelper/scopeguard.hxx>
842991
 #include <svl/itempool.hxx>
842991
@@ -263,7 +259,6 @@ void SearchAttrItemList::Remove(size_t nPos)
842991
 SvxSearchDialog::SvxSearchDialog(weld::Window* pParent, SfxChildWindow* pChildWin, SfxBindings& rBind)
842991
     : SfxModelessDialogController(&rBind, pChildWin, pParent,
842991
                                   "svx/ui/findreplacedialog.ui", "FindReplaceDialog")
842991
-    , mbSuccess(false)
842991
     , rBindings(rBind)
842991
     , bWriter(false)
842991
     , bSearch(true)
842991
@@ -2292,58 +2287,6 @@ void SvxSearchDialog::SaveToModule_Impl()
842991
     rBindings.GetDispatcher()->Execute( SID_SEARCH_ITEM, SfxCallMode::SLOT, ppArgs );
842991
 }
842991
 
842991
-void SvxSearchDialog::SetDocWin(vcl::Window* pDocWin, SvxSearchCmd eCommand)
842991
-{
842991
-    m_xDialog->clear_extra_accessible_relations();
842991
-
842991
-    if (!pDocWin)
842991
-        return;
842991
-
842991
-    Reference<css::accessibility::XAccessible> xDocAcc = pDocWin->GetAccessible();
842991
-    if (!xDocAcc.is())
842991
-    {
842991
-        return;
842991
-    }
842991
-    Reference<css::accessibility::XAccessibleGetAccFlowTo> xGetAccFlowTo(xDocAcc, UNO_QUERY);
842991
-    if (!xGetAccFlowTo.is())
842991
-    {
842991
-        return;
842991
-    }
842991
-
842991
-    /* tdf#128313 FlowTo tries to set an a11y relation between the search dialog
842991
-       and its results. But for "find/replace" within a calc column we don't
842991
-       want to return the entire column as the result, we want the current cell.
842991
-
842991
-       But with search/all we do want the new multi-cellselection as the result.
842991
-    */
842991
-    AccessibilityFlowTo eFlowTo(AccessibilityFlowTo::FORFINDREPLACEFLOWTO_ITEM);
842991
-    switch (eCommand)
842991
-    {
842991
-        case SvxSearchCmd::FIND:
842991
-        case SvxSearchCmd::REPLACE:
842991
-            eFlowTo = AccessibilityFlowTo::FORFINDREPLACEFLOWTO_ITEM;
842991
-            break;
842991
-        case SvxSearchCmd::FIND_ALL:
842991
-        case SvxSearchCmd::REPLACE_ALL:
842991
-            eFlowTo = AccessibilityFlowTo::FORFINDREPLACEFLOWTO_RANGE;
842991
-            break;
842991
-    }
842991
-    uno::Sequence<uno::Any> aAnySeq = xGetAccFlowTo->getAccFlowTo(Any(GetSrchFlag()), eFlowTo);
842991
-
842991
-    sal_Int32 nLen = aAnySeq.getLength();
842991
-    if (nLen)
842991
-    {
842991
-        uno::Sequence<uno::Reference<uno::XInterface>> aSequence(nLen);
842991
-        for (sal_Int32 i = 0; i < nLen; ++i)
842991
-        {
842991
-            uno::Reference < css::accessibility::XAccessible > xAcc;
842991
-            aAnySeq[i] >>= xAcc;
842991
-            aSequence[i] = xAcc;
842991
-        }
842991
-        m_xDialog->add_extra_accessible_relation(css::accessibility::AccessibleRelation(css::accessibility::AccessibleRelationType::CONTENT_FLOWS_TO, aSequence));
842991
-    }
842991
-}
842991
-
842991
 short SvxSearchDialog::executeSubDialog(VclAbstractDialog * dialog) {
842991
     assert(!m_executingSubDialog);
842991
     comphelper::ScopeGuard g([this] { m_executingSubDialog = false; });
842991
diff --git a/sw/source/core/access/accdoc.cxx b/sw/source/core/access/accdoc.cxx
842991
index 4f7f2a81a158..827e4ba0ad16 100644
842991
--- a/sw/source/core/access/accdoc.cxx
842991
+++ b/sw/source/core/access/accdoc.cxx
842991
@@ -24,7 +24,6 @@
842991
 #include <com/sun/star/accessibility/AccessibleStateType.hpp>
842991
 #include <com/sun/star/accessibility/AccessibleEventId.hpp>
842991
 #include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
842991
-#include <comphelper/accflowenum.hxx>
842991
 #include <unotools/accessiblestatesethelper.hxx>
842991
 #include <cppuhelper/typeprovider.hxx>
842991
 #include <sfx2/viewsh.hxx>
842991
@@ -459,11 +458,6 @@ uno::Any SwAccessibleDocument::queryInterface(
842991
         uno::Reference<XAccessibleExtendedAttributes> aAttribute = this;
842991
         aRet <<= aAttribute;
842991
     }
842991
-    else if(rType == cppu::UnoType<XAccessibleGetAccFlowTo>::get())
842991
-    {
842991
-        uno::Reference<XAccessibleGetAccFlowTo> AccFlowTo = this;
842991
-        aRet <<= AccFlowTo;
842991
-    }
842991
     else
842991
         aRet = SwAccessibleContext::queryInterface( rType );
842991
     return aRet;
842991
@@ -758,119 +752,4 @@ sal_Int32 SAL_CALL SwAccessibleDocument::getBackground()
842991
     return sal_Int32(SW_MOD()->GetColorConfig().GetColorValue( ::svtools::DOCCOLOR ).nColor);
842991
 }
842991
 
842991
-css::uno::Sequence< css::uno::Any >
842991
-        SAL_CALL SwAccessibleDocument::getAccFlowTo(const css::uno::Any& rAny, sal_Int32 nType)
842991
-{
842991
-    SolarMutexGuard g;
842991
-
842991
-    SwAccessibleMap* pAccMap = GetMap();
842991
-    if ( !pAccMap )
842991
-    {
842991
-        return uno::Sequence< uno::Any >();
842991
-    }
842991
-
842991
-    if (nType == AccessibilityFlowTo::FORSPELLCHECKFLOWTO)
842991
-    {
842991
-        uno::Reference< css::drawing::XShape > xShape;
842991
-        rAny >>= xShape;
842991
-        if( xShape.is() )
842991
-        {
842991
-            SdrObject* pObj = GetSdrObjectFromXShape(xShape);
842991
-            if( pObj )
842991
-            {
842991
-                uno::Reference<XAccessible> xAcc = pAccMap->GetContext(pObj, this, false);
842991
-                uno::Reference < XAccessibleSelection > xAccSelection( xAcc, uno::UNO_QUERY );
842991
-                if ( xAccSelection.is() )
842991
-                {
842991
-                    try
842991
-                    {
842991
-                        if ( xAccSelection->getSelectedAccessibleChildCount() )
842991
-                        {
842991
-                            uno::Reference < XAccessible > xSel = xAccSelection->getSelectedAccessibleChild( 0 );
842991
-                            if ( xSel.is() )
842991
-                            {
842991
-                                uno::Reference < XAccessibleContext > xSelContext( xSel->getAccessibleContext() );
842991
-                                if ( xSelContext.is() )
842991
-                                {
842991
-                                    //if in sw we find the selected paragraph here
842991
-                                    if ( xSelContext->getAccessibleRole() == AccessibleRole::PARAGRAPH )
842991
-                                    {
842991
-                                        uno::Sequence<uno::Any> aRet( 1 );
842991
-                                        aRet[0] <<= xSel;
842991
-                                        return aRet;
842991
-                                    }
842991
-                                }
842991
-                            }
842991
-                        }
842991
-                    }
842991
-                    catch ( const css::lang::IndexOutOfBoundsException& )
842991
-                    {
842991
-                        return uno::Sequence< uno::Any >();
842991
-                    }
842991
-                    //end of try...catch
842991
-                }
842991
-            }
842991
-        }
842991
-        else
842991
-        {
842991
-            uno::Reference< XAccessible > xAcc = pAccMap->GetCursorContext();
842991
-            SwAccessibleContext *pAccImpl = static_cast< SwAccessibleContext *>( xAcc.get() );
842991
-            if ( pAccImpl && pAccImpl->getAccessibleRole() == AccessibleRole::PARAGRAPH )
842991
-            {
842991
-                uno::Sequence< uno::Any > aRet(1);
842991
-                aRet[0] <<= xAcc;
842991
-                return aRet;
842991
-            }
842991
-        }
842991
-    }
842991
-    else if (nType == AccessibilityFlowTo::FORFINDREPLACEFLOWTO_ITEM || nType == AccessibilityFlowTo::FORFINDREPLACEFLOWTO_RANGE)
842991
-    {
842991
-        SwCursorShell* pCursorShell = GetCursorShell();
842991
-        if ( pCursorShell )
842991
-        {
842991
-            SwPaM *_pStartCursor = pCursorShell->GetCursor(), *_pStartCursor2 = _pStartCursor;
842991
-            std::set<SwFrame*> vFrameList;
842991
-            do
842991
-            {
842991
-                if ( _pStartCursor && _pStartCursor->HasMark() )
842991
-                {
842991
-                    SwContentNode* pContentNode = _pStartCursor->GetContentNode();
842991
-                    SwFrame *const pFrame = pContentNode
842991
-                        ? pContentNode->getLayoutFrame(pCursorShell->GetLayout(), _pStartCursor->GetPoint())
842991
-                        : nullptr;
842991
-                    if ( pFrame )
842991
-                    {
842991
-                        vFrameList.insert( pFrame );
842991
-                    }
842991
-                }
842991
-            }
842991
-
842991
-            while( _pStartCursor && ( (_pStartCursor = _pStartCursor->GetNext()) != _pStartCursor2) );
842991
-
842991
-            if ( !vFrameList.empty() )
842991
-            {
842991
-                uno::Sequence< uno::Any > aRet(vFrameList.size());
842991
-                sal_Int32 nIndex = 0;
842991
-                for ( const auto& rpFrame : vFrameList )
842991
-                {
842991
-                    uno::Reference< XAccessible > xAcc = pAccMap->GetContext(rpFrame, false);
842991
-                    if ( xAcc.is() )
842991
-                    {
842991
-                        SwAccessibleContext *pAccImpl = static_cast< SwAccessibleContext *>( xAcc.get() );
842991
-                        if ( pAccImpl && pAccImpl->getAccessibleRole() == AccessibleRole::PARAGRAPH )
842991
-                        {
842991
-                            aRet[nIndex] <<= xAcc;
842991
-                        }
842991
-                    }
842991
-                    nIndex++;
842991
-                }
842991
-
842991
-                return aRet;
842991
-            }
842991
-        }
842991
-    }
842991
-
842991
-    return uno::Sequence< uno::Any >();
842991
-}
842991
-
842991
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
842991
diff --git a/sw/source/core/access/accdoc.hxx b/sw/source/core/access/accdoc.hxx
842991
index e815ebf3682d..3dc43bc6b6eb 100644
842991
--- a/sw/source/core/access/accdoc.hxx
842991
+++ b/sw/source/core/access/accdoc.hxx
842991
@@ -23,7 +23,6 @@
842991
 #include "acccontext.hxx"
842991
 #include <com/sun/star/accessibility/XAccessibleSelection.hpp>
842991
 #include <com/sun/star/accessibility/XAccessibleExtendedAttributes.hpp>
842991
-#include <com/sun/star/accessibility/XAccessibleGetAccFlowTo.hpp>
842991
 #include "accselectionhelper.hxx"
842991
 
842991
 // base class for SwAccessibleDocument (in this same header file) and
842991
@@ -92,8 +91,7 @@ public:
842991
  */
842991
 class SwAccessibleDocument : public SwAccessibleDocumentBase,
842991
                              public css::accessibility::XAccessibleSelection,
842991
-                             public css::accessibility::XAccessibleExtendedAttributes,
842991
-                             public css::accessibility::XAccessibleGetAccFlowTo
842991
+                             public css::accessibility::XAccessibleExtendedAttributes
842991
 {
842991
     // Implementation for XAccessibleSelection interface
842991
     SwAccessibleSelectionHelper maSelectionHelper;
842991
@@ -170,10 +168,6 @@ public:
842991
 
842991
     // XAccessibleComponent
842991
     sal_Int32 SAL_CALL getBackground() override;
842991
-
842991
-    // XAccessibleGetAccFlowTo
842991
-    css::uno::Sequence< css::uno::Any >
842991
-        SAL_CALL getAccFlowTo(const css::uno::Any& rAny, sal_Int32 nType) override;
842991
 };
842991
 
842991
 #endif
842991
diff --git a/sw/source/uibase/uiview/viewsrch.cxx b/sw/source/uibase/uiview/viewsrch.cxx
842991
index 9bc9944ca36c..2370430d712d 100644
842991
--- a/sw/source/uibase/uiview/viewsrch.cxx
842991
+++ b/sw/source/uibase/uiview/viewsrch.cxx
842991
@@ -249,16 +249,6 @@ void SwView::ExecSearch(SfxRequest& rReq)
842991
                         lcl_emitSearchResultCallbacks(s_pSrchItem, m_pWrtShell.get(), /* bHighlightAll = */ false);
842991
                 }
842991
                 rReq.SetReturnValue(SfxBoolItem(nSlot, bRet));
842991
-#if HAVE_FEATURE_DESKTOP
842991
-                {
842991
-                    pSrchDlg = GetSearchDialog();
842991
-                    if (pSrchDlg)
842991
-                    {
842991
-                        pSrchDlg->SetDocWin(m_pEditWin, eCommand);
842991
-                        pSrchDlg->SetSrchFlag(false);
842991
-                    }
842991
-                }
842991
-#endif
842991
             }
842991
             break;
842991
             case SvxSearchCmd::FIND_ALL:
842991
@@ -282,16 +272,6 @@ void SwView::ExecSearch(SfxRequest& rReq)
842991
                 else if (comphelper::LibreOfficeKit::isActive())
842991
                     lcl_emitSearchResultCallbacks(s_pSrchItem, m_pWrtShell.get(), /* bHighlightAll = */ true);
842991
                 rReq.SetReturnValue(SfxBoolItem(nSlot, bRet));
842991
-#if HAVE_FEATURE_DESKTOP
842991
-                {
842991
-                    pSrchDlg = GetSearchDialog();
842991
-                    if (pSrchDlg)
842991
-                    {
842991
-                        pSrchDlg->SetDocWin(m_pEditWin, eCommand);
842991
-                        pSrchDlg->SetSrchFlag(false);
842991
-                    }
842991
-                }
842991
-#endif
842991
             }
842991
             break;
842991
             case SvxSearchCmd::REPLACE:
842991
@@ -340,16 +320,6 @@ void SwView::ExecSearch(SfxRequest& rReq)
842991
                     s_pSrchItem->SetCommand( nOldCmd );
842991
                     rReq.SetReturnValue(SfxBoolItem(nSlot, bRet));
842991
                 }
842991
-#if HAVE_FEATURE_DESKTOP
842991
-                {
842991
-                    pSrchDlg = GetSearchDialog();
842991
-                    if (pSrchDlg)
842991
-                    {
842991
-                        pSrchDlg->SetDocWin(m_pEditWin, eCommand);
842991
-                        pSrchDlg->SetSrchFlag(false);
842991
-                    }
842991
-                }
842991
-#endif
842991
                 break;
842991
 
842991
             case SvxSearchCmd::REPLACE_ALL:
842991
@@ -409,14 +379,6 @@ void SwView::ExecSearch(SfxRequest& rReq)
842991
                         SvxSearchDialogWrapper::SetSearchLabel(sText);
842991
                     }
842991
                 }
842991
-#if HAVE_FEATURE_DESKTOP
842991
-                pSrchDlg = GetSearchDialog();
842991
-                if (pSrchDlg)
842991
-                {
842991
-                    pSrchDlg->SetDocWin(m_pEditWin, eCommand);
842991
-                    pSrchDlg->SetSrchFlag(false);
842991
-                }
842991
-#endif
842991
                 break;
842991
             }
842991
 
842991
diff --git a/toolkit/source/awt/vclxaccessiblecomponent.cxx b/toolkit/source/awt/vclxaccessiblecomponent.cxx
842991
index f9b55d278655..7c963e83e9b6 100644
842991
--- a/toolkit/source/awt/vclxaccessiblecomponent.cxx
842991
+++ b/toolkit/source/awt/vclxaccessiblecomponent.cxx
842991
@@ -375,9 +375,6 @@ void VCLXAccessibleComponent::FillAccessibleRelationSet( utl::AccessibleRelation
842991
             uno::Sequence< uno::Reference< uno::XInterface > > aSequence { pMemberOf->GetAccessible() };
842991
             rRelationSet.AddRelation( accessibility::AccessibleRelation( accessibility::AccessibleRelationType::MEMBER_OF, aSequence ) );
842991
         }
842991
-
842991
-        for (const auto& rExtraRelation : pWindow->GetExtraAccessibleRelations())
842991
-            rRelationSet.AddRelation(rExtraRelation);
842991
     }
842991
 }
842991
 
842991
diff --git a/vcl/inc/window.h b/vcl/inc/window.h
842991
index 9c3dec48a725..4502770194fa 100644
842991
--- a/vcl/inc/window.h
842991
+++ b/vcl/inc/window.h
842991
@@ -280,7 +280,6 @@ public:
842991
     css::uno::Reference< css::accessibility::XAccessible > mxAccessible;
842991
     std::shared_ptr< VclSizeGroup > m_xSizeGroup;
842991
     std::vector<VclPtr<FixedText>> m_aMnemonicLabels;
842991
-    std::vector<css::accessibility::AccessibleRelation> m_aExtraAccessibleRelations;
842991
     std::unique_ptr<ImplAccessibleInfos> mpAccessibleInfos;
842991
     VCLXWindow*         mpVCLXWindow;
842991
     vcl::Region              maWinRegion;            //< region to 'shape' the VCL window (frame coordinates)
842991
diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx
842991
index fb5c50bd0dda..41ffa6918af5 100644
842991
--- a/vcl/source/app/salvtables.cxx
842991
+++ b/vcl/source/app/salvtables.cxx
842991
@@ -510,16 +510,6 @@ public:
842991
         m_xWidget->SetAccessibleRelationLabelFor(pAtkLabeled);
842991
     }
842991
 
842991
-    virtual void add_extra_accessible_relation(const css::accessibility::AccessibleRelation &rRelation) override
842991
-    {
842991
-        m_xWidget->AddExtraAccessibleRelation(rRelation);
842991
-    }
842991
-
842991
-    virtual void clear_extra_accessible_relations() override
842991
-    {
842991
-        m_xWidget->ClearExtraAccessibleRelations();
842991
-    }
842991
-
842991
     virtual void set_tooltip_text(const OUString& rTip) override
842991
     {
842991
         m_xWidget->SetQuickHelpText(rTip);
842991
diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx
842991
index a5174bb8e367..0b787c288903 100644
842991
--- a/vcl/source/window/window2.cxx
842991
+++ b/vcl/source/window/window2.cxx
842991
@@ -1966,21 +1966,6 @@ const std::vector<VclPtr<FixedText> >& Window::list_mnemonic_labels() const
842991
     return mpWindowImpl->m_aMnemonicLabels;
842991
 }
842991
 
842991
-void Window::AddExtraAccessibleRelation(const css::accessibility::AccessibleRelation &rRelation)
842991
-{
842991
-    mpWindowImpl->m_aExtraAccessibleRelations.push_back(rRelation);
842991
-}
842991
-
842991
-const std::vector<css::accessibility::AccessibleRelation>& Window::GetExtraAccessibleRelations() const
842991
-{
842991
-    return mpWindowImpl->m_aExtraAccessibleRelations;
842991
-}
842991
-
842991
-void Window::ClearExtraAccessibleRelations()
842991
-{
842991
-    mpWindowImpl->m_aExtraAccessibleRelations.clear();
842991
-}
842991
-
842991
 } /* namespace vcl */
842991
 
842991
 void DrawFocusRect(vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect)
842991
diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx
842991
index 844a9f5a493b..9f1adaca77ed 100644
842991
--- a/vcl/unx/gtk3/gtk3gtkinst.cxx
842991
+++ b/vcl/unx/gtk3/gtk3gtkinst.cxx
842991
@@ -1436,7 +1436,7 @@ private:
842991
     gulong m_nDragLeaveSignalId;
842991
 
842991
     rtl::Reference<GtkDropTarget> m_xDropTarget;
842991
-    std::vector<AtkRelation*> m_aExtraAtkRelations;
842991
+    rtl::Reference<GtkDragSource> m_xDragSource;
842991
 
842991
     static void signalSizeAllocate(GtkWidget*, GdkRectangle* allocation, gpointer widget)
842991
     {
842991
@@ -1941,33 +1941,6 @@ public:
842991
         g_object_unref(pRelationSet);
842991
     }
842991
 
842991
-    virtual void add_extra_accessible_relation(const css::accessibility::AccessibleRelation &rRelation) override
842991
-    {
842991
-        AtkObject* pAtkObject = gtk_widget_get_accessible(m_pWidget);
842991
-        if (!pAtkObject)
842991
-            return;
842991
-
842991
-        AtkRelationSet *pRelationSet = atk_object_ref_relation_set(pAtkObject);
842991
-        AtkRelation *pRel = atk_object_wrapper_relation_new(rRelation);
842991
-        m_aExtraAtkRelations.push_back(pRel);
842991
-        atk_relation_set_add(pRelationSet, pRel);
842991
-        g_object_unref(pRel);
842991
-        g_object_unref(pRelationSet);
842991
-    }
842991
-
842991
-    virtual void clear_extra_accessible_relations() override
842991
-    {
842991
-        AtkObject* pAtkObject = gtk_widget_get_accessible(m_pWidget);
842991
-        if (!pAtkObject)
842991
-            return;
842991
-
842991
-        AtkRelationSet *pRelationSet = atk_object_ref_relation_set(pAtkObject);
842991
-        for (AtkRelation* pRel : m_aExtraAtkRelations)
842991
-            atk_relation_set_remove(pRelationSet, pRel);
842991
-        m_aExtraAtkRelations.clear();
842991
-        g_object_unref(pRelationSet);
842991
-    }
842991
-
842991
     virtual bool get_extents_relative_to(weld::Widget& rRelative, int& x, int &y, int& width, int &height) override
842991
     {
842991
         //for toplevel windows this is sadly futile under wayland, so we can't tell where a dialog is in order to allow
842991
-- 
842991
2.25.4
842991