diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2021-03-04 22:19:11 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2021-03-12 16:01:49 +0100 |
commit | d1d7390596400aaeb401e98f6ba7242742b0921a (patch) | |
tree | 1681920fb188feee938aa390566a95f6c12b5ccf | |
parent | ee88afa23e86c20a355ccf00e5d7321d44ad56db (diff) |
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 <quikee@gmail.com>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
-rw-r--r-- | sfx2/source/devtools/ObjectInspectorTreeHandler.cxx | 11 |
1 files changed, 8 insertions, 3 deletions
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 }, |