Hi, all, am looking to share a calc document via a macro, as opposed to manually clicking “Tools/Share Spreadsheet”.
So far as manually sharing goes, have noticed that if the Tabbed Interface is selected, Share Spreadsheet no longer appears under Tools. One must apparently use the Standard Toolbar to even see Tools/Share Spreadsheet. Have verified this on WinDoze, Mac and 'nix versions of LO. Not sure if that’s a bug.
So far as sharing a document programmatically, have checked Andrew Pitonyak’s excellent docs but they don’t mention anything on the subject.
Did look for “share” in the source code; it returned > 20K hits. Found sharedocumentdlg.ui but it appears to be just implementing how “Tools/Share Spreadsheet” shows up in the menu. Found sharedocdlg.cxx but even assuming it’s the code that performs sharing, am not sure how to invoke it from a macro.
Have only found one other post on this subject here but it was unanswered.
The Dispatch Commands Page references the uno command for sharing, but it’s unclear how to implement it.
I know on various platforms I could use a scripting tool (such as AutoIT on WinDoze) and not even involve LO directly, but am interested in a more platform-independent method using a LO BASIC macro. (Will eventually port all the BASIC code I’ve written over to Python, but not today!)
If anyone has info on how to accomplish this, I would be most appreciative. Thanks!