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

Wolfgang Jäger <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Wolfgang Jäger <[email protected]> ---
Created attachment 209353
  --> https://bugs.documentfoundation.org/attachment.cgi?id=209353&action=edit
As described in my comment.

There isn't a thing like a "flat template" or a "template file" in ODF.
Whether an ODF file is opened for editing or used as a template for a new
("untitled") document with the content taken from the source file doesn't
depend on the MimeType but on the way the file is passed to LibreOffice for
use.

If you use the API method "loadComponentFromURL" the distinction is made by the
value of the Boolean prameter 'AsTemplate' of the MediaDescriptor. (See
Andrew's useful information 5.8.4.) 

Generally LibO doesn't regard the extension of the filename,
If you use an OS-specific way to "activate" the file with LibreOffice as the
software to be used, LibO may EXCEPTIOPNALLY evaluate the extension of the
filename for the distinction. (This is MS-Win tradition.)

The attached example file was stored by LibO as flat Writer file with
extension(.fodt). Then the second extension ".ott" was appended to the name.
At least on Win with a conventional install of LibO a dobleclick in the
explorer on that file will create a new file with the contnt talke from the
"flat file"

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to