本文整理汇总了C++中DOMString类的典型用法代码示例。如果您正苦于以下问题:C++ DOMString类的具体用法?C++ DOMString怎么用?C++ DOMString使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了DOMString类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: GetAxis
NS_IMETHODIMP
HTMLTableCellElement::GetAxis(nsAString& aAxis)
{
DOMString axis;
GetAxis(axis);
axis.ToString(aAxis);
return NS_OK;
}
示例2: GetCh
NS_IMETHODIMP
HTMLTableCellElement::GetCh(nsAString& aCh)
{
DOMString ch;
GetCh(ch);
ch.ToString(aCh);
return NS_OK;
}
示例3: GetVAlign
NS_IMETHODIMP
HTMLTableCellElement::GetVAlign(nsAString& aVAlign)
{
DOMString vAlign;
GetVAlign(vAlign);
vAlign.ToString(aVAlign);
return NS_OK;
}
示例4: GetAlign
NS_IMETHODIMP
HTMLTableCellElement::GetAlign(nsAString& aAlign)
{
DOMString align;
GetAlign(align);
align.ToString(aAlign);
return NS_OK;
}
示例5: GetAbbr
NS_IMETHODIMP
HTMLTableCellElement::GetAbbr(nsAString& aAbbr)
{
DOMString abbr;
GetAbbr(abbr);
abbr.ToString(aAbbr);
return NS_OK;
}
示例6: DOMString
DOMString QualifiedName::tagName() const
{
DOMString prefix = m_prefix.toString();
DOMString localName = m_localName.toString();
if (prefix.isEmpty()) {
return localName;
}
return prefix + DOMString(":") + localName;
}
示例7: DOMString
DOMString CSSStyleDeclaration::getPropertyValue(const DOMString &propertyName) const
{
if(!impl)
return DOMString();
int id = getPropertyID(propertyName.string().ascii(), propertyName.length());
if(!id)
return DOMString();
return static_cast< CSSStyleDeclarationImpl * >(impl)->getPropertyValue(id);
}
示例8: getPropertyID
DOMString CSSStyleDeclaration::getPropertyPriority(const DOMString &propertyName) const
{
int id = getPropertyID(propertyName.string().ascii(), propertyName.length());
if(!impl || !id)
return DOMString();
if(impl->getPropertyPriority(id))
return DOMString("important");
return DOMString();
}
示例9: NodeBaseImpl
ProcessingInstructionImpl::ProcessingInstructionImpl(DocumentImpl *doc, DOMString _target, DOMString _data) : NodeBaseImpl(doc)
{
m_target = _target.implementation();
if (m_target)
m_target->ref();
m_data = _data.implementation();
if (m_data)
m_data->ref();
}
示例10: getAttribute
void ElementImpl::removedFromDocument()
{
if(hasID())
{
DOMString id = getAttribute(ATTR_ID);
updateId(id.implementation(), 0);
}
NodeBaseImpl::removedFromDocument();
}
示例11: notifyFinished
void XMLTokenizer::notifyFinished(CachedObject *finishedObj)
{
if (finishedObj == m_cachedScript) {
DOMString scriptSource = m_cachedScript->script();
m_cachedScript->deref(this);
m_cachedScript = 0;
m_view->part()->executeScript(scriptSource.string());
executeScripts();
}
}
示例12: setAttribute
void ElementImpl::setAttribute(NodeImpl::Id id, const DOMString &value, const DOMString &qName, int &exceptioncode)
{
// NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly
if(isReadOnly())
{
exceptioncode = DOMException::NO_MODIFICATION_ALLOWED_ERR;
return;
}
attributes()->setValue(id, value.implementation(), (qName.isEmpty() ? 0 : qName.implementation()));
}
示例13: initTextEvent
void TextEventImpl::initTextEvent(const DOMString &typeArg, bool canBubbleArg, bool cancelableArg, const AbstractView &viewArg, const DOMString &text)
{
m_outputString = text;
// See whether we can get a key out of this.
unsigned keyCode = 0;
if(text.length() == 1)
keyCode = text.unicode()[0].unicode();
initKeyBaseEvent(typeArg, canBubbleArg, cancelableArg, viewArg, keyCode, 0, 0);
}
示例14:
bool DOM::operator==( const DOMString &a, const QString &b )
{
int l = a.length();
if( l != b.length() ) return false;
if(!memcmp(a.unicode(), b.unicode(), l*sizeof(QChar)))
return true;
return false;
}
示例15: toString
DOMString AttrImpl::toString()
{
DOMString retString;
retString.appendData(name);
retString.appendData(DOMString("=\""));
retString.appendData(getValue());
retString.appendData(DOMString("\""));
return retString;
}