tdf#130857 qt weld: Support mail merge "Server Auth" dialog
[LibreOffice.git] / extensions / source / propctrlr / formcontroller.hxx
blobf3415057fc80d09b22deabe1c6da9252b92471d7
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 .
19 #pragma once
21 #include "propcontroller.hxx"
23 #include <cppuhelper/propshlp.hxx>
24 #include <comphelper/proparrhlp.hxx>
25 #include <comphelper/uno3.hxx>
28 namespace pcr
32 //= FormController
34 class FormController;
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
47 private:
48 css::uno::Reference< css::beans::XPropertySet >
49 m_xCurrentInspectee;
50 OUString m_sImplementationName;
51 css::uno::Sequence<OUString> m_aSupportedServiceNames;
52 public:
53 FormController(
54 const css::uno::Reference< css::uno::XComponentContext >& _rxContext,
55 OUString sImplementName,
56 const css::uno::Sequence<OUString>& aSupportedServiceNames,
57 bool _bUseFormFormComponentHandlers
60 protected:
61 virtual ~FormController() override;
63 DECLARE_XINTERFACE()
64 DECLARE_XTYPEPROVIDER()
66 // XServiceInfo
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
77 ) override;
78 virtual void SAL_CALL setFastPropertyValue_NoBroadcast(
79 sal_Int32 nHandle, const css::uno::Any& rValue
80 ) override;
81 virtual void SAL_CALL getFastPropertyValue(
82 css::uno::Any& rValue, sal_Int32 nHandle
83 ) const override;
84 private:
85 using FormController_PropertyBase1::getFastPropertyValue;
89 //= DialogController
91 /** Legacy implementation of com.sun.star.awt.PropertyBrowserController
93 class DialogController
95 private:
96 DialogController( const DialogController& ) = delete;
97 DialogController& operator=( const DialogController& ) = delete;
100 } // namespace pcr
103 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */