LCOV - code coverage report
Current view: top level - sw/source/core/inc - unofootnote.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 2 0.0 %
Date: 2014-04-14 Functions: 0 2 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_SW_SOURCE_CORE_INC_UNOFOOTNOTE_HXX
      21             : #define INCLUDED_SW_SOURCE_CORE_INC_UNOFOOTNOTE_HXX
      22             : 
      23             : #include <com/sun/star/lang/XUnoTunnel.hpp>
      24             : #include <com/sun/star/lang/XServiceInfo.hpp>
      25             : #include <com/sun/star/beans/XPropertySet.hpp>
      26             : #include <com/sun/star/container/XEnumerationAccess.hpp>
      27             : #include <com/sun/star/text/XTextContent.hpp>
      28             : #include <com/sun/star/text/XFootnote.hpp>
      29             : 
      30             : #include <cppuhelper/implbase5.hxx>
      31             : 
      32             : #include <unotext.hxx>
      33             : 
      34             : class SwDoc;
      35             : class SwModify;
      36             : class SwFmtFtn;
      37             : 
      38             : typedef ::cppu::WeakImplHelper5
      39             : <   ::com::sun::star::lang::XUnoTunnel
      40             : ,   ::com::sun::star::lang::XServiceInfo
      41             : ,   ::com::sun::star::beans::XPropertySet
      42             : ,   ::com::sun::star::container::XEnumerationAccess
      43             : ,   ::com::sun::star::text::XFootnote
      44             : > SwXFootnote_Base;
      45             : 
      46             : class SwXFootnote
      47             :     : public SwXFootnote_Base
      48             :     , public SwXText
      49             : {
      50             : 
      51             : private:
      52             : 
      53             :     friend class SwXFootnotes;
      54             : 
      55             :     class Impl;
      56             :     ::sw::UnoImplPtr<Impl> m_pImpl;
      57             : 
      58             : protected:
      59             : 
      60             :     virtual const SwStartNode *GetStartNode() const SAL_OVERRIDE;
      61             : 
      62             :     virtual ::com::sun::star::uno::Reference<
      63             :                 ::com::sun::star::text::XTextCursor >
      64             :         CreateCursor()
      65             :         throw (::com::sun::star::uno::RuntimeException) SAL_OVERRIDE;
      66             : 
      67             :     virtual ~SwXFootnote();
      68             : 
      69             :     SwXFootnote(SwDoc & rDoc, const SwFmtFtn & rFmt);
      70             : 
      71             : public:
      72             : 
      73             :     SwXFootnote(const bool bEndnote);
      74             : 
      75             :     static SwXFootnote *
      76             :         CreateXFootnote(SwDoc & rDoc, SwFmtFtn const& rFootnoteFmt);
      77             :     /// may return 0
      78             :     static SwXFootnote *
      79             :         GetXFootnote(SwModify const& rUnoCB, SwFmtFtn const& rFootnoteFmt);
      80             : 
      81             :     // XInterface
      82             :     virtual ::com::sun::star::uno::Any SAL_CALL queryInterface(
      83             :             const ::com::sun::star::uno::Type& rType)
      84             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      85           0 :     virtual void SAL_CALL acquire() throw() SAL_OVERRIDE { OWeakObject::acquire(); }
      86           0 :     virtual void SAL_CALL release() throw() SAL_OVERRIDE { OWeakObject::release(); }
      87             : 
      88             :     // XTypeProvider
      89             :     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >
      90             :         SAL_CALL getTypes()
      91             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      92             :     virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL
      93             :         getImplementationId()
      94             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      95             : 
      96             :     static const ::com::sun::star::uno::Sequence< sal_Int8 >& getUnoTunnelId();
      97             : 
      98             :     // XUnoTunnel
      99             :     virtual sal_Int64 SAL_CALL getSomething(
     100             :             const ::com::sun::star::uno::Sequence< sal_Int8 >& rIdentifier)
     101             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     102             : 
     103             :     // XServiceInfo
     104             :     virtual OUString SAL_CALL getImplementationName()
     105             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     106             :     virtual sal_Bool SAL_CALL supportsService(
     107             :             const OUString& rServiceName)
     108             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     109             :     virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL
     110             :         getSupportedServiceNames()
     111             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     112             : 
     113             :     // XComponent
     114             :     virtual void SAL_CALL dispose()
     115             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     116             :     virtual void SAL_CALL addEventListener(
     117             :             const ::com::sun::star::uno::Reference<
     118             :                 ::com::sun::star::lang::XEventListener > & xListener)
     119             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     120             :     virtual void SAL_CALL removeEventListener(
     121             :             const ::com::sun::star::uno::Reference<
     122             :                 ::com::sun::star::lang::XEventListener > & xListener)
     123             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     124             : 
     125             :     // XPropertySet
     126             :     virtual ::com::sun::star::uno::Reference<
     127             :                 ::com::sun::star::beans::XPropertySetInfo > SAL_CALL
     128             :         getPropertySetInfo()
     129             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     130             :     virtual void SAL_CALL setPropertyValue(
     131             :             const OUString& rPropertyName,
     132             :             const ::com::sun::star::uno::Any& rValue)
     133             :         throw (::com::sun::star::beans::UnknownPropertyException,
     134             :                 ::com::sun::star::beans::PropertyVetoException,
     135             :                 ::com::sun::star::lang::IllegalArgumentException,
     136             :                 ::com::sun::star::lang::WrappedTargetException,
     137             :                 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     138             :     virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue(
     139             :             const OUString& rPropertyName)
     140             :         throw (::com::sun::star::beans::UnknownPropertyException,
     141             :                 ::com::sun::star::lang::WrappedTargetException,
     142             :                 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     143             :     virtual void SAL_CALL addPropertyChangeListener(
     144             :             const OUString& rPropertyName,
     145             :             const ::com::sun::star::uno::Reference<
     146             :                 ::com::sun::star::beans::XPropertyChangeListener >& xListener)
     147             :         throw (::com::sun::star::beans::UnknownPropertyException,
     148             :                 ::com::sun::star::lang::WrappedTargetException,
     149             :                 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     150             :     virtual void SAL_CALL removePropertyChangeListener(
     151             :             const OUString& rPropertyName,
     152             :             const ::com::sun::star::uno::Reference<
     153             :                 ::com::sun::star::beans::XPropertyChangeListener >& xListener)
     154             :         throw (::com::sun::star::beans::UnknownPropertyException,
     155             :                 ::com::sun::star::lang::WrappedTargetException,
     156             :                 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     157             :     virtual void SAL_CALL addVetoableChangeListener(
     158             :             const OUString& rPropertyName,
     159             :             const ::com::sun::star::uno::Reference<
     160             :                 ::com::sun::star::beans::XVetoableChangeListener >& xListener)
     161             :         throw (::com::sun::star::beans::UnknownPropertyException,
     162             :                 ::com::sun::star::lang::WrappedTargetException,
     163             :                 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     164             :     virtual void SAL_CALL removeVetoableChangeListener(
     165             :             const OUString& rPropertyName,
     166             :             const ::com::sun::star::uno::Reference<
     167             :                 ::com::sun::star::beans::XVetoableChangeListener >& xListener)
     168             :         throw (::com::sun::star::beans::UnknownPropertyException,
     169             :                 ::com::sun::star::lang::WrappedTargetException,
     170             :                 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     171             : 
     172             :     // XElementAccess
     173             :     virtual ::com::sun::star::uno::Type SAL_CALL getElementType()
     174             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     175             :     virtual sal_Bool SAL_CALL hasElements()
     176             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     177             : 
     178             :     // XEnumerationAccess
     179             :     virtual ::com::sun::star::uno::Reference<
     180             :             ::com::sun::star::container::XEnumeration >  SAL_CALL
     181             :         createEnumeration()
     182             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     183             : 
     184             :     // XTextContent
     185             :     virtual void SAL_CALL attach(
     186             :             const ::com::sun::star::uno::Reference<
     187             :                 ::com::sun::star::text::XTextRange > & xTextRange)
     188             :         throw (::com::sun::star::lang::IllegalArgumentException,
     189             :                 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     190             :     virtual ::com::sun::star::uno::Reference<
     191             :                 ::com::sun::star::text::XTextRange > SAL_CALL getAnchor()
     192             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     193             : 
     194             :     // XFootnote
     195             :     virtual OUString SAL_CALL getLabel()
     196             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     197             :     virtual void SAL_CALL setLabel(const OUString& rLabel)
     198             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     199             : 
     200             :     // XSimpleText
     201             :     virtual ::com::sun::star::uno::Reference<
     202             :                 ::com::sun::star::text::XTextCursor >  SAL_CALL
     203             :         createTextCursor()
     204             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     205             :     virtual ::com::sun::star::uno::Reference<
     206             :                 ::com::sun::star::text::XTextCursor >  SAL_CALL
     207             :         createTextCursorByRange(
     208             :             const ::com::sun::star::uno::Reference<
     209             :                 ::com::sun::star::text::XTextRange > & xTextPosition)
     210             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     211             : 
     212             : };
     213             : 
     214             : #endif // INCLUDED_SW_SOURCE_CORE_INC_UNOFOOTNOTE_HXX
     215             : 
     216             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10