LCOV - code coverage report
Current view: top level - xmloff/source/text - XMLChangeElementImportContext.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 1 0.0 %
Date: 2014-04-14 Functions: 0 2 0.0 %
Legend: Lines: hit not hit

          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 INCLUDED_XMLOFF_SOURCE_TEXT_XMLCHANGEELEMENTIMPORTCONTEXT_HXX
      22             : #define INCLUDED_XMLOFF_SOURCE_TEXT_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             : class XMLChangedRegionImportContext;
      34             : 
      35             : 
      36             : 
      37             : /**
      38             :  * Import <text:deletion> and <text:insertion> elements contained in a
      39             :  * <text:changed-region> element.
      40             :  */
      41           0 : class XMLChangeElementImportContext : public SvXMLImportContext
      42             : {
      43             :     /**
      44             :      * accept text content (paragraphs) in element as redline content?
      45             :      *
      46             :      * From the "5.5.4 <text:deletion>" section of the ODF 1.2 standard :
      47             :      *   The <text:deletion> element may also contain content that was
      48             :      *   deleted while change tracking was enabled.
      49             :      *
      50             :      * No other section in the "5.5 Change Tracking" chapter contain
      51             :      * this sentence.
      52             :      *
      53             :      * So if bAcceptContent is true, we are importing a <text:deletion> element
      54             :      */
      55             :     sal_Bool bAcceptContent;
      56             : 
      57             :     /// context of enclosing <text:changed-region> element
      58             :     XMLChangedRegionImportContext& rChangedRegion;
      59             : 
      60             : public:
      61             : 
      62             :     TYPEINFO_OVERRIDE();
      63             : 
      64             :     XMLChangeElementImportContext(
      65             :         SvXMLImport& rImport,
      66             :         sal_uInt16 nPrefix,
      67             :         const OUString& rLocalName,
      68             :         /// accept text content (paragraphs) in element as redline content?
      69             :         sal_Bool bAcceptContent,
      70             :         /// context of enclosing <text:changed-region> element
      71             :         XMLChangedRegionImportContext& rParent);
      72             : 
      73             :     virtual SvXMLImportContext* CreateChildContext(
      74             :         sal_uInt16 nPrefix,
      75             :         const OUString& rLocalName,
      76             :         const ::com::sun::star::uno::Reference<
      77             :             ::com::sun::star::xml::sax::XAttributeList> & xAttrList) SAL_OVERRIDE;
      78             : 
      79             :     // #107848#
      80             :     // Start- and EndElement are needed here to set the inside_deleted_section
      81             :     // flag at the corresponding TextImportHelper
      82             :     virtual void StartElement( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttrList ) SAL_OVERRIDE;
      83             : 
      84             :     // #107848#
      85             :     virtual void EndElement() SAL_OVERRIDE;
      86             : };
      87             : 
      88             : #endif
      89             : 
      90             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10