Commit 8c2e0582 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

documentFormatSave to baseEditorsApi

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@66385 954022d7-b5bf-4e40-9824-e11837661b57
parent 9e72994a
......@@ -27,6 +27,7 @@ function baseEditorsApi(name) {
this.documentCallbackUrl = undefined; // Ссылка для отправления информации о документе
this.documentFormat = "null";
this.documentTitle = "null";
this.documentFormatSave = c_oAscFileType.UNKNOWN;
// Тип состояния на данный момент (сохранение, открытие или никакое)
this.advancedOptionsAction = c_oAscAdvancedOptionsAction.None;
......
"use strict";
var documentFormatSave = c_oAscFileType.PPTX;//пока не во что другое сохранять не можем.
var c_oSerFormat = {
Version : 1,
Signature : "PPTY"
......@@ -26,6 +24,8 @@ function asc_docs_api(name)
this.WordControl = new CEditorPage(this);
this.WordControl.Name = this.HtmlElementName;
this.documentFormatSave = c_oAscFileType.PPTX;
this.ThemeLoader = new CThemeLoader();
this.ThemeLoader.Api = this;
......@@ -462,7 +462,7 @@ asc_docs_api.prototype._coAuthoringInit = function() {
if (!(window["NATIVE_EDITOR_ENJINE"] || offlineMode === this.documentUrl)) {
this.CoAuthoringApi.set_url(null);
}
this.CoAuthoringApi.init(this.User, this.documentId, this.documentCallbackUrl, 'fghhfgsjdgfjs', c_oEditorId.Presentation, documentFormatSave);
this.CoAuthoringApi.init(this.User, this.documentId, this.documentCallbackUrl, 'fghhfgsjdgfjs', c_oEditorId.Presentation, this.documentFormatSave);
// ToDo init other callbacks
};
......
"use strict";
var documentFormatSave = c_oAscFileType.DOCX;
function CAscSection()
{
this.PageWidth = 0;
......@@ -275,6 +273,8 @@ function asc_docs_api(name)
this.WordControl = new CEditorPage(this);
this.WordControl.Name = this.HtmlElementName;
this.documentFormatSave = c_oAscFileType.DOCX;
//todo убрать из native, copypaste, chart, loadfont
//this.DocumentUrl = "";
this.InterfaceLocale = null;
......@@ -1212,7 +1212,7 @@ asc_docs_api.prototype._coAuthoringInit = function() {
if (!(window["NATIVE_EDITOR_ENJINE"] || offlineMode === this.documentUrl)) {
this.CoAuthoringApi.set_url(null);
}
this.CoAuthoringApi.init(this.User, this.documentId, this.documentCallbackUrl, 'fghhfgsjdgfjs', c_oEditorId.Word, documentFormatSave);
this.CoAuthoringApi.init(this.User, this.documentId, this.documentCallbackUrl, 'fghhfgsjdgfjs', c_oEditorId.Word, this.documentFormatSave);
};
// server disconnect
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment