LibreOffice Module configmgr (master) 1
xcdparser.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#pragma once
21
22#include <sal/config.h>
23
24#include <set>
25
26#include <rtl/ref.hxx>
27#include <rtl/ustring.hxx>
29
30#include "parser.hxx"
31
32namespace xmlreader { struct Span; }
33
34namespace configmgr {
35
36struct Data;
37
38class XcdParser: public Parser {
39public:
41 int layer, std::set< OUString > const & processedDependencies,
42 Data & data);
43
44private:
45 virtual ~XcdParser() override;
46
47 virtual xmlreader::XmlReader::Text getTextMode() override;
48
49 virtual bool startElement(
50 xmlreader::XmlReader & reader, int nsId, xmlreader::Span const & name,
51 std::set< OUString > const * existingDependencies) override;
52
53 virtual void endElement(xmlreader::XmlReader const & reader) override;
54
55 virtual void characters(xmlreader::Span const & text) override;
56
57 enum State {
59
60 int layer_;
61 std::set< OUString > const & processedDependencies_;
68};
69
70}
71
72/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
rtl::Reference< Parser > nestedParser_
Definition: xcdparser.hxx:66
XcdParser(int layer, std::set< OUString > const &processedDependencies, Data &data)
Definition: xcdparser.cxx:39
virtual ~XcdParser() override
Definition: xcdparser.cxx:45
virtual xmlreader::XmlReader::Text getTextMode() override
Definition: xcdparser.cxx:47
virtual void endElement(xmlreader::XmlReader const &reader) override
Definition: xcdparser.cxx:145
virtual bool startElement(xmlreader::XmlReader &reader, int nsId, xmlreader::Span const &name, std::set< OUString > const *existingDependencies) override
Definition: xcdparser.cxx:52
virtual void characters(xmlreader::Span const &text) override
Definition: xcdparser.cxx:166
std::set< OUString > const & processedDependencies_
Definition: xcdparser.hxx:61
OUString dependencyFile_
Definition: xcdparser.hxx:64
OUString name
Definition: components.cxx:85
def text(shape, orig_st)