本文整理汇总了C++中ContainerNode::isWMLElement方法的典型用法代码示例。如果您正苦于以下问题:C++ ContainerNode::isWMLElement方法的具体用法?C++ ContainerNode::isWMLElement怎么用?C++ ContainerNode::isWMLElement使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ContainerNode
的用法示例。
在下文中一共展示了ContainerNode::isWMLElement方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: removedFromDocument
void WMLSetvarElement::removedFromDocument()
{
ContainerNode* parent = parentNode();
if (parent && parent->isWMLElement()) {
if (static_cast<WMLElement*>(parent)->isWMLTaskElement())
static_cast<WMLTaskElement*>(parent)->deregisterVariableSetter(this);
}
WMLElement::removedFromDocument();
}
示例2: removedFromDocument
void WMLTimerElement::removedFromDocument()
{
ContainerNode* parent = parentNode();
if (parent && parent->isWMLElement() && parent->hasTagName(cardTag)) {
m_card->setIntrinsicEventTimer(0);
m_card = 0;
}
WMLElement::removedFromDocument();
}
示例3: insertedIntoDocument
void WMLSetvarElement::insertedIntoDocument()
{
WMLElement::insertedIntoDocument();
ContainerNode* parent = parentNode();
if (!parent || !parent->isWMLElement())
return;
if (static_cast<WMLElement*>(parent)->isWMLTaskElement())
static_cast<WMLTaskElement*>(parent)->registerVariableSetter(this);
}
示例4: removedFromDocument
void WMLDoElement::removedFromDocument()
{
ContainerNode* parent = parentNode();
if (parent && parent->isWMLElement()) {
if (WMLEventHandlingElement* eventHandlingElement = toWMLEventHandlingElement(static_cast<WMLElement*>(parent)))
eventHandlingElement->deregisterDoElement(this);
}
WMLElement::removedFromDocument();
}
示例5: insertedIntoDocument
void WMLDoElement::insertedIntoDocument()
{
WMLElement::insertedIntoDocument();
// Spec: An unspecified 'name' defaults to the value of the 'type' attribute.
if (!hasAttribute(HTMLNames::nameAttr))
m_name = m_type;
ContainerNode* parent = parentNode();
if (!parent || !parent->isWMLElement())
return;
if (WMLEventHandlingElement* eventHandlingElement = toWMLEventHandlingElement(static_cast<WMLElement*>(parent)))
eventHandlingElement->registerDoElement(this, document());
}
示例6: insertedIntoDocument
void WMLTimerElement::insertedIntoDocument()
{
WMLElement::insertedIntoDocument();
// If the value of timeout is not a positive integer, ignore it
if (value().toInt() <= 0)
return;
ContainerNode* parent = parentNode();
if (!parent || !parent->isWMLElement())
return;
if (parent->hasTagName(cardTag)) {
m_card = static_cast<WMLCardElement*>(parent);
m_card->setIntrinsicEventTimer(this);
}
}