[oform] Add main class oform

This commit is contained in:
KirillovIlya
2022-11-22 14:22:24 +03:00
parent f34ccbe982
commit b62c32f513
3 changed files with 6 additions and 8 deletions

View File

@ -6,6 +6,7 @@
], ],
"common": [ "common": [
"apiBuilder.js", "apiBuilder.js",
"oform/OForm.js",
"oform/Document.js", "oform/Document.js",
"oform/FieldGroup.js", "oform/FieldGroup.js",
"oform/FieldMaster.js", "oform/FieldMaster.js",

View File

@ -36,10 +36,9 @@
{ {
/** /**
* Основной класс для работы с форматом oform * Основной класс для работы с форматом oform
* @param document {AscWord.CDocument}
* @constructor * @constructor
*/ */
function CDocument(document) function CDocument()
{ {
AscFormat.CBaseFormatObject.call(this); AscFormat.CBaseFormatObject.call(this);
@ -56,8 +55,6 @@
this.Users = {}; this.Users = {};
this.UserMasters = {}; this.UserMasters = {};
this.FieldMasters = {}; this.FieldMasters = {};
this.LogicDocument = document;
} }
AscFormat.InitClass(CDocument, AscFormat.CBaseFormatObject, AscDFH.historyitem_type_OForm_Document); AscFormat.InitClass(CDocument, AscFormat.CBaseFormatObject, AscDFH.historyitem_type_OForm_Document);
CDocument.prototype.setAuthor = function(author) CDocument.prototype.setAuthor = function(author)

View File

@ -49,17 +49,17 @@
} }
/** /**
* Зачитываем структуру в oform-документу * Зачитываем структуру в oform-документу
* @param document {AscOForm.CDocument} * @param OForm {AscOForm.OForm}
*/ */
CXmlFormat.prototype.toDocument = function(document) CXmlFormat.prototype.toDocument = function(oform)
{ {
// TODO: реализовать // TODO: реализовать
}; };
/** /**
* Записываем xml-структуру по oform-документу * Записываем xml-структуру по oform-документу
* @param document {AscOForm.CDocument} * @param OForm {AscOForm.OForm}
*/ */
CXmlFormat.prototype.fromDocument = function(document) CXmlFormat.prototype.fromDocument = function(oform)
{ {
// TODO: реализовать // TODO: реализовать
}; };