tdf#130857 qt weld: Implement QtInstanceWidget::get_text_height
[LibreOffice.git] / svx / source / inc / xfm_addcondition.hxx
blob10d4674cbf5778e29ad454a7eb6bd4400a39c2ed
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 #ifndef INCLUDED_SVX_SOURCE_INC_XFM_ADDCONDITION_HXX
21 #define INCLUDED_SVX_SOURCE_INC_XFM_ADDCONDITION_HXX
23 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
24 #include <com/sun/star/xforms/XModel.hpp>
25 #include <svtools/genericunodialog.hxx>
26 #include <comphelper/proparrhlp.hxx>
29 namespace svxform
32 typedef ::svt::OGenericUnoDialog OAddConditionDialogBase;
33 class OAddConditionDialog final
34 :public OAddConditionDialogBase
35 ,public ::comphelper::OPropertyArrayUsageHelper< OAddConditionDialog >
37 public:
38 static css::uno::Reference< css::uno::XInterface >
39 Create( const css::uno::Reference< css::lang::XMultiServiceFactory >& );
41 private:
42 OAddConditionDialog( const css::uno::Reference< css::uno::XComponentContext >& _rxORB );
44 // XTypeProvider
45 virtual css::uno::Sequence<sal_Int8> SAL_CALL getImplementationId( ) override;
47 // XServiceInfo
48 virtual OUString SAL_CALL getImplementationName() override;
49 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
51 // XPropertySet
52 virtual css::uno::Reference<css::beans::XPropertySetInfo> SAL_CALL getPropertySetInfo() override;
53 virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper() override;
55 // OPropertyArrayUsageHelper
56 virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const override;
58 // OGenericUnoDialog overridables
59 virtual std::unique_ptr<weld::DialogController> createDialog(const css::uno::Reference<css::awt::XWindow>& rParent) override;
60 virtual void executedDialog(sal_Int16 _nExecutionResult) override;
62 css::uno::Reference< css::beans::XPropertySet >
63 m_xBinding;
64 OUString m_sFacetName;
65 OUString m_sConditionValue;
66 css::uno::Reference< css::xforms::XModel >
67 m_xWorkModel;
74 #endif // INCLUDED_SVX_SOURCE_INC_XFM_ADDCONDITION_HXX
76 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */