Commit 0e790533 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@54078 954022d7-b5bf-4e40-9824-e11837661b57
parent ef7cd724
......@@ -214,6 +214,11 @@ window.native = native;
window["native"] = native;
window.native.v6a = window.native.GetFontBinary;
function GetNativeEngine()
{
return window.native;
}
var native_renderer = null;
var _api = null;
var Asc = null;
......@@ -235,6 +240,25 @@ function NativeOpenFile()
}
}
function NativeOpenFile2()
{
window.g_file_path = "native_open_file";
window.NATIVE_DOCUMENT_TYPE = window.native.GetEditorType();
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.asc_nativeOpenFile(doc_bin);
}
else
{
Asc = window["Asc"];
_api = new window["Asc"]["spreadsheet_api"];
var doc_bin = window.native.GetFileString(window.g_file_path);
_api.asc_nativeOpenFile(doc_bin);
}
}
function NativeCalculateFile()
{
_api.asc_nativeCalculateFile();
......@@ -328,4 +352,7 @@ function setInterval() {};
window.clearTimeout = clearTimeout;
window.setTimeout = setTimeout;
window.clearInterval = clearInterval;
window.setInterval = setInterval;
\ No newline at end of file
window.setInterval = setInterval;
window["OfficeExcel"] = {type:'common'};
var OfficeExcel = window["OfficeExcel"];
\ No newline at end of file
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