Branch data Line data Source code
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 : :
21 : : #ifndef _XMLOFF_XMLCHANGEELEMENTIMPORTCONTEXT_HXX
22 : : #define _XMLOFF_XMLCHANGEELEMENTIMPORTCONTEXT_HXX
23 : :
24 : : #include <xmloff/xmlictxt.hxx>
25 : : #include <com/sun/star/uno/Reference.h>
26 : :
27 : :
28 : : namespace com { namespace sun { namespace star {
29 : : namespace xml { namespace sax {
30 : : class XAttributeList;
31 : : } }
32 : : } } }
33 : : namespace rtl {
34 : : class OUString;
35 : : }
36 : : class XMLChangedRegionImportContext;
37 : :
38 : :
39 : :
40 : : /**
41 : : * Import <text:deletion> and <text:insertion> elements contained in a
42 : : * <text:changed-region> element.
43 : : */
44 [ # # ]: 0 : class XMLChangeElementImportContext : public SvXMLImportContext
45 : : {
46 : : sal_Bool bAcceptContent;
47 : : XMLChangedRegionImportContext& rChangedRegion;
48 : :
49 : : public:
50 : :
51 : : TYPEINFO();
52 : :
53 : : XMLChangeElementImportContext(
54 : : SvXMLImport& rImport,
55 : : sal_uInt16 nPrefix,
56 : : const ::rtl::OUString& rLocalName,
57 : : /// accept text content (paragraphs) in element as redline content?
58 : : sal_Bool bAcceptContent,
59 : : /// context of enclosing <text:changed-region> element
60 : : XMLChangedRegionImportContext& rParent);
61 : :
62 : : virtual SvXMLImportContext* CreateChildContext(
63 : : sal_uInt16 nPrefix,
64 : : const ::rtl::OUString& rLocalName,
65 : : const ::com::sun::star::uno::Reference<
66 : : ::com::sun::star::xml::sax::XAttributeList> & xAttrList);
67 : :
68 : : // #107848#
69 : : // Start- and EndElement are needed here to set the inside_deleted_section
70 : : // flag at the corresponding TextImportHelper
71 : : virtual void StartElement( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttrList );
72 : :
73 : : // #107848#
74 : : virtual void EndElement();
75 : : };
76 : :
77 : : #endif
78 : :
79 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|