Commit 76c904bf authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

settings

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@58104 954022d7-b5bf-4e40-9824-e11837661b57
parent 029daab6
...@@ -4818,3 +4818,46 @@ window["use_native_fonts_only"] = true; ...@@ -4818,3 +4818,46 @@ window["use_native_fonts_only"] = true;
// declarate unused methods and objects // declarate unused methods and objects
window["ftm"] = FT_Memory; window["ftm"] = FT_Memory;
asc_docs_api.prototype["Native_Editor_Initialize_Settings"] = function(_params)
{
if (!_params)
return;
var _current = { pos : 0 };
var _continue = true;
while (_continue)
{
var _attr = _params[_current.pos++];
switch (_attr)
{
case 0:
{
GlobalSkin.STYLE_THUMBNAIL_WIDTH = _params[_current.pos++];
break;
}
case 1:
{
GlobalSkin.STYLE_THUMBNAIL_HEIGHT = _params[_current.pos++];
break;
}
case 2:
{
TABLE_STYLE_WIDTH_PIX = _params[_current.pos++];
break;
}
case 3:
{
TABLE_STYLE_HEIGHT_PIX = _params[_current.pos++];
break;
}
case 255:
default:
{
_continue = false;
break;
}
}
}
};
\ No newline at end of file
...@@ -248,7 +248,7 @@ function NativeOpenFile() ...@@ -248,7 +248,7 @@ function NativeOpenFile()
} }
} }
function NativeOpenFile2() function NativeOpenFile2(_params)
{ {
window["CreateMainTextMeasurerWrapper"](); window["CreateMainTextMeasurerWrapper"]();
...@@ -258,6 +258,12 @@ function NativeOpenFile2() ...@@ -258,6 +258,12 @@ function NativeOpenFile2()
if (window.NATIVE_DOCUMENT_TYPE == "presentation" || window.NATIVE_DOCUMENT_TYPE == "document") if (window.NATIVE_DOCUMENT_TYPE == "presentation" || window.NATIVE_DOCUMENT_TYPE == "document")
{ {
_api = new window["asc_docs_api"](""); _api = new window["asc_docs_api"]("");
if (undefined !== _api.Native_Editor_Initialize_Settings)
{
_api.Native_Editor_Initialize_Settings(_params);
}
_api.asc_nativeOpenFile(doc_bin); _api.asc_nativeOpenFile(doc_bin);
if (_api.NativeAfterLoad) if (_api.NativeAfterLoad)
......
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