summaryrefslogtreecommitdiff
path: root/wizards/source/sfdocuments/SF_Calc.xba
diff options
context:
space:
mode:
authorJean-Pierre Ledure <jp@ledure.be>2024-09-06 15:26:17 +0200
committerJean-Pierre Ledure <jp@ledure.be>2024-09-08 14:25:35 +0200
commit609a6dc2df2492d75bad2a77b24c588a977d408d (patch)
tree29298a9fda6b651504184fefb60a7eff2b5945e5 /wizards/source/sfdocuments/SF_Calc.xba
parenta6a957405e5c9d8639e709916fe7b5bbd472676b (diff)
ScriptForge New IsAlive property
When a document is closed inadvertently by the user during a macro run, or between two macros triggered by events, the actual behaviour is an error message and a stop of the execution of the macro. As this can be counter-productive, the macro may test at any moment if everything is ok with the IsAlive As Boolean (True = OK) property applied on next service instances: Document Base Calc FormDocument Writer Datasheet Dialog The functionality is available both for Basic and Python user scripts. The user documentation should be completed accordingly. Change-Id: I0b055dacc06c9da70c611dbb4e7bf841160168fd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172970 Reviewed-by: Jean-Pierre Ledure <jp@ledure.be> Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Diffstat (limited to 'wizards/source/sfdocuments/SF_Calc.xba')
-rw-r--r--wizards/source/sfdocuments/SF_Calc.xba6
1 files changed, 6 insertions, 0 deletions
diff --git a/wizards/source/sfdocuments/SF_Calc.xba b/wizards/source/sfdocuments/SF_Calc.xba
index b917b36a85fa..f7d1eebae18c 100644
--- a/wizards/source/sfdocuments/SF_Calc.xba
+++ b/wizards/source/sfdocuments/SF_Calc.xba
@@ -2557,6 +2557,7 @@ Public Function Properties() As Variant
, &quot;FirstRow&quot; _
, &quot;Height&quot; _
, &quot;ImportFilters&quot; _
+ , &quot;IsAlive&quot; _
, &quot;IsBase&quot; _
, &quot;IsCalc&quot; _
, &quot;IsDraw&quot; _
@@ -3632,6 +3633,11 @@ Property Get ImportFilters() As Variant
End Property &apos; SFDocuments.SF_Calc.ImportFilters
REM -----------------------------------------------------------------------------
+Property Get IsAlive() As Boolean
+ IsAlive = [_Super].GetProperty(&quot;IsAlive&quot;)
+End Property &apos; SFDocuments.SF_Calc.IsAlive
+
+REM -----------------------------------------------------------------------------
Property Get IsBase() As Boolean
IsBase = [_Super].GetProperty(&quot;IsBase&quot;)
End Property &apos; SFDocuments.SF_Calc.IsBase