Commit 41cb0a14 authored by Alexey.Musinov's avatar Alexey.Musinov

[mobile] sheetsChanged

parent 9416660a
...@@ -3777,21 +3777,25 @@ function OfflineEditor () { ...@@ -3777,21 +3777,25 @@ function OfflineEditor () {
stream["WriteBool"](bCanUndo); stream["WriteBool"](bCanUndo);
window["native"]["OnCallMenuEvent"](60, stream); // ASC_MENU_EVENT_TYPE_CAN_UNDO window["native"]["OnCallMenuEvent"](60, stream); // ASC_MENU_EVENT_TYPE_CAN_UNDO
}); });
_api.asc_registerCallback('asc_onCanRedoChanged', function (bCanRedo) { _api.asc_registerCallback('asc_onCanRedoChanged', function (bCanRedo) {
var stream = global_memory_stream_menu; var stream = global_memory_stream_menu;
stream["ClearNoAttack"](); stream["ClearNoAttack"]();
stream["WriteBool"](bCanRedo); stream["WriteBool"](bCanRedo);
window["native"]["OnCallMenuEvent"](61, stream); // ASC_MENU_EVENT_TYPE_CAN_REDO window["native"]["OnCallMenuEvent"](61, stream); // ASC_MENU_EVENT_TYPE_CAN_REDO
}); });
_api.asc_registerCallback('asc_onDocumentModifiedChanged', function(change) { _api.asc_registerCallback('asc_onDocumentModifiedChanged', function(change) {
var stream = global_memory_stream_menu; var stream = global_memory_stream_menu;
stream["ClearNoAttack"](); stream["ClearNoAttack"]();
stream["WriteBool"](change); stream["WriteBool"](change);
window["native"]["OnCallMenuEvent"](66, stream); // ASC_MENU_EVENT_TYPE_DOCUMETN_MODIFITY window["native"]["OnCallMenuEvent"](66, stream); // ASC_MENU_EVENT_TYPE_DOCUMETN_MODIFITY
}); });
_api.asc_registerCallback("asc_onActiveSheetChanged", function(index) { _api.asc_registerCallback("asc_onActiveSheetChanged", function(index) {
t.asc_WriteAllWorksheets(true, true); t.asc_WriteAllWorksheets(true, true);
}); });
_api.asc_registerCallback('asc_onRenameCellTextEnd', function(found, replaced) { _api.asc_registerCallback('asc_onRenameCellTextEnd', function(found, replaced) {
var stream = global_memory_stream_menu; var stream = global_memory_stream_menu;
stream["ClearNoAttack"](); stream["ClearNoAttack"]();
...@@ -3799,6 +3803,7 @@ function OfflineEditor () { ...@@ -3799,6 +3803,7 @@ function OfflineEditor () {
stream["WriteLong"](replaced); stream["WriteLong"](replaced);
window["native"]["OnCallMenuEvent"](63, stream); // ASC_MENU_EVENT_TYPE_SEARCH_REPLACETEXT window["native"]["OnCallMenuEvent"](63, stream); // ASC_MENU_EVENT_TYPE_SEARCH_REPLACETEXT
}); });
_api.asc_registerCallback('asc_onSelectionChanged', function(cellInfo) { _api.asc_registerCallback('asc_onSelectionChanged', function(cellInfo) {
var stream = global_memory_stream_menu; var stream = global_memory_stream_menu;
stream["ClearNoAttack"](); stream["ClearNoAttack"]();
...@@ -3806,34 +3811,40 @@ function OfflineEditor () { ...@@ -3806,34 +3811,40 @@ function OfflineEditor () {
window["native"]["OnCallMenuEvent"](2402, stream); // ASC_SPREADSHEETS_EVENT_TYPE_SELECTION_CHANGED window["native"]["OnCallMenuEvent"](2402, stream); // ASC_SPREADSHEETS_EVENT_TYPE_SELECTION_CHANGED
t.onSelectionChanged(cellInfo); t.onSelectionChanged(cellInfo);
}); });
_api.asc_registerCallback('asc_onSelectionNameChanged', function(name) { _api.asc_registerCallback('asc_onSelectionNameChanged', function(name) {
var stream = global_memory_stream_menu; var stream = global_memory_stream_menu;
stream["ClearNoAttack"](); stream["ClearNoAttack"]();
stream['WriteString2'](name); stream['WriteString2'](name);
window["native"]["OnCallMenuEvent"](2310, stream); // ASC_SPREADSHEETS_EVENT_TYPE_EDITOR_SELECTION_NAME_CHANGED window["native"]["OnCallMenuEvent"](2310, stream); // ASC_SPREADSHEETS_EVENT_TYPE_EDITOR_SELECTION_NAME_CHANGED
}); });
_api.asc_registerCallback('asc_onEditorSelectionChanged', function(font) { _api.asc_registerCallback('asc_onEditorSelectionChanged', function(font) {
var stream = global_memory_stream_menu; var stream = global_memory_stream_menu;
stream["ClearNoAttack"](); stream["ClearNoAttack"]();
asc_WriteCFont(-1, font, stream); asc_WriteCFont(-1, font, stream);
window["native"]["OnCallMenuEvent"](2403, stream); // ASC_SPREADSHEETS_EVENT_TYPE_EDITOR_SELECTION_CHANGED window["native"]["OnCallMenuEvent"](2403, stream); // ASC_SPREADSHEETS_EVENT_TYPE_EDITOR_SELECTION_CHANGED
}); });
_api.asc_registerCallback('asc_onSendThemeColorSchemes', function(schemes) { _api.asc_registerCallback('asc_onSendThemeColorSchemes', function(schemes) {
var stream = global_memory_stream_menu; var stream = global_memory_stream_menu;
stream["ClearNoAttack"](); stream["ClearNoAttack"]();
asc_WriteColorSchemes(schemes, stream); asc_WriteColorSchemes(schemes, stream);
window["native"]["OnCallMenuEvent"](2404, stream); // ASC_SPREADSHEETS_EVENT_TYPE_COLOR_SCHEMES window["native"]["OnCallMenuEvent"](2404, stream); // ASC_SPREADSHEETS_EVENT_TYPE_COLOR_SCHEMES
}); });
_api.asc_registerCallback('asc_onInitTablePictures', function () { _api.asc_registerCallback('asc_onInitTablePictures', function () {
var stream = global_memory_stream_menu; var stream = global_memory_stream_menu;
stream["ClearNoAttack"](); stream["ClearNoAttack"]();
window["native"]["OnCallMenuEvent"](12, stream); // ASC_MENU_EVENT_TYPE_TABLE_STYLES window["native"]["OnCallMenuEvent"](12, stream); // ASC_MENU_EVENT_TYPE_TABLE_STYLES
}); });
_api.asc_registerCallback('asc_onInitEditorStyles', function () { _api.asc_registerCallback('asc_onInitEditorStyles', function () {
var stream = global_memory_stream_menu; var stream = global_memory_stream_menu;
stream["ClearNoAttack"](); stream["ClearNoAttack"]();
window["native"]["OnCallMenuEvent"](2405, stream); // ASC_SPREADSHEETS_EVENT_TYPE_TABLE_STYLES window["native"]["OnCallMenuEvent"](2405, stream); // ASC_SPREADSHEETS_EVENT_TYPE_TABLE_STYLES
}); });
_api.asc_registerCallback('asc_onError', function(id, level, errData) { _api.asc_registerCallback('asc_onError', function(id, level, errData) {
var stream = global_memory_stream_menu; var stream = global_memory_stream_menu;
stream["ClearNoAttack"](); stream["ClearNoAttack"]();
...@@ -3841,6 +3852,7 @@ function OfflineEditor () { ...@@ -3841,6 +3852,7 @@ function OfflineEditor () {
stream['WriteLong'](level); stream['WriteLong'](level);
window["native"]["OnCallMenuEvent"](500, stream); // ASC_MENU_EVENT_TYPE_ON_ERROR window["native"]["OnCallMenuEvent"](500, stream); // ASC_MENU_EVENT_TYPE_ON_ERROR
}); });
_api.asc_registerCallback('asc_onEditCell', function(state) { _api.asc_registerCallback('asc_onEditCell', function(state) {
var stream = global_memory_stream_menu; var stream = global_memory_stream_menu;
stream["ClearNoAttack"](); stream["ClearNoAttack"]();
...@@ -3855,6 +3867,10 @@ function OfflineEditor () { ...@@ -3855,6 +3867,10 @@ function OfflineEditor () {
window["native"]["OnCallMenuEvent"](3060, stream); // ASC_SPREADSHEETS_EVENT_TYPE_FILTER_DIALOG window["native"]["OnCallMenuEvent"](3060, stream); // ASC_SPREADSHEETS_EVENT_TYPE_FILTER_DIALOG
}); });
_api.asc_registerCallback('asc_onSheetsChanged', function () {
t.asc_WriteAllWorksheets(true, true);
});
_api.asc_registerCallback('asc_onGetEditorPermissions', function(state) { _api.asc_registerCallback('asc_onGetEditorPermissions', function(state) {
//console.log("asc_onGetEditorPermissions"); //console.log("asc_onGetEditorPermissions");
......
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