Commit 6ece8f33 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander Trofimov

create default adjs

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@60027 954022d7-b5bf-4e40-9824-e11837661b57
parent cbeda043
......@@ -1892,6 +1892,8 @@ namespace NSGuidesVML
Aggplus::POINT pTmpPoint;
CFormParam m_oParam;
int m_lMaxAdjUse;
public:
// , path/adj ..
NSBinPptxRW::CXmlWriter m_oGuidsRes;
......@@ -1908,6 +1910,8 @@ namespace NSGuidesVML
m_lIndexSrc = -1;
m_lWidth = 0;
m_lHeight = 0;
m_lMaxAdjUse = -1;
}
void ConvertCoef(NSGuidesVML::CFormParam pCoef)
{
......@@ -1946,6 +1950,15 @@ namespace NSGuidesVML
m_oAdjRes.WriteINT(arAdj[i]);
m_oAdjRes.WriteString(_T("\" />"));
}
for (int i = nAdjCount; i <= m_lMaxAdjUse; ++i)
{
m_oAdjRes.WriteString(_T("<a:gd name=\"adj"));
m_oAdjRes.WriteINT(i);
m_oAdjRes.WriteString(_T("\" fmla=\"val "));
m_oAdjRes.WriteINT(0);
m_oAdjRes.WriteString(_T("\" />"));
}
}
void ConvertFormula(const std::vector<CFormula>& arFormulas)
{
......@@ -2439,6 +2452,10 @@ namespace NSGuidesVML
oWriter.m_oWriter.AddCharNoCheck((WCHAR)'d');
oWriter.m_oWriter.AddCharNoCheck((WCHAR)'j');
oWriter.m_oWriter.AddIntNoCheck(lParam);
if (lParam > m_lMaxAdjUse)
m_lMaxAdjUse = lParam;
break;
}
case ptValue:
......
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