//iLayoutNum:本表格经过拆分检测后,被拆分为iLayoutNum个。如果iLayoutNum为1,意味本表格没有被拆分。
int iLayoutNum = SplitOutOfRangeLayout(arypLayout, i, g_layInfoMainFrame.GetWidth(), g_layInfoMainFrame.GetHeight());
if (0 == iLayoutNum)
{
for (int j = 0; j < arypLayout.length(); j++)
{
arypLayout[j]->close();
}
return false;
}
//iLayoutNum如果大于1,说明arypLayout[i]表格因为长或高大于图框,被拆分为iLayoutNum个。
for (int j = i; j < i+iLayoutNum; j++)
{
vpKsjLayoutTable.push_back(arypLayout[j]);
vdLayoutWidth.push_back(arypLayout[j]->GetWidth());
if ((float)arypLayout[j]->GetWidth() < g_fMinLayoutWidth)
{
g_fMinLayoutWidth = (float)arypLayout[j]->GetWidth();
}
if ((float)arypLayout[j]->GetHeight() < g_fMinLayoutHeight)
{
g_fMinLayoutHeight = (float)arypLayout[j]->GetHeight();
}
if ((arypLayout[j]->GetWidth() / arypLayout[j]->GetHeight()) > 2.0)
{//本layout宽高比大于2
iOnlyReduceHeightLoopTime = 2;
}
}//for (j)
//提示: for(i)计数可能变化
i += iLayoutNum - 1;
int iLayoutNum = SplitOutOfRangeLayout(arypLayout, i, g_layInfoMainFrame.GetWidth(), g_layInfoMainFrame.GetHeight());
if (0 == iLayoutNum)
{
for (int j = 0; j < arypLayout.length(); j++)
{
arypLayout[j]->close();
}
return false;
}
//iLayoutNum如果大于1,说明arypLayout[i]表格因为长或高大于图框,被拆分为iLayoutNum个。
for (int j = i; j < i+iLayoutNum; j++)
{
vpKsjLayoutTable.push_back(arypLayout[j]);
vdLayoutWidth.push_back(arypLayout[j]->GetWidth());
if ((float)arypLayout[j]->GetWidth() < g_fMinLayoutWidth)
{
g_fMinLayoutWidth = (float)arypLayout[j]->GetWidth();
}
if ((float)arypLayout[j]->GetHeight() < g_fMinLayoutHeight)
{
g_fMinLayoutHeight = (float)arypLayout[j]->GetHeight();
}
if ((arypLayout[j]->GetWidth() / arypLayout[j]->GetHeight()) > 2.0)
{//本layout宽高比大于2
iOnlyReduceHeightLoopTime = 2;
}
}//for (j)
//提示: for(i)计数可能变化
i += iLayoutNum - 1;