本文整理汇总了C++中PageItem::SetFrameShape方法的典型用法代码示例。如果您正苦于以下问题:C++ PageItem::SetFrameShape方法的具体用法?C++ PageItem::SetFrameShape怎么用?C++ PageItem::SetFrameShape使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PageItem
的用法示例。
在下文中一共展示了PageItem::SetFrameShape方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: xmlStream
//.........这里部分代码省略.........
for (int k = 28; k < 32; k += 2)
{
if (points[k] < groupX)
{
points[k] = 0;
}
else if (points[k] - groupX > 100)
{
points[k] = 100;
}
else
{
points[k] = 100* (points[k] - groupX) / groupWidth;
}
if (points[k+1] < groupY)
{
points[k+1] = 0;
}
else if (points[k+1] - groupY > 100)
{
points[k+1] = 100;
}
else
{
points[k+1] = 100* (points[k+1] - groupY) / groupHeight;
}
qDebug() << "IMPOSITION: points[" << k << "] " << points[i] << "\n";
qDebug() << "IMPOSITION: points[" << k+1 << "] " << points[i+1] << "\n";
}
groupcontrol->SetFrameShape(32,points);
}
}
}
//left side
for (int j = 0; j < srcDoc->Items->count(); j++)
{
if (srcDoc->OnPage(srcDoc->Items->at(j)) == (pages->at(pages->count()-i-1)-1))
{
s->addItem(srcDoc->Items->at(j),false);
}
}
if (s->count() > 0)
{
std::ostringstream xmlString;
SaxXML xmlStream(xmlString);
Serializer::serializeObjects(*s, xmlStream);
std::string xml(xmlString.str());
QByteArray ba(QByteArray(xml.c_str(), xml.length()));
//paste page from clipboard
Selection pastedObjects = Serializer(*targetDoc).deserializeObjects(ba);
targetDoc->moveGroup(
targetDoc->Pages->at(i)->guides.vertical(0, targetDoc->Pages->at(i)->guides.Standard),
targetDoc->Pages->at(i)->guides.horizontal(0, targetDoc->Pages->at(i)->guides.Standard),
false,
&pastedObjects