2016-09-06 14:07:11 +00:00
|
|
|
/**
|
2017-02-11 08:29:14 +00:00
|
|
|
* Copyright (c) 2006-2017, JGraph Ltd
|
|
|
|
* Copyright (c) 2006-2017, Gaudenz Alder
|
2016-09-06 14:07:11 +00:00
|
|
|
*/
|
|
|
|
DropboxLibrary = function(ui, data, stat)
|
|
|
|
{
|
|
|
|
DropboxFile.call(this, ui, data, stat);
|
|
|
|
};
|
|
|
|
|
|
|
|
//Extends mxEventSource
|
|
|
|
mxUtils.extend(DropboxLibrary, DropboxFile);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Translates this point by the given vector.
|
|
|
|
*
|
|
|
|
* @param {number} dx X-coordinate of the translation.
|
|
|
|
* @param {number} dy Y-coordinate of the translation.
|
|
|
|
*/
|
|
|
|
DropboxLibrary.prototype.isAutosave = function()
|
|
|
|
{
|
2017-02-28 15:40:36 +00:00
|
|
|
return true;
|
2016-09-06 14:07:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Overridden to avoid updating data with current file.
|
|
|
|
*/
|
|
|
|
DropboxLibrary.prototype.doSave = function(title, success, error)
|
|
|
|
{
|
|
|
|
this.saveFile(title, false, success, error);
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the location as a new object.
|
|
|
|
* @type mx.Point
|
|
|
|
*/
|
|
|
|
DropboxLibrary.prototype.open = function()
|
|
|
|
{
|
|
|
|
// Do nothing - this should never be called
|
|
|
|
};
|