Commit e8c1493a 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@55751 954022d7-b5bf-4e40-9824-e11837661b57
parent 1e2b8d8e
...@@ -385,6 +385,8 @@ window["CreateTextMeasurerWrapper"] = function() ...@@ -385,6 +385,8 @@ window["CreateTextMeasurerWrapper"] = function()
{ {
return new CTextMeasurerWrapper(); return new CTextMeasurerWrapper();
}; };
window["CreateMainTextMeasurerWrapper"] = function()
g_oTextMeasurer = window["CreateTextMeasurerWrapper"](); {
g_oTextMeasurer.Init(); g_oTextMeasurer = new CTextMeasurerWrapper();
\ No newline at end of file g_oTextMeasurer.Init();
};
\ No newline at end of file
...@@ -250,6 +250,8 @@ function NativeOpenFile() ...@@ -250,6 +250,8 @@ function NativeOpenFile()
function NativeOpenFile2() function NativeOpenFile2()
{ {
window["CreateMainTextMeasurerWrapper"]();
window.g_file_path = "native_open_file"; window.g_file_path = "native_open_file";
window.NATIVE_DOCUMENT_TYPE = window.native.GetEditorType(); window.NATIVE_DOCUMENT_TYPE = window.native.GetEditorType();
var doc_bin = window.native.GetFileString(window.g_file_path); var doc_bin = window.native.GetFileString(window.g_file_path);
......
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