https://bugs.documentfoundation.org/show_bug.cgi?id=88928
--- Comment #10 from LeMoyne Castle <[email protected]> --- Created attachment 113074 --> https://bugs.documentfoundation.org/attachment.cgi?id=113074&action=edit Working macro It is rather simple to get the BasicIDE to open with a library.module in an LO file. The key is to pass the document URL as the Document option, like so: aOptions(0).Name="Document" aOptions(0).Value=ThisComponent.GetURL ' full URL of current file aOptions(1).Name="LibName" aOptions(1).Value="Standard" ' Name of library aOptions(2).Name="Type" aOptions(2).Value="Module" ' Module or Dialog aOptions(3).Name="Name" aOptions(3).Value="Module1" ' Name of Module or Dialog aOptions(4).Name="Line" aOptions(4).Value=13 ' Linenumber to place the cursor. [rest of code in attachment] Although this is not a bug in the underlying code, there seems to be a complete documentation fail for uno.BasicIDEAppear This has been considered a bug since OOo 3.0, but I'm guessing it was probably an undocumented correction/enhancement to go to a URL format for the Document to enable network file access. BasicIDEAppear is forgiving: can leave off Type, Name, etc. and just end up at the top of the first module. If Document is blank or not found, it defaults to My Macros & Dialogs (as noted). There may be some way to get it to open in the built-in Libre Office Macros & Dialogs set (URL to file containing them?). I didn't try for that figuring they are available once the IDE is open and should be treated as read-only. -- You are receiving this mail because: You are the assignee for the bug.
_______________________________________________ Libreoffice-bugs mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
