Translation

python_document_events.xhp N0723 help.text
English uVpJf
Context English Latvian Actions
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 '''
python_examples.xhp
tit
help.text
Python examples Python piemēri
python_examples.xhp
bm_id20191031405
help.text
<bookmark_value>Python;examples</bookmark_value> <bookmark_value>Python;shell</bookmark_value> <bookmark_value>Python;platform</bookmark_value> <bookmark_value>Python;session</bookmark_value> <bookmark_value>Python;screen input/output</bookmark_value>
python_examples.xhp
hd_id201901031407
help.text
<variable id="pythonexamples2"><link href="text/sbasic/python/python_examples.xhp" name="python examples">Python programming examples</link></variable>
python_handler.xhp
tit
help.text
Creating A Dialog Handler
python_handler.xhp
N0664
help.text
<bookmark_value>Basic;Dialog Handler</bookmark_value> <bookmark_value>Python;Dialog Handler</bookmark_value> <bookmark_value>Access2Base;dlgTrace</bookmark_value> <bookmark_value>Access2Base;_DumpToFile</bookmark_value> <bookmark_value>API;DialogProvider2</bookmark_value> <bookmark_value>API;XDialogEventHandler</bookmark_value>

Loading…

No matching activity found.
Browse all component changes

Glossary

English Latvian
No related strings found in the glossary.

String information

Context
python_document_events.xhp
N0723
help.text
Source string description
uVpJf
Source string location
python_document_events.xhp
String age
3 years ago
Source string age
3 years ago
Translation file
lv/helpcontent2/source/text/sbasic/python.po, string 119