Commit d489ba50 authored by Oleg.Korshul's avatar Oleg.Korshul

new version

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@60826 954022d7-b5bf-4e40-9824-e11837661b57
parent 00666457
......@@ -563,6 +563,9 @@ function CDrawingDocument()
this.UpdateTargetFromPaint = false;
this.UpdateTargetCheck = true;
this.TargetPos = { X: 0, Y : 0, Page : -1 };
this.TargetShowNeedFlag = false;
this.TargetShowNeedFlag = false;
......@@ -781,6 +784,10 @@ CDrawingDocument.prototype =
},
UpdateTarget : function(x, y, pageIndex)
{
this.TargetPos.X = x;
this.TargetPos.Y = y;
this.TargetPos.Page = pageIndex;
this.LogicDocument.Set_TargetPos(x, y, pageIndex);
this.UpdateTargetCheck = true;
this.Native["DD_UpdateTarget"](x, y, pageIndex);
......@@ -1729,6 +1736,20 @@ CDrawingDocument.prototype =
if (_target === false)
{
_ret[0] = 1;
_ret.push(this.TargetPos.X);
_ret.push(this.TargetPos.Y);
_ret.push(this.TargetPos.Page);
if (this.TextMatrix && !this.TextMatrix.IsIdentity())
{
_ret.push(this.TextMatrix.sx);
_ret.push(this.TextMatrix.shy);
_ret.push(this.TextMatrix.shx);
_ret.push(this.TextMatrix.sy);
_ret.push(this.TextMatrix.tx);
_ret.push(this.TextMatrix.ty);
}
}
var _select = this.LogicDocument.Get_SelectionBounds();
......
......@@ -88,6 +88,20 @@ asc_docs_api.prototype["Call_CheckTargetUpdate"] = function()
this.WordControl.m_oDrawingDocument.UpdateTargetFromPaint = false;
};
asc_docs_api.prototype["Call_Common"] = function(type, param)
{
switch (type)
{
case 1:
{
this.WordControl.m_oLogicDocument.Cursor_MoveLeft();
break;
}
default:
break;
}
};
asc_docs_api.prototype["Call_HR_Tabs"] = function(arrT, arrP)
{
var _arr = new CParaTabs();
......
......@@ -486,6 +486,10 @@ window.native.Call_CheckTargetUpdate = function()
{
return _api.Call_CheckTargetUpdate();
};
window.native.Call_Common = function(type, param)
{
return _api.Call_Common();
};
window.native.Call_HR_Tabs = function(arrT, arrP)
{
......
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