Commit 593c5010 authored by Ivan.Shulga's avatar Ivan.Shulga Committed by Alexander Trofimov

linux build

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@59024 954022d7-b5bf-4e40-9824-e11837661b57
parent 6c3742da
...@@ -56,7 +56,7 @@ namespace PPTX ...@@ -56,7 +56,7 @@ namespace PPTX
XmlUtils::CXmlNode oNode1 = oNodeData.ReadNodeNoNS(_T("tbl")); XmlUtils::CXmlNode oNode1 = oNodeData.ReadNodeNoNS(_T("tbl"));
if (oNode1.IsValid()) if (oNode1.IsValid())
{ {
Table = oNode1; table = oNode1;
return; return;
} }
XmlUtils::CXmlNode oNode2 = oNodeData.ReadNodeNoNS(_T("oleObj")); XmlUtils::CXmlNode oNode2 = oNodeData.ReadNodeNoNS(_T("oleObj"));
...@@ -138,10 +138,10 @@ namespace PPTX ...@@ -138,10 +138,10 @@ namespace PPTX
else else
xfrm.toXmlWriter2(strNS, pWriter); xfrm.toXmlWriter2(strNS, pWriter);
if (Table.is_init()) if (table.is_init())
{ {
pWriter->WriteString(_T("<a:graphic><a:graphicData uri=\"http://schemas.openxmlformats.org/drawingml/2006/table\">")); pWriter->WriteString(_T("<a:graphic><a:graphicData uri=\"http://schemas.openxmlformats.org/drawingml/2006/table\">"));
Table->toXmlWriter(pWriter); table->toXmlWriter(pWriter);
pWriter->WriteString(_T("</a:graphicData></a:graphic>")); pWriter->WriteString(_T("</a:graphicData></a:graphic>"));
} }
else if (chartRec.is_init()) else if (chartRec.is_init())
...@@ -167,7 +167,7 @@ namespace PPTX ...@@ -167,7 +167,7 @@ namespace PPTX
return; return;
} }
if (smartArt.is_init() && !Table.is_init() && !chartRec.is_init() && !spid.is_init()) if (smartArt.is_init() && !table.is_init() && !chartRec.is_init() && !spid.is_init())
{ {
smartArt->LoadDrawing(pWriter); smartArt->LoadDrawing(pWriter);
if (smartArt->diag.is_init()) if (smartArt->diag.is_init())
...@@ -207,7 +207,7 @@ namespace PPTX ...@@ -207,7 +207,7 @@ namespace PPTX
return; return;
} }
if (!Table.is_init() && !chartRec.is_init() && spid.is_init()) if (!table.is_init() && !chartRec.is_init() && spid.is_init())
{ {
// !!! // !!!
pWriter->StartRecord(SPTREE_TYPE_PIC); pWriter->StartRecord(SPTREE_TYPE_PIC);
...@@ -265,7 +265,7 @@ namespace PPTX ...@@ -265,7 +265,7 @@ namespace PPTX
pWriter->WriteRecord1(0, nvGraphicFramePr); pWriter->WriteRecord1(0, nvGraphicFramePr);
pWriter->WriteRecord1(1, xfrm); pWriter->WriteRecord1(1, xfrm);
pWriter->WriteRecord2(2, Table); pWriter->WriteRecord2(2, table);
if (chartRec.is_init()) if (chartRec.is_init())
{ {
...@@ -318,8 +318,8 @@ namespace PPTX ...@@ -318,8 +318,8 @@ namespace PPTX
} }
case 2: case 2:
{ {
Table = new Logic::Table(); table = new Logic::Table();
Table->fromPPTY(pReader); table->fromPPTY(pReader);
break; break;
} }
case 3: case 3:
...@@ -376,8 +376,8 @@ namespace PPTX ...@@ -376,8 +376,8 @@ namespace PPTX
{ {
xfrm.SetParentPointer(this); xfrm.SetParentPointer(this);
nvGraphicFramePr.SetParentPointer(this); nvGraphicFramePr.SetParentPointer(this);
if(Table.IsInit()) if(table.IsInit())
Table->SetParentPointer(this); table->SetParentPointer(this);
if (smartArt.is_init()) if (smartArt.is_init())
smartArt->SetParentPointer(this); smartArt->SetParentPointer(this);
if (chartRec.is_init()) if (chartRec.is_init())
...@@ -399,4 +399,4 @@ namespace PPTX ...@@ -399,4 +399,4 @@ namespace PPTX
return filename; return filename;
} }
} // namespace Logic } // namespace Logic
} // namespace PPTX } // namespace PPTX
\ No newline at end of file
...@@ -43,7 +43,7 @@ namespace PPTX ...@@ -43,7 +43,7 @@ namespace PPTX
//nullable_property<PPTX::RId> qs; //nullable_property<PPTX::RId> qs;
//nullable_property<PPTX::RId> cs; //nullable_property<PPTX::RId> cs;
nullable_string spid; nullable_string spid;
nullable<Table> Table; nullable<Table> table;
nullable<SmartArt> smartArt; nullable<SmartArt> smartArt;
nullable<ChartRec> chartRec; nullable<ChartRec> chartRec;
nullable<Pic> pic; nullable<Pic> pic;
...@@ -55,4 +55,4 @@ namespace PPTX ...@@ -55,4 +55,4 @@ namespace PPTX
} // namespace Logic } // namespace Logic
} // namespace PPTX } // namespace PPTX
#endif // PPTX_LOGIC_GRAPHICFRAME_INCLUDE_H #endif // PPTX_LOGIC_GRAPHICFRAME_INCLUDE_H
\ No newline at end of file
...@@ -28,7 +28,7 @@ namespace PPTX ...@@ -28,7 +28,7 @@ namespace PPTX
void TableCell::fromXML(XmlUtils::CXmlNode& node) void TableCell::fromXML(XmlUtils::CXmlNode& node)
{ {
TxBody = node.ReadNodeNoNS(_T("txBody")); txBody = node.ReadNodeNoNS(_T("txBody"));
CellProperties = node.ReadNode(_T("a:tcPr")); CellProperties = node.ReadNode(_T("a:tcPr"));
node.ReadAttributeBase(L"rowSpan", RowSpan); node.ReadAttributeBase(L"rowSpan", RowSpan);
node.ReadAttributeBase(L"gridSpan", GridSpan); node.ReadAttributeBase(L"gridSpan", GridSpan);
...@@ -49,7 +49,7 @@ namespace PPTX ...@@ -49,7 +49,7 @@ namespace PPTX
oAttr.Write(_T("id"), Id); oAttr.Write(_T("id"), Id);
XmlUtils::CNodeValue oValue; XmlUtils::CNodeValue oValue;
oValue.WriteNullable(TxBody); oValue.WriteNullable(txBody);
oValue.WriteNullable(CellProperties); oValue.WriteNullable(CellProperties);
return XmlUtils::CreateNode(_T("a:tc"), oAttr, oValue); return XmlUtils::CreateNode(_T("a:tc"), oAttr, oValue);
...@@ -57,8 +57,8 @@ namespace PPTX ...@@ -57,8 +57,8 @@ namespace PPTX
void TableCell::FillParentPointersForChilds() void TableCell::FillParentPointersForChilds()
{ {
if(TxBody.IsInit()) if(txBody.IsInit())
TxBody->SetParentPointer(this); txBody->SetParentPointer(this);
if(CellProperties.IsInit()) if(CellProperties.IsInit())
CellProperties->SetParentPointer(this); CellProperties->SetParentPointer(this);
} }
...@@ -68,11 +68,11 @@ namespace PPTX ...@@ -68,11 +68,11 @@ namespace PPTX
if(parentFileIs<Slide>()) if(parentFileIs<Slide>())
{ {
parentFileAs<Slide>().FillShapeProperties(props, _T("table-cell")); parentFileAs<Slide>().FillShapeProperties(props, _T("table-cell"));
props.FillFromTextBody(TxBody); props.FillFromTextBody(txBody);
//props.SetParentFilePointer(parentFile); //props.SetParentFilePointer(parentFile);
} }
} }
} // namespace Logic } // namespace Logic
} // namespace PPTX } // namespace PPTX
\ No newline at end of file
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