Commit 3acbb892 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

delete unused merge

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@66613 954022d7-b5bf-4e40-9824-e11837661b57
parent a887d7d8
(function () {
var prot;
function asc_docs_merge_api()
{
if (typeof editor == 'undefined')
{
window['editor'] = window.editor = editor = this;
}
this.WordControl = new CEditorPage(this);
this.WordControl.m_oLogicDocument = new CDocument(this.WordControl.m_oDrawingDocument);
this.WordControl.m_oDrawingDocument.m_oLogicDocument = this.WordControl.m_oLogicDocument;
this.chartPreviewManager = new ChartPreviewManager();
}
asc_docs_merge_api.prototype = {
LoadDocument: function( doc )
{
this.LoadedObjectDS = Common_CopyObj(this.WordControl.m_oLogicDocument.Get_Styles().Style);
var oBinaryFileReader = new BinaryFileReader(this.WordControl.m_oLogicDocument);
oBinaryFileReader.Read( doc );
},
ApplyChanges: function(e)
{
var Count = e.length;
for (var i = 0; i < Count; i++)
{
var Changes = new CCollaborativeChanges();
Changes.Set_Id(e[i]["id"]);
Changes.Set_Data(e[i]["data"]);
CollaborativeEditing.Add_Changes(Changes);
}
if(Count > 0)
CollaborativeEditing.Apply_OtherChanges();
},
Save: function()
{
var oBinaryFileWriter = new BinaryFileWriter(this.WordControl.m_oLogicDocument);
return oBinaryFileWriter.Write();
}
};
exports['asc_docs_merge_api'] = asc_docs_merge_api;
prot = asc_docs_merge_api.prototype;
prot['LoadDocument'] = prot.LoadDocument;
prot['ApplyChanges'] = prot.ApplyChanges;
prot['Save'] = prot.Save;
})();
var doc_changes = [{"id":"9","data":"27;AwAAAAEAAAABAAAAAAAAAAEAAAACAAAASAAA"},{"id":"1","data":"42;AQAAAAEAAAAGAAAANABfADIABwAAAAYAAAA0AF8AMgACAAAAMgAAAAAA"},{"id":"9","data":"27;AwAAAAEAAAABAAAAAQAAAAEAAAACAAAAZQAA"},{"id":"1","data":"42;AQAAAAEAAAAGAAAANABfADMABwAAAAYAAAA0AF8AMwACAAAAMgAAAAAA"},{"id":"9","data":"27;AwAAAAEAAAABAAAAAgAAAAEAAAACAAAAbAAA"},{"id":"1","data":"42;AQAAAAEAAAAGAAAANABfADQABwAAAAYAAAA0AF8ANAACAAAAMgAAAAAA"},{"id":"9","data":"27;AwAAAAEAAAABAAAAAwAAAAEAAAACAAAAbAAA"},{"id":"1","data":"42;AQAAAAEAAAAGAAAANABfADUABwAAAAYAAAA0AF8ANQACAAAAMgAAAAAA"},{"id":"9","data":"27;AwAAAAEAAAABAAAABAAAAAEAAAACAAAAbwAA"},{"id":"1","data":"42;AQAAAAEAAAAGAAAANABfADYABwAAAAYAAAA0AF8ANgACAAAAMgAAAAAA"},{"id":"9","data":"24;AwAAAAEAAAABAAAABQAAAAIAAAABAAAA"},{"id":"1","data":"42;AQAAAAEAAAAGAAAANABfADcABwAAAAYAAAA0AF8ANwACAAAAMgAAAAAA"},{"id":"9","data":"27;AwAAAAEAAAABAAAABgAAAAEAAAACAAAAdwAA"},{"id":"1","data":"42;AQAAAAEAAAAGAAAANABfADgABwAAAAYAAAA0AF8AOAACAAAAMgAAAAAA"},{"id":"9","data":"27;AwAAAAEAAAABAAAABwAAAAEAAAACAAAAbwAA"},{"id":"1","data":"42;AQAAAAEAAAAGAAAANABfADkABwAAAAYAAAA0AF8AOQACAAAAMgAAAAAA"},{"id":"9","data":"27;AwAAAAEAAAABAAAACAAAAAEAAAACAAAAcgAA"},{"id":"1","data":"46;AQAAAAEAAAAIAAAANABfADEAMAAHAAAACAAAADQAXwAxADAAAgAAADIAAAAAAA=="},{"id":"9","data":"27;AwAAAAEAAAABAAAACQAAAAEAAAACAAAAZAAA"},{"id":"1","data":"46;AQAAAAEAAAAIAAAANABfADEAMQAHAAAACAAAADQAXwAxADEAAgAAADIAAAAAAA=="},{"id":"9","data":"27;AwAAAAEAAAABAAAACgAAAAEAAAACAAAAIQAA"},{"id":"1","data":"46;AQAAAAEAAAAIAAAANABfADEAMgAHAAAACAAAADQAXwAxADIAAgAAADIAAAAAAA=="}];
\ No newline at end of file
[{"id":"9","data":"27;AwAAAAEAAAABAAAAAAAAAAEAAAACAAAASAAA"},{"id":"1","data":"42;AQAAAAEAAAAGAAAANABfADIABwAAAAYAAAA0AF8AMgACAAAAMgAAAAAA"},{"id":"9","data":"27;AwAAAAEAAAABAAAAAQAAAAEAAAACAAAAZQAA"},{"id":"1","data":"42;AQAAAAEAAAAGAAAANABfADMABwAAAAYAAAA0AF8AMwACAAAAMgAAAAAA"},{"id":"9","data":"27;AwAAAAEAAAABAAAAAgAAAAEAAAACAAAAbAAA"},{"id":"1","data":"42;AQAAAAEAAAAGAAAANABfADQABwAAAAYAAAA0AF8ANAACAAAAMgAAAAAA"},{"id":"9","data":"27;AwAAAAEAAAABAAAAAwAAAAEAAAACAAAAbAAA"},{"id":"1","data":"42;AQAAAAEAAAAGAAAANABfADUABwAAAAYAAAA0AF8ANQACAAAAMgAAAAAA"},{"id":"9","data":"27;AwAAAAEAAAABAAAABAAAAAEAAAACAAAAbwAA"},{"id":"1","data":"42;AQAAAAEAAAAGAAAANABfADYABwAAAAYAAAA0AF8ANgACAAAAMgAAAAAA"},{"id":"9","data":"24;AwAAAAEAAAABAAAABQAAAAIAAAABAAAA"},{"id":"1","data":"42;AQAAAAEAAAAGAAAANABfADcABwAAAAYAAAA0AF8ANwACAAAAMgAAAAAA"},{"id":"9","data":"27;AwAAAAEAAAABAAAABgAAAAEAAAACAAAAdwAA"},{"id":"1","data":"42;AQAAAAEAAAAGAAAANABfADgABwAAAAYAAAA0AF8AOAACAAAAMgAAAAAA"},{"id":"9","data":"27;AwAAAAEAAAABAAAABwAAAAEAAAACAAAAbwAA"},{"id":"1","data":"42;AQAAAAEAAAAGAAAANABfADkABwAAAAYAAAA0AF8AOQACAAAAMgAAAAAA"},{"id":"9","data":"27;AwAAAAEAAAABAAAACAAAAAEAAAACAAAAcgAA"},{"id":"1","data":"46;AQAAAAEAAAAIAAAANABfADEAMAAHAAAACAAAADQ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AAOAgIABBTcnAgACBeZEAAADAQEDFAAAAAADgICAAQXNiQAAAgXmRAAAAwEBAI8AAAABBgAAAGEAZgAyAAIKAAAAVABpAHQAbABlAAkBAAAAAwMCAAAAYQAEAgAAAGEACgEAAAABCwQAAAAKAAAABQ4AAAAAAQEIBEgAAAAJAwAAAAY6AAAACQYVAAAACgWghgEACwEBDAUOEwgADQU3JwIAGwYZAAAAAxQAAAAAAwAAAAEFAAAAAAIFaZ0BAAMBAQBcAAAAAQYAAABhAGYANQACHAAAAEwAaQBzAHQAIABQAGEAcgBhAGcAcgBhAHAAaAAJAQAAAAMDAgAAAGEACgEAAAABCwQAAAAiAAAABg8AAAAAAQEBBgYAAAACBfBgEwBXAAAAAAUAAAACAAAAAARIAAAAAA8AAAAABZ1yQAEBBQkxxQECAQABJAAAAAAFN8gtAAEFeoUeAAIFqeAWAAMFeoUeAAQF8GATAAUFJRUTAAIGAAAAAAEAAQEABQAAAAAAAAAA";
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
var doc_changes = [{"id":"56","data":"24;AwAAAAEAAAABAAAABAAAAAIAAAABAAAA"},{"id":"1","data":"50;AQAAAAEAAAAKAAAAMQAyADMAXwA3AAcAAAAKAAAAMQAyADMAXwA3AAIAAAAyAAAAAAA="},{"id":"1","data":"50;AQAAAAEAAAAKAAAAMQAyADMAXwA4AAcAAAAKAAAAMQAyADMAXwA4AAIAAAAyAAAAAAA="}];
\ No newline at end of file
[{"id":"56","data":"24;AwAAAAEAAAABAAAABAAAAAIAAAABAAAA"},{"id":"1","data":"50;AQAAAAEAAAAKAAAAMQAyADMAXwA3AAcAAAAKAAAAMQAyADMAXwA3AAIAAAAyAAAAAAA="},{"id":"1","data":"50;AQAAAAEAAAAKAAAAMQAyADMAXwA4AAcAAAAKAAAAMQAyADMAXwA4AAIAAAAyAAAAAAA="}]
\ No newline at end of file
if(process.argv.length < 4)
{
console.log("Wrong parameter count!");
console.log("Usage: node fonts_char_map.js <document_file_name> <output_file_name>");
return;
}
var base_file = process.argv[2];
var output_file = process.argv[3];
try{
var sdk_all = require('../sdk-all.js');
var editor = new sdk_all.asc_docs_api();
var fs = require('fs');
var base_doc = fs.readFileSync(base_file, 'utf-8');
editor.LoadDocument( base_doc );
var char_map = editor.CreateFontsCharMap();
fs.writeFileSync(output_file, char_map, 'utf-8');
}
catch(err){
console.log("Error:", err);
}
@echo on
echo Installation nodejs modules
call npm install node-gyp -g
call npm install jsdom
call npm install canvas
call npm install navigator
call npm install xmlhttprequest
call npm install jQuery
pause
node --debug merge.js ./document/editor.bin ./document/changes ./editor_modified.bin
echo %ERRORLEVEL%
pause
\ No newline at end of file
if(process.argv.length < 5)
{
console.log("Wrong parameter count!");
console.log("Usage: node merge.js <base_file_name> <changes_dir_name> <output_file_name>");
return;
}
var base_file = process.argv[2];
var changes_dir = process.argv[3];
var output_file = process.argv[4];
setTimeout( main, 0, base_file, changes_dir, output_file);
function main(base_file, changes_dir, output_file)
{
var error_code = 1;
try {
//var TimeStart = new Date();
var sdk_all = require('./sdk-all.js');
var editor = new sdk_all.asc_docs_merge_api();
var fs = require('fs');
var base_doc = fs.readFileSync(base_file, 'utf-8');
editor.LoadDocument( base_doc );
var doc_changes = [];
var changes_file_array = fs.readdirSync(changes_dir);
for(var i in changes_file_array)
{
var changes_file_name = changes_file_array[i];
if(changes_file_name.match(/changes[\d]*.json/i))
{
var doc_changes_tmp = fs.readFileSync(changes_dir + "/" + changes_file_name, 'utf-8');
doc_changes_tmp = JSON.parse(doc_changes_tmp);
doc_changes = doc_changes.concat(doc_changes_tmp);
}
}
editor.ApplyChanges( doc_changes );
var changed_doc = editor.Save();
fs.writeFileSync(output_file, changed_doc, 'utf-8');
//var TimeEnd = new Date();
//console.log("Execution duration:", TimeEnd - TimeStart, " ms.");
error_code = 0;
}
catch(err) {
console.log("Error:", err);
}
finally {
process.exit(error_code);
}
}
- 32- nodejs
- Microsoft Visual C++ 2010 Express
- Python 2.7 C:\Python27 ( PATH)
- cairo GTK C:\GTK ( C:\GTK\bin PATH)
: https://npmjs.org/package/jsdom : https://github.com/LearnBoost/node-canvas/wiki/Installation---Windows
\ 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