LCOV - code coverage report
Current view: top level - extensions/source/propctrlr - xsddatatypes.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 0 1 0.0 %
Date: 2014-11-03 Functions: 0 1 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             : #ifndef INCLUDED_EXTENSIONS_SOURCE_PROPCTRLR_XSDDATATYPES_HXX
      21             : #define INCLUDED_EXTENSIONS_SOURCE_PROPCTRLR_XSDDATATYPES_HXX
      22             : 
      23             : #include <com/sun/star/uno/Reference.hxx>
      24             : #include <rtl/ref.hxx>
      25             : #include <salhelper/simplereferenceobject.hxx>
      26             : 
      27             : namespace com { namespace sun { namespace star {
      28             :     namespace xsd {
      29             :         class XDataType;
      30             :     }
      31             :     namespace beans {
      32             :         class XPropertySetInfo;
      33             :     }
      34             : } } }
      35             : 
      36             : 
      37             : namespace pcr
      38             : {
      39             : 
      40             : 
      41             : 
      42             :     //= XSDDataType
      43             : 
      44             :     class XSDDataType : public salhelper::SimpleReferenceObject
      45             :     {
      46             :     private:
      47             :         ::com::sun::star::uno::Reference< ::com::sun::star::xsd::XDataType >
      48             :                             m_xDataType;
      49             :         ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo >
      50             :                             m_xFacetInfo;
      51             : 
      52             :     protected:
      53             :         inline ::com::sun::star::xsd::XDataType* getDataTypeInterface() const { return m_xDataType.get(); }
      54             : 
      55             :     public:
      56             :         XSDDataType(
      57             :             const ::com::sun::star::uno::Reference< ::com::sun::star::xsd::XDataType >& _rxDataType
      58             :         );
      59             : 
      60             :         /// retrieves the underlying UNO component
      61             :         inline const ::com::sun::star::uno::Reference< ::com::sun::star::xsd::XDataType >&
      62           0 :                 getUnoDataType() const { return m_xDataType; }
      63             : 
      64             :         /// classifies the data typ
      65             :         sal_Int16 classify() const;
      66             : 
      67             :         // attribute access
      68             :         OUString     getName() const;
      69             :         bool                isBasicType() const;
      70             : 
      71             :         /// determines whether a given facet exists at the type
      72             :         bool                hasFacet( const OUString& _rFacetName ) const;
      73             :         /// retrieves a facet value
      74             :         ::com::sun::star::uno::Any
      75             :                             getFacet( const OUString& _rFacetName );
      76             :         /// sets a facet value
      77             :         void                setFacet( const OUString& _rFacetName, const ::com::sun::star::uno::Any& _rFacetValue );
      78             : 
      79             :        /** copies as much facets (values, respectively) from a give data type instance
      80             :        */
      81             :        void             copyFacetsFrom( const ::rtl::Reference< XSDDataType >& _pSourceType );
      82             : 
      83             :     protected:
      84             :         virtual ~XSDDataType();
      85             : 
      86             :     private:
      87             :         XSDDataType();                                  // never implemented
      88             :         XSDDataType( const XSDDataType& );              // never implemented
      89             :         XSDDataType& operator=( const XSDDataType& );   // never implemented
      90             :     };
      91             : 
      92             : 
      93             : } // namespace pcr
      94             : 
      95             : 
      96             : #endif // INCLUDED_EXTENSIONS_SOURCE_PROPCTRLR_XSDDATATYPES_HXX
      97             : 
      98             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10