Commit 4b19769d 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@64967 954022d7-b5bf-4e40-9824-e11837661b57
parent 7633f7ce
...@@ -11969,6 +11969,7 @@ CDocument.prototype = ...@@ -11969,6 +11969,7 @@ CDocument.prototype =
else else
{ {
this.DrawingObjects.resetInterfaceTextPr(); this.DrawingObjects.resetInterfaceTextPr();
this.DrawingObjects.updateTextPr();
this.Interface_Update_DrawingPr(); this.Interface_Update_DrawingPr();
this.DrawingObjects.updateParentParagraphParaPr(); this.DrawingObjects.updateParentParagraphParaPr();
......
...@@ -1427,9 +1427,16 @@ CGraphicObjects.prototype = ...@@ -1427,9 +1427,16 @@ CGraphicObjects.prototype =
//} //}
}, },
updateTextPr: function()
{
editor.UpdateTextPr(this.getParagraphTextPr());
},
updateParentParagraphParaPr : function() updateParentParagraphParaPr : function()
{ {
if(this.selectedObjects[0] && this.selectedObjects[0].parent && this.selectedObjects[0].parent.Is_Inline() && this.selectedObjects[0].getObjectType() === historyitem_type_ImageShape) var majorParaDrawing = this.getMajorParaDrawing();
if(majorParaDrawing)
{ {
var parent_para = this.selectedObjects[0].parent.Get_ParentParagraph(), ParaPr; var parent_para = this.selectedObjects[0].parent.Get_ParentParagraph(), ParaPr;
if(parent_para) if(parent_para)
...@@ -1585,28 +1592,28 @@ CGraphicObjects.prototype = ...@@ -1585,28 +1592,28 @@ CGraphicObjects.prototype =
resetInterfaceTextPr: function() resetInterfaceTextPr: function()
{ {
var oTextPr = new CTextPr(); // var oTextPr = new CTextPr();
oTextPr.Set_FromObject( // oTextPr.Set_FromObject(
{ // {
Bold: false, // Bold: false,
Italic: false, // Italic: false,
Underline: false, // Underline: false,
Strikeout: false, // Strikeout: false,
FontFamily:{ // FontFamily:{
Name : "", Index : -1 // Name : "", Index : -1
}, // },
FontSize: null, // FontSize: null,
VertAlign: null, // VertAlign: null,
HighLight: highlight_None, // HighLight: highlight_None,
Spacing: null, // Spacing: null,
DStrikeout: false, // DStrikeout: false,
Caps: null, // Caps: null,
SmallCaps: null, // SmallCaps: null,
Position: null, // Position: null,
Lang: null // Lang: null
} // }
); // );
editor.UpdateTextPr(oTextPr); // editor.UpdateTextPr(oTextPr);
editor.Update_ParaTab(Default_Tab_Stop, new CParaTabs()); editor.Update_ParaTab(Default_Tab_Stop, new CParaTabs());
editor.sync_ParaSpacingLine( new CParaSpacing() ); editor.sync_ParaSpacingLine( new CParaSpacing() );
editor.Update_ParaInd(new CParaInd()); editor.Update_ParaInd(new CParaInd());
......
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