Commit eeef46fd authored by Alexey.Musinov's avatar Alexey.Musinov

mobile coautoring events

parent e1308a72
...@@ -4026,7 +4026,7 @@ function OfflineEditor () { ...@@ -4026,7 +4026,7 @@ function OfflineEditor () {
asc_WriteUsers(users, stream); asc_WriteUsers(users, stream);
window["native"]["OnCallMenuEvent"](20101, stream); // ASC_COAUTH_EVENT_TYPE_PARTICIPANTS_CHANGED window["native"]["OnCallMenuEvent"](20101, stream); // ASC_COAUTH_EVENT_TYPE_PARTICIPANTS_CHANGED
}); });
_api.asc_registerCallback("asc_onParticipantsChanged", function(users) { _api.asc_registerCallback("asc_onParticipantsChanged", function(users) {
var stream = global_memory_stream_menu; var stream = global_memory_stream_menu;
stream["ClearNoAttack"](); stream["ClearNoAttack"]();
...@@ -4038,6 +4038,21 @@ function OfflineEditor () { ...@@ -4038,6 +4038,21 @@ function OfflineEditor () {
t.asc_WriteAllWorksheets(true, true); t.asc_WriteAllWorksheets(true, true);
}); });
_api.asc_registerCallback("asc_onWorkbookLocked", function(locked) {
var stream = global_memory_stream_menu;
stream["ClearNoAttack"]();
stream["WriteBool"](locked);
window["native"]["OnCallMenuEvent"](20104, stream); // ASC_COAUTH_EVENT_TYPE_WORKBOOK_LOCKED
});
_api.asc_registerCallback("asc_onWorksheetLocked", function(index, locked) {
var stream = global_memory_stream_menu;
stream["ClearNoAttack"]();
stream["WriteLong"](index);
stream["WriteBool"](locked);
window["native"]["OnCallMenuEvent"](20105, stream); // ASC_COAUTH_EVENT_TYPE_WORKSHEET_LOCKED
});
_api.asc_registerCallback("asc_onGetEditorPermissions", function(state) { _api.asc_registerCallback("asc_onGetEditorPermissions", function(state) {
var rData = { var rData = {
......
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