Commit 5485624f authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@47482 954022d7-b5bf-4e40-9824-e11837661b57
parent 7e386c67
/**
* Created with JetBrains WebStorm.
* User: Sergey.Luzyanin
* Date: 6/26/13
* Time: 6:29 PM
* To change this template use File | Settings | File Templates.
*/
function DrawingObjectsController(drawingObjects)
{
this.drawingObjects = drawingObjects;
this.curState = new NullState(this, drawingObjects);
}
DrawingObjectsController.prototype =
{
onMouseDown: function(e, x, y)
{
this.curState.onMouseDown(e, x, y);
},
onMouseMove: function(e, x, y)
{
this.curState.onMouseMove(e, x, y);
},
onMouseUp: function(e, x, y)
{
this.curState.onMouseUp(e, x, y);
}
};
\ No newline at end of file
/**
* Created with JetBrains WebStorm.
* User: Sergey.Luzyanin
* Date: 6/26/13
* Time: 6:19 PM
* To change this template use File | Settings | File Templates.
*/
/**
* Created with JetBrains WebStorm.
* User: Sergey.Luzyanin
* Date: 6/26/13
* Time: 6:24 PM
* To change this template use File | Settings | File Templates.
*/
function CImage(drawingBase)
{
this.drawingBase = drawingBase;
this.blipFill = new CBlipFill();
this.spPr = new CSpPr();
this.nvSpPr = null;
this.style = null;
this.x = null;
this.y = null;
this.x = null;
this.y = null;
this.extX = null;
this.extY = null;
this.rot = null;
this.flipH = null;
this.flipV = null;
this.transform = null;
this.invertTransform = null;
this.cursorTypes = [];
this.brush = null;
this.pen = null;
this.selected = false;
}
CImage.prototype =
{
};
\ No newline at end of file
/**
* Created with JetBrains WebStorm.
* User: Sergey.Luzyanin
* Date: 6/26/13
* Time: 6:09 PM
* To change this template use File | Settings | File Templates.
*/
function CShape(drawingBase)
{
this.drawingBase = drawingBase;
this.nvSpPr = null;
this.spPr = new CSpPr();
this.style = null;
this.txBody = null;
this.x = null;
this.y = null;
this.x = null;
this.y = null;
this.extX = null;
this.extY = null;
this.rot = null;
this.flipH = null;
this.flipV = null;
this.transform = null;
this.invertTransform = null;
this.transformText = null;
this.invertTransformText = null;
this.cursorTypes = [];
this.brush = null;
this.pen = null;
this.selected = false;
}
CShape.prototype =
{
initDefault: function()
{},
initDefaultTextRect: function()
{},
recalculateBrush: function()
{
}
};
\ No newline at end of file
/**
* Created with JetBrains WebStorm.
* User: Sergey.Luzyanin
* Date: 6/26/13
* Time: 7:30 PM
* To change this template use File | Settings | File Templates.
*/
var STATES_ID_NULL = 0x00;
function NullState(drawingObjectsController, drawingObjects)
{
this.drawingObjectsController = drawingObjectsController;
this.drawingObjects = drawingObjects;
this.onMouseDown = function(e, x, y)
{};
this.onMouseMove = function(e, x, y)
{};
this.onMouseUp = function(e, x, y)
{}
}
\ 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