[Libreoffice-commits] core.git: svx/source
Tomaž Vajngerl (via logerrit)
logerrit at kemper.freedesktop.org
Mon Feb 1 06:51:55 UTC 2021
svx/source/devtools/DevelopmentToolDockingWindow.cxx | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
New commits:
commit 2235d2874f0a58df1249ca8def2f398020fbfd42
Author: Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
AuthorDate: Wed Jan 27 21:58:24 2021 +0900
Commit: Tomaž Vajngerl <quikee at 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 <quikee at 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());
More information about the Libreoffice-commits
mailing list