Commit 0bbcf76a 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@57380 954022d7-b5bf-4e40-9824-e11837661b57
parent 801c4faa
...@@ -750,10 +750,7 @@ function CEditorPage(api) ...@@ -750,10 +750,7 @@ function CEditorPage(api)
oWordControl.CalculateDocumentSize(); oWordControl.CalculateDocumentSize();
var lCurPage = oWordControl.m_oDrawingDocument.SlideCurrent; var lCurPage = oWordControl.m_oDrawingDocument.SlideCurrent;
if (oWordControl.m_oLogicDocument)
{
oWordControl.m_oLogicDocument.redrawCharts();
}
this.GoToPage(lCurPage); this.GoToPage(lCurPage);
......
...@@ -260,6 +260,23 @@ CColorMod.prototype = ...@@ -260,6 +260,23 @@ CColorMod.prototype =
} }
}; };
function _create_mod(default_obj)
{
var ret = new CColorMod();
ret.name = default_obj["name"];
ret.val = default_obj["val"];
return ret;
}
function _create_mods(arr_defaults)
{
var ret = [];
for (var i = 0; i < arr_defaults.length; i++)
ret.push(_create_mod(arr_defaults[i]));
return ret;
}
var cd16 = 1.0/6.0; var cd16 = 1.0/6.0;
var cd13 = 1.0/3.0; var cd13 = 1.0/3.0;
var cd23 = 2.0/3.0; var cd23 = 2.0/3.0;
......
...@@ -47,8 +47,7 @@ function CTableId() ...@@ -47,8 +47,7 @@ function CTableId()
this.Add = function(Class, Id) this.Add = function(Class, Id)
{ {
if(Class instanceof asc_CChart)// ToDo Его нет!!!!
return;
if ( false === this.m_bTurnOff ) if ( false === this.m_bTurnOff )
{ {
Class.Id = Id; Class.Id = Id;
......
...@@ -646,6 +646,9 @@ CShape.prototype = ...@@ -646,6 +646,9 @@ CShape.prototype =
} }
}, },
setBDeleted: function()
{},
Document_UpdateRulersState: function (margins) { Document_UpdateRulersState: function (margins) {
if (this.txBody && this.txBody.content) { if (this.txBody && this.txBody.content) {
this.txBody.content.Document_UpdateRulersState(this.parent.num, this.getMargins()); this.txBody.content.Document_UpdateRulersState(this.parent.num, this.getMargins());
...@@ -1784,6 +1787,14 @@ CShape.prototype = ...@@ -1784,6 +1787,14 @@ CShape.prototype =
}, },
recalculateTransform: function () { recalculateTransform: function () {
this.recalculateLocalTransform(this.transform);
this.invertTransform = global_MatrixTransformer.Invert(this.transform);
},
recalculateLocalTransform: function(transform)
{
if (!isRealObject(this.group)) { if (!isRealObject(this.group)) {
if (this.spPr.xfrm.isNotNull()) { if (this.spPr.xfrm.isNotNull()) {
var xfrm = this.spPr.xfrm; var xfrm = this.spPr.xfrm;
...@@ -1873,21 +1884,19 @@ CShape.prototype = ...@@ -1873,21 +1884,19 @@ CShape.prototype =
this.flipH = xfrm.flipH === true; this.flipH = xfrm.flipH === true;
this.flipV = xfrm.flipV === true; this.flipV = xfrm.flipV === true;
} }
this.transform.Reset(); transform.Reset();
var hc = this.extX * 0.5; var hc = this.extX * 0.5;
var vc = this.extY * 0.5; var vc = this.extY * 0.5;
global_MatrixTransformer.TranslateAppend(this.transform, -hc, -vc); global_MatrixTransformer.TranslateAppend(transform, -hc, -vc);
if (this.flipH) if (this.flipH)
global_MatrixTransformer.ScaleAppend(this.transform, -1, 1); global_MatrixTransformer.ScaleAppend(transform, -1, 1);
if (this.flipV) if (this.flipV)
global_MatrixTransformer.ScaleAppend(this.transform, 1, -1); global_MatrixTransformer.ScaleAppend(transform, 1, -1);
global_MatrixTransformer.RotateRadAppend(this.transform, -this.rot); global_MatrixTransformer.RotateRadAppend(transform, -this.rot);
global_MatrixTransformer.TranslateAppend(this.transform, this.x + hc, this.y + vc); global_MatrixTransformer.TranslateAppend(transform, this.x + hc, this.y + vc);
if (isRealObject(this.group)) { if (isRealObject(this.group)) {
global_MatrixTransformer.MultiplyAppend(this.transform, this.group.getTransformMatrix()); global_MatrixTransformer.MultiplyAppend(transform, this.group.getTransformMatrix());
} }
this.invertTransform = global_MatrixTransformer.Invert(this.transform);
}, },
updateInterfaceTextState: function () { updateInterfaceTextState: function () {
......
...@@ -131,8 +131,9 @@ ...@@ -131,8 +131,9 @@
<script type="text/javascript" src="../../OfficeWeb/PowerPoint/api.js"></script> <script type="text/javascript" src="../../OfficeWeb/PowerPoint/api.js"></script>
<script type="text/javascript" src="../../OfficeWeb/PowerPoint/Editor/Format.js"></script> <script type="text/javascript" src="../../OfficeWeb/PowerPoint/Editor/Format.js"></script>
<script type="text/javascript" src="../../OfficeWeb/Common/Drawings/Format/Constants.js"></script>
<script type="text/javascript" src="../../OfficeWeb/PowerPoint/themes/Themes.js"></script> <script type="text/javascript" src="../../OfficeWeb/PowerPoint/themes/Themes.js"></script>
<script type="text/javascript" src="../../OfficeWeb/Common/Shapes/Serialize.js"></script> <script type="text/javascript" src="../../OfficeWeb/PowerPoint/Editor/Serialize.js"></script>
<script type="text/javascript" src="../../OfficeWeb/Common/Shapes/SerializeWriter.js"></script> <script type="text/javascript" src="../../OfficeWeb/Common/Shapes/SerializeWriter.js"></script>
<script src="../../OfficeWeb/Word/Editor/SerializeCommon.js"></script> <script src="../../OfficeWeb/Word/Editor/SerializeCommon.js"></script>
......
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