tdf#130857 qt weld: Support mail merge "Server Auth" dialog
[LibreOffice.git] / extensions / source / propctrlr / cellbindinghandler.hxx
blob4e81b0624b8e2bc7031d46fec209270d86d84185
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #pragma once
22 #include "propertyhandler.hxx"
24 #include <rtl/ref.hxx>
26 #include <memory>
29 namespace pcr
33 class CellBindingHelper;
34 class IPropertyEnumRepresentation;
36 class CellBindingPropertyHandler : public PropertyHandlerComponent
38 private:
39 std::unique_ptr< CellBindingHelper > m_pHelper;
40 ::rtl::Reference< IPropertyEnumRepresentation > m_pCellExchangeConverter;
42 public:
43 explicit CellBindingPropertyHandler(
44 const css::uno::Reference< css::uno::XComponentContext >& _rxContext
47 protected:
48 virtual ~CellBindingPropertyHandler() override;
50 protected:
51 // XServiceInfo
52 virtual OUString SAL_CALL getImplementationName() override;
53 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override;
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;
63 // PropertyHandler overridables
64 virtual css::uno::Sequence< css::beans::Property >
65 doDescribeSupportedProperties() const override;
66 virtual void onNewComponent() override;
68 private:
69 /** updates a property (UI) whose state depends on more than one other property
71 ->actuatingPropertyChanged is called for certain properties in whose changes
72 we expressed interes (->getActuatingProperty). Now such a property change can
73 result in simple UI updates, for instance another property being enabled or disabled.
75 However, it can also result in a more complex change: The current (UI) state might
76 depend on the value of more than one other property. Those dependent properties (their
77 UI, more precisely) are updated in this method.
79 @param _nPropid
80 the ->PropertyId of the dependent property whose UI state is to be updated
82 @param _rxInspectorUI
83 provides access to the property browser UI. Must not be <NULL/>.
85 void impl_updateDependentProperty_nothrow( PropertyId _nPropId, const css::uno::Reference< css::inspection::XObjectInspectorUI >& _rxInspectorUI ) const;
89 } // namespace pcr
92 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */