<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:baron@caesar.elte.hu" title="Aron Budea <baron@caesar.elte.hu>"> <span class="fn">Aron Budea</span></a>
</span> changed
<a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Detect 0-byte files based on extension (esp. for MS Office and ODF formats)"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=123476">bug 123476</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Summary</td>
<td>Detect 0-byte files based on extension
</td>
<td>Detect 0-byte files based on extension (esp. for MS Office and ODF formats)
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Detect 0-byte files based on extension (esp. for MS Office and ODF formats)"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=123476#c5">Comment # 5</a>
on <a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Detect 0-byte files based on extension (esp. for MS Office and ODF formats)"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=123476">bug 123476</a>
from <span class="vcard"><a class="email" href="mailto:baron@caesar.elte.hu" title="Aron Budea <baron@caesar.elte.hu>"> <span class="fn">Aron Budea</span></a>
</span></b>
<pre>(In reply to Mike Kaganski from <a href="show_bug.cgi?id=123476#c3">comment #3</a>)
<span class="quote">> Regarding the initialization: should something specific be done with the new
> document depending on the filter? E.g., for a 0-byte .docx, should we simply
> create a new Writer document (using default template) and set its filter to
> DOCX, or should we initialize it as if that is a DOCX - which would mean
> different default fonts, compatibility options, etc. (whatever is done in
> DOCX importer when a valid DOCX is imported, before actual DOCX data is
> read)? Should all filters be modified to be able to do that then? Would that
> require to have own default templates for all filters, of should the one
> default template for the module be used anyway, with application of
> filter-specific modifications (with a risk of the resulting new document to
> differ from the template as used in normal new document creation)?</span >
All very good questions, I'd say just create an empty
document/spreadsheet/presentation, set the export type to the identified one,
and do an export+import cycle. Out of that the last step is optional if it'd be
a larger task, the most important is to start in the correct application and
set the correct save format.
While I think the above method would be applicable to most formats, it's really
relevant for the formats that could come in as 0-byte files in real life, ie.
the ones that can be created by MS Office via Explorer context menu.</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>