LCOV - code coverage report
Current view: top level - sc/source/ui/vba - vbainterior.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 1 1 100.0 %
Date: 2014-11-03 Functions: 2 2 100.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 INCLUDED_SC_SOURCE_UI_VBA_VBAINTERIOR_HXX
      20             : #define INCLUDED_SC_SOURCE_UI_VBA_VBAINTERIOR_HXX
      21             : 
      22             : #include <ooo/vba/excel/XInterior.hpp>
      23             : #include <com/sun/star/uno/XComponentContext.hpp>
      24             : #include <com/sun/star/beans/XPropertySet.hpp>
      25             : #include <com/sun/star/container/XIndexAccess.hpp>
      26             : #include <com/sun/star/container/XNameContainer.hpp>
      27             : 
      28             : #include <com/sun/star/script/XInvocation.hpp>
      29             : #include <vbahelper/vbahelperinterface.hxx>
      30             : 
      31             : #include <tools/color.hxx>
      32             : 
      33             : class ScDocument;
      34             : 
      35             : typedef InheritedHelperInterfaceImpl1< ov::excel::XInterior > ScVbaInterior_BASE;
      36             : 
      37             : class ScVbaInterior :  public ScVbaInterior_BASE
      38             : {
      39             :     css::uno::Reference< css::beans::XPropertySet > m_xProps;
      40             :     ScDocument* m_pScDoc;
      41             :     Color m_aPattColor;
      42             :     sal_Int32 m_nPattern;
      43             : 
      44             :         css::uno::Reference< css::container::XIndexAccess > getPalette();
      45             :     css::uno::Reference< css::container::XNameContainer > GetAttributeContainer();
      46             :     css::uno::Any SetAttributeData( sal_Int32 nValue );
      47             :     sal_Int32 GetAttributeData( css::uno::Any aValue );
      48             :     Color GetBackColor();
      49             : protected:
      50             :     Color GetPatternColor( const Color& rPattColor, const Color& rBackColor, sal_uInt32 nXclPattern );
      51             :     Color GetMixedColor( const Color& rFore, const Color& rBack, sal_uInt8 nTrans );
      52             :     sal_uInt8 GetMixedColorComp( sal_uInt8 nFore, sal_uInt8 nBack, sal_uInt8 nTrans ) const;
      53             :     css::uno::Any GetIndexColor( const sal_Int32& nColorIndex );
      54             :     sal_Int32 GetColorIndex( const sal_Int32 nColor );
      55             :     css::uno::Any GetUserDefinedAttributes( const OUString& sName );
      56             :     void SetUserDefinedAttributes( const OUString& sName, const css::uno::Any& aValue );
      57             :     void SetMixedColor();
      58             : public:
      59             :         ScVbaInterior( const css::uno::Reference< ov::XHelperInterface >& xParent,  const css::uno::Reference< css::uno::XComponentContext >& xContext,
      60             :                  const css::uno::Reference< css::beans::XPropertySet >& xProps, ScDocument* pScDoc = NULL) throw ( css::lang::IllegalArgumentException);
      61             : 
      62          36 :         virtual ~ScVbaInterior(){}
      63             : 
      64             :     virtual css::uno::Any SAL_CALL getColor() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE ;
      65             :     virtual void SAL_CALL setColor( const css::uno::Any& _color ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE ;
      66             : 
      67             :     virtual css::uno::Any SAL_CALL getColorIndex() throw ( css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      68             :     virtual void SAL_CALL setColorIndex( const css::uno::Any& _colorindex ) throw ( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
      69             :     virtual css::uno::Any SAL_CALL getPattern() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      70             :     virtual void SAL_CALL setPattern( const css::uno::Any& _pattern ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      71             :     virtual css::uno::Any SAL_CALL getPatternColor() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      72             :     virtual void SAL_CALL setPatternColor( const css::uno::Any& _patterncolor ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      73             :     virtual css::uno::Any SAL_CALL getPatternColorIndex() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      74             :     virtual void SAL_CALL setPatternColorIndex( const css::uno::Any& _patterncolorindex ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      75             :     //XHelperInterface
      76             :     virtual OUString getServiceImplName() SAL_OVERRIDE;
      77             :     virtual css::uno::Sequence<OUString> getServiceNames() SAL_OVERRIDE;
      78             : };
      79             : #endif
      80             : 
      81             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10