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

Generated by: LCOV version 1.10