There are documents to help at The Document Foundation page on Macros.The full api is available at the Libre Office API web site.If you want to see examples then Basic examples should help in the first instance. I found that the best reference is Andrew Pitonyak's book available via The Document Foundation page on Macros.The biggest. Complete LibreOffice 6.0 API reference. Java UNO Runtime Reference: Reference documentation of the Java UNO runtime API. C++, Basic, OLE, CLI). Additional Examples. Thanks for the pointer. I have gone through that (the ) already. Are you saying that, having gone through the tutorial, I should look at the? For example, how would I know how to use a selected object? (I know it's as follows, but how would I know if someone hadn't told me?) Code: Dim MyItem as Object MyItem = ThisComponent.CurrentSelection That's what I'm trying to get. Where is the documentation that will help me learn this stuff? For example, I want to change the current selection (which is a picture) to having 'Wrap Through' ( MyItem.TextWrap = 1) but also 'In background' (and I can't find out how to do that). Once you are familiar with the general structure (UNO with it's services and interfaces) you can lookup things quickly from the reference. The debug window in the Basic editor exposes most of the used objects. You may have a look at the macros that ship with OOo. Some of them are introspective. A local copy of the includes the whole reference plus developer's guide both in html. The binary tools are needed for compiling programs in C++ or Java. Writing scripts in Basic, BeanShell, JavaScript or Python and having a local copy of the SDK you certainly want to install the xray tool (47 matches when searching this forum). Oh, and then there is a firefox plugin comprising the most important(?) sources of information. Paddy Landau wrote:Hmm. Thanks for the pointer. I have gone through that (the ) already. Are you saying that, having gone through the tutorial, I should look at the? For example, how would I know how to use a selected object? (I know it's as follows, but how would I know if someone hadn't told me?) Code: Dim MyItem as Object MyItem = ThisComponent.CurrentSelection That's what I'm trying to get. Where is the documentation that will help me learn this stuff? For example, I want to change the current selection (which is a picture) to having 'Wrap Through' ( MyItem.TextWrap = 1) but also 'In background' (and I can't find out how to do that). I am in the same boat, I understand the basic bits and bobs, but I am trying to understand how to reference a cell. Unfortunately I can only describe this with blasphemy, myvariable = worksheets('sheet1').cells(3,4) I dont really understand what UNO or API are, I do understand what basic is (Fortran 77 is where I cut my programming teeth, but unfortunately that is where I have stayed for 20 years). Craig, you jumped onto an old thread. In general the has a sticky topmost thread now that reflects a discussion on how to find documentation. Short summary: Wiki documenation on Basic, UNO API documentation, Tutorials, Inspection tools (MRI, Xray) In your case coming from MS Office and VBA the document might also be helpful.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2019
Categories |