LCOV - code coverage report
Current view: top level - sc/source/ui/vba - vbapagebreak.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 4 0.0 %
Date: 2012-08-25 Functions: 0 7 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 6 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                 :            : #ifndef SC_VBA_PAGEBREAK_HXX
      29                 :            : #define SC_VBA_PAGEBREAK_HXX
      30                 :            : 
      31                 :            : #include <cppuhelper/implbase1.hxx>
      32                 :            : #include <ooo/vba/excel/XPageBreak.hpp>
      33                 :            : #include <ooo/vba/excel/XHPageBreak.hpp>
      34                 :            : #include <ooo/vba/excel/XVPageBreak.hpp>
      35                 :            : #include <ooo/vba/excel/XRange.hpp>
      36                 :            : #include <com/sun/star/uno/XComponentContext.hpp>
      37                 :            : #include <com/sun/star/script/BasicErrorException.hpp>
      38                 :            : #include <com/sun/star/sheet/TablePageBreakData.hpp>
      39                 :            : #include <com/sun/star/beans/XPropertySet.hpp>
      40                 :            : #include <vbahelper/vbahelperinterface.hxx>
      41                 :            : 
      42                 :            : template< typename Ifc1 >
      43                 :            : class ScVbaPageBreak : public InheritedHelperInterfaceImpl1< Ifc1 >
      44                 :            : {
      45                 :            : typedef InheritedHelperInterfaceImpl1< Ifc1 > ScVbaPageBreak_BASE;
      46                 :            : protected:
      47                 :            :     css::uno::Reference< css::beans::XPropertySet > mxRowColPropertySet;
      48                 :            :     css::sheet::TablePageBreakData maTablePageBreakData;
      49                 :            : public:
      50                 :            :     ScVbaPageBreak( const css::uno::Reference< ov::XHelperInterface >& xParent,
      51                 :            :                     const css::uno::Reference< css::uno::XComponentContext >& xContext,
      52                 :            :                     css::uno::Reference< css::beans::XPropertySet >& xProps,
      53                 :            :                     css::sheet::TablePageBreakData aTablePageBreakData) throw (css::uno::RuntimeException);
      54 [ #  # ][ #  # ]:          0 :     virtual ~ScVbaPageBreak(){}
      55                 :            : 
      56                 :            :     virtual sal_Int32 SAL_CALL getType( ) throw (css::uno::RuntimeException);
      57                 :            :     virtual void SAL_CALL setType(sal_Int32 type) throw (css::uno::RuntimeException);
      58                 :            : 
      59                 :            :     virtual void SAL_CALL Delete() throw ( css::script::BasicErrorException, css::uno::RuntimeException);
      60                 :            :     virtual css::uno::Reference< ov::excel::XRange> SAL_CALL Location() throw ( css::script::BasicErrorException, css::uno::RuntimeException);
      61                 :            : 
      62                 :            :     // XHelperInterface
      63                 :            :     virtual rtl::OUString getServiceImplName();
      64                 :            :     virtual css::uno::Sequence<rtl::OUString> getServiceNames();
      65                 :            : };
      66                 :            : 
      67                 :            : 
      68                 :            : typedef ScVbaPageBreak < ov::excel::XHPageBreak > ScVbaHPageBreak_BASE;
      69                 :            : 
      70                 :            : class ScVbaHPageBreak :  public ScVbaHPageBreak_BASE
      71                 :            : {
      72                 :            : public:
      73                 :          0 :     ScVbaHPageBreak( const css::uno::Reference< ov::XHelperInterface >& xParent,
      74                 :            :                     const css::uno::Reference< css::uno::XComponentContext >& xContext,
      75                 :            :                     css::uno::Reference< css::beans::XPropertySet >& xProps,
      76                 :            :                     css::sheet::TablePageBreakData aTablePageBreakData) throw (css::uno::RuntimeException):
      77                 :          0 :               ScVbaHPageBreak_BASE( xParent,xContext,xProps,aTablePageBreakData ){}
      78                 :            : 
      79         [ #  # ]:          0 :     virtual ~ScVbaHPageBreak(){}
      80                 :            : 
      81                 :            :     // XHelperInterface
      82                 :            :     virtual rtl::OUString getServiceImplName();
      83                 :            :     virtual css::uno::Sequence<rtl::OUString> getServiceNames();
      84                 :            : };
      85                 :            : 
      86                 :            : //VPageBreak
      87                 :            : typedef ScVbaPageBreak < ov::excel::XVPageBreak > ScVbaVPageBreak_BASE;
      88                 :            : 
      89                 :            : class ScVbaVPageBreak :  public ScVbaVPageBreak_BASE
      90                 :            : {
      91                 :            : public:
      92                 :            :     ScVbaVPageBreak( const css::uno::Reference< ov::XHelperInterface >& xParent,
      93                 :            :                      const css::uno::Reference< css::uno::XComponentContext >& xContext,
      94                 :            :                      css::uno::Reference< css::beans::XPropertySet >& xProps,
      95                 :            :                      css::sheet::TablePageBreakData aTablePageBreakData) throw (css::uno::RuntimeException);
      96                 :            : 
      97                 :            :     virtual ~ScVbaVPageBreak();
      98                 :            : 
      99                 :            :     // XHelperInterface
     100                 :            :     virtual rtl::OUString getServiceImplName();
     101                 :            :     virtual css::uno::Sequence<rtl::OUString> getServiceNames();
     102                 :            : };
     103                 :            : 
     104                 :            : #endif
     105                 :            : 
     106                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10