mirror of
https://github.com/ONLYOFFICE/sdkjs-forms.git
synced 2026-03-31 10:23:35 +08:00
[oform] Work on xml writer
This commit is contained in:
@ -64,6 +64,20 @@
|
||||
{
|
||||
return this.Format;
|
||||
};
|
||||
OForm.prototype.fromZip = function(zip)
|
||||
{
|
||||
let xmlPkg = new AscOForm.XmlPackage(zip);
|
||||
xmlPkg.setContext(new AscOForm.XmlReaderContext(xmlPkg));
|
||||
this.Format.fromPkg(xmlPkg);
|
||||
};
|
||||
OForm.prototype.toZip = function(zip)
|
||||
{
|
||||
let writer = new AscCommon.CMemory();
|
||||
let xmlPkg = new AscOForm.XmlPackage(zip, writer);
|
||||
xmlPkg.setContext(new AscOForm.XmlWriterContext(xmlPkg));
|
||||
writer.context = xmlPkg.getContext();
|
||||
this.Format.toPkg(xmlPkg);
|
||||
};
|
||||
OForm.prototype.setCurrentRole = function(roleName)
|
||||
{
|
||||
let role = this.getRole(roleName);
|
||||
|
||||
Reference in New Issue
Block a user