incubator-ooo-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 121304] Allow detaching a document from the template that was used to create it
Date Tue, 06 Nov 2012 14:25:09 GMT
https://issues.apache.org/ooo/show_bug.cgi?id=121304

bmarcelly <marcelly@club-internet.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marcelly@club-internet.fr

--- Comment #2 from bmarcelly <marcelly@club-internet.fr> ---
For the simple problem of detaching the current document from its template, add
this routine in a library of My Macros.

Sub DetachFromTemplate
Dim d As New com.sun.star.util.DateTime
ThisComponent.DocumentProperties.TemplateName = ""
ThisComponent.DocumentProperties.TemplateURL  = ""
ThisComponent.DocumentProperties.TemplateDate = d
ThisComponent.store
End Sub

Run it from a button or a shortcut. It works for Writer, Calc, Draw, Impress
documents.

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

Mime
View raw message