Bump for 4.0-11
[LibreOffice.git] / xmloff / source / transform / FlatTContext.cxx
blob8ec8009646521a57b8ebae5e95b86bd806d5867b
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 #include "FlatTContext.hxx"
21 #include "TransformerBase.hxx"
23 using ::rtl::OUString;
25 using namespace ::com::sun::star::uno;
26 using namespace ::com::sun::star::xml::sax;
28 TYPEINIT1( XMLPersTextContentTContext, XMLPersAttrListTContext );
30 XMLPersTextContentTContext::XMLPersTextContentTContext(
31 XMLTransformerBase& rImp,
32 const OUString& rQName ) :
33 XMLPersAttrListTContext( rImp, rQName )
37 XMLPersTextContentTContext::XMLPersTextContentTContext(
38 XMLTransformerBase& rImp,
39 const OUString& rQName,
40 sal_uInt16 nPrefix,
41 ::xmloff::token::XMLTokenEnum eToken ) :
42 XMLPersAttrListTContext( rImp, rQName, nPrefix, eToken )
46 XMLPersTextContentTContext::~XMLPersTextContentTContext()
50 void XMLPersTextContentTContext::Characters( const OUString& rChars )
52 m_aCharacters += rChars;
55 void XMLPersTextContentTContext::ExportContent()
57 GetTransformer().GetDocHandler()->characters( m_aCharacters );
60 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */