1/**
2 * Copyright (c) 2006-2017, JGraph Ltd
3 * Copyright (c) 2006-2017, Gaudenz Alder
4 */
5OneDriveLibrary = function(ui, data, meta)
6{
7	OneDriveFile.call(this, ui, data, meta);
8};
9
10//Extends mxEventSource
11mxUtils.extend(OneDriveLibrary, OneDriveFile);
12
13/**
14 * Translates this point by the given vector.
15 *
16 * @param {number} dx X-coordinate of the translation.
17 * @param {number} dy Y-coordinate of the translation.
18 */
19OneDriveLibrary.prototype.isAutosave = function()
20{
21	return true;
22};
23
24/**
25 * Translates this point by the given vector.
26 *
27 * @param {number} dx X-coordinate of the translation.
28 * @param {number} dy Y-coordinate of the translation.
29 */
30OneDriveLibrary.prototype.save = function(revision, success, error)
31{
32	this.ui.oneDrive.saveFile(this, mxUtils.bind(this, function(resp)
33	{
34		this.desc = resp;
35
36		if (success != null)
37		{
38			success(resp);
39		}
40	}), error);
41};
42
43/**
44 * Returns the location as a new object.
45 * @type mx.Point
46 */
47OneDriveLibrary.prototype.open = function()
48{
49	// Do nothing - this should never be called
50};
51