Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | Add API to create document versions | ||
---|---|---|---|
Product: | App Dev | Reporter: | cbrunet <charles.fmj> |
Component: | api | Assignee: | 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
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". |