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

Generated by: LCOV version 1.10