LCOV - code coverage report
Current view: top level - sc/source/ui/vba - vbacharacters.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_CHARACTERS_HXX
      29                 :            : #define SC_VBA_CHARACTERS_HXX
      30                 :            : 
      31                 :            : #include <cppuhelper/implbase1.hxx>
      32                 :            : 
      33                 :            : #include <ooo/vba/excel/XCharacters.hpp>
      34                 :            : #include <com/sun/star/uno/XComponentContext.hpp>
      35                 :            : #include <com/sun/star/text/XSimpleText.hpp>
      36                 :            : 
      37                 :            : #include <vbahelper/vbahelperinterface.hxx>
      38                 :            : #include "vbapalette.hxx"
      39                 :            : typedef InheritedHelperInterfaceImpl1< ov::excel::XCharacters > ScVbaCharacters_BASE;
      40                 :            : 
      41                 :            : class ScVbaCharacters : public ScVbaCharacters_BASE
      42                 :            : {
      43                 :            : private:
      44                 :            :     css::uno::Reference< css::text::XTextRange > m_xTextRange;
      45                 :            :     css::uno::Reference< css::text::XSimpleText > m_xSimpleText;
      46                 :            :     ScVbaPalette m_aPalette;
      47                 :            :     sal_Int16 nLength;
      48                 :            :     sal_Int16 nStart;
      49                 :            :     // Add becuase of MSO has diferent behavior.
      50                 :            :     sal_Bool bReplace;
      51                 :            : public:
      52                 :            :     ScVbaCharacters( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext,  const ScVbaPalette& dPalette, const css::uno::Reference< css::text::XSimpleText >& xRange, const css::uno::Any& Start, const css::uno::Any& Length, sal_Bool bReplace = false  ) throw ( css::lang::IllegalArgumentException );
      53                 :            : 
      54         [ #  # ]:          0 :     virtual ~ScVbaCharacters() {}
      55                 :            :     // Attributes
      56                 :            :     virtual ::rtl::OUString SAL_CALL getCaption() throw (css::uno::RuntimeException);
      57                 :            :     virtual void SAL_CALL setCaption( const ::rtl::OUString& _caption ) throw (css::uno::RuntimeException);
      58                 :            :     virtual ::sal_Int32 SAL_CALL getCount() throw (css::uno::RuntimeException);
      59                 :            :     virtual ::rtl::OUString SAL_CALL getText() throw (css::uno::RuntimeException);
      60                 :            :     virtual void SAL_CALL setText( const ::rtl::OUString& _text ) throw (css::uno::RuntimeException);
      61                 :            :     virtual css::uno::Reference< ov::excel::XFont > SAL_CALL getFont() throw (css::uno::RuntimeException);
      62                 :            :     virtual void SAL_CALL setFont( const css::uno::Reference< ov::excel::XFont >& _font ) throw (css::uno::RuntimeException);
      63                 :            : 
      64                 :            :     // Methods
      65                 :            :     virtual void SAL_CALL Insert( const ::rtl::OUString& String ) throw (css::uno::RuntimeException);
      66                 :            :     virtual void SAL_CALL Delete(  ) throw (css::uno::RuntimeException);
      67                 :            : 
      68                 :            : 
      69                 :            :     // XHelperInterface
      70                 :            :     virtual rtl::OUString getServiceImplName();
      71                 :            :     virtual css::uno::Sequence<rtl::OUString> getServiceNames();
      72                 :            : 
      73                 :            : };
      74                 :            : 
      75                 :            : #endif /* SC_VBA_CHARACTER_HXX */
      76                 :            : 
      77                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10