24#include <com/sun/star/uno/RuntimeException.hpp>
25#include <rtl/string.h>
26#include <rtl/ustring.hxx>
42 sal_Int32
i = rtl_str_indexOfChar_WithLength(
text.begin,
text.length,
':');
50 }
else if (token ==
"boolean-list")
53 }
else if (token ==
"short-list")
56 }
else if (token ==
"int-list")
59 }
else if (token ==
"long-list")
62 }
else if (token ==
"double-list")
65 }
else if (token ==
"string-list")
68 }
else if (token ==
"hexBinary-list")
74 if (token ==
"boolean")
77 }
else if (token ==
"short")
80 }
else if (token ==
"int")
83 }
else if (token ==
"long")
86 }
else if (token ==
"double")
89 }
else if (token ==
"string")
92 }
else if (token ==
"hexBinary")
101 throw css::uno::RuntimeException(
102 "invalid type " +
text.convertFromUtf8());
107 if (
text ==
"true") {
110 if (
text ==
"false") {
113 throw css::uno::RuntimeException(
114 "invalid boolean " +
text.convertFromUtf8());
118 std::u16string_view component,
bool hasNodeType,
119 std::u16string_view nodeType, OUString
const * defaultTemplateName)
122 if (defaultTemplateName !=
nullptr) {
123 return *defaultTemplateName;
125 throw css::uno::RuntimeException(
126 "missing node-type attribute");
int getNamespaceId(Span const &prefix) const
Type parseType(xmlreader::XmlReader const &reader, xmlreader::Span const &text)
bool parseBoolean(xmlreader::Span const &text)
OUString parseTemplateReference(std::u16string_view component, bool hasNodeType, std::u16string_view nodeType, OUString const *defaultTemplateName)
static OUString fullTemplateName(std::u16string_view component, std::u16string_view name)