LibreOffice Module xmloff (master)  1
DeepTContext.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 #ifndef INCLUDED_XMLOFF_SOURCE_TRANSFORM_DEEPTCONTEXT_HXX
21 #define INCLUDED_XMLOFF_SOURCE_TRANSFORM_DEEPTCONTEXT_HXX
22 
23 #include <rtl/ref.hxx>
24 
25 #include <vector>
26 #include "PersAttrListTContext.hxx"
27 
29 {
30  std::vector<rtl::Reference<XMLTransformerContext>> m_aChildContexts;
31 
32 public:
33  // element content persistence only
35  const OUString& rQName );
36 
37  // element content persistence + attribute processing
39  const OUString& rQName,
40  sal_uInt16 nActionMap );
41 
42  // element content persistence + renaming
44  const OUString& rQName,
45  sal_uInt16 nPrefix,
47 
48  // element content persistence + renaming + attribute processing
50  const OUString& rQName,
51  sal_uInt16 nPrefix,
53  sal_uInt16 nActionMap );
54 
55  virtual ~XMLPersElemContentTContext() override;
56 
58  const OUString& rLocalName,
59  const OUString& rQName,
60  const css::uno::Reference< css::xml::sax::XAttributeList >& xAttrList ) override;
61 
62  void AddContent( rtl::Reference<XMLTransformerContext> const & pContent );
63 
64  bool HasElementContent() const
65  {
66  return !m_aChildContexts.empty();
67  }
68 
69  virtual void ExportContent() override;
70 };
71 
72 #endif // INCLUDED_XMLOFF_SOURCE_TRANSFORM_DEEPTCONTEXT_HXX
73 
74 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::vector< rtl::Reference< XMLTransformerContext > > m_aChildContexts
XMLTokenEnum
The enumeration of all XML tokens.
Definition: xmltoken.hxx:49
bool HasElementContent() const
void AddContent(rtl::Reference< XMLTransformerContext > const &pContent)
virtual rtl::Reference< XMLTransformerContext > CreateChildContext(sal_uInt16 nPrefix, const OUString &rLocalName, const OUString &rQName, const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList) override
virtual void ExportContent() override
XMLTokenEnum eToken
Definition: xmltoken.cxx:40
virtual ~XMLPersElemContentTContext() override
XMLPersElemContentTContext(XMLTransformerBase &rTransformer, const OUString &rQName)