40bool UCBDeadPropertyValue::supportsType(
const uno::Type & rType )
69 OUString
const& rValue,
80 rOutData <<= rValue.toInt32();
84 rOutData <<= sal_Int16( rValue.toInt32() );
88 if (rValue.equalsIgnoreAsciiCase(
u"true"))
99 rOutData <<= rValue.toChar();
103 rOutData <<=
sal_Int8( rValue.toChar() );
107 rOutData <<= rValue.toInt64();
111 rOutData <<= rValue.toFloat();
115 rOutData <<= rValue.toDouble();
120 "UCBDeadPropertyValue::createFromXML - "
121 "Unsupported property type!" );
128::std::optional<::std::pair<OUString, OUString>>
135 const uno::Type& rType = rInData.getValueType();
136 OUString aStringValue;
137 OUString aStringType;
142 rInData >>= aStringValue;
150 aStringValue = OUString::number(
nValue );
158 aStringValue = OUString::number(
nValue );
166 aStringValue = OUString::boolean( bValue );
174 aStringValue = OUString( cValue );
190 aStringValue = OUString::number(
nValue );
198 aStringValue = OUString::number(
nValue );
206 aStringValue = OUString::number(
nValue );
212 "UCBDeadPropertyValue::toXML - "
213 "Unsupported property type!" );
217 return { { aStringType, aStringValue } };
constexpr OUStringLiteral aTypeString
constexpr OUStringLiteral aTypeFloat
constexpr OUStringLiteral aTypeLong
constexpr OUStringLiteral aTypeByte
constexpr OUStringLiteral aTypeHyper
constexpr OUStringLiteral aTypeBoolean
constexpr OUStringLiteral aTypeDouble
constexpr OUStringLiteral aTypeShort
constexpr OUStringLiteral aTypeChar
static ::std::optional<::std::pair< OUString, OUString > > toXML(const css::uno::Any &rInData)
static bool createFromXML(std::u16string_view rType, OUString const &rValue, css::uno::Any &rOutData)
#define SAL_WARN(area, stream)
bool equalsIgnoreAsciiCase(std::u16string_view s1, std::u16string_view s2)