26#include <com/sun/star/uno/RuntimeException.hpp>
27#include <rtl/ustring.hxx>
40 int layer, std::set< OUString >
const & processedDependencies,
Data & data):
41 layer_(layer), processedDependencies_(processedDependencies), data_(data),
42 state_(STATE_START), dependencyOptional_(), nesting_()
49 ?
nestedParser_->getTextMode() : xmlreader::XmlReader::Text::NONE;
54 std::set< OUString >
const * existingDependencies)
60 reader, nsId,
name, existingDependencies);
87 }
else if ((attrNsId ==
96 throw css::uno::RuntimeException(
97 "no dependency file attribute in " + reader.
getUrl());
101 throw css::uno::RuntimeException(
102 "bad dependency file attribute in " + reader.
getUrl());
109 existingDependencies->end())))
121 name ==
"component-schema")
126 reader, nsId,
name, existingDependencies);
129 (
name ==
"component-data" ||
name ==
"items"))
134 reader, nsId,
name, existingDependencies);
141 throw css::uno::RuntimeException(
142 "bad member <" +
name.convertFromUtf8() +
"> in " + reader.
getUrl());
rtl::Reference< Parser > nestedParser_
XcdParser(int layer, std::set< OUString > const &processedDependencies, Data &data)
virtual ~XcdParser() override
virtual xmlreader::XmlReader::Text getTextMode() override
virtual void endElement(xmlreader::XmlReader const &reader) override
virtual bool startElement(xmlreader::XmlReader &reader, int nsId, xmlreader::Span const &name, std::set< OUString > const *existingDependencies) override
virtual void characters(xmlreader::Span const &text) override
std::set< OUString > const & processedDependencies_
const OUString & getUrl() const
bool nextAttribute(int *nsId, Span *localName)
Span getAttributeValue(bool fullyNormalize)
bool parseBoolean(xmlreader::Span const &text)
rtl::OUString convertFromUtf8() const