Commit 95a35237 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

выбор кодировок и параметров при открытии

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@66819 954022d7-b5bf-4e40-9824-e11837661b57
parent e657f427
......@@ -30,6 +30,13 @@
DesktopOfflineUpdateLocalName(this);
};
asc['spreadsheet_api'].prototype._onNeedParams = function(data)
{
var cp = JSON.parse("{\"codepage\":46,\"delimiter\":1}");
cp['encodings'] = getEncodingParams();
this.handlers.trigger("asc_onAdvancedOptions", new asc.asc_CAdvancedOptions(c_oAscAdvancedOptionsID.CSV, cp), c_oAscAdvancedOptionsAction.Open);
};
asc['spreadsheet_api'].prototype.asc_addImageDrawingObject = function(url)
{
var _url = window["AscDesktopEditor"]["LocalFileGetImageUrl"](url);
......@@ -51,6 +58,17 @@
};
})(jQuery, window);
window["Asc"]['spreadsheet_api'].prototype.asc_setAdvancedOptions = function(idOption, option)
{
window["AscDesktopEditor"]["SetAdvancedOptions"]("" + option.asc_getCodePage(), "" + option.asc_getDelimiter());
};
window["Asc"]['spreadsheet_api'].prototype["asc_setAdvancedOptions"] = window["Asc"]['spreadsheet_api'].prototype.asc_setAdvancedOptions;
window["asc_initAdvancedOptions"] = function()
{
window["Asc"]["editor"]._onNeedParams(undefined);
};
window["DesktopOfflineAppDocumentEndLoad"] = function(_url, _data)
{
g_oDocumentUrls.documentUrl = _url;
......
......@@ -34,6 +34,17 @@ window["DesktopOfflineAppDocumentEndLoad"] = function(_url, _data)
editor._OfflineAppDocumentEndLoad(_url, _data);
};
asc_docs_api.prototype.asc_setAdvancedOptions = function(idOption, option)
{
window["AscDesktopEditor"]["SetAdvancedOptions"]("" + option.asc_getCodePage());
};
asc_docs_api.prototype["asc_setAdvancedOptions"] = asc_docs_api.prototype.asc_setAdvancedOptions;
window["asc_initAdvancedOptions"] = function()
{
editor._onNeedParams(undefined);
};
/////////////////////////////////////////////////////////
////////////// CHANGES /////////////////////
/////////////////////////////////////////////////////////
......
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