From ed5640d8b587fbcfed7dd7967f3de04b37a76f26 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:06:44 +0200 Subject: Adding upstream version 4:7.4.7. Signed-off-by: Daniel Baumann --- .../source/text/sbasic/shared/thisdbdoc.xhp | 52 ++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 helpcontent2/source/text/sbasic/shared/thisdbdoc.xhp (limited to 'helpcontent2/source/text/sbasic/shared/thisdbdoc.xhp') diff --git a/helpcontent2/source/text/sbasic/shared/thisdbdoc.xhp b/helpcontent2/source/text/sbasic/shared/thisdbdoc.xhp new file mode 100644 index 000000000..8f4a1c61c --- /dev/null +++ b/helpcontent2/source/text/sbasic/shared/thisdbdoc.xhp @@ -0,0 +1,52 @@ + + + + + + ThisDatabaseDocument object + /text/sbasic/shared/thisdbdoc.xhp + + + + +
+ + ThisDatabaseDocument + API; Database document + +

ThisDatabaseDocument object

+ ThisDatabaseDocument addresses the active Base document whose properties can be read and set, and whose methods can be called. + ThisDatabaseDocument returns an object of type com.sun.star.sdb.XOfficeDatabaseDocument. +
+ + + + ThisDatabaseDocument + + When the active window does not relate to a Base document, ThisDatabaseDocument returns Nothing. + When the active window is the Basic IDE, ThisDatabaseDocument object returns the database owning the current script. + + + Opening current database "formName" and maximizing it can be achieved as shown: + + Dim form As Object + ThisDatabaseDocument.CurrentController.connect("","") + form = ThisDatabaseDocument.FormDocuments.getByName("formName").open ) + form.currentController.frame.ContainerWindow.IsMaximized = True + + +
+ ThisComponent object + com.sun.star.sdb.OfficeDatabaseDocument API service + com.sun.star.document.OfficeDocument API service +
+ + +
-- cgit v1.2.3