some small improvements for the FILTERXML function

Change-Id: I4b4e814d90592f318afb3a9a6965ad8e3df07cae
This commit is contained in:
Markus Mohrhard
2013-06-16 15:33:30 +02:00
parent a29d20932c
commit 7f73b52db7

View File

@@ -107,35 +107,46 @@ void ScInterpreter::ScFilterXML()
aResult = OUString::createFromAscii((char*)pChar2.get());
}
}
else
{
PushError( errNoValue );
return;
}
}
PushString(aResult);
break;
case XPATH_BOOLEAN:
assert(false);
{
bool bVal = pXPathObj->boolval != 0;
PushDouble(bVal);
}
break;
case XPATH_NUMBER:
assert(false);
{
double fVal = pXPathObj->floatval;
PushDouble(fVal);
}
break;
case XPATH_STRING:
assert(false);
PushString(OUString::createFromAscii((char*)pXPathObj->stringval));
break;
case XPATH_POINT:
assert(false);
PushNoValue();
break;
case XPATH_RANGE:
assert(false);
PushNoValue();
break;
case XPATH_LOCATIONSET:
assert(false);
PushNoValue();
break;
case XPATH_USERS:
assert(false);
PushNoValue();
break;
case XPATH_XSLT_TREE:
assert(false);
PushNoValue();
break;
}
PushString(aResult);
}
}