summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorAndreas Heinisch <andreas.heinisch@yahoo.de>2023-07-28 09:37:47 +0200
committerEike Rathke <erack@redhat.com>2023-07-29 20:42:15 +0200
commit0290a06c016186588720d73d6786acdc9f3880e6 (patch)
treea69670e2079e71458fcdf3f4b8539f2eb11a6208 /sc
parentb81829dc7aa94e92818d2545cd28f1ef6c298395 (diff)
tdf#142600 - External links dialog: list database ranges
Regression from commit 462f9d1f589a7afd66d3fc61925467d3b68e5b31 where the database ranges were dropped. Change-Id: Ic0e453fc6fe62849d72b6acf88ed7ebd3c47775b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155009 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins (cherry picked from commit 2f2cd7558e1d01f9670436412d62d03f28bab2c1) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155031
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/miscdlgs/linkarea.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/sc/source/ui/miscdlgs/linkarea.cxx b/sc/source/ui/miscdlgs/linkarea.cxx
index 09cfe6c3c285..6b1716407561 100644
--- a/sc/source/ui/miscdlgs/linkarea.cxx
+++ b/sc/source/ui/miscdlgs/linkarea.cxx
@@ -29,6 +29,7 @@
#include <svtools/sfxecode.hxx>
#include <o3tl/string_view.hxx>
+#include <dbdata.hxx>
#include <linkarea.hxx>
#include <docsh.hxx>
#include <tablink.hxx>
@@ -259,6 +260,13 @@ void ScLinkedAreaDlg::UpdateSourceRanges()
m_xLbRanges->append_text(pRangeData->GetName());
}
}
+ // tdf#142600 - list database ranges
+ if (const auto pDBs = m_pSourceShell->GetDocument().GetDBCollection())
+ {
+ const auto& rNamedDBs = pDBs->getNamedDBs();
+ for (const auto& rNamedDB : rNamedDBs)
+ m_xLbRanges->append_text(rNamedDB->GetName());
+ }
}
m_xLbRanges->thaw();