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;
// declarate unused methods and objects
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()
}
}
function NativeOpenFile2()
function NativeOpenFile2(_params)
{
window["CreateMainTextMeasurerWrapper"]();
......@@ -257,7 +257,13 @@ function NativeOpenFile2()
var doc_bin = window.native.GetFileString(window.g_file_path);
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);
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