mirror of
https://github.com/ONLYOFFICE/sdkjs-forms.git
synced 2026-02-10 18:05:42 +08:00
[oform] Add main class oform
This commit is contained in:
@ -6,6 +6,7 @@
|
||||
],
|
||||
"common": [
|
||||
"apiBuilder.js",
|
||||
"oform/OForm.js",
|
||||
"oform/Document.js",
|
||||
"oform/FieldGroup.js",
|
||||
"oform/FieldMaster.js",
|
||||
|
||||
@ -36,10 +36,9 @@
|
||||
{
|
||||
/**
|
||||
* Основной класс для работы с форматом oform
|
||||
* @param document {AscWord.CDocument}
|
||||
* @constructor
|
||||
*/
|
||||
function CDocument(document)
|
||||
function CDocument()
|
||||
{
|
||||
AscFormat.CBaseFormatObject.call(this);
|
||||
|
||||
@ -56,8 +55,6 @@
|
||||
this.Users = {};
|
||||
this.UserMasters = {};
|
||||
this.FieldMasters = {};
|
||||
|
||||
this.LogicDocument = document;
|
||||
}
|
||||
AscFormat.InitClass(CDocument, AscFormat.CBaseFormatObject, AscDFH.historyitem_type_OForm_Document);
|
||||
CDocument.prototype.setAuthor = function(author)
|
||||
|
||||
@ -49,17 +49,17 @@
|
||||
}
|
||||
/**
|
||||
* Зачитываем структуру в oform-документу
|
||||
* @param document {AscOForm.CDocument}
|
||||
* @param OForm {AscOForm.OForm}
|
||||
*/
|
||||
CXmlFormat.prototype.toDocument = function(document)
|
||||
CXmlFormat.prototype.toDocument = function(oform)
|
||||
{
|
||||
// TODO: реализовать
|
||||
};
|
||||
/**
|
||||
* Записываем xml-структуру по oform-документу
|
||||
* @param document {AscOForm.CDocument}
|
||||
* @param OForm {AscOForm.OForm}
|
||||
*/
|
||||
CXmlFormat.prototype.fromDocument = function(document)
|
||||
CXmlFormat.prototype.fromDocument = function(oform)
|
||||
{
|
||||
// TODO: реализовать
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user