[Libreoffice-bugs] [Bug 126700] Untitled document remains open when have a default template
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Wed Feb 5 19:11:48 UTC 2020
https://bugs.documentfoundation.org/show_bug.cgi?id=126700
Jan-Marek Glogowski <glogow at fbihome.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
See Also| |https://bugs.documentfounda
| |tion.org/show_bug.cgi?id=83
| |722
Status|UNCONFIRMED |NEW
Assignee|libreoffice-bugs at lists.free |glogow at fbihome.de
|desktop.org |
--- Comment #4 from Jan-Marek Glogowski <glogow at fbihome.de> ---
I can confirm this behavior. For whatever reason, a changed default document
template isn't handled as an empty document, e.g. configured via
<item
oor:path="/org.openoffice.Setup/Office/Factories/org.openoffice.Setup:Factory['com.sun.star.sheet.SpreadsheetDocument']">
<prop oor:name="ooSetupFactorySystemDefaultTemplateChanged" oor:op="fuse">
<value>true</value>
</prop>
</item>
<item
oor:path="/org.openoffice.Setup/Office/Factories/org.openoffice.Setup:Factory['com.sun.star.sheet.SpreadsheetDocument']">
<prop oor:name="ooSetupFactoryTemplateFile" oor:op="fuse">
<value>$(inst)/share/template/empty/soffice.ots</value>
</prop>
</item>
This factory default template still works correctly, so most people simply
won't have noticed this change.
ooSetupFactoryTemplateFile is also the value in user/registrymodifications.xcu,
if you use the "Set as Default" from the right click menu of templates in the
template manager - kind of well hidden.
Looking into officecfg/registry/schema/org/openoffice/Setup.xcs, I actually
found three settings, which might be related to the default template handling:
* ooSetupFactoryTemplateFile
* ooSetupFactorySystemDefaultTemplateChanged
* ooSetupFactoryEmptyDocumentURL
The difference is between a "manually" opened template and the automatically
"empty" template of the LO module. IMHO the later one should still be replaced
by any user opened document, if it hasn't been modified.
--
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/20200205/d6329444/attachment-0001.htm>
More information about the Libreoffice-bugs
mailing list