LCOV - code coverage report
Current view: top level - sc/source/ui/vba - vbawindow.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 1 0.0 %
Date: 2012-08-25 Functions: 0 2 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 2 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_WINDOW_HXX
      29                 :            : #define SC_VBA_WINDOW_HXX
      30                 :            : 
      31                 :            : #include <ooo/vba/excel/XWindow.hpp>
      32                 :            : #include <com/sun/star/uno/XComponentContext.hpp>
      33                 :            : #include <com/sun/star/sheet/XViewPane.hpp>
      34                 :            : #include <com/sun/star/sheet/XViewFreezable.hpp>
      35                 :            : #include <com/sun/star/sheet/XViewSplitable.hpp>
      36                 :            : #include <com/sun/star/frame/XModel.hpp>
      37                 :            : #include <ooo/vba/excel/XPane.hpp>
      38                 :            : #include <com/sun/star/awt/XDevice.hpp>
      39                 :            : 
      40                 :            : #include <vbahelper/vbahelperinterface.hxx>
      41                 :            : #include <vbahelper/vbawindowbase.hxx>
      42                 :            : #include "vbaworkbook.hxx"
      43                 :            : 
      44                 :            : typedef cppu::ImplInheritanceHelper1< VbaWindowBase, ov::excel::XWindow > WindowImpl_BASE;
      45                 :            : 
      46         [ #  # ]:          0 : class ScVbaWindow : public WindowImpl_BASE
      47                 :            : {
      48                 :            : private:
      49                 :            :     css::uno::Reference< ov::excel::XPane > m_xPane;
      50                 :            : 
      51                 :            :     void init();
      52                 :            :     css::uno::Reference< css::beans::XPropertySet > getControllerProps() throw (css::uno::RuntimeException);
      53                 :            :     css::uno::Reference< css::beans::XPropertySet > getFrameProps() throw (css::uno::RuntimeException);
      54                 :            :     css::uno::Reference< css::awt::XDevice > getDevice() throw (css::uno::RuntimeException);
      55                 :            : 
      56                 :            : protected:
      57                 :            :     void SplitAtDefinedPosition(sal_Bool _bUnFreezePane);
      58                 :            : 
      59                 :            : public:
      60                 :            :     void Scroll( const css::uno::Any& Down, const css::uno::Any& Up, const css::uno::Any& ToRight, const css::uno::Any& ToLeft, bool bLargeScroll = false ) throw (css::uno::RuntimeException);
      61                 :            : 
      62                 :            : public:
      63                 :            :     ScVbaWindow(
      64                 :            :         const css::uno::Reference< ov::XHelperInterface >& xParent,
      65                 :            :         const css::uno::Reference< css::uno::XComponentContext >& xContext,
      66                 :            :         const css::uno::Reference< css::frame::XModel >& xModel,
      67                 :            :         const css::uno::Reference< css::frame::XController >& xController )
      68                 :            :         throw (css::uno::RuntimeException);
      69                 :            :     ScVbaWindow(
      70                 :            :         const css::uno::Sequence< css::uno::Any >& aArgs,
      71                 :            :         const css::uno::Reference< css::uno::XComponentContext >& xContext )
      72                 :            :         throw (css::uno::RuntimeException);
      73                 :            : 
      74                 :            :     // XWindow
      75                 :            :     virtual css::uno::Reference< ov::excel::XRange > SAL_CALL ActiveCell(  ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
      76                 :            :      virtual css::uno::Reference< ov::excel::XPane > SAL_CALL ActivePane() throw (css::script::BasicErrorException, css::uno::RuntimeException);
      77                 :            :     virtual css::uno::Reference< ov::excel::XWorksheet > SAL_CALL ActiveSheet(  ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
      78                 :            :     virtual void SAL_CALL setCaption( const css::uno::Any& _caption ) throw (css::uno::RuntimeException);
      79                 :            :     virtual css::uno::Any SAL_CALL getCaption() throw (css::uno::RuntimeException);
      80                 :            :     virtual ::sal_Bool SAL_CALL getDisplayGridlines() throw (css::uno::RuntimeException);
      81                 :            :     virtual void SAL_CALL setDisplayGridlines( ::sal_Bool _displaygridlines ) throw (css::uno::RuntimeException);
      82                 :            :     virtual ::sal_Bool SAL_CALL getDisplayHeadings() throw (css::uno::RuntimeException);
      83                 :            :     virtual void SAL_CALL setDisplayHeadings( ::sal_Bool _bDisplayHeadings ) throw (css::uno::RuntimeException);
      84                 :            :     virtual ::sal_Bool SAL_CALL getDisplayHorizontalScrollBar() throw (css::uno::RuntimeException);
      85                 :            :     virtual void SAL_CALL setDisplayHorizontalScrollBar( ::sal_Bool _bDisplayHorizontalScrollBar ) throw (css::uno::RuntimeException);
      86                 :            :     virtual ::sal_Bool SAL_CALL getDisplayOutline() throw (css::uno::RuntimeException);
      87                 :            :     virtual void SAL_CALL setDisplayOutline( ::sal_Bool _bDisplayOutline ) throw (css::uno::RuntimeException);
      88                 :            :     virtual ::sal_Bool SAL_CALL getDisplayVerticalScrollBar() throw (css::uno::RuntimeException);
      89                 :            :     virtual void SAL_CALL setDisplayVerticalScrollBar( ::sal_Bool _bDisplayVerticalScrollBar ) throw (css::uno::RuntimeException);
      90                 :            :     virtual ::sal_Bool SAL_CALL getDisplayWorkbookTabs() throw (css::uno::RuntimeException);
      91                 :            :     virtual void SAL_CALL setDisplayWorkbookTabs( ::sal_Bool _bDisplayWorkbookTabs ) throw (css::uno::RuntimeException);
      92                 :            :     virtual ::sal_Bool SAL_CALL getFreezePanes() throw (css::uno::RuntimeException);
      93                 :            :     virtual void SAL_CALL setFreezePanes( ::sal_Bool _bFreezePanes ) throw (css::uno::RuntimeException);
      94                 :            :     virtual ::sal_Bool SAL_CALL getSplit() throw (css::uno::RuntimeException);
      95                 :            :     virtual void SAL_CALL setSplit( ::sal_Bool _bSplit ) throw (css::uno::RuntimeException);
      96                 :            :     virtual sal_Int32 SAL_CALL getSplitColumn() throw (css::uno::RuntimeException) ;
      97                 :            :     virtual void SAL_CALL setSplitColumn( sal_Int32 _splitcolumn ) throw (css::uno::RuntimeException) ;
      98                 :            :     virtual double SAL_CALL getSplitHorizontal() throw (css::uno::RuntimeException) ;
      99                 :            :     virtual void SAL_CALL setSplitHorizontal( double _splithorizontal ) throw (css::uno::RuntimeException) ;
     100                 :            :     virtual sal_Int32 SAL_CALL getSplitRow() throw (css::uno::RuntimeException) ;
     101                 :            :     virtual void SAL_CALL setSplitRow( sal_Int32 _splitrow ) throw (css::uno::RuntimeException) ;
     102                 :            :     virtual double SAL_CALL getSplitVertical() throw (css::uno::RuntimeException) ;
     103                 :            :     virtual void SAL_CALL setSplitVertical( double _splitvertical ) throw (css::uno::RuntimeException) ;
     104                 :            :     virtual css::uno::Any SAL_CALL getScrollRow() throw (css::uno::RuntimeException) ;
     105                 :            :     virtual void SAL_CALL setScrollRow( const css::uno::Any& _scrollrow ) throw (css::uno::RuntimeException) ;
     106                 :            :     virtual css::uno::Any SAL_CALL getScrollColumn() throw (css::uno::RuntimeException) ;
     107                 :            :     virtual void SAL_CALL setScrollColumn( const css::uno::Any& _scrollcolumn ) throw (css::uno::RuntimeException) ;
     108                 :            :     virtual css::uno::Any SAL_CALL getView() throw (css::uno::RuntimeException);
     109                 :            :     virtual void SAL_CALL setView( const css::uno::Any& _view ) throw (css::uno::RuntimeException);
     110                 :            :     virtual css::uno::Reference< ov::excel::XRange > SAL_CALL getVisibleRange() throw (css::uno::RuntimeException);
     111                 :            :     virtual css::uno::Any SAL_CALL getWindowState() throw (css::uno::RuntimeException);
     112                 :            :     virtual void SAL_CALL setWindowState( const css::uno::Any& _windowstate ) throw (css::uno::RuntimeException);
     113                 :            :     virtual css::uno::Any SAL_CALL getZoom() throw (css::uno::RuntimeException);
     114                 :            :     virtual void SAL_CALL setZoom( const css::uno::Any& _zoom ) throw (css::uno::RuntimeException);
     115                 :            :     virtual double SAL_CALL getTabRatio() throw (css::uno::RuntimeException) ;
     116                 :            :     virtual void SAL_CALL setTabRatio( double _tabratio ) throw (css::uno::RuntimeException) ;
     117                 :            : 
     118                 :            :     // Methods
     119                 :            :     virtual void SAL_CALL SmallScroll( const css::uno::Any& Down, const css::uno::Any& Up, const css::uno::Any& ToRight, const css::uno::Any& ToLeft ) throw (css::uno::RuntimeException);
     120                 :            :     virtual void SAL_CALL LargeScroll( const css::uno::Any& Down, const css::uno::Any& Up, const css::uno::Any& ToRight, const css::uno::Any& ToLeft ) throw (css::uno::RuntimeException);
     121                 :            :     virtual css::uno::Any SAL_CALL SelectedSheets( const css::uno::Any& aIndex ) throw (css::uno::RuntimeException);
     122                 :            :     virtual void SAL_CALL ScrollWorkbookTabs( const css::uno::Any& Sheets, const css::uno::Any& Position ) throw (css::uno::RuntimeException);
     123                 :            :     virtual void SAL_CALL Activate(  ) throw (css::uno::RuntimeException);
     124                 :            :     virtual void SAL_CALL Close( const css::uno::Any& SaveChanges, const css::uno::Any& FileName, const css::uno::Any& RouteWorkBook ) throw (css::uno::RuntimeException);
     125                 :            :     virtual css::uno::Any SAL_CALL Selection(  ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
     126                 :            :     virtual css::uno::Reference< ov::excel::XRange > SAL_CALL RangeSelection() throw (css::script::BasicErrorException, css::uno::RuntimeException);
     127                 :            :     virtual sal_Int32 SAL_CALL PointsToScreenPixelsX(sal_Int32 _points) throw (css::script::BasicErrorException, css::uno::RuntimeException);
     128                 :            :     virtual sal_Int32 SAL_CALL PointsToScreenPixelsY(sal_Int32 _points) throw (css::script::BasicErrorException, css::uno::RuntimeException);
     129                 :            :     virtual void SAL_CALL PrintOut( const css::uno::Any& From, const css::uno::Any&To, const css::uno::Any& Copies, const css::uno::Any& Preview, const css::uno::Any& ActivePrinter, const css::uno::Any& PrintToFile, const css::uno::Any& Collate, const css::uno::Any& PrToFileName ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
     130                 :            :     virtual void SAL_CALL PrintPreview( const css::uno::Any& EnableChanges ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
     131                 :            :     // XHelperInterface
     132                 :            :     virtual rtl::OUString getServiceImplName();
     133                 :            :     virtual css::uno::Sequence<rtl::OUString> getServiceNames();
     134                 :            : };
     135                 :            : 
     136                 :            : #endif //SC_VBA_WINDOW_HXX
     137                 :            : 
     138                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10