bump product version to 5.0.4.1
[LibreOffice.git] / xmloff / source / transform / DeepTContext.hxx
blobda3fbc83d801049f788a94347906a4657ea4a5c7
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_XMLOFF_SOURCE_TRANSFORM_DEEPTCONTEXT_HXX
21 #define INCLUDED_XMLOFF_SOURCE_TRANSFORM_DEEPTCONTEXT_HXX
23 #include <rtl/ref.hxx>
25 #include <vector>
26 #include "PersAttrListTContext.hxx"
27 #include "TContextVector.hxx"
29 class XMLPersElemContentTContext : public XMLPersAttrListTContext
31 XMLTransformerContextVector m_aChildContexts;
33 public:
34 TYPEINFO_OVERRIDE();
36 // element content persistence only
37 XMLPersElemContentTContext( XMLTransformerBase& rTransformer,
38 const OUString& rQName );
40 // element content persistence + attribute processing
41 XMLPersElemContentTContext( XMLTransformerBase& rTransformer,
42 const OUString& rQName,
43 sal_uInt16 nActionMap );
45 // element content persistence + renaming
46 XMLPersElemContentTContext( XMLTransformerBase& rTransformer,
47 const OUString& rQName,
48 sal_uInt16 nPrefix,
49 ::xmloff::token::XMLTokenEnum eToken );
51 // element content persistence + renaming + attribute processing
52 XMLPersElemContentTContext( XMLTransformerBase& rTransformer,
53 const OUString& rQName,
54 sal_uInt16 nPrefix,
55 ::xmloff::token::XMLTokenEnum eToken,
56 sal_uInt16 nActionMap );
58 virtual ~XMLPersElemContentTContext();
60 virtual XMLTransformerContext *CreateChildContext( sal_uInt16 nPrefix,
61 const OUString& rLocalName,
62 const OUString& rQName,
63 const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttrList ) SAL_OVERRIDE;
65 void AddContent( XMLTransformerContext *pContent );
67 bool HasElementContent() const
69 return !m_aChildContexts.empty();
72 virtual void ExportContent() SAL_OVERRIDE;
75 #endif // INCLUDED_XMLOFF_SOURCE_TRANSFORM_DEEPTCONTEXT_HXX
77 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */