summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2021-02-22 09:15:39 +0900
committerTomaž Vajngerl <quikee@gmail.com>2021-02-22 06:29:27 +0100
commit460c778bd483fb0a61c4b0d46f5f876ce80dff26 (patch)
treeae61a40eda1f2ce1d4aad5f19f4692d8d67e9e50 /sfx2
parentfed778b1cf85b100d5744ceffabb08a3d1243271 (diff)
devtools: add implementation class to the methods category
Implementation class is the class where the method is implemented on. Change-Id: Ia415ce96a821b4335e1f378b6b7773548fd3e705 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111293 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/devtools/ObjectInspectorTreeHandler.cxx6
-rw-r--r--sfx2/uiconfig/ui/developmenttool.ui14
2 files changed, 18 insertions, 2 deletions
diff --git a/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx b/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx
index 39f2d70eb06a..e672d256fbe6 100644
--- a/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx
+++ b/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx
@@ -301,12 +301,11 @@ public:
std::vector<std::pair<sal_Int32, OUString>> getColumnValues() override
{
- OUString aInString;
OUString aOutString;
-
auto xClass = mxMethod->getReturnType();
aOutString = simpleTypeName(xClass);
+ OUString aInString;
const auto aParameters = mxMethod->getParameterInfos();
bool bFirst = true;
for (auto const& rParameterInfo : aParameters)
@@ -334,9 +333,12 @@ public:
aInString += rParameterInfo.aName + " : " + simpleTypeName(rParameterInfo.aType);
}
+ OUString aImplementationClass = mxMethod->getDeclaringClass()->getName();
+
return {
{ 1, aOutString },
{ 2, aInString },
+ { 3, aImplementationClass },
};
}
diff --git a/sfx2/uiconfig/ui/developmenttool.ui b/sfx2/uiconfig/ui/developmenttool.ui
index 9dd110804991..3eeb94859885 100644
--- a/sfx2/uiconfig/ui/developmenttool.ui
+++ b/sfx2/uiconfig/ui/developmenttool.ui
@@ -26,6 +26,8 @@
<column type="gchararray"/>
<!-- column-name in -->
<column type="gchararray"/>
+ <!-- column-name impl -->
+ <column type="gchararray"/>
<!-- column-name id -->
<column type="gchararray"/>
</columns>
@@ -407,6 +409,18 @@
</child>
</object>
</child>
+ <child>
+ <object class="GtkTreeViewColumn" id="treeviewcolumn13">
+ <property name="resizable">True</property>
+ <property name="title" translatable="yes" context="developmenttool|implementation_class">Implementation Class</property>
+ <child>
+ <object class="GtkCellRendererText" id="obj_insp_cellrenderertext13"/>
+ <attributes>
+ <attribute name="text">3</attribute>
+ </attributes>
+ </child>
+ </object>
+ </child>
</object>
</child>
</object>