LCOV - code coverage report
Current view: top level - sc/source/ui/vba - vbaformat.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 1 4 25.0 %
Date: 2012-08-25 Functions: 1 10 10.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1 4 25.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_FORMAT_HXX
      29                 :            : #define SC_VBA_FORMAT_HXX
      30                 :            : #include <ooo/vba/excel/XFormat.hpp>
      31                 :            : #include <com/sun/star/beans/XPropertySet.hpp>
      32                 :            : #include <com/sun/star/util/XNumberFormatsSupplier.hpp>
      33                 :            : #include <com/sun/star/util/XNumberFormats.hpp>
      34                 :            : #include <com/sun/star/util/XNumberFormatTypes.hpp>
      35                 :            : #include <com/sun/star/frame/XModel.hpp>
      36                 :            : #include <com/sun/star/lang/XServiceInfo.hpp>
      37                 :            : #include <com/sun/star/lang/XMultiServiceFactory.hpp>
      38                 :            : #include <com/sun/star/lang/Locale.hpp>
      39                 :            : #include <com/sun/star/beans/XPropertyState.hpp>
      40                 :            : #include <vbahelper/vbahelperinterface.hxx>
      41                 :            : 
      42                 :            : class ScCellRangesBase;
      43                 :            : 
      44                 :            : template< typename Ifc1 >
      45                 :            : class ScVbaFormat : public InheritedHelperInterfaceImpl1< Ifc1 >
      46                 :            : {
      47                 :            : typedef InheritedHelperInterfaceImpl1< Ifc1 > ScVbaFormat_BASE;
      48                 :            :     css::lang::Locale m_aDefaultLocale;
      49                 :            : protected:
      50                 :          0 :     css::lang::Locale getDefaultLocale() { return m_aDefaultLocale; }
      51                 :            :     css::uno::Reference< css::beans::XPropertySet > mxPropertySet;
      52                 :            :     css::uno::Reference< css::util::XNumberFormatsSupplier > mxNumberFormatsSupplier;
      53                 :            :     css::uno::Reference< css::util::XNumberFormats > xNumberFormats;
      54                 :            :     css::uno::Reference< css::util::XNumberFormatTypes > xNumberFormatTypes;
      55                 :            :     css::uno::Reference< css::frame::XModel > mxModel;
      56                 :            :     css::uno::Reference< css::lang::XServiceInfo > mxServiceInfo;
      57                 :            :     css::uno::Reference< css::beans::XPropertyState > xPropertyState;
      58                 :            :     sal_Bool mbCheckAmbiguoity;
      59                 :            :     sal_Bool mbAddIndent;
      60                 :            :     //NumberFormatter oNumberFormatter = null;
      61                 :            :     css::uno::Reference< css::lang::XMultiServiceFactory > xMultiServiceFactory;
      62                 :            :     bool isAmbiguous(const rtl::OUString& _sPropertyName) throw ( css::script::BasicErrorException );
      63                 :            :     css::uno::Reference< css::beans::XPropertyState > getXPropertyState() throw ( css::uno::RuntimeException );
      64                 :            :     void initializeNumberFormats() throw ( css::script::BasicErrorException );
      65                 :            :     void setNumberFormat( css::lang::Locale _aLocale, const rtl::OUString& _sFormatString) throw( css::script::BasicErrorException );
      66                 :            :     SfxItemSet*  getCurrentDataSet( ) throw ( css::uno::RuntimeException );
      67                 :            : protected:
      68                 :            :     virtual ScCellRangesBase* getCellRangesBase() throw ( css::uno::RuntimeException );
      69                 :            : public:
      70                 :            :     ScVbaFormat( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext > & xContext, const css::uno::Reference< css::beans::XPropertySet >& _xPropertySet, const css::uno::Reference< css::frame::XModel >& xModel, bool bCheckAmbiguoity ) throw ( css::script::BasicErrorException );
      71 [ -  + ][ #  # ]:        214 :     virtual ~ScVbaFormat() {}
      72                 :            :     virtual css::uno::Reference< ov::XHelperInterface > thisHelperIface() = 0;
      73                 :          0 :      void SAL_CALL setAddIndent( const css::uno::Any& _BAddIndent) throw( css::uno::RuntimeException ) { _BAddIndent >>= mbAddIndent; }
      74                 :          0 :      css::uno::Any SAL_CALL getAddIndent() throw( css::uno::RuntimeException ) { return css::uno::makeAny( mbAddIndent ); }
      75                 :            :         // Interface Methods
      76                 :            :     virtual css::uno::Any SAL_CALL Borders( const css::uno::Any& Index ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
      77                 :            :     virtual css::uno::Reference< ::ooo::vba::excel::XFont > SAL_CALL Font(  ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
      78                 :            :     virtual css::uno::Reference< ::ooo::vba::excel::XInterior > SAL_CALL Interior(  ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
      79                 :            :     virtual void SAL_CALL setNumberFormat( const css::uno::Any& NumberFormat ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
      80                 :            :     virtual css::uno::Any SAL_CALL getNumberFormat(  ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
      81                 :            :     virtual void SAL_CALL setNumberFormatLocal( const css::uno::Any& NumberFormatLocal ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
      82                 :            :     virtual css::uno::Any SAL_CALL getNumberFormatLocal(  ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
      83                 :            :     virtual void SAL_CALL setIndentLevel( const css::uno::Any& IndentLevel ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
      84                 :            :     virtual css::uno::Any SAL_CALL getIndentLevel(  ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
      85                 :            :     virtual void SAL_CALL setHorizontalAlignment( const css::uno::Any& HorizontalAlignment ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
      86                 :            :     virtual css::uno::Any SAL_CALL getHorizontalAlignment(  ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
      87                 :            :     virtual void SAL_CALL setVerticalAlignment( const css::uno::Any& VerticalAlignment ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
      88                 :            :     virtual css::uno::Any SAL_CALL getVerticalAlignment(  ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
      89                 :            :     virtual void SAL_CALL setOrientation( const css::uno::Any& Orientation ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
      90                 :            :     virtual css::uno::Any SAL_CALL getOrientation(  ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
      91                 :            :     virtual void SAL_CALL setShrinkToFit( const css::uno::Any& ShrinkToFit ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
      92                 :            :     virtual css::uno::Any SAL_CALL getShrinkToFit(  ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
      93                 :            :     virtual void SAL_CALL setWrapText( const css::uno::Any& WrapText ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
      94                 :            :     virtual css::uno::Any SAL_CALL getWrapText(  ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
      95                 :            :     virtual void SAL_CALL setLocked( const css::uno::Any& Locked ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
      96                 :            :     virtual css::uno::Any SAL_CALL getLocked(  ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
      97                 :            :     virtual void SAL_CALL setFormulaHidden( const css::uno::Any& FormulaHidden ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
      98                 :            :     virtual css::uno::Any SAL_CALL getFormulaHidden(  ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
      99                 :            :     virtual void SAL_CALL setMergeCells( const css::uno::Any& MergeCells ) throw (css::script::BasicErrorException, css::uno::RuntimeException) = 0;
     100                 :            :     virtual css::uno::Any SAL_CALL getMergeCells(  ) throw (css::script::BasicErrorException, css::uno::RuntimeException) = 0;
     101                 :            :     virtual void SAL_CALL setReadingOrder( const css::uno::Any& ReadingOrder ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
     102                 :            :     virtual css::uno::Any SAL_CALL getReadingOrder(  ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
     103                 :            :     // XHelperInterface
     104                 :            :     virtual rtl::OUString getServiceImplName();
     105                 :            :     virtual css::uno::Sequence<rtl::OUString> getServiceNames();
     106                 :            : };
     107                 :            : 
     108                 :            : #endif
     109                 :            : 
     110                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10