


To do that we use the method getCurrentSelection() of the object ‘model’ that we defined in the context() method further up. This is the easiest part, simply: # call function context() Check out my Annex1 to learn how to do it quickly.

Please refer to my previous tutorials for creating a program and using the APSO console.įirst you need to define the variables provided by XSCRIPTCONTEXT. We’ll see how to manage them in a later post.Ī good way to illustrate the 4 different cell types is to play with them with a simple python code that will display in the console the type of cell selected in LibreOffice Calc.
