From 857a33404626f8df04882478d026969691624cbb Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Wed, 7 Mar 2018 13:12:01 +0200 Subject: Add Caption property to ooo::vba::XApplicationBase Implementation is just a dummy, though. At first I thought that it would work to get the XModel of the "current" document (as returned by getCurrentDocument()), and then get the XFrame of that, and then use the XFrame's getName() and setName(). But, it seems that getCurrentDocument() and what it calls is tightly coupled to StarBasic, and it doesn't do anything sane in the case of Automation clients. Change-Id: I74ded5114ecce06e72862f69d0c06d963e55fd75 Reviewed-on: https://gerrit.libreoffice.org/55064 Tested-by: Jenkins Reviewed-by: Tor Lillqvist --- oovbaapi/ooo/vba/XApplicationBase.idl | 1 + 1 file changed, 1 insertion(+) (limited to 'oovbaapi') diff --git a/oovbaapi/ooo/vba/XApplicationBase.idl b/oovbaapi/ooo/vba/XApplicationBase.idl index 90ba919407d4..4df45daad53e 100644 --- a/oovbaapi/ooo/vba/XApplicationBase.idl +++ b/oovbaapi/ooo/vba/XApplicationBase.idl @@ -32,6 +32,7 @@ interface XApplicationBase [attribute] boolean DisplayStatusBar; [attribute] boolean Interactive; [attribute] boolean Visible; + [attribute] string Caption; [attribute, readonly] string Version; [attribute, readonly] any VBE; -- cgit v1.2.3