1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 .
21 #include "propcontroller.hxx"
23 #include <cppuhelper/propshlp.hxx>
24 #include <comphelper/proparrhlp.hxx>
25 #include <comphelper/uno3.hxx>
35 typedef ::cppu::OPropertySetHelper FormController_PropertyBase1
;
36 typedef ::comphelper::OPropertyArrayUsageHelper
< FormController
> FormController_PropertyBase2
;
38 /** Legacy implementation of com.sun.star.form.PropertyBrowserController
40 Nowadays only a wrapper around an ObjectInspector using a
41 DefaultFormComponentInspectorModel.
43 class FormController
:public OPropertyBrowserController
44 ,public FormController_PropertyBase1
45 ,public FormController_PropertyBase2
48 css::uno::Reference
< css::beans::XPropertySet
>
50 OUString m_sImplementationName
;
51 css::uno::Sequence
<OUString
> m_aSupportedServiceNames
;
54 const css::uno::Reference
< css::uno::XComponentContext
>& _rxContext
,
55 OUString sImplementName
,
56 const css::uno::Sequence
<OUString
>& aSupportedServiceNames
,
57 bool _bUseFormFormComponentHandlers
61 virtual ~FormController() override
;
64 DECLARE_XTYPEPROVIDER()
67 virtual OUString SAL_CALL
getImplementationName( ) override
;
68 virtual css::uno::Sequence
< OUString
> SAL_CALL
getSupportedServiceNames( ) override
;
70 // XPropertySet and friends
71 virtual css::uno::Reference
< css::beans::XPropertySetInfo
> SAL_CALL
getPropertySetInfo( ) override
;
72 virtual ::cppu::IPropertyArrayHelper
& SAL_CALL
getInfoHelper() override
;
73 virtual ::cppu::IPropertyArrayHelper
* createArrayHelper( ) const override
;
75 virtual sal_Bool SAL_CALL
convertFastPropertyValue(
76 css::uno::Any
& rConvertedValue
, css::uno::Any
& rOldValue
, sal_Int32 nHandle
, const css::uno::Any
& rValue
78 virtual void SAL_CALL
setFastPropertyValue_NoBroadcast(
79 sal_Int32 nHandle
, const css::uno::Any
& rValue
81 virtual void SAL_CALL
getFastPropertyValue(
82 css::uno::Any
& rValue
, sal_Int32 nHandle
85 using FormController_PropertyBase1::getFastPropertyValue
;
91 /** Legacy implementation of com.sun.star.awt.PropertyBrowserController
93 class DialogController
96 DialogController( const DialogController
& ) = delete;
97 DialogController
& operator=( const DialogController
& ) = delete;
103 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */