Commit ba76db77 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@60210 954022d7-b5bf-4e40-9824-e11837661b57
parent 70f64464
...@@ -482,9 +482,7 @@ CTextBody.prototype = ...@@ -482,9 +482,7 @@ CTextBody.prototype =
this.checkParagraphContent(parg, font_scale, true); this.checkParagraphContent(parg, font_scale, true);
} }
} }
} }
} }
} }
} }
......
...@@ -1183,6 +1183,7 @@ TextAddState.prototype = ...@@ -1183,6 +1183,7 @@ TextAddState.prototype =
return; return;
} }
this.majorObject.selectionSetEnd(e, x, y, pageIndex); this.majorObject.selectionSetEnd(e, x, y, pageIndex);
if(!(this.majorObject.getObjectType() === historyitem_type_GraphicFrame && this.majorObject.graphicObject.Selection.Type2 === table_Selection_Border))
this.drawingObjects.updateSelectionState(); this.drawingObjects.updateSelectionState();
}, },
onMouseUp: function(e, x, y, pageIndex) onMouseUp: function(e, x, y, pageIndex)
......
...@@ -577,6 +577,7 @@ CPresentation.prototype = ...@@ -577,6 +577,7 @@ CPresentation.prototype =
Add_NewParagraph : function(bRecalculate) Add_NewParagraph : function(bRecalculate)
{ {
this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.addNewParagraph, []); this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.addNewParagraph, []);
this.Document_UpdateInterfaceState();
}, },
Search : function(Str, Props) Search : function(Str, Props)
...@@ -892,11 +893,13 @@ CPresentation.prototype = ...@@ -892,11 +893,13 @@ CPresentation.prototype =
groupShapes: function() groupShapes: function()
{ {
this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.createGroup, []); this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.createGroup, []);
this.Document_UpdateInterfaceState();
}, },
unGroupShapes: function() unGroupShapes: function()
{ {
this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.unGroupCallback, []); this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.unGroupCallback, []);
this.Document_UpdateInterfaceState();
}, },
Add_FlowImage : function(W, H, Img) Add_FlowImage : function(W, H, Img)
...@@ -925,7 +928,7 @@ CPresentation.prototype = ...@@ -925,7 +928,7 @@ CPresentation.prototype =
Image.spPr.xfrm.setOffY((_this.Slides[_this.CurPage].Height - Image.spPr.xfrm.extY)/2); Image.spPr.xfrm.setOffY((_this.Slides[_this.CurPage].Height - Image.spPr.xfrm.extY)/2);
_this.Slides[_this.CurPage].graphicObjects.resetSelection(); _this.Slides[_this.CurPage].graphicObjects.resetSelection();
_this.Slides[_this.CurPage].graphicObjects.selectObject(Image, _this.Slides[_this.CurPage].num); _this.Slides[_this.CurPage].graphicObjects.selectObject(Image, _this.Slides[_this.CurPage].num);
_this.Recalculate(); _this.Document_UpdateInterfaceState();
}, []); }, []);
}, },
...@@ -938,6 +941,7 @@ CPresentation.prototype = ...@@ -938,6 +941,7 @@ CPresentation.prototype =
_this.Slides[_this.CurPage] && _this.Slides[_this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(function() _this.Slides[_this.CurPage] && _this.Slides[_this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(function()
{ {
_this.Slides[_this.CurPage].graphicObjects.editChart(binary); _this.Slides[_this.CurPage].graphicObjects.editChart(binary);
_this.Document_UpdateInterfaceState();
}, [binary]); }, [binary]);
}, },
...@@ -1071,11 +1075,13 @@ CPresentation.prototype = ...@@ -1071,11 +1075,13 @@ CPresentation.prototype =
Paragraph_Add : function( ParaItem, bRecalculate ) Paragraph_Add : function( ParaItem, bRecalculate )
{ {
this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.paragraphAdd, [ParaItem, bRecalculate]); this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.paragraphAdd, [ParaItem, bRecalculate]);
}, },
Paragraph_ClearFormatting : function() Paragraph_ClearFormatting : function()
{ {
this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.paragraphClearFormatting, []); this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.paragraphClearFormatting, []);
this.Document_UpdateInterfaceState();
}, },
Remove : function(Count, bOnlyText, bRemoveOnlySelection) Remove : function(Count, bOnlyText, bRemoveOnlySelection)
...@@ -1297,36 +1303,43 @@ CPresentation.prototype = ...@@ -1297,36 +1303,43 @@ CPresentation.prototype =
Set_ParagraphAlign : function(Align) Set_ParagraphAlign : function(Align)
{ {
this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.setParagraphAlign, [Align]); this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.setParagraphAlign, [Align]);
this.Document_UpdateInterfaceState();
}, },
Set_ParagraphSpacing : function(Spacing) Set_ParagraphSpacing : function(Spacing)
{ {
this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.setParagraphSpacing, [Spacing]); this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.setParagraphSpacing, [Spacing]);
this.Document_UpdateInterfaceState();
}, },
Set_ParagraphTabs : function(Tabs) Set_ParagraphTabs : function(Tabs)
{ {
this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.setParagraphTabs, [Tabs]); this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.setParagraphTabs, [Tabs]);
this.Document_UpdateInterfaceState();
}, },
Set_ParagraphIndent : function(Ind) Set_ParagraphIndent : function(Ind)
{ {
this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.setParagraphIndent, [Ind]); this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.setParagraphIndent, [Ind]);
this.Document_UpdateInterfaceState();
}, },
Set_ParagraphNumbering : function(NumInfo) Set_ParagraphNumbering : function(NumInfo)
{ {
this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.setParagraphNumbering, [this.Get_PresentationBulletByNumInfo(NumInfo)]); //TODO this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.setParagraphNumbering, [this.Get_PresentationBulletByNumInfo(NumInfo)]);
this.Document_UpdateInterfaceState(); //TODO
}, },
Paragraph_IncDecFontSize : function(bIncrease) Paragraph_IncDecFontSize : function(bIncrease)
{ {
this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.paragraphIncDecFontSize, [bIncrease]); this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.paragraphIncDecFontSize, [bIncrease]);
this.Document_UpdateInterfaceState();
}, },
Paragraph_IncDecIndent : function(bIncrease) Paragraph_IncDecIndent : function(bIncrease)
{ {
this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.paragraphIncDecIndent, [bIncrease]); this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.paragraphIncDecIndent, [bIncrease]);
this.Document_UpdateInterfaceState();
}, },
Can_IncreaseParagraphLevel : function(bIncrease) Can_IncreaseParagraphLevel : function(bIncrease)
...@@ -1337,22 +1350,26 @@ CPresentation.prototype = ...@@ -1337,22 +1350,26 @@ CPresentation.prototype =
Set_ImageProps : function(Props) Set_ImageProps : function(Props)
{ {
this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.applyDrawingProps, [Props]); this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.applyDrawingProps, [Props]);
this.Document_UpdateInterfaceState();
}, },
ShapeApply: function(shapeProps) ShapeApply: function(shapeProps)
{ {
this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.applyDrawingProps, [shapeProps]); this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.applyDrawingProps, [shapeProps]);
this.Document_UpdateInterfaceState();
}, },
ChartApply: function(chartProps) ChartApply: function(chartProps)
{ {
this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.applyDrawingProps, [chartProps]); this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.applyDrawingProps, [chartProps]);
this.Document_UpdateInterfaceState();
}, },
changeShapeType : function(shapeType) changeShapeType : function(shapeType)
{ {
this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.applyDrawingProps, [{type:shapeType}]); this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.applyDrawingProps, [{type:shapeType}]);
this.Document_UpdateInterfaceState();
}, },
setVerticalAlign: function(align) setVerticalAlign: function(align)
...@@ -1360,6 +1377,7 @@ CPresentation.prototype = ...@@ -1360,6 +1377,7 @@ CPresentation.prototype =
if(this.Slides[this.CurPage]) if(this.Slides[this.CurPage])
{ {
this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.applyDrawingProps, [{verticalTextAlign: align}]); this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.applyDrawingProps, [{verticalTextAlign: align}]);
this.Document_UpdateInterfaceState();
} }
}, },
...@@ -1569,10 +1587,12 @@ CPresentation.prototype = ...@@ -1569,10 +1587,12 @@ CPresentation.prototype =
if ( e.ShiftKey ) if ( e.ShiftKey )
{ {
this.Paragraph_Add( new ParaNewLine( break_Line ) ); this.Paragraph_Add( new ParaNewLine( break_Line ) );
this.Document_UpdateInterfaceState();
} }
else if ( e.CtrlKey ) else if ( e.CtrlKey )
{ {
this.Paragraph_Add( new ParaNewLine( break_Page ) ); this.Paragraph_Add( new ParaNewLine( break_Page ) );
this.Document_UpdateInterfaceState();
} }
else else
{ {
...@@ -1595,6 +1615,7 @@ CPresentation.prototype = ...@@ -1595,6 +1615,7 @@ CPresentation.prototype =
this.DrawingDocument.TargetShow(); this.DrawingDocument.TargetShow();
this.Paragraph_Add( new ParaText( String.fromCharCode( 0x00A0 ) ) ); this.Paragraph_Add( new ParaText( String.fromCharCode( 0x00A0 ) ) );
this.Document_UpdateInterfaceState();
} }
else if ( true === e.CtrlKey ) else if ( true === e.CtrlKey )
{ {
...@@ -1606,6 +1627,7 @@ CPresentation.prototype = ...@@ -1606,6 +1627,7 @@ CPresentation.prototype =
// this.DrawingDocument.TargetShow(); // this.DrawingDocument.TargetShow();
this.Paragraph_Add( new ParaSpace( 1 ) ); this.Paragraph_Add( new ParaSpace( 1 ) );
this.Document_UpdateInterfaceState();
} }
bRetValue = true; bRetValue = true;
...@@ -1844,6 +1866,7 @@ CPresentation.prototype = ...@@ -1844,6 +1866,7 @@ CPresentation.prototype =
{ {
this.Paragraph_Add( new ParaText( "" ) ); this.Paragraph_Add( new ParaText( "" ) );
this.Document_UpdateInterfaceState();
bRetValue = true; bRetValue = true;
} }
} }
...@@ -1853,6 +1876,7 @@ CPresentation.prototype = ...@@ -1853,6 +1876,7 @@ CPresentation.prototype =
if ( null != TextPr ) if ( null != TextPr )
{ {
this.Paragraph_Add( new ParaTextPr( { Italic : TextPr.Italic === true ? false : true } ) ); this.Paragraph_Add( new ParaTextPr( { Italic : TextPr.Italic === true ? false : true } ) );
this.Document_UpdateInterfaceState();
bRetValue = true; bRetValue = true;
} }
} }
...@@ -1915,7 +1939,6 @@ CPresentation.prototype = ...@@ -1915,7 +1939,6 @@ CPresentation.prototype =
{ {
if ( true === e.ShiftKey && false === editor.isViewMode ) // Ctrl + Shift + P - добавляем номер страницы в текущую позицию if ( true === e.ShiftKey && false === editor.isViewMode ) // Ctrl + Shift + P - добавляем номер страницы в текущую позицию
{ {
this.Paragraph_Add( new ParaPageNum() );
bRetValue = true; bRetValue = true;
} }
else // Ctrl + P - print else // Ctrl + P - print
...@@ -1949,6 +1972,7 @@ CPresentation.prototype = ...@@ -1949,6 +1972,7 @@ CPresentation.prototype =
if ( null != TextPr ) if ( null != TextPr )
{ {
this.Paragraph_Add( new ParaTextPr( { Underline : TextPr.Underline === true ? false : true } ) ); this.Paragraph_Add( new ParaTextPr( { Underline : TextPr.Underline === true ? false : true } ) );
this.Document_UpdateInterfaceState();
bRetValue = true; bRetValue = true;
} }
} }
...@@ -2105,6 +2129,7 @@ CPresentation.prototype = ...@@ -2105,6 +2129,7 @@ CPresentation.prototype =
this.Paragraph_Add( new ParaTextPr( { VertAlign : TextPr.VertAlign === vertalign_SuperScript ? vertalign_Baseline : vertalign_SuperScript } ) ); this.Paragraph_Add( new ParaTextPr( { VertAlign : TextPr.VertAlign === vertalign_SuperScript ? vertalign_Baseline : vertalign_SuperScript } ) );
else else
this.Paragraph_Add( new ParaTextPr( { VertAlign : TextPr.VertAlign === vertalign_SubScript ? vertalign_Baseline : vertalign_SubScript } ) ); this.Paragraph_Add( new ParaTextPr( { VertAlign : TextPr.VertAlign === vertalign_SubScript ? vertalign_Baseline : vertalign_SubScript } ) );
this.Document_UpdateInterfaceState();
bRetValue = true; bRetValue = true;
} }
} }
...@@ -2134,6 +2159,7 @@ CPresentation.prototype = ...@@ -2134,6 +2159,7 @@ CPresentation.prototype =
Item = new ParaText( "-" ); Item = new ParaText( "-" );
this.Paragraph_Add( Item ); this.Paragraph_Add( Item );
this.Document_UpdateInterfaceState();
bRetValue = true; bRetValue = true;
} }
else if ( e.KeyCode == 190 && true === e.CtrlKey ) // Ctrl + . else if ( e.KeyCode == 190 && true === e.CtrlKey ) // Ctrl + .
...@@ -2214,7 +2240,10 @@ CPresentation.prototype = ...@@ -2214,7 +2240,10 @@ CPresentation.prototype =
} }
if ( true == bRetValue ) if ( true == bRetValue )
{
this.Document_UpdateSelectionState(); this.Document_UpdateSelectionState();
this.Document_UpdateUndoRedoState();
}
return bRetValue; return bRetValue;
}, },
...@@ -3294,6 +3323,7 @@ CPresentation.prototype = ...@@ -3294,6 +3323,7 @@ CPresentation.prototype =
if(this.Slides[this.CurPage]) if(this.Slides[this.CurPage])
{ {
this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.hyperlinkAdd, [HyperProps]); this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.hyperlinkAdd, [HyperProps]);
this.Document_UpdateInterfaceState();
} }
}, },
...@@ -3302,6 +3332,7 @@ CPresentation.prototype = ...@@ -3302,6 +3332,7 @@ CPresentation.prototype =
if(this.Slides[this.CurPage]) if(this.Slides[this.CurPage])
{ {
this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.hyperlinkModify, [HyperProps]); this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.hyperlinkModify, [HyperProps]);
this.Document_UpdateInterfaceState();
} }
}, },
...@@ -3310,6 +3341,7 @@ CPresentation.prototype = ...@@ -3310,6 +3341,7 @@ CPresentation.prototype =
if(this.Slides[this.CurPage]) if(this.Slides[this.CurPage])
{ {
this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.hyperlinkRemove, []); this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.hyperlinkRemove, []);
this.Document_UpdateInterfaceState();
} }
}, },
...@@ -3337,63 +3369,75 @@ CPresentation.prototype = ...@@ -3337,63 +3369,75 @@ CPresentation.prototype =
alignLeft : function() alignLeft : function()
{ {
this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.alignLeft); this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.alignLeft);
this.Document_UpdateInterfaceState();
}, },
alignRight : function() alignRight : function()
{ {
this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.alignRight); this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.alignRight);
this.Document_UpdateInterfaceState();
}, },
alignTop : function() alignTop : function()
{ {
this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.alignTop); this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.alignTop);
this.Document_UpdateInterfaceState();
}, },
alignBottom : function() alignBottom : function()
{ {
this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.alignBottom); this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.alignBottom);
this.Document_UpdateInterfaceState();
}, },
alignCenter : function() alignCenter : function()
{ {
this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.alignCenter); this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.alignCenter);
this.Document_UpdateInterfaceState();
}, },
alignMiddle : function() alignMiddle : function()
{ {
this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.alignMiddle); this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.alignMiddle);
this.Document_UpdateInterfaceState();
}, },
distributeHor : function() distributeHor : function()
{ {
this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.distributeHor); this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.distributeHor);
this.Document_UpdateInterfaceState();
}, },
distributeVer : function() distributeVer : function()
{ {
this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.distributeVer); this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.distributeVer);
this.Document_UpdateInterfaceState();
}, },
bringToFront : function() bringToFront : function()
{ {
this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.bringToFront); //TODO: Передавать тип проверки this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.bringToFront); //TODO: Передавать тип проверки
this.Document_UpdateInterfaceState();
}, },
bringForward : function() bringForward : function()
{ {
this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.bringForward); //TODO: Передавать тип проверки this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.bringForward); //TODO: Передавать тип проверки
this.Document_UpdateInterfaceState();
}, },
sendToBack : function() sendToBack : function()
{ {
this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.sendToBack); //TODO: Передавать тип проверки this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.sendToBack); //TODO: Передавать тип проверки
this.Document_UpdateInterfaceState();
}, },
bringBackward : function() bringBackward : function()
{ {
this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.bringBackward); //TODO: Передавать тип проверки this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.checkSelectedObjectsAndCallback(this.Slides[this.CurPage].graphicObjects.bringBackward); //TODO: Передавать тип проверки
this.Document_UpdateInterfaceState();
}, },
// Проверяем, находимся ли мы в гиперссылке сейчас // Проверяем, находимся ли мы в гиперссылке сейчас
...@@ -4378,9 +4422,11 @@ CPresentation.prototype = ...@@ -4378,9 +4422,11 @@ CPresentation.prototype =
this.Paragraph_Add( new ParaSpace(1) ); this.Paragraph_Add( new ParaSpace(1) );
else else
this.Paragraph_Add( new ParaText(_char) ); this.Paragraph_Add( new ParaText(_char) );
// На случай, если Count = 0 // На случай, если Count = 0
this.TurnOffRecalc = false; this.TurnOffRecalc = false;
} }
this.Document_UpdateUndoRedoState();
}, },
StartAddShape: function(preset, _is_apply) StartAddShape: function(preset, _is_apply)
......
...@@ -4817,7 +4817,6 @@ asc_docs_api.prototype.asc_addChartDrawingObject = function(chartBinary) ...@@ -4817,7 +4817,6 @@ asc_docs_api.prototype.asc_addChartDrawingObject = function(chartBinary)
{ {
//if ( false === this.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(changestype_Drawing_Props) ) //if ( false === this.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(changestype_Drawing_Props) )
{ {
History.Create_NewPoint();
this.WordControl.m_oLogicDocument.addChart(chartBinary); this.WordControl.m_oLogicDocument.addChart(chartBinary);
} }
} }
......
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