LCOV - code coverage report
Current view: top level - solver/unxlngi6.pro/inc/editeng - unonrule.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 1 1 100.0 %
Date: 2012-08-25 Functions: 1 1 100.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                 :            :  *
       4                 :            :  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       5                 :            :  *
       6                 :            :  * Copyright 2000, 2010 Oracle and/or its affiliates.
       7                 :            :  *
       8                 :            :  * OpenOffice.org - a multi-platform office productivity suite
       9                 :            :  *
      10                 :            :  * This file is part of OpenOffice.org.
      11                 :            :  *
      12                 :            :  * OpenOffice.org is free software: you can redistribute it and/or modify
      13                 :            :  * it under the terms of the GNU Lesser General Public License version 3
      14                 :            :  * only, as published by the Free Software Foundation.
      15                 :            :  *
      16                 :            :  * OpenOffice.org is distributed in the hope that it will be useful,
      17                 :            :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      18                 :            :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      19                 :            :  * GNU Lesser General Public License version 3 for more details
      20                 :            :  * (a copy is included in the LICENSE file that accompanied this code).
      21                 :            :  *
      22                 :            :  * You should have received a copy of the GNU Lesser General Public License
      23                 :            :  * version 3 along with OpenOffice.org.  If not, see
      24                 :            :  * <http://www.openoffice.org/license.html>
      25                 :            :  * for a copy of the LGPLv3 License.
      26                 :            :  *
      27                 :            :  ************************************************************************/
      28                 :            : 
      29                 :            : #ifndef _SVX_UNONRULE_HXX
      30                 :            : #define _SVX_UNONRULE_HXX
      31                 :            : 
      32                 :            : #include <com/sun/star/container/XIndexReplace.hpp>
      33                 :            : #include <com/sun/star/ucb/XAnyCompare.hpp>
      34                 :            : #include "editeng/editengdllapi.h"
      35                 :            : #include <cppuhelper/implbase5.hxx>
      36                 :            : #include <com/sun/star/lang/XUnoTunnel.hpp>
      37                 :            : #include <com/sun/star/lang/XServiceInfo.hpp>
      38                 :            : #include <com/sun/star/util/XCloneable.hpp>
      39                 :            : #include <editeng/numitem.hxx>
      40                 :            : #include <comphelper/servicehelper.hxx>
      41                 :            : #include <com/sun/star/beans/PropertyValue.hpp>
      42                 :            : 
      43                 :            : EDITENG_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexReplace > SvxCreateNumRule( const SvxNumRule* pRule ) throw();
      44                 :            : EDITENG_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexReplace > SvxCreateNumRule() throw();
      45                 :            : const SvxNumRule& SvxGetNumRule( ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexReplace > xRule ) throw( ::com::sun::star::lang::IllegalArgumentException );
      46                 :            : EDITENG_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XAnyCompare > SvxCreateNumRuleCompare() throw();
      47                 :            : 
      48                 :            : class SvxUnoNumberingRules : public ::cppu::WeakAggImplHelper5< com::sun::star::container::XIndexReplace, com::sun::star::ucb::XAnyCompare,
      49                 :            :     com::sun::star::lang::XUnoTunnel, com::sun::star::util::XCloneable, com::sun::star::lang::XServiceInfo >
      50                 :            : {
      51                 :            : private:
      52                 :            :     SvxNumRule maRule;
      53                 :            : public:
      54                 :            :     SvxUnoNumberingRules( const SvxNumRule& rRule ) throw();
      55                 :            :     virtual ~SvxUnoNumberingRules() throw();
      56                 :            : 
      57                 :            :     UNO3_GETIMPLEMENTATION_DECL( SvxUnoNumberingRules )
      58                 :            : 
      59                 :            :     //XIndexReplace
      60                 :            :     virtual void SAL_CALL replaceByIndex( sal_Int32 Index, const com::sun::star::uno::Any& Element ) throw(
      61                 :            :     com::sun::star::lang::IllegalArgumentException, com::sun::star::lang::IndexOutOfBoundsException, com::sun::star::lang::WrappedTargetException, com::sun::star::uno::RuntimeException);
      62                 :            : 
      63                 :            :     //XIndexAccess
      64                 :            :     virtual sal_Int32 SAL_CALL getCount() throw(com::sun::star::uno::RuntimeException) ;
      65                 :            :     virtual com::sun::star::uno::Any SAL_CALL getByIndex( sal_Int32 Index ) throw(com::sun::star::lang::IndexOutOfBoundsException,
      66                 :            :         com::sun::star::lang::WrappedTargetException, com::sun::star::uno::RuntimeException);
      67                 :            : 
      68                 :            :     //XElementAccess
      69                 :            :     virtual com::sun::star::uno::Type SAL_CALL getElementType() throw(com::sun::star::uno::RuntimeException);
      70                 :            :     virtual sal_Bool SAL_CALL hasElements() throw(com::sun::star::uno::RuntimeException);
      71                 :            : 
      72                 :            :     // XAnyCompare
      73                 :            :     virtual sal_Int16 SAL_CALL compare( const com::sun::star::uno::Any& Any1, const com::sun::star::uno::Any& Any2 ) throw(com::sun::star::uno::RuntimeException);
      74                 :            : 
      75                 :            :     // XCloneable
      76                 :            :     virtual com::sun::star::uno::Reference< com::sun::star::util::XCloneable > SAL_CALL createClone(  ) throw (com::sun::star::uno::RuntimeException);
      77                 :            : 
      78                 :            :     // XServiceInfo
      79                 :            :     virtual rtl::OUString SAL_CALL getImplementationName(  ) throw(com::sun::star::uno::RuntimeException);
      80                 :            :     virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw(com::sun::star::uno::RuntimeException);
      81                 :            :     virtual com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames(  ) throw(com::sun::star::uno::RuntimeException);
      82                 :            : 
      83                 :            :     // internal
      84                 :            :     com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> getNumberingRuleByIndex( sal_Int32 nIndex) const throw();
      85                 :            :     void setNumberingRuleByIndex( const com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue >& rProperties, sal_Int32 nIndex) throw( com::sun::star::uno::RuntimeException, com::sun::star::lang::IllegalArgumentException );
      86                 :            : 
      87                 :            :     static sal_Int16 Compare( const com::sun::star::uno::Any& rAny1, const com::sun::star::uno::Any& rAny2 );
      88                 :            : 
      89                 :        220 :     const SvxNumRule& getNumRule() const { return maRule; }
      90                 :            : };
      91                 :            : 
      92                 :            : 
      93                 :            : #endif
      94                 :            : 
      95                 :            : 
      96                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10