Commit 66cfdd3c authored by Igor.Zotov's avatar Igor.Zotov Committed by Alexander.Trofimov

git-svn-id:...

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@55598 954022d7-b5bf-4e40-9824-e11837661b57
parent 6004d6d4
...@@ -3356,57 +3356,70 @@ ...@@ -3356,57 +3356,70 @@
text = ""; text = "";
//*paraRun* switch(content[n].Type)
if(content[n] instanceof ParaRun)
{ {
paraRunContent = content[n].Content; case para_Run://*paraRun*
cTextPr = content[n].Get_CompiledPr();
if(cTextPr && !(paraRunContent.length == 1 && paraRunContent[0] instanceof ParaEnd))//settings for text
formatText = this._getPrParaRun(paraPr, cTextPr);
else if(!formatText)
formatText = this._getPrParaRun(paraPr, cTextPr);
for(var pR = 0; pR < paraRunContent.length; pR++)
{ {
paraRunContent = content[n].Content;
if(paraRunContent[pR] instanceof ParaText)//text
{ cTextPr = content[n].Get_CompiledPr();
text += paraRunContent[pR].Value; if(cTextPr && !(paraRunContent.length == 1 && paraRunContent[0] instanceof ParaEnd))//settings for text
} formatText = this._getPrParaRun(paraPr, cTextPr);
else if(paraRunContent[pR] instanceof ParaSpace) else if(!formatText)
{ formatText = this._getPrParaRun(paraPr, cTextPr);
text += " ";
}
else if(paraRunContent[pR] instanceof ParaTab || paraRunContent[pR] instanceof ParaEnd)//tab for(var pR = 0; pR < paraRunContent.length; pR++)
{ {
if(!oNewItem.length)
switch(paraRunContent[pR].Type)
{ {
fontFamily = paragraphFontFamily; case para_Text://*paraText*
this.fontsNew[fontFamily] = 1; {
text += paraRunContent[pR].Value;
break;
};
oNewItem.push(formatText); case para_Space://*paraSpace*
} {
text += " ";
if(text !== null) break;
oNewItem[oNewItem.length - 1].text = text; };
cloneNewItem = this._getCloneNewItem(oNewItem);
//переходим в следующую ячейку
if(typeof aResult[row][s + c1] == "object")
aResult[row][s + c1][aResult[row][s + c1].length] = cloneNewItem;
else
{
aResult[row][s + c1] = [];
aResult[row][s + c1][0] = cloneNewItem;
}
text = ""; case para_Tab://*paraEnd / paraTab*
oNewItem = []; case para_End:
s++; {
} if(!oNewItem.length)
{
fontFamily = paragraphFontFamily;
this.fontsNew[fontFamily] = 1;
oNewItem.push(formatText);
}
if(text !== null)
oNewItem[oNewItem.length - 1].text = text;
cloneNewItem = this._getCloneNewItem(oNewItem);
//переходим в следующую ячейку
if(typeof aResult[row][s + c1] == "object")
aResult[row][s + c1][aResult[row][s + c1].length] = cloneNewItem;
else
{
aResult[row][s + c1] = [];
aResult[row][s + c1][0] = cloneNewItem;
}
text = "";
oNewItem = [];
s++;
break;
};
}
};
break;
}; };
}; };
}; };
......
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