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

Generated by: LCOV version 1.10