LCOV - code coverage report
Current view: top level - sw/source/core/inc - unofootnote.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 2 2 100.0 %
Date: 2015-06-13 12:38:46 Functions: 2 2 100.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/implbase.hxx>
      31             : 
      32             : #include <unotext.hxx>
      33             : 
      34             : class SwDoc;
      35             : class SwModify;
      36             : class SwFormatFootnote;
      37             : 
      38             : typedef ::cppu::WeakImplHelper
      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, SwFormatFootnote & rFormat);
      70             :     SwXFootnote(const bool bEndnote);
      71             : 
      72             : public:
      73             : 
      74             :     static css::uno::Reference<css::text::XFootnote>
      75             :         CreateXFootnote(SwDoc & rDoc, SwFormatFootnote * pFootnoteFormat,
      76             :                 bool isEndnote = false);
      77             : 
      78             :     // XInterface
      79             :     virtual ::com::sun::star::uno::Any SAL_CALL queryInterface(
      80             :             const ::com::sun::star::uno::Type& rType)
      81             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      82        6024 :     virtual void SAL_CALL acquire() throw() SAL_OVERRIDE { OWeakObject::acquire(); }
      83        6024 :     virtual void SAL_CALL release() throw() SAL_OVERRIDE { OWeakObject::release(); }
      84             : 
      85             :     // XTypeProvider
      86             :     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >
      87             :         SAL_CALL getTypes()
      88             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      89             :     virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL
      90             :         getImplementationId()
      91             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      92             : 
      93             :     static const ::com::sun::star::uno::Sequence< sal_Int8 >& getUnoTunnelId();
      94             : 
      95             :     // XUnoTunnel
      96             :     virtual sal_Int64 SAL_CALL getSomething(
      97             :             const ::com::sun::star::uno::Sequence< sal_Int8 >& rIdentifier)
      98             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      99             : 
     100             :     // XServiceInfo
     101             :     virtual OUString SAL_CALL getImplementationName()
     102             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     103             :     virtual sal_Bool SAL_CALL supportsService(
     104             :             const OUString& rServiceName)
     105             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     106             :     virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL
     107             :         getSupportedServiceNames()
     108             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     109             : 
     110             :     // XComponent
     111             :     virtual void SAL_CALL dispose()
     112             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     113             :     virtual void SAL_CALL addEventListener(
     114             :             const ::com::sun::star::uno::Reference<
     115             :                 ::com::sun::star::lang::XEventListener > & xListener)
     116             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     117             :     virtual void SAL_CALL removeEventListener(
     118             :             const ::com::sun::star::uno::Reference<
     119             :                 ::com::sun::star::lang::XEventListener > & xListener)
     120             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     121             : 
     122             :     // XPropertySet
     123             :     virtual ::com::sun::star::uno::Reference<
     124             :                 ::com::sun::star::beans::XPropertySetInfo > SAL_CALL
     125             :         getPropertySetInfo()
     126             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     127             :     virtual void SAL_CALL setPropertyValue(
     128             :             const OUString& rPropertyName,
     129             :             const ::com::sun::star::uno::Any& rValue)
     130             :         throw (::com::sun::star::beans::UnknownPropertyException,
     131             :                 ::com::sun::star::beans::PropertyVetoException,
     132             :                 ::com::sun::star::lang::IllegalArgumentException,
     133             :                 ::com::sun::star::lang::WrappedTargetException,
     134             :                 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     135             :     virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue(
     136             :             const OUString& rPropertyName)
     137             :         throw (::com::sun::star::beans::UnknownPropertyException,
     138             :                 ::com::sun::star::lang::WrappedTargetException,
     139             :                 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     140             :     virtual void SAL_CALL addPropertyChangeListener(
     141             :             const OUString& rPropertyName,
     142             :             const ::com::sun::star::uno::Reference<
     143             :                 ::com::sun::star::beans::XPropertyChangeListener >& xListener)
     144             :         throw (::com::sun::star::beans::UnknownPropertyException,
     145             :                 ::com::sun::star::lang::WrappedTargetException,
     146             :                 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     147             :     virtual void SAL_CALL removePropertyChangeListener(
     148             :             const OUString& rPropertyName,
     149             :             const ::com::sun::star::uno::Reference<
     150             :                 ::com::sun::star::beans::XPropertyChangeListener >& xListener)
     151             :         throw (::com::sun::star::beans::UnknownPropertyException,
     152             :                 ::com::sun::star::lang::WrappedTargetException,
     153             :                 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     154             :     virtual void SAL_CALL addVetoableChangeListener(
     155             :             const OUString& rPropertyName,
     156             :             const ::com::sun::star::uno::Reference<
     157             :                 ::com::sun::star::beans::XVetoableChangeListener >& xListener)
     158             :         throw (::com::sun::star::beans::UnknownPropertyException,
     159             :                 ::com::sun::star::lang::WrappedTargetException,
     160             :                 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     161             :     virtual void SAL_CALL removeVetoableChangeListener(
     162             :             const OUString& rPropertyName,
     163             :             const ::com::sun::star::uno::Reference<
     164             :                 ::com::sun::star::beans::XVetoableChangeListener >& xListener)
     165             :         throw (::com::sun::star::beans::UnknownPropertyException,
     166             :                 ::com::sun::star::lang::WrappedTargetException,
     167             :                 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     168             : 
     169             :     // XElementAccess
     170             :     virtual ::com::sun::star::uno::Type SAL_CALL getElementType()
     171             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     172             :     virtual sal_Bool SAL_CALL hasElements()
     173             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     174             : 
     175             :     // XEnumerationAccess
     176             :     virtual ::com::sun::star::uno::Reference<
     177             :             ::com::sun::star::container::XEnumeration >  SAL_CALL
     178             :         createEnumeration()
     179             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     180             : 
     181             :     // XTextContent
     182             :     virtual void SAL_CALL attach(
     183             :             const ::com::sun::star::uno::Reference<
     184             :                 ::com::sun::star::text::XTextRange > & xTextRange)
     185             :         throw (::com::sun::star::lang::IllegalArgumentException,
     186             :                 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     187             :     virtual ::com::sun::star::uno::Reference<
     188             :                 ::com::sun::star::text::XTextRange > SAL_CALL getAnchor()
     189             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     190             : 
     191             :     // XFootnote
     192             :     virtual OUString SAL_CALL getLabel()
     193             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     194             :     virtual void SAL_CALL setLabel(const OUString& rLabel)
     195             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     196             : 
     197             :     // XSimpleText
     198             :     virtual ::com::sun::star::uno::Reference<
     199             :                 ::com::sun::star::text::XTextCursor >  SAL_CALL
     200             :         createTextCursor()
     201             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     202             :     virtual ::com::sun::star::uno::Reference<
     203             :                 ::com::sun::star::text::XTextCursor >  SAL_CALL
     204             :         createTextCursorByRange(
     205             :             const ::com::sun::star::uno::Reference<
     206             :                 ::com::sun::star::text::XTextRange > & xTextPosition)
     207             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     208             : 
     209             : };
     210             : 
     211             : #endif // INCLUDED_SW_SOURCE_CORE_INC_UNOFOOTNOTE_HXX
     212             : 
     213             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11