LCOV - code coverage report
Current view: top level - sc/source/ui/vba - vbaformatcondition.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 1 0.0 %
Date: 2014-04-14 Functions: 0 2 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_FORMATCONDITION_HXX
      20             : #define SC_VBA_FORMATCONDITION_HXX
      21             : #include <ooo/vba/excel/XFormatCondition.hpp>
      22             : #include <ooo/vba/excel/XFormatConditions.hpp>
      23             : #include <ooo/vba/excel/XStyle.hpp>
      24             : #include <com/sun/star/frame/XModel.hpp>
      25             : #include <com/sun/star/sheet/XSheetConditionalEntries.hpp>
      26             : #include <com/sun/star/sheet/XSheetConditionalEntry.hpp>
      27             : #include <com/sun/star/sheet/XSheetCondition.hpp>
      28             : #include <com/sun/star/beans/XPropertySet.hpp>
      29             : #include "vbacondition.hxx"
      30             : 
      31             : typedef ScVbaCondition< ov::excel::XFormatCondition >  ScVbaFormatCondition_BASE;
      32           0 : class ScVbaFormatCondition : public ScVbaFormatCondition_BASE
      33             : {
      34             : protected:
      35             :     OUString msStyleName;
      36             :     css::uno::Reference< css::sheet::XSheetConditionalEntry > mxSheetConditionalEntry;
      37             :     css::uno::Reference< css::sheet::XSheetConditionalEntries > mxSheetConditionalEntries;
      38             :     css::uno::Reference< ov::excel::XFormatConditions> moFormatConditions;
      39             :     css::uno::Reference< ov::excel::XStyle > mxStyle;
      40             :     css::uno::Reference< css::beans::XPropertySet > mxParentRangePropertySet;
      41             : public:
      42             :     ScVbaFormatCondition(  const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext > & xContext, const css::uno::Reference< css::sheet::XSheetConditionalEntry >& _xSheetConditionalEntry, const css::uno::Reference< ov::excel::XStyle >&,  const css::uno::Reference< ov::excel::XFormatConditions >& _xFormatConditions, const css::uno::Reference< css::beans::XPropertySet >& _xPropertySet ) throw ( css::uno::RuntimeException );
      43             : 
      44             :     void notifyRange() throw ( css::script::BasicErrorException );
      45             :     static css::sheet::ConditionOperator retrieveAPIType(sal_Int32 _nVBAType, const css::uno::Reference< css::sheet::XSheetCondition >& _xSheetCondition ) throw( css::script::BasicErrorException );
      46             : 
      47             :     //Methods
      48             :     virtual void SAL_CALL Delete(  ) throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      49             :     virtual void SAL_CALL Modify( ::sal_Int32 Type, const css::uno::Any& Operator, const css::uno::Any& Formula1, const css::uno::Any& Formula2 ) throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      50             :     virtual ::sal_Int32 SAL_CALL Type(  ) throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      51             :     virtual ::sal_Int32 Operator( sal_Bool  ) throw (css::script::BasicErrorException) SAL_OVERRIDE;
      52             :     virtual ::sal_Int32 SAL_CALL Operator(  ) throw (css::script::BasicErrorException, css::uno::RuntimeException) SAL_OVERRIDE;
      53             :     virtual void setFormula1( const css::uno::Any& _aFormula1) throw ( css::script::BasicErrorException ) SAL_OVERRIDE;
      54             :     virtual void setFormula2( const css::uno::Any& _aFormula2) throw ( css::script::BasicErrorException ) SAL_OVERRIDE;
      55             :     virtual css::uno::Reference< ::ooo::vba::excel::XInterior > SAL_CALL Interior(  ) throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      56             :     virtual css::uno::Any SAL_CALL Borders( const css::uno::Any& Index ) throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      57             :     virtual css::uno::Reference< ::ooo::vba::excel::XFont > SAL_CALL Font(  ) throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      58             :     // XHelperInterface
      59             :     virtual OUString getServiceImplName() SAL_OVERRIDE;
      60             :     virtual css::uno::Sequence<OUString> getServiceNames() SAL_OVERRIDE;
      61             : };
      62             : #endif
      63             : 
      64             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10