LCOV - code coverage report
Current view: top level - xmloff/source/text - XMLTextMarkImportContext.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 1 2 50.0 %
Date: 2012-08-25 Functions: 2 4 50.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1 4 25.0 %

           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_XMLTEXTMARKIMPORTCONTEXT_HXX
      22                 :            : #define _XMLOFF_XMLTEXTMARKIMPORTCONTEXT_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 text {
      30                 :            :         class XTextRange;
      31                 :            :         class XTextContent;
      32                 :            :     }
      33                 :            :     namespace xml { namespace sax {
      34                 :            :         class XAttributeList;
      35                 :            :     } }
      36                 :            : } } }
      37                 :            : namespace rtl {
      38                 :            :     class OUString;
      39                 :            : }
      40                 :            : class XMLTextImportHelper;
      41                 :            : 
      42         [ #  # ]:          0 : class XMLFieldParamImportContext : public SvXMLImportContext
      43                 :            : {
      44                 :            :     XMLTextImportHelper& rHelper;
      45                 :            : public:
      46                 :            :     XMLFieldParamImportContext(
      47                 :            :         SvXMLImport& rImport,
      48                 :            :         XMLTextImportHelper& rHlp,
      49                 :            :         sal_uInt16 nPrfx,
      50                 :            :         const ::rtl::OUString& rLocalName );
      51                 :            : 
      52                 :            :     virtual void StartElement(
      53                 :            :         const ::com::sun::star::uno::Reference<
      54                 :            :             ::com::sun::star::xml::sax::XAttributeList> & xAttrList);
      55                 :            : };
      56                 :            : 
      57                 :            : 
      58                 :            : /**
      59                 :            :  * import bookmarks and reference marks
      60                 :            :  * ( <bookmark>, <bookmark-start>, <bookmark-end>,
      61                 :            :  *   <reference>, <reference-start>, <reference-end> )
      62                 :            :  *
      63                 :            :  * All elements are handled by the same class due to their similarities.
      64                 :            :  */
      65         [ -  + ]:       7670 : class XMLTextMarkImportContext : public SvXMLImportContext
      66                 :            : {
      67                 :            : 
      68                 :            :     XMLTextImportHelper & m_rHelper;
      69                 :            :     ::rtl::OUString m_sBookmarkName;
      70                 :            :     ::rtl::OUString m_sFieldName;
      71                 :            :     ::rtl::OUString m_sXmlId;
      72                 :            :     // RDFa
      73                 :            :     bool m_bHaveAbout;
      74                 :            :     ::rtl::OUString m_sAbout;
      75                 :            :     ::rtl::OUString m_sProperty;
      76                 :            :     ::rtl::OUString m_sContent;
      77                 :            :     ::rtl::OUString m_sDatatype;
      78                 :            : 
      79                 :            : public:
      80                 :            : 
      81                 :            :     TYPEINFO();
      82                 :            : 
      83                 :            :     XMLTextMarkImportContext(
      84                 :            :         SvXMLImport& rImport,
      85                 :            :         XMLTextImportHelper& rHlp,
      86                 :            :         sal_uInt16 nPrfx,
      87                 :            :         const ::rtl::OUString& rLocalName );
      88                 :            : 
      89                 :            : protected:
      90                 :            : 
      91                 :            :     virtual void StartElement(
      92                 :            :         const ::com::sun::star::uno::Reference<
      93                 :            :             ::com::sun::star::xml::sax::XAttributeList> & xAttrList);
      94                 :            :     virtual void EndElement();
      95                 :            : 
      96                 :            :     virtual SvXMLImportContext *CreateChildContext( sal_uInt16 nPrefix,
      97                 :            :                                                     const ::rtl::OUString& rLocalName,
      98                 :            :                                                     const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttrList );
      99                 :            : 
     100                 :            : public:
     101                 :            :     static ::com::sun::star::uno::Reference<
     102                 :            :             ::com::sun::star::text::XTextContent > CreateAndInsertMark(
     103                 :            :         SvXMLImport& rImport,
     104                 :            :         const ::rtl::OUString& sServiceName,
     105                 :            :         const ::rtl::OUString& sMarkName,
     106                 :            :         const ::com::sun::star::uno::Reference<
     107                 :            :             ::com::sun::star::text::XTextRange> & rRange,
     108                 :            :         const ::rtl::OUString& i_rXmlId = ::rtl::OUString());
     109                 :            : 
     110                 :            :     sal_Bool FindName(
     111                 :            :         SvXMLImport& rImport,
     112                 :            :         const ::com::sun::star::uno::Reference<
     113                 :            :         ::com::sun::star::xml::sax::XAttributeList> & xAttrList);
     114                 :            : };
     115                 :            : 
     116                 :            : #endif
     117                 :            : 
     118                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10