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 .
22 #include <com/sun/star/inspection/XObjectInspectorModel.hpp>
23 #include <com/sun/star/lang/XInitialization.hpp>
24 #include <com/sun/star/lang/XServiceInfo.hpp>
26 #include <cppuhelper/implbase.hxx>
27 #include <cppuhelper/propshlp.hxx>
29 #include <comphelper/broadcasthelper.hxx>
30 #include <comphelper/uno3.hxx>
39 class InspectorModelProperties
;
41 //= ImplInspectorModel
43 typedef ::cppu::WeakImplHelper
< css::inspection::XObjectInspectorModel
44 , css::lang::XInitialization
45 , css::lang::XServiceInfo
46 > ImplInspectorModel_Base
;
47 typedef ::cppu::OPropertySetHelper ImplInspectorModel_PBase
;
49 class ImplInspectorModel
50 :public ::comphelper::OMutexAndBroadcastHelper
51 ,public ImplInspectorModel_Base
52 ,public ImplInspectorModel_PBase
54 std::unique_ptr
< InspectorModelProperties
> m_pProperties
;
57 virtual ~ImplInspectorModel() override
;
63 DECLARE_XTYPEPROVIDER()
65 // css::beans::XPropertySet and friends
66 virtual css::uno::Reference
< css::beans::XPropertySetInfo
> SAL_CALL
getPropertySetInfo( ) override
;
67 virtual ::cppu::IPropertyArrayHelper
& SAL_CALL
getInfoHelper() override
;
68 virtual sal_Bool SAL_CALL
convertFastPropertyValue( css::uno::Any
& rConvertedValue
, css::uno::Any
& rOldValue
, sal_Int32 nHandle
, const css::uno::Any
& rValue
) override
;
69 virtual void SAL_CALL
setFastPropertyValue_NoBroadcast( sal_Int32 nHandle
, const css::uno::Any
& rValue
) override
;
70 virtual void SAL_CALL
getFastPropertyValue( css::uno::Any
& rValue
, sal_Int32 nHandle
) const override
;
72 // css::inspection::XObjectInspectorModel
73 virtual sal_Bool SAL_CALL
getHasHelpSection() override
;
74 virtual ::sal_Int32 SAL_CALL
getMinHelpTextLines() override
;
75 virtual ::sal_Int32 SAL_CALL
getMaxHelpTextLines() override
;
76 virtual sal_Bool SAL_CALL
getIsReadOnly() override
;
77 virtual void SAL_CALL
setIsReadOnly( sal_Bool IsReadOnly
) override
;
79 // css::lang::XServiceInfo
80 virtual sal_Bool SAL_CALL
supportsService( const OUString
& ServiceName
) override
;
83 void enableHelpSectionProperties( sal_Int32 _nMinHelpTextLines
, sal_Int32 _nMaxHelpTextLines
);
86 using ImplInspectorModel_PBase::getFastPropertyValue
;
93 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */