bump product version to 4.1.6.2
[LibreOffice.git] / xmloff / source / transform / MetaTContext.hxx
blob3fbf4b5854bcdcf981b3017d75dffc4d6894b6f9
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 _XMLOFF_METATCONTEXT_HXX
21 #define _XMLOFF_METATCONTEXT_HXX
23 #include <rtl/ref.hxx>
24 #include <comphelper/stl_types.hxx>
25 #include <map>
27 #include "FlatTContext.hxx"
29 typedef ::std::multimap< OUString,
30 ::rtl::Reference< XMLPersTextContentTContext >,
31 ::comphelper::UStringLess > XMLMetaContexts_Impl;
34 class XMLMetaTransformerContext : public XMLTransformerContext
36 XMLMetaContexts_Impl m_aContexts;
38 public:
39 TYPEINFO();
41 // A contexts constructor does anything that is required if an element
42 // starts. Namespace processing has been done already.
43 // Note that virtual methods cannot be used inside constructors. Use
44 // StartElement instead if this is required.
45 XMLMetaTransformerContext( XMLTransformerBase& rTransformer,
46 const OUString& rQName );
48 // A contexts destructor does anything that is required if an element
49 // ends. By default, nothing is done.
50 // Note that virtual methods cannot be used inside destructors. Use
51 // EndElement instead if this is required.
52 virtual ~XMLMetaTransformerContext();
54 // Create a children element context. By default, the import's
55 // CreateContext method is called to create a new default context.
56 virtual XMLTransformerContext *CreateChildContext( sal_uInt16 nPrefix,
57 const OUString& rLocalName,
58 const OUString& rQName,
59 const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttrList );
61 // EndElement is called before a context will be destructed, but
62 // after a elements context has been parsed. It may be used for actions
63 // that require virtual methods. The default is to do nothing.
64 virtual void EndElement();
66 // This method is called for all characters that are contained in the
67 // current element. The default is to ignore them.
68 virtual void Characters( const OUString& rChars );
71 #endif // _XMLOFF_METATCONTEXT_HXX
73 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */