LibreOffice Module extensions (master) 1
eformspropertyhandler.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 <memory>
25
26
27namespace pcr
28{
29
30
31 class EFormsHelper;
32
33 //= EFormsPropertyHandler
34
35 class EFormsPropertyHandler;
37 {
38 private:
39 std::unique_ptr< EFormsHelper > m_pHelper;
46
47 public:
48 explicit EFormsPropertyHandler(
49 const css::uno::Reference< css::uno::XComponentContext >& _rxContext
50 );
51
52 protected:
53 virtual ~EFormsPropertyHandler() override;
54
55 protected:
56 // XServiceInfo
57 virtual OUString SAL_CALL getImplementationName() override;
58 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override;
59
60 // XPropertyHandler overriables
61 virtual css::uno::Any SAL_CALL getPropertyValue( const OUString& _rPropertyName ) override;
62 virtual void SAL_CALL setPropertyValue( const OUString& _rPropertyName, const css::uno::Any& _rValue ) override;
63 virtual css::uno::Sequence< OUString >
64 SAL_CALL getActuatingProperties( ) override;
65 virtual css::uno::Sequence< OUString >
66 SAL_CALL getSupersededProperties( ) override;
67 virtual css::inspection::LineDescriptor
68 SAL_CALL describePropertyLine( const OUString& _rPropertyName, const css::uno::Reference< css::inspection::XPropertyControlFactory >& _rxControlFactory ) override;
69 virtual css::inspection::InteractiveSelectionResult
70 SAL_CALL onInteractivePropertySelection( const OUString& _rPropertyName, sal_Bool _bPrimary, css::uno::Any& _rData, const css::uno::Reference< css::inspection::XObjectInspectorUI >& _rxInspectorUI ) override;
71 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 ) override;
72 virtual css::uno::Any SAL_CALL convertToPropertyValue( const OUString& _rPropertyName, const css::uno::Any& _rControlValue ) override;
73 virtual css::uno::Any SAL_CALL convertToControlValue( const OUString& _rPropertyName, const css::uno::Any& _rPropertyValue, const css::uno::Type& _rControlValueType ) override;
74 virtual void SAL_CALL addPropertyChangeListener( const css::uno::Reference< css::beans::XPropertyChangeListener >& _rxListener ) override;
75 virtual void SAL_CALL removePropertyChangeListener( const css::uno::Reference< css::beans::XPropertyChangeListener >& _rxListener ) override;
76
77 // PropertyHandler overridables
78 virtual css::uno::Sequence< css::beans::Property >
79 doDescribeSupportedProperties() const override;
80 virtual void onNewComponent() override;
81
82 protected:
88 OUString getModelNamePropertyValue() const;
89 };
90
91
92} // namespace pcr
93
94
95/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
OUString m_sBindingLessModelName
current value of the Model property, if there is no binding, yet
std::unique_ptr< EFormsHelper > 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::inspection::LineDescriptor SAL_CALL describePropertyLine(const OUString &_rPropertyName, const css::uno::Reference< css::inspection::XPropertyControlFactory > &_rxControlFactory) override
virtual css::uno::Sequence< OUString > SAL_CALL getActuatingProperties() override
virtual OUString SAL_CALL getImplementationName() override
bool m_bSimulatingModelChange
are we currently simulating a propertyChange event of the Model property?
virtual css::uno::Any SAL_CALL convertToPropertyValue(const OUString &_rPropertyName, const css::uno::Any &_rControlValue) override
virtual css::inspection::InteractiveSelectionResult SAL_CALL onInteractivePropertySelection(const OUString &_rPropertyName, sal_Bool _bPrimary, css::uno::Any &_rData, const css::uno::Reference< css::inspection::XObjectInspectorUI > &_rxInspectorUI) override
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &_rPropertyName) override
virtual ~EFormsPropertyHandler() override
EFormsPropertyHandler(const css::uno::Reference< css::uno::XComponentContext > &_rxContext)
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual css::uno::Any SAL_CALL convertToControlValue(const OUString &_rPropertyName, const css::uno::Any &_rPropertyValue, const css::uno::Type &_rControlValueType) override
virtual void SAL_CALL removePropertyChangeListener(const css::uno::Reference< css::beans::XPropertyChangeListener > &_rxListener) override
OUString getModelNamePropertyValue() const
returns the value of the PROPERTY_XML_DATA_MODEL property.
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) override
virtual void SAL_CALL addPropertyChangeListener(const css::uno::Reference< css::beans::XPropertyChangeListener > &_rxListener) override
virtual void SAL_CALL setPropertyValue(const OUString &_rPropertyName, const css::uno::Any &_rValue) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupersededProperties() override
PropertyHandler implementation which additionally supports XServiceInfo.
a property handler for any virtual string properties
Definition: browserline.cxx:39
unsigned char sal_Bool