svx/source/devtools/DevelopmentToolDockingWindow.cxx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+)
New commits: commit 2235d2874f0a58df1249ca8def2f398020fbfd42 Author: Tomaž Vajngerl <tomaz.vajng...@collabora.co.uk> AuthorDate: Wed Jan 27 21:58:24 2021 +0900 Commit: Tomaž Vajngerl <qui...@gmail.com> CommitDate: Mon Feb 1 07:51:09 2021 +0100 devtools: show list of interfaces for the object in the inspector Change-Id: I2b0ff5b272a7d3b2ca2d76edfc6929f789277faa Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110118 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <qui...@gmail.com> diff --git a/svx/source/devtools/DevelopmentToolDockingWindow.cxx b/svx/source/devtools/DevelopmentToolDockingWindow.cxx index d5f5a1ca0be1..407900704a3b 100644 --- a/svx/source/devtools/DevelopmentToolDockingWindow.cxx +++ b/svx/source/devtools/DevelopmentToolDockingWindow.cxx @@ -208,6 +208,25 @@ void DevelopmentToolDockingWindow::introspect(uno::Reference<uno::XInterface> co mpClassListBox->set_text_emphasis(*pResult, false, 0); } + { + uno::Reference<lang::XTypeProvider> xTypeProvider(xInterface, uno::UNO_QUERY); + if (xTypeProvider.is()) + { + OUString aTypesString("Interfaces"); + mpClassListBox->insert(nullptr, -1, &aTypesString, nullptr, nullptr, nullptr, false, + pParent.get()); + mpClassListBox->set_text_emphasis(*pParent, true, 0); + + const auto xSequenceTypes = xTypeProvider->getTypes(); + for (auto const& xType : xSequenceTypes) + { + OUString aName = xType.getTypeName(); + mpClassListBox->insert(pParent.get(), -1, &aName, nullptr, nullptr, nullptr, false, + pResult.get()); + } + } + } + OUString aMethodsString("Methods"); mpClassListBox->insert(nullptr, -1, &aMethodsString, nullptr, nullptr, nullptr, false, pParent.get()); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits