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

git-svn-id:...

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@53310 954022d7-b5bf-4e40-9824-e11837661b57
parent 9b7c8cfd
...@@ -166,6 +166,8 @@ _null_object.css = function() { return this; }; ...@@ -166,6 +166,8 @@ _null_object.css = function() { return this; };
_null_object.width = function() { return 0; }; _null_object.width = function() { return 0; };
_null_object.height = function() { return 0; }; _null_object.height = function() { return 0; };
_null_object.attr = function() { return this; }; _null_object.attr = function() { return this; };
_null_object.prop = function() { return this; };
_null_object.val = function() { return this; };
_null_object.remove = function() {}; _null_object.remove = function() {};
document.createElement = function(type) document.createElement = function(type)
...@@ -240,6 +242,7 @@ function NativeOpenFile() ...@@ -240,6 +242,7 @@ function NativeOpenFile()
var doc_bin = window.native.GetFileString(g_file_path); var doc_bin = window.native.GetFileString(g_file_path);
oBinaryFileReader.Read(doc_bin, window.asc_wb); oBinaryFileReader.Read(doc_bin, window.asc_wb);
_api._coAuthoringInit();
_api.wb = new Asc["WorkbookView"]( _api.wb = new Asc["WorkbookView"](
_api.wbModel, _api.wbModel,
_api.controller, _api.controller,
...@@ -302,7 +305,6 @@ function NativeApplyChanges() ...@@ -302,7 +305,6 @@ function NativeApplyChanges()
} }
} }
_api._coAuthoringInit();
_api.CoAuthoringApi.onSaveChanges(__changes, false); _api.CoAuthoringApi.onSaveChanges(__changes, false);
_api.collaborativeEditing.applyChanges(); _api.collaborativeEditing.applyChanges();
} }
......
...@@ -126,3 +126,5 @@ Asc["spreadsheet_api"].prototype._loadFonts = function(_fonts, callback) ...@@ -126,3 +126,5 @@ Asc["spreadsheet_api"].prototype._loadFonts = function(_fonts, callback)
{ {
return callback(); return callback();
}; };
Asc["asc_CEventsController"].prototype.reinitializeScroll = function() {};
\ No newline at end of file
...@@ -380,6 +380,7 @@ private: ...@@ -380,6 +380,7 @@ private:
if (try_catch.HasCaught()) if (try_catch.HasCaught())
{ {
int nLineError = try_catch.Message()->GetLineNumber();
strException = to_cstring(try_catch.Message()->Get()); strException = to_cstring(try_catch.Message()->Get());
return FALSE; return FALSE;
} }
...@@ -414,6 +415,7 @@ private: ...@@ -414,6 +415,7 @@ private:
if (try_catch.HasCaught()) if (try_catch.HasCaught())
{ {
int nLineError = try_catch.Message()->GetLineNumber();
strException = to_cstring(try_catch.Message()->Get()); // ? strException = to_cstring(try_catch.Message()->Get()); // ?
return FALSE; return FALSE;
} }
...@@ -434,6 +436,7 @@ private: ...@@ -434,6 +436,7 @@ private:
if (try_catch.HasCaught()) if (try_catch.HasCaught())
{ {
int nLineError = try_catch.Message()->GetLineNumber();
strException = to_cstring(try_catch.Message()->Get()); // ? strException = to_cstring(try_catch.Message()->Get()); // ?
return FALSE; return FALSE;
} }
...@@ -448,6 +451,8 @@ private: ...@@ -448,6 +451,8 @@ private:
if (try_catch.HasCaught()) if (try_catch.HasCaught())
{ {
int nLineError = try_catch.Message()->GetLineNumber();
CString strCode = to_cstring(try_catch.Message()->GetSourceLine());
strException = to_cstring(try_catch.Message()->Get()); // ? strException = to_cstring(try_catch.Message()->Get()); // ?
return FALSE; return FALSE;
} }
...@@ -467,6 +472,7 @@ private: ...@@ -467,6 +472,7 @@ private:
if (try_catch.HasCaught()) if (try_catch.HasCaught())
{ {
int nLineError = try_catch.Message()->GetLineNumber();
strException = to_cstring(try_catch.Message()->Get()); // ? strException = to_cstring(try_catch.Message()->Get()); // ?
return FALSE; return FALSE;
} }
...@@ -491,6 +497,7 @@ private: ...@@ -491,6 +497,7 @@ private:
if (try_catch.HasCaught()) if (try_catch.HasCaught())
{ {
int nLineError = try_catch.Message()->GetLineNumber();
strException = to_cstring(try_catch.Message()->Get()); // ? strException = to_cstring(try_catch.Message()->Get()); // ?
return FALSE; return FALSE;
} }
...@@ -536,6 +543,7 @@ private: ...@@ -536,6 +543,7 @@ private:
if (try_catch.HasCaught()) if (try_catch.HasCaught())
{ {
int nLineError = try_catch.Message()->GetLineNumber();
strException = to_cstring(try_catch.Message()->Get()); // ? strException = to_cstring(try_catch.Message()->Get()); // ?
return FALSE; return FALSE;
} }
......
...@@ -166,6 +166,8 @@ _null_object.css = function() { return this; }; ...@@ -166,6 +166,8 @@ _null_object.css = function() { return this; };
_null_object.width = function() { return 0; }; _null_object.width = function() { return 0; };
_null_object.height = function() { return 0; }; _null_object.height = function() { return 0; };
_null_object.attr = function() { return this; }; _null_object.attr = function() { return this; };
_null_object.prop = function() { return this; };
_null_object.val = function() { return this; };
_null_object.remove = function() {}; _null_object.remove = function() {};
document.createElement = function(type) document.createElement = function(type)
...@@ -240,6 +242,7 @@ function NativeOpenFile() ...@@ -240,6 +242,7 @@ function NativeOpenFile()
var doc_bin = window.native.GetFileString(g_file_path); var doc_bin = window.native.GetFileString(g_file_path);
oBinaryFileReader.Read(doc_bin, window.asc_wb); oBinaryFileReader.Read(doc_bin, window.asc_wb);
_api._coAuthoringInit();
_api.wb = new Asc["WorkbookView"]( _api.wb = new Asc["WorkbookView"](
_api.wbModel, _api.wbModel,
_api.controller, _api.controller,
...@@ -302,7 +305,6 @@ function NativeApplyChanges() ...@@ -302,7 +305,6 @@ function NativeApplyChanges()
} }
} }
_api._coAuthoringInit();
_api.CoAuthoringApi.onSaveChanges(__changes, false); _api.CoAuthoringApi.onSaveChanges(__changes, false);
_api.collaborativeEditing.applyChanges(); _api.collaborativeEditing.applyChanges();
} }
...@@ -290467,3 +290469,5 @@ Asc["spreadsheet_api"].prototype._loadFonts = function(_fonts, callback) ...@@ -290467,3 +290469,5 @@ Asc["spreadsheet_api"].prototype._loadFonts = function(_fonts, callback)
return callback(); return callback();
}; };
Asc["asc_CEventsController"].prototype.reinitializeScroll = function() {};
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