LCOV - code coverage report
Current view: top level - xmloff/source/xforms - SchemaContext.cxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 11 0.0 %
Date: 2014-04-14 Functions: 0 5 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             : #include "SchemaContext.hxx"
      22             : 
      23             : #include "SchemaSimpleTypeContext.hxx"
      24             : 
      25             : #include <xmloff/xmltoken.hxx>
      26             : #include <xmloff/nmspmap.hxx>
      27             : #include <xmloff/xmlnmspe.hxx>
      28             : #include <xmloff/xmltkmap.hxx>
      29             : #include <xmloff/xmluconv.hxx>
      30             : 
      31             : #include <com/sun/star/beans/XPropertySet.hpp>
      32             : #include <com/sun/star/xsd/WhiteSpaceTreatment.hpp>
      33             : #include <com/sun/star/xforms/XDataTypeRepository.hpp>
      34             : 
      35             : using com::sun::star::uno::Reference;
      36             : using com::sun::star::uno::Any;
      37             : using com::sun::star::xml::sax::XAttributeList;
      38             : using com::sun::star::xforms::XDataTypeRepository;
      39             : using namespace xmloff::token;
      40             : 
      41             : 
      42             : 
      43             : 
      44             : static const SvXMLTokenMapEntry aAttributes[] =
      45             : {
      46             :     XML_TOKEN_MAP_END
      47             : };
      48             : 
      49             : static const SvXMLTokenMapEntry aChildren[] =
      50             : {
      51             :     TOKEN_MAP_ENTRY( XSD, SIMPLETYPE ),
      52             :     XML_TOKEN_MAP_END
      53             : };
      54             : 
      55             : 
      56           0 : SchemaContext::SchemaContext(
      57             :     SvXMLImport& rImport,
      58             :     sal_uInt16 nPrefix,
      59             :     const OUString& rLocalName,
      60             :     const Reference<XDataTypeRepository>& rRepository ) :
      61             :         TokenContext( rImport, nPrefix, rLocalName, aAttributes, aChildren ),
      62           0 :         mxRepository( rRepository )
      63             : {
      64           0 : }
      65             : 
      66           0 : SchemaContext::~SchemaContext()
      67             : {
      68           0 : }
      69             : 
      70           0 : void SchemaContext::HandleAttribute(
      71             :     sal_uInt16,
      72             :     const OUString& )
      73             : {
      74           0 : }
      75             : 
      76           0 : SvXMLImportContext* SchemaContext::HandleChild(
      77             :     sal_uInt16 nToken,
      78             :     sal_uInt16 nPrefix,
      79             :     const OUString& rLocalName,
      80             :     const Reference<XAttributeList>& )
      81             : {
      82             :     return ( nToken == XML_SIMPLETYPE )
      83           0 :         ? new SchemaSimpleTypeContext( GetImport(), nPrefix, rLocalName,
      84           0 :                                        mxRepository )
      85           0 :         : new SvXMLImportContext( GetImport(), nPrefix, rLocalName );
      86             : }
      87             : 
      88             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10