Issue 68497

Summary: Add API to create document versions
Product: App Dev Reporter: cbrunet <charles.fmj>
Component: apiAssignee: AOO issues mailing list <issues>
Status: UNCONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: issues
Version: 3.3.0 or older (OOo)   
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Latest Confirmation in: ---
Developer Difficulty: ---

Description cbrunet 2006-08-10 17:12:40 UTC
Please consider adding commands in the API to save new versions of a document,
and to add / modify comments and author for those versions.
Comment 1 jsc 2006-08-23 08:46:14 UTC
jsc -> as: i would assume that it is a new feature in the framwork area, can you
please check it
Comment 2 andreas.schluens 2006-09-05 09:36:46 UTC
AS->cbrunet: An API to create new versions on saving documents already exists.
See the following macro:

Sub Main

	dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")

	dim args(1) as new com.sun.star.beans.PropertyValue
	args(0).Name  = "VersionComment"
	args(0).Value = "My Version 01"
	args(1).Name  = "Author"
	args(1).Value = "Author 01"
	
	doc = ThisComponent
 	doc.storeSelf(args())

End Sub

But you are right; there exists currently no API to modify versions or it's
properties.

AS->MAV: Please implement the MediaDescriptor property "short Version" for
storing also (as it is already supported for loadComponentFromURL()). Regards.
Comment 3 Martin Hollmichel 2007-11-09 17:28:35 UTC
set target from 2.x to 3.x according to
http://wiki.services.openoffice.org/wiki/Target_3x
Comment 4 Marcus 2017-05-20 11:28:07 UTC
Reset assigne to the default "issues@openoffice.apache.org".