sfx2/source/devtools/ObjectInspectorTreeHandler.cxx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-)
New commits: commit d1d7390596400aaeb401e98f6ba7242742b0921a Author: Tomaž Vajngerl <tomaz.vajng...@collabora.co.uk> AuthorDate: Thu Mar 4 22:19:11 2021 +0900 Commit: Tomaž Vajngerl <qui...@gmail.com> CommitDate: Fri Mar 12 16:01:49 2021 +0100 devtools: shorter type names, improve sequence type name This change modifies the type names to a shorter form by replacing "com.sun.star" with "css". Sequence type names are also changed so that it shows the number of elements in the type name. Change-Id: I4b3b3d0917478d1e5ce0e7443e9b5118672cb12b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112114 Tested-by: Tomaž Vajngerl <qui...@gmail.com> Reviewed-by: Tomaž Vajngerl <qui...@gmail.com> diff --git a/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx b/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx index 42d5f163e75b..f6a863b24aaf 100644 --- a/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx +++ b/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx @@ -182,7 +182,11 @@ OUString AnyToString(const uno::Any& aValue, const uno::Reference<uno::XComponen return aRetStr; } -OUString getAnyType(const uno::Any& aValue) { return aValue.getValueType().getTypeName(); } +OUString getAnyType(const uno::Any& aValue) +{ + OUString aTypeName = aValue.getValueType().getTypeName(); + return aTypeName.replaceAll("com.sun.star", "css"); +} // Object inspector nodes @@ -460,8 +464,9 @@ public: int nLength = xIdlArray->getLen(maAny); - OUString aValue = "0 to " + OUString::number(nLength - 1); - OUString aType = getAnyType(maAny); + OUString aValue = "<Sequence>"; + OUString aType = getAnyType(maAny).replaceAll(u"[]", u""); + aType += u"[" + OUString::number(nLength) + u"]"; return { { 1, aValue }, _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits