Commit f7fc5c1d authored by Sergey.Konovalov's avatar Sergey.Konovalov Committed by Alexander.Trofimov

Отменено сохранение в том формате, который пришел на открытие.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@58215 954022d7-b5bf-4e40-9824-e11837661b57
parent 1b07eb6f
......@@ -430,18 +430,18 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
this.documentVKey = this.DocInfo["VKey"];
this.chartEditor = this.DocInfo["ChartEditor"];
this.documentOpenOptions = this.DocInfo["Options"];
if(this.documentFormat)
{
switch(this.documentFormat)
{
case "xlsx" : this.documentFormatSave = c_oAscFileType.XLSX;break;
case "xls" : this.documentFormatSave = c_oAscFileType.XLS;break;
case "ods" : this.documentFormatSave = c_oAscFileType.ODS;break;
case "csv" : this.documentFormatSave = c_oAscFileType.CSV;break;
case "htm" :
case "html" : this.documentFormatSave = c_oAscFileType.HTML;break;
}
}
// if(this.documentFormat)
// {
// switch(this.documentFormat)
// {
// case "xlsx" : this.documentFormatSave = c_oAscFileType.XLSX;break;
// case "xls" : this.documentFormatSave = c_oAscFileType.XLS;break;
// case "ods" : this.documentFormatSave = c_oAscFileType.ODS;break;
// case "csv" : this.documentFormatSave = c_oAscFileType.CSV;break;
// case "htm" :
// case "html" : this.documentFormatSave = c_oAscFileType.HTML;break;
// }
// }
var nIndex = -1;
if(this.documentTitle)
......
......@@ -952,24 +952,24 @@ asc_docs_api.prototype.LoadDocument = function(c_DocInfo)
documentUrl = this.DocInfo.get_Url();
documentTitle = this.DocInfo.get_Title();
documentFormat = this.DocInfo.get_Format();
if(documentFormat)
{
switch(documentFormat)
{
case "docx" : documentFormatSave = c_oAscFileType.DOCX;break;
case "doc" : documentFormatSave = c_oAscFileType.DOC;break;
case "odt" : documentFormatSave = c_oAscFileType.ODT;break;
case "rtf" : documentFormatSave = c_oAscFileType.RTF;break;
case "txt" : documentFormatSave = c_oAscFileType.TXT;break;
case "htm" :
case "html" : documentFormatSave = c_oAscFileType.HTML_ZIP;break;
case "mht" : documentFormatSave = c_oAscFileType.MHT;break;
case "pdf" : documentFormatSave = c_oAscFileType.PDF;break;
case "epub" : documentFormatSave = c_oAscFileType.EPUB;break;
case "fb2" : documentFormatSave = c_oAscFileType.FB2;break;
case "mobi" : documentFormatSave = c_oAscFileType.MOBI;break;
}
}
// if(documentFormat)
// {
// switch(documentFormat)
// {
// case "docx" : documentFormatSave = c_oAscFileType.DOCX;break;
// case "doc" : documentFormatSave = c_oAscFileType.DOC;break;
// case "odt" : documentFormatSave = c_oAscFileType.ODT;break;
// case "rtf" : documentFormatSave = c_oAscFileType.RTF;break;
// case "txt" : documentFormatSave = c_oAscFileType.TXT;break;
// case "htm" :
// case "html" : documentFormatSave = c_oAscFileType.HTML_ZIP;break;
// case "mht" : documentFormatSave = c_oAscFileType.MHT;break;
// case "pdf" : documentFormatSave = c_oAscFileType.PDF;break;
// case "epub" : documentFormatSave = c_oAscFileType.EPUB;break;
// case "fb2" : documentFormatSave = c_oAscFileType.FB2;break;
// case "mobi" : documentFormatSave = c_oAscFileType.MOBI;break;
// }
// }
var nIndex = -1;
if(documentTitle)
nIndex = documentTitle.lastIndexOf(".");
......
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