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 =
else
{
this.DrawingObjects.resetInterfaceTextPr();
this.DrawingObjects.updateTextPr();
this.Interface_Update_DrawingPr();
this.DrawingObjects.updateParentParagraphParaPr();
......
......@@ -1427,9 +1427,16 @@ CGraphicObjects.prototype =
//}
},
updateTextPr: function()
{
editor.UpdateTextPr(this.getParagraphTextPr());
},
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;
if(parent_para)
......@@ -1585,28 +1592,28 @@ CGraphicObjects.prototype =
resetInterfaceTextPr: function()
{
var oTextPr = new CTextPr();
oTextPr.Set_FromObject(
{
Bold: false,
Italic: false,
Underline: false,
Strikeout: false,
FontFamily:{
Name : "", Index : -1
},
FontSize: null,
VertAlign: null,
HighLight: highlight_None,
Spacing: null,
DStrikeout: false,
Caps: null,
SmallCaps: null,
Position: null,
Lang: null
}
);
editor.UpdateTextPr(oTextPr);
// var oTextPr = new CTextPr();
// oTextPr.Set_FromObject(
// {
// Bold: false,
// Italic: false,
// Underline: false,
// Strikeout: false,
// FontFamily:{
// Name : "", Index : -1
// },
// FontSize: null,
// VertAlign: null,
// HighLight: highlight_None,
// Spacing: null,
// DStrikeout: false,
// Caps: null,
// SmallCaps: null,
// Position: null,
// Lang: null
// }
// );
// editor.UpdateTextPr(oTextPr);
editor.Update_ParaTab(Default_Tab_Stop, new CParaTabs());
editor.sync_ParaSpacingLine( new CParaSpacing() );
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