LibreOffice Module extensions (master) 1
cellbindinghandler.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
20#pragma once
21
22#include "propertyhandler.hxx"
23
24#include <rtl/ref.hxx>
25
26#include <memory>
27
28
29namespace pcr
30{
31
32
33 class CellBindingHelper;
34 class IPropertyEnumRepresentation;
35
37 {
38 private:
39 std::unique_ptr< CellBindingHelper > m_pHelper;
41
42 public:
44 const css::uno::Reference< css::uno::XComponentContext >& _rxContext
45 );
46
47 protected:
48 virtual ~CellBindingPropertyHandler() override;
49
50 protected:
51 // XServiceInfo
52 virtual OUString SAL_CALL getImplementationName() override;
53 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override;
54
55 // XPropertyHandler overriables
56 virtual css::uno::Any SAL_CALL getPropertyValue( const OUString& _rPropertyName ) override;
57 virtual void SAL_CALL setPropertyValue( const OUString& _rPropertyName, const css::uno::Any& _rValue ) override;
58 virtual css::uno::Any SAL_CALL convertToPropertyValue( const OUString& _rPropertyName, const css::uno::Any& _rControlValue ) override;
59 virtual css::uno::Any SAL_CALL convertToControlValue( const OUString& _rPropertyName, const css::uno::Any& _rPropertyValue, const css::uno::Type& _rControlValueType ) override;
60 virtual css::uno::Sequence< OUString > SAL_CALL getActuatingProperties( ) override;
61 virtual void SAL_CALL actuatingPropertyChanged( const OUString& _rActuatingPropertyName, const css::uno::Any& _rNewValue, const css::uno::Any& _rOldValue, const css::uno::Reference< css::inspection::XObjectInspectorUI >& _rxInspectorUI, sal_Bool _bFirstTimeInit ) override;
62
63 // PropertyHandler overridables
64 virtual css::uno::Sequence< css::beans::Property >
65 doDescribeSupportedProperties() const override;
66 virtual void onNewComponent() override;
67
68 private:
85 void impl_updateDependentProperty_nothrow( PropertyId _nPropId, const css::uno::Reference< css::inspection::XObjectInspectorUI >& _rxInspectorUI ) const;
86 };
87
88
89} // namespace pcr
90
91
92/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void SAL_CALL actuatingPropertyChanged(const OUString &_rActuatingPropertyName, const css::uno::Any &_rNewValue, const css::uno::Any &_rOldValue, const css::uno::Reference< css::inspection::XObjectInspectorUI > &_rxInspectorUI, sal_Bool _bFirstTimeInit) override
virtual css::uno::Any SAL_CALL convertToControlValue(const OUString &_rPropertyName, const css::uno::Any &_rPropertyValue, const css::uno::Type &_rControlValueType) override
void impl_updateDependentProperty_nothrow(PropertyId _nPropId, const css::uno::Reference< css::inspection::XObjectInspectorUI > &_rxInspectorUI) const
updates a property (UI) whose state depends on more than one other property
virtual ~CellBindingPropertyHandler() override
virtual OUString SAL_CALL getImplementationName() override
std::unique_ptr< CellBindingHelper > m_pHelper
virtual css::uno::Sequence< css::beans::Property > doDescribeSupportedProperties() const override
virtual void onNewComponent() override
called when XPropertyHandler::inspect has been called, and we thus have a new component to inspect
virtual css::uno::Sequence< OUString > SAL_CALL getActuatingProperties() override
virtual void SAL_CALL setPropertyValue(const OUString &_rPropertyName, const css::uno::Any &_rValue) override
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &_rPropertyName) override
virtual css::uno::Any SAL_CALL convertToPropertyValue(const OUString &_rPropertyName, const css::uno::Any &_rControlValue) override
::rtl::Reference< IPropertyEnumRepresentation > m_pCellExchangeConverter
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
CellBindingPropertyHandler(const css::uno::Reference< css::uno::XComponentContext > &_rxContext)
PropertyHandler implementation which additionally supports XServiceInfo.
a property handler for any virtual string properties
Definition: browserline.cxx:39
sal_Int32 PropertyId
unsigned char sal_Bool