本文整理汇总了C++中ParagraphStyle::validate方法的典型用法代码示例。如果您正苦于以下问题:C++ ParagraphStyle::validate方法的具体用法?C++ ParagraphStyle::validate怎么用?C++ ParagraphStyle::validate使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ParagraphStyle
的用法示例。
在下文中一共展示了ParagraphStyle::validate方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: eraseStyle
void ParagraphStyle::eraseStyle(const ParagraphStyle& other)
{
other.validate();
Style::eraseStyle(other);
m_cstyle.eraseCharStyle(other.charStyle());
m_cstyleContext.invalidate();
#define ATTRDEF(attr_TYPE, attr_GETTER, attr_NAME, attr_DEFAULT) \
if (!inh_##attr_NAME && m_##attr_NAME == other.m_##attr_NAME) \
reset##attr_NAME();
#include "paragraphstyle.attrdefs.cxx"
#undef ATTRDEF
}
示例2: setStyle
void ParagraphStyle::setStyle(const ParagraphStyle & other)
{
other.validate();
setParent(other.parent());
m_contextversion = -1;
m_cstyle.setStyle(other.charStyle());
m_cstyleContext.invalidate();
#define ATTRDEF(attr_TYPE, attr_GETTER, attr_NAME, attr_DEFAULT) \
inh_##attr_NAME = other.inh_##attr_NAME; \
m_##attr_NAME = other.m_##attr_NAME;
#include "paragraphstyle.attrdefs.cxx"
#undef ATTRDEF
}
示例3: Style
ParagraphStyle::ParagraphStyle(const ParagraphStyle& other) : Style(other), m_cstyleContext(NULL), m_cstyleContextIsInh(other.m_cstyleContextIsInh), m_cstyle(other.charStyle())
{
if (m_cstyleContextIsInh)
m_cstyle.setContext(NULL);
else
m_cstyle.setContext(other.charStyle().context());
m_cstyleContext.setDefaultStyle( &m_cstyle );
// qDebug() << QString("ParagraphStyle(%2) %1").arg(reinterpret_cast<uint>(&other)).arg(reinterpret_cast<uint>(this));
other.validate();
#define ATTRDEF(attr_TYPE, attr_GETTER, attr_NAME, attr_DEFAULT) \
m_##attr_NAME = other.m_##attr_NAME; \
inh_##attr_NAME = other.inh_##attr_NAME;
#include "paragraphstyle.attrdefs.cxx"
#undef ATTRDEF
}