<html dir="ltr"><head></head><body style="text-align: left; direction: ltr; overflow-wrap: break-word; zoom: 0%;"><div dir="auto">Take a look at event listeners to see what they can do<br><br></div>
<div dir="auto">the biggest problems will probably be related to things such as understanding which event listeners get called in which orders and also things like what will cause an event listener to disappear such as changing from a print view to a regular view<br><br></div>
<div dir="auto">and finally some of that information could be really tricky such as understanding that they have selected a particular region when what you really have access to is things like mouse clicks and down and up and that sort of thing.<br><br><br><br></div>
<div dir="auto"><!-- tmjah_g_1299s -->Sent from <!-- tmjah_g_1299e --><a href="http://www.bluemail.me/r?b=15726"><!-- tmjah_g_1299s -->BlueMail<!-- tmjah_g_1299e --></a><!-- tmjah_g_1299s --> <!-- tmjah_g_1299e --></div>
<div class="gmail_quote" >On Nov 28, 2019, at 7:20 PM, Chide Groenouwe <<a href="mailto:cg@xs4all.nl" target="_blank">cg@xs4all.nl</a>> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div>Hi,</div><div><br></div><div>I'm new to LibreOffice extension development. To prevent my team and I investing too much time in studying how to write LibreOffice extensions, I want to pose a question:</div><div><br></div><div>Is it possible to capture/intercept all - or at least most - user events that occur within LibreOffice by means of an extension, in real-time? For example, suppose that someone</div><div><br></div><div>0) opens a new document in Writer by using the drop-down menu item "New -> Text Document",</div><div>1) types a text,</div><div>2) selects a region using the mouse,</div><div>3) presses the Italic button (so that the region becomes Italic), and</div><div>4) saves the text by pressing Ctrl-s.</div><div><br></div><div>Can you log all this information in real-time? Could you even log each keypress of the user when this user is writing the text? And can you also differentiate between the different methods that have been used to accomplish a certain task? For example, can one distinquish between saving a file by selecting a drop-down menu item, or saving a file by using the short-cut key Ctrl-s?</div><div><br></div><div>Can this also be done for *other* extensions? Can you also log events that occur within these?</div><div><br></div><div>Or should we use another approach to accomplish this all?</div><div><br></div><div>(Although not needed for answering the question: If you wonder - the context has something to do with process mining (<a href="https://en.wikipedia.org/wiki/Process_mining_">https://en.wikipedia.org/wiki/Process_mining</a>) --  in this case to optimise software usage...)</div><div><br></div><div>Thank you so much in advance,</div><div><br></div><div>Chide Groenouwe</div><pre class="blue"><hr><br>LibreOffice mailing list<br>LibreOffice@lists.freedesktop.org<br><a href="https://lists.freedesktop.org/mailman/listinfo/libreoffice">https://lists.freedesktop.org/mailman/listinfo/libreoffice</a></pre></blockquote></div></body></html>