Apache OpenOffice (AOO) Bugzilla – Issue 68497
Add API to create document versions
Last modified: 2017-05-20 11:28:07 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.
jsc -> as: i would assume that it is a new feature in the framwork area, can you please check it
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.
set target from 2.x to 3.x according to http://wiki.services.openoffice.org/wiki/Target_3x
Reset assigne to the default "issues@openoffice.apache.org".