summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-10-23 14:58:43 +0100
committerMichael Stahl <michael.stahl@cib.de>2019-10-24 14:15:53 +0200
commit66397e67829f2f502b9b6799dab16fa9a5390020 (patch)
treec7edcce0d5372a7ebed71c538bfb2d713c7bdabd /include
parenttdf#128077 crash with calc dialogs and multiple windows (diff)
downloadcore-66397e67829f2f502b9b6799dab16fa9a5390020.tar.gz
core-66397e67829f2f502b9b6799dab16fa9a5390020.zip
Resolves: tdf#128313 disambiguate flow-to search results
for a11y between find/replace where our result is a single thing, and find-all/replace-all where the result is potentially many things, which allows that searching in a selected calc column will flow-to the current cell, not the entire ~infinite set of cells in the column plus commit... put together the 'magic' flow-to constants as a side note, there's no actual use of FORSPELLCHECKFLOWTO anywhere that I can see Change-Id: Ib3e56fceb90d869f157427f090cdffe986a5a588 Reviewed-on: https://gerrit.libreoffice.org/81397 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@cib.de>
Diffstat (limited to 'include')
-rw-r--r--include/comphelper/accflowenum.hxx34
-rw-r--r--include/svx/srchdlg.hxx3
2 files changed, 36 insertions, 1 deletions
diff --git a/include/comphelper/accflowenum.hxx b/include/comphelper/accflowenum.hxx
new file mode 100644
index 000000000000..fc6b7ea2d8ec
--- /dev/null
+++ b/include/comphelper/accflowenum.hxx
@@ -0,0 +1,34 @@
+/* -*- 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 .
+ */
+
+#ifndef INCLUDED_COMPHELPER_ACCFLOWENUM_HXX
+#define INCLUDED_COMPHELPER_ACCFLOWENUM_HXX
+
+#include <sal/types.h>
+
+enum AccessibilityFlowTo : sal_Int32
+{
+ FORSPELLCHECKFLOWTO = 1,
+ FORFINDREPLACEFLOWTO_ITEM = 2,
+ FORFINDREPLACEFLOWTO_RANGE = 3
+};
+
+#endif // INCLUDED_COMPHELPER_ACCFLOWENUM_HXX
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/svx/srchdlg.hxx b/include/svx/srchdlg.hxx
index 3d19b6e7cae5..01f5b07663d5 100644
--- a/include/svx/srchdlg.hxx
+++ b/include/svx/srchdlg.hxx
@@ -22,6 +22,7 @@
#include <sfx2/childwin.hxx>
#include <sfx2/basedlgs.hxx>
#include <svl/srchdefs.hxx>
+#include <svl/srchitem.hxx>
#include <svl/itempool.hxx>
#include <svx/svxdllapi.h>
#include <memory>
@@ -125,7 +126,7 @@ public:
TransliterationFlags GetTransliterationFlags() const;
- void SetDocWin(vcl::Window* pDocWin);
+ void SetDocWin(vcl::Window* pDocWin, SvxSearchCmd eCommand);
void SetSrchFlag( bool bSuccess ) { mbSuccess = bSuccess; }
bool GetSrchFlag() { return mbSuccess; }
void SetSaveToModule(bool b);