本文整理汇总了C++中FL_DocLayout::getDocSecForEndnote方法的典型用法代码示例。如果您正苦于以下问题:C++ FL_DocLayout::getDocSecForEndnote方法的具体用法?C++ FL_DocLayout::getDocSecForEndnote怎么用?C++ FL_DocLayout::getDocSecForEndnote使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FL_DocLayout
的用法示例。
在下文中一共展示了FL_DocLayout::getDocSecForEndnote方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: layout
void fp_EndnoteContainer::layout(void)
{
_setMaxContainerHeight(0);
UT_sint32 iY = 0, iPrevY = 0;
iY= 0;
UT_uint32 iCountContainers = countCons();
fp_Container *pContainer, *pPrevContainer = NULL;
for (UT_uint32 i=0; i < iCountContainers; i++)
{
pContainer = static_cast<fp_Container*>(getNthCon(i));
//
// This is to speedup redraws.
//
if(pContainer->getHeight() > _getMaxContainerHeight())
_setMaxContainerHeight(pContainer->getHeight());
if(pContainer->getY() != iY)
{
pContainer->clearScreen();
}
pContainer->setY(iY);
UT_sint32 iContainerHeight = pContainer->getHeight();
UT_sint32 iContainerMarginAfter = pContainer->getMarginAfter();
if (pPrevContainer)
{
pPrevContainer->setAssignedScreenHeight(iY - iPrevY);
}
iPrevY = iY;
iY += iContainerHeight;
iY += iContainerMarginAfter;
pPrevContainer = pContainer;
}
// Correct height position of the last line
if (pPrevContainer)
{
pPrevContainer->setAssignedScreenHeight(iY - iPrevY + 1);
}
UT_sint32 iNewHeight = iY;
if (getHeight() == iNewHeight)
{
return;
}
setHeight(iNewHeight);
fl_EndnoteLayout * pEL = static_cast<fl_EndnoteLayout *>(getSectionLayout());
FL_DocLayout * pDL = pEL->getDocLayout();
fl_DocSectionLayout * pDSL = pDL->getDocSecForEndnote(this);
fp_Page * pPage = getPage();
pDSL->setNeedsSectionBreak(true,pPage);
}