opening a document with "LockExport=True" should disable ".uno:SendMail" too. REM ***** BASIC ***** OPTION EXPLICIT Sub TestLoad() Dim oDesktop as Object Dim oDocument as Object Dim sURL as String Dim mArgs(6) as new com.sun.star.beans.PropertyValue mArgs(0).Name = "LockEditDoc" mArgs(0).Value = True mArgs(1).Name = "LockSave" mArgs(1).Value = True mArgs(2).Name = "LockPrint" mArgs(2).Value = True mArgs(3).Name = "LockExport" mArgs(3).Value = True mArgs(4).Name = "LockContentExtraction" mArgs(4).Value = True mArgs(5).Name = "ReadOnly" mArgs(5).Value = True mArgs(6).Name = "PickListEntry" mArgs(6).Value = False sURL = ConvertToURL("D:\test_open.odt") oDesktop = createUnoService( "com.sun.star.frame.Desktop" ) oDocument = oDesktop.loadComponentFromURL(sURL, "_blank", 0, mArgs()) End Sub
Repro. Version: 7.1.5.2 (x64) / LibreOffice Community Build ID: 85f04e9f809797b8199d13c421bd8a2b025d52b5 CPU threads: 6; OS: Windows 10.0 Build 19042; UI render: default; VCL: win Locale: ru-RU (ru_RU); UI: ru-RU Calc: threaded
Agree, LockExport should as well disable the mail commands. From the API description: "Setting this option will prevent exporting document content to any file." https://api.libreoffice.org/docs/idl/ref/servicecom_1_1sun_1_1star_1_1document_1_1MediaDescriptor.html#a78db5caeeb0553d1b528b81bb0878f15
Vasily Melenchuk committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/f4559274154324e132f82ba9c21676326f6db7e5 tdf#140019: Revert "Don't disable "Send doc via email" ..." It will be available in 7.4.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Vasily Melenchuk committed a patch related to this issue. It has been pushed to "libreoffice-7-3": https://git.libreoffice.org/core/commit/35a468ebe12d46a4092d9b70399736ae4ad2f476 tdf#140019: Revert "Don't disable "Send doc via email" ..." It will be available in 7.3.1. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Every day, we hear the I-need-someone-to-write-my-essay-for-me phrase from students all across the country, as well https://en.samedayessay.com/ as worldwide. A student who needs a break from homework and burning deadlines is to be respected and helped.