LCOV - code coverage report
Current view: top level - sc/source/ui/vba - vbacomment.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_COMMENT_HXX
      29                 :            : #define SC_VBA_COMMENT_HXX
      30                 :            : 
      31                 :            : #include <cppuhelper/implbase1.hxx>
      32                 :            : 
      33                 :            : #include <ooo/vba/excel/XComment.hpp>
      34                 :            : #include <ooo/vba/excel/XApplication.hpp>
      35                 :            : #include <ooo/vba/msforms/XShape.hpp>
      36                 :            : #include <com/sun/star/sheet/XSheetAnnotations.hpp>
      37                 :            : #include <com/sun/star/sheet/XSheetAnnotation.hpp>
      38                 :            : #include <com/sun/star/table/XCellRange.hpp>
      39                 :            : #include <com/sun/star/uno/XComponentContext.hpp>
      40                 :            : 
      41                 :            : #include <vbahelper/vbahelperinterface.hxx>
      42                 :            : 
      43                 :            : typedef InheritedHelperInterfaceImpl1< ov::excel::XComment > ScVbaComment_BASE;
      44                 :            : 
      45                 :            : class ScVbaComment : public ScVbaComment_BASE
      46                 :            : {
      47                 :            :     css::uno::Reference< css::frame::XModel > mxModel;
      48                 :            :     css::uno::Reference< css::table::XCellRange > mxRange;
      49                 :            : 
      50                 :            : private:
      51                 :            :     css::uno::Reference< css::sheet::XSheetAnnotation > SAL_CALL getAnnotation() throw (css::uno::RuntimeException);
      52                 :            :     css::uno::Reference< css::sheet::XSheetAnnotations > SAL_CALL getAnnotations() throw (css::uno::RuntimeException);
      53                 :            :     sal_Int32 SAL_CALL getAnnotationIndex() throw (css::uno::RuntimeException);
      54                 :            :     css::uno::Reference< ov::excel::XComment > SAL_CALL getCommentByIndex( sal_Int32 Index ) throw (css::uno::RuntimeException);
      55                 :            : public:
      56                 :            :     ScVbaComment(
      57                 :            :         const css::uno::Reference< ov::XHelperInterface >& xParent,
      58                 :            :         const css::uno::Reference< css::uno::XComponentContext >& xContext,
      59                 :            :         const css::uno::Reference< css::frame::XModel >& xModel,
      60                 :            :         const css::uno::Reference< css::table::XCellRange >& xRange ) throw ( css::lang::IllegalArgumentException );
      61                 :            : 
      62         [ #  # ]:          0 :     virtual ~ScVbaComment() {}
      63                 :            : 
      64                 :            :     // Attributes
      65                 :            :     virtual rtl::OUString SAL_CALL getAuthor() throw (css::uno::RuntimeException);
      66                 :            :     virtual void SAL_CALL setAuthor( const rtl::OUString& _author ) throw (css::uno::RuntimeException);
      67                 :            :     virtual css::uno::Reference< ov::msforms::XShape > SAL_CALL getShape() throw (css::uno::RuntimeException);
      68                 :            :     virtual sal_Bool SAL_CALL getVisible() throw (css::uno::RuntimeException);
      69                 :            :     virtual void SAL_CALL setVisible( sal_Bool _visible ) throw (css::uno::RuntimeException);
      70                 :            : 
      71                 :            :     // Methods
      72                 :            :     virtual void SAL_CALL Delete() throw (css::uno::RuntimeException);
      73                 :            :     virtual css::uno::Reference< ov::excel::XComment > SAL_CALL Next() throw (css::uno::RuntimeException);
      74                 :            :     virtual css::uno::Reference< ov::excel::XComment > SAL_CALL Previous() throw (css::uno::RuntimeException);
      75                 :            :     virtual rtl::OUString SAL_CALL Text( const css::uno::Any& Text, const css::uno::Any& Start, const css::uno::Any& Overwrite ) throw (css::uno::RuntimeException);
      76                 :            :     // XHelperInterface
      77                 :            :     virtual rtl::OUString getServiceImplName();
      78                 :            :     virtual css::uno::Sequence<rtl::OUString> getServiceNames();
      79                 :            : };
      80                 :            : 
      81                 :            : #endif /* SC_VBA_COMMENT_HXX */
      82                 :            : 
      83                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10