Commit 6c03e0ce authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Добавил метод asc_setAutoSaveGap: Выставление интервала автосохранения (0 -...

Добавил метод asc_setAutoSaveGap: Выставление интервала автосохранения (0 - означает, что автосохранения нет)

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@48659 954022d7-b5bf-4e40-9824-e11837661b57
parent 02a53ba9
...@@ -538,12 +538,19 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS"; ...@@ -538,12 +538,19 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
ws.sortColFilter(type,cellId); ws.sortColFilter(type,cellId);
}, },
asc_getAddFormatTableOptions: function() asc_getAddFormatTableOptions: function () {
{
var ws = this.wb.getWorksheet(); var ws = this.wb.getWorksheet();
return ws.getAddFormatTableOptions(); return ws.getAddFormatTableOptions();
}, },
// Выставление интервала автосохранения (0 - означает, что автосохранения нет)
asc_setAutoSaveGap: function (autoSaveGap) {
if (typeof autoSaveGap === "number") {
this.autoSaveGap = autoSaveGap;
this.autoSaveInit();
}
},
asc_setMobileVersion: function (isMobile){ asc_setMobileVersion: function (isMobile){
this.isMobileVersion = isMobile; this.isMobileVersion = isMobile;
this.options = (this.options || {}); this.options = (this.options || {});
...@@ -2667,10 +2674,11 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS"; ...@@ -2667,10 +2674,11 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
////////////////////////////AutoSave api///////////////////////////////// ////////////////////////////AutoSave api/////////////////////////////////
///////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////
autoSaveInit: function (autoSaveGap) { autoSaveInit: function (autoSaveGap) {
if (autoSaveGap || this.autoSaveGap) {
// Очищаем предыдущий таймер // Очищаем предыдущий таймер
if (null !== this.autoSaveTimeOutId) if (null !== this.autoSaveTimeOutId)
clearTimeout(this.autoSaveTimeOutId); clearTimeout(this.autoSaveTimeOutId);
if (autoSaveGap || this.autoSaveGap) {
var t = this; var t = this;
this.autoSaveTimeOutId = setTimeout(function () { this.autoSaveTimeOutId = setTimeout(function () {
t.autoSaveTimeOutId = null; t.autoSaveTimeOutId = null;
...@@ -3000,6 +3008,8 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS"; ...@@ -3000,6 +3008,8 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
prot["asc_getDocumentFormat"] = prot.asc_getDocumentFormat; prot["asc_getDocumentFormat"] = prot.asc_getDocumentFormat;
prot["asc_isDocumentModified"] = prot.asc_isDocumentModified; prot["asc_isDocumentModified"] = prot.asc_isDocumentModified;
prot["asc_setAutoSaveGap"] = prot.asc_setAutoSaveGap;
prot["asc_setMobileVersion"] = prot.asc_setMobileVersion; prot["asc_setMobileVersion"] = prot.asc_setMobileVersion;
prot["asc_setViewerMode"] = prot.asc_setViewerMode; prot["asc_setViewerMode"] = prot.asc_setViewerMode;
prot["asc_setUseEmbeddedCutFonts"] = prot.asc_setUseEmbeddedCutFonts; prot["asc_setUseEmbeddedCutFonts"] = prot.asc_setUseEmbeddedCutFonts;
......
...@@ -1444,10 +1444,11 @@ asc_docs_api.prototype.asc_getSpellCheckLanguages = function() { ...@@ -1444,10 +1444,11 @@ asc_docs_api.prototype.asc_getSpellCheckLanguages = function() {
////////////////////////////AutoSave api///////////////////////////////// ////////////////////////////AutoSave api/////////////////////////////////
///////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////
asc_docs_api.prototype.autoSaveInit = function (autoSaveGap) { asc_docs_api.prototype.autoSaveInit = function (autoSaveGap) {
if (autoSaveGap || this.autoSaveGap) {
// Очищаем предыдущий таймер // Очищаем предыдущий таймер
if (null !== this.autoSaveTimeOutId) if (null !== this.autoSaveTimeOutId)
clearTimeout(this.autoSaveTimeOutId); clearTimeout(this.autoSaveTimeOutId);
if (autoSaveGap || this.autoSaveGap) {
var t = this; var t = this;
this.autoSaveTimeOutId = setTimeout(function () { this.autoSaveTimeOutId = setTimeout(function () {
t.autoSaveTimeOutId = null; t.autoSaveTimeOutId = null;
...@@ -6038,7 +6039,15 @@ asc_docs_api.prototype.GetCurrentVisiblePage = function() ...@@ -6038,7 +6039,15 @@ asc_docs_api.prototype.GetCurrentVisiblePage = function()
return lPage1; return lPage1;
return lPage2; return lPage2;
} };
// Выставление интервала автосохранения (0 - означает, что автосохранения нет)
asc_docs_api.prototype.asc_setAutoSaveGap = function (autoSaveGap) {
if (typeof autoSaveGap === "number") {
this.autoSaveGap = autoSaveGap;
this.autoSaveInit();
}
};
asc_docs_api.prototype.SetMobileVersion = function(val) asc_docs_api.prototype.SetMobileVersion = function(val)
{ {
...@@ -6052,7 +6061,7 @@ asc_docs_api.prototype.SetMobileVersion = function(val) ...@@ -6052,7 +6061,7 @@ asc_docs_api.prototype.SetMobileVersion = function(val)
this.SetFontRenderingMode(1); this.SetFontRenderingMode(1);
} }
} };
asc_docs_api.prototype.GoToHeader = function(pageNumber) asc_docs_api.prototype.GoToHeader = function(pageNumber)
{ {
......
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