[Libreoffice-bugs] [Bug 140020] New: MediaDescriptor: Property "LockSave=True" should disable .uno:SaveAll"

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat Jan 30 13:35:07 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=140020

            Bug ID: 140020
           Summary: MediaDescriptor: Property "LockSave=True" should
                    disable .uno:SaveAll"
           Product: LibreOffice
           Version: 6.4.7.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: UI
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: oliver.brinzing at gmx.de

opening a document with "LockSave=True" should disable ".uno:SaveAll" too.
at the mmoment this will only work in combination with "ReadOnly=True".

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 = False

        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

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210130/7342d2e9/attachment.htm>


More information about the Libreoffice-bugs mailing list