<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Load-Property AsTemplate='True' shows dialog if document is write protected"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=144656">144656</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Load-Property AsTemplate='True' shows dialog if document is write protected
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>7.2.0.4 release
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>sven_stanislawski@web.de
</td>
</tr></table>
<p>
<div>
<pre>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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>