[Libreoffice-bugs] [Bug 144656] New: Load-Property AsTemplate='True' shows dialog if document is write protected
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Wed Sep 22 09:56:59 UTC 2021
https://bugs.documentfoundation.org/show_bug.cgi?id=144656
Bug ID: 144656
Summary: Load-Property AsTemplate='True' shows dialog if
document is write protected
Product: LibreOffice
Version: 7.2.0.4 release
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: LibreOffice
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: sven_stanislawski at web.de
Description:
I open a write protected template with the property AsTemplate = 'True' and
LibreOffice shows a dialog to choose whether to open the protected document or
a new untitled document. Loading a non-write protected document with property
AsTemplate works fine.
I have expected to open the untitled document directly without showing a
dialog.
Loading the document without ReadOnly-Property shows a dialog.
Loading the document with ReadOnly-Property = False shows an error.
Tested with:
Version: 7.2.0.4 (x64) / LibreOffice Community
Build ID: 9a9c6381e3f7a62afc1329bd359cc48accb6435b
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: Skia/Vulkan; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: threaded
Steps to Reproduce:
1. Run macro
Sub Main
Dim oDesktop as Object
Dim aPva(2) as new com.sun.star.beans.PropertyValue
aPva(0).Name = "AsTemplate"
aPva(0).Value = True
' aPva(1).Name = "ReadOnly"
' aPva(1).Value = False
oDesktop = createUnoService( "com.sun.star.frame.Desktop" )
oDesktop.loadComponentFromURL( "file:///C:/TEMP/Test.ott" , "_blank" , 0 ,
aPva )
End Sub
Actual Results:
Dialog will be shown
Expected Results:
untitled document should be opened directly
Reproducible: Always
User Profile Reset: No
Additional Info:
none
--
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/20210922/b7bd59e9/attachment.htm>
More information about the Libreoffice-bugs
mailing list