LibreOffice Module sc (master) 1
vbaformatcondition.hxx
Go to the documentation of this file.
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#pragma once
20#include <ooo/vba/excel/XFormatCondition.hpp>
21#include <ooo/vba/excel/XFormatConditions.hpp>
22#include <ooo/vba/excel/XStyle.hpp>
23#include <com/sun/star/sheet/XSheetConditionalEntries.hpp>
24#include <com/sun/star/sheet/XSheetConditionalEntry.hpp>
25#include <com/sun/star/sheet/XSheetCondition.hpp>
26#include <com/sun/star/beans/XPropertySet.hpp>
27#include "vbacondition.hxx"
28
31{
32 OUString msStyleName;
33 css::uno::Reference< css::sheet::XSheetConditionalEntries > mxSheetConditionalEntries;
34 css::uno::Reference< ov::excel::XFormatConditions> moFormatConditions;
35 css::uno::Reference< ov::excel::XStyle > mxStyle;
36 css::uno::Reference< css::beans::XPropertySet > mxParentRangePropertySet;
37
38public:
41 ScVbaFormatCondition( const css::uno::Reference< ov::XHelperInterface >& xParent,
42 const css::uno::Reference< css::uno::XComponentContext > & xContext,
43 const css::uno::Reference< css::sheet::XSheetConditionalEntry >& _xSheetConditionalEntry,
44 css::uno::Reference< ov::excel::XStyle > ,
45 css::uno::Reference< ov::excel::XFormatConditions > _xFormatConditions,
46 css::uno::Reference< css::beans::XPropertySet > _xPropertySet );
47
49 void notifyRange();
51 static css::sheet::ConditionOperator retrieveAPIType(sal_Int32 _nVBAType, const css::uno::Reference< css::sheet::XSheetCondition >& _xSheetCondition );
52
53 //Methods
54 virtual void SAL_CALL Delete( ) override;
55 virtual void SAL_CALL Modify( ::sal_Int32 Type, const css::uno::Any& Operator, const css::uno::Any& Formula1, const css::uno::Any& Formula2 ) override;
56 virtual ::sal_Int32 SAL_CALL Type( ) override;
58 virtual ::sal_Int32 SAL_CALL Operator( ) override;
59 virtual css::uno::Reference< ::ooo::vba::excel::XInterior > SAL_CALL Interior( ) override;
60 virtual css::uno::Any SAL_CALL Borders( const css::uno::Any& Index ) override;
61 virtual css::uno::Reference< ::ooo::vba::excel::XFont > SAL_CALL Font( ) override;
62 // XHelperInterface
63 virtual OUString getServiceImplName() override;
64 virtual css::uno::Sequence<OUString> getServiceNames() override;
65};
66
67/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
struct _ADOIndex Index
virtual OUString SAL_CALL Formula1() override
virtual OUString SAL_CALL Formula2() override
virtual sal_Int32 SAL_CALL Operator() override=0
css::uno::Reference< ov::excel::XFormatConditions > moFormatConditions
static css::sheet::ConditionOperator retrieveAPIType(sal_Int32 _nVBAType, const css::uno::Reference< css::sheet::XSheetCondition > &_xSheetCondition)
virtual ::sal_Int32 SAL_CALL Type() override
css::uno::Reference< ov::excel::XStyle > mxStyle
css::uno::Reference< css::sheet::XSheetConditionalEntries > mxSheetConditionalEntries
ScVbaFormatCondition(const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext, const css::uno::Reference< css::sheet::XSheetConditionalEntry > &_xSheetConditionalEntry, css::uno::Reference< ov::excel::XStyle >, css::uno::Reference< ov::excel::XFormatConditions > _xFormatConditions, css::uno::Reference< css::beans::XPropertySet > _xPropertySet)
virtual css::uno::Reference< ::ooo::vba::excel::XFont > SAL_CALL Font() override
virtual css::uno::Reference< ::ooo::vba::excel::XInterior > SAL_CALL Interior() override
virtual OUString getServiceImplName() override
virtual ::sal_Int32 SAL_CALL Operator() override
virtual css::uno::Sequence< OUString > getServiceNames() override
virtual void SAL_CALL Delete() override
virtual void SAL_CALL Modify(::sal_Int32 Type, const css::uno::Any &Operator, const css::uno::Any &Formula1, const css::uno::Any &Formula2) override
css::uno::Reference< css::beans::XPropertySet > mxParentRangePropertySet
virtual css::uno::Any SAL_CALL Borders(const css::uno::Any &Index) override
Type
ScVbaCondition< ov::excel::XFormatCondition > ScVbaFormatCondition_BASE