From 2ba8d7ab8af821da34117ecb61bf8bd87e731b53 Mon Sep 17 00:00:00 2001 From: Olivier Hallot Date: Wed, 30 Oct 2019 15:59:18 -0300 Subject: tdf#127716 Add GlobalScope object description Also add BasicLibraries and DialogLibraries Refactor page Add entry in tree Change-Id: I9754af4d98fc6267120c232e1ba366262534b3a7 Reviewed-on: https://gerrit.libreoffice.org/81803 Tested-by: Jenkins Reviewed-by: Olivier Hallot --- source/auxiliary/sbasic.tree | 3 ++ source/text/sbasic/shared/03131900.xhp | 47 +++++++++++-------------------- source/text/sbasic/shared/03132200.xhp | 6 ++-- source/text/sbasic/shared/uno_objects.xhp | 2 ++ 4 files changed, 24 insertions(+), 34 deletions(-) (limited to 'source') diff --git a/source/auxiliary/sbasic.tree b/source/auxiliary/sbasic.tree index 5a6fc17a22..cce09691c3 100644 --- a/source/auxiliary/sbasic.tree +++ b/source/auxiliary/sbasic.tree @@ -60,6 +60,7 @@ Asc Function AscW Function [VBA] Atn Function + BasicLibraries Beep Statement Blue Function CBool Function @@ -118,6 +119,7 @@ DefLng Statement DefObj Statement DefVar Statement + DialogLibraries DimArray Function Dim Statement Dir Function @@ -274,6 +276,7 @@ Switch Function SYD Function [VBA] Tan Function + ThisComponent TimeSerial Function TimeValue Function Time Statement diff --git a/source/text/sbasic/shared/03131900.xhp b/source/text/sbasic/shared/03131900.xhp index ec885a29b0..fbeb284fa7 100644 --- a/source/text/sbasic/shared/03131900.xhp +++ b/source/text/sbasic/shared/03131900.xhp @@ -28,44 +28,29 @@ Sun Microsystems, Inc. -
GlobalScope function library systems LibraryContainer -BasicLibraries (LibraryContainer) -DialogLibraries (LibraryContainer) +GlobalScope +BasicLibraries; library container +DialogLibraries; library container -GlobalScope -Basic source code and dialogs are organized in a library system. +

GlobalScope

+To call a global library container (%PRODUCTNAME Macros or My Macros) from within a document, use the keyword GlobalScope.
- - -The LibraryContainer contains libraries - - -Libraries can contain modules and dialogs - - -In Basic: - - -The LibraryContainer is called BasicLibraries. - - -In dialogs: - - -The LibraryContainer is called DialogLibraries. - - -Both LibraryContainers exist in an application level and within every document. In the document Basic, the document's LibraryContainers are called automatically. If you want to call the global LibraryContainers from within a document, you must use the keyword GlobalScope. -Syntax: - -GlobalScope - -Example: +
+ Basic source code and dialogs are organized in library containers. Libraries can contain modules and dialogs. +
+

In Basic:

+A Basic library is called with BasicLibraries keyword. +

In dialogs:

+A dialog library is called with DialogLibraries keyword. +Both containers exist in an application level and within every document. In the document Basic, the document's library containers are called automatically. If you want to call a global library container (located in %PRODUCTNAME Macros or My Macros) from within a document, you must use the keyword GlobalScope. + +GlobalScope + Example in the document Basic ' calling Dialog1 in the document library Standard diff --git a/source/text/sbasic/shared/03132200.xhp b/source/text/sbasic/shared/03132200.xhp index a4f19ddaeb..6c53deb3b7 100644 --- a/source/text/sbasic/shared/03132200.xhp +++ b/source/text/sbasic/shared/03132200.xhp @@ -20,7 +20,7 @@ - ThisComponent Statement + ThisComponent Object /text/sbasic/shared/03132200.xhp @@ -28,10 +28,10 @@
- ThisComponent property + ThisComponent object components;addressing -ThisComponent Statement +ThisComponent Object Addresses the active component so that its properties can be read and set. ThisComponent is used from document Basic, where it represents the document the Basic belongs to. The type of object accessed by ThisComponent depends on the document type.see i60932
diff --git a/source/text/sbasic/shared/uno_objects.xhp b/source/text/sbasic/shared/uno_objects.xhp index 1b671523a5..760fcd8f54 100644 --- a/source/text/sbasic/shared/uno_objects.xhp +++ b/source/text/sbasic/shared/uno_objects.xhp @@ -36,6 +36,8 @@ +

BasicLibrearies and DialogLibraries

+ -- cgit