Commit 5a5edcfa authored by Sergey.Konovalov's avatar Sergey.Konovalov

для Revision: 64871 (сохранение в txt)

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@64873 954022d7-b5bf-4e40-9824-e11837661b57
parent 4f03ba96
...@@ -6860,17 +6860,16 @@ function _downloadAs(editor, command, oDocumentMailMerge, oMailMergeSendData, tx ...@@ -6860,17 +6860,16 @@ function _downloadAs(editor, command, oDocumentMailMerge, oMailMergeSendData, tx
// ToDo select csv params // ToDo select csv params
oAdditionalData['codepage'] = 65001; oAdditionalData['codepage'] = 65001;
oAdditionalData['delimiter'] = 4; // c_oAscCsvDelimiter.Comma oAdditionalData['delimiter'] = 4; // c_oAscCsvDelimiter.Comma
} else if (c_oAscFileType.TXT === filetype) { } else if (c_oAscFileType.TXT === filetype && !txtOptions) {
if (!txtOptions) { // Мы открывали команду, надо ее закрыть.
// Мы открывали команду, надо ее закрыть. editor.sync_EndAction(c_oAscAsyncActionType.BlockInteraction, c_oAscAsyncAction.DownloadAs);
editor.sync_EndAction(c_oAscAsyncActionType.BlockInteraction, c_oAscAsyncAction.DownloadAs); var cp = {'codepage': c_oAscCodePageUtf8, 'encodings': getEncodingParams()};
var cp = {'codepage': c_oAscCodePageUtf8, 'encodings': getEncodingParams()}; editor.asc_fireCallback("asc_onAdvancedOptions", new asc.asc_CAdvancedOptions(c_oAscAdvancedOptionsID.TXT, cp), t.advancedOptionsAction);
editor.asc_fireCallback("asc_onAdvancedOptions", new asc.asc_CAdvancedOptions(c_oAscAdvancedOptionsID.TXT, cp), t.advancedOptionsAction); return;
return; } else {
} else if (txtOptions instanceof asc.asc_CTXTAdvancedOptions) { if (txtOptions instanceof asc.asc_CTXTAdvancedOptions) {
oAdditionalData["codepage"] = txtOptions.asc_getCodePage(); oAdditionalData["codepage"] = txtOptions.asc_getCodePage();
} }
} else {
var oLogicDocument; var oLogicDocument;
if(null != oDocumentMailMerge) if(null != oDocumentMailMerge)
oLogicDocument = oDocumentMailMerge; oLogicDocument = oDocumentMailMerge;
......
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