Translation

python_document_events.xhp N0705 help.text
English hxzE4
Context English Latvian Actions
python_document_events.xhp
hd_id421630510141729
help.text
controller.Events module
python_document_events.xhp
bas_id431630567378062
help.text
Global _obj As Object ' controller.ConsoleLogger instance
python_document_events.xhp
N0655
help.text
Sub OnLoad(evt As com.sun.star.document.DocumentEvent) ' >> Open Document <<
python_document_events.xhp
bas_id371630509596674
help.text
''' ConsoleLogger unique entry point '''
python_document_events.xhp
hd_id721630511986813
help.text
controller.ConsoleLogger class module
python_document_events.xhp
par_id901630509435225
help.text
Events monitoring starts from the moment a <literal>ConsoleLogger</literal> object is instantiated and ultimately stops upon document closure. <literal>StartAdapter</literal> routine loads necessary Basic libraries, while caught events are reported using <literal>Access2Base.Trace</literal> module.
python_document_events.xhp
N0664
help.text
' ADAPTER design pattern object to be instantiated in the "Open Document" event
python_document_events.xhp
N0666
help.text
Private Const UI_NOPROMPT = False ' Set it to True to visualise documents events
python_document_events.xhp
N0674
help.text
' MEMBERS
python_document_events.xhp
bas_id131630510956418
help.text
Private _txtMsg As String ' text message to log in console
python_document_events.xhp
N0677
help.text
' PROPERTIES
python_document_events.xhp
N0679
help.text
''' System-dependent filename '''
python_document_events.xhp
N0686
help.text
' METHODS
python_document_events.xhp
N0688
help.text
''' Monitor document events '''
python_document_events.xhp
N0701
help.text
''' Initialize document events logging '''
python_document_events.xhp
N0705
help.text
Access2Base.Trace.TraceLog("INFO", _txtMsg & "Document events are being logged", UI_PROMPT)
python_document_events.xhp
N0714
help.text
''' Terminate document events logging '''
python_document_events.xhp
N0717
help.text
Access2Base.Trace.TraceLog("INFO", _txtMsg & "Document events have been logged", UI_PROMPT)
python_document_events.xhp
N0719
help.text
Access2Base.Trace.TraceConsole() ' Captured events dialog
python_document_events.xhp
N0722
help.text
' EVENTS
python_document_events.xhp
N0723
help.text
' Your code for handled events goes here
python_document_events.xhp
N0724
help.text
Mind the misspelled <literal>_documentEventOccured</literal> method that inherits a typo from %PRODUCTNAME Application Programming Interface (API).
python_document_events.xhp
N0725
help.text
Discovering Documents Events
python_document_events.xhp
bm_id681622445958242
help.text
<bookmark_value>API;frame.GlobalEventBroadcaster: Monitoring Document Event</bookmark_value>
python_document_events.xhp
N0726
help.text
The broadcaster API object provides the list of events it is responsible for:
python_document_events.xhp
N0727
help.text
With Python
python_document_events.xhp
N0734
help.text
""" Display document events """
python_document_events.xhp
N0736
help.text
adapted from DisplayAvailableEvents() by A. Pitonyak
python_document_events.xhp
N0747
help.text
The <link href="https://extensions.libreoffice.org/extensions/apso-alternative-script-organizer-for-python" name="Alternative Python Script Organizer">Alternative Python Script Organizer (APSO)</link> extension is used to render events information on screen.
python_document_events.xhp
N0748
help.text
With %PRODUCTNAME Basic
python_document_events.xhp
N0750
help.text
''' Display document events '''

Loading…

No matching activity found.
Browse all component changes

Glossary

English Latvian
Document LibreOffice UI - master

String information

Context
python_document_events.xhp
N0705
help.text
Source string description
hxzE4
Source string location
python_document_events.xhp
String age
a year ago
Source string age
a year ago
Translation file
lv/helpcontent2/source/text/sbasic/python.po, string 118