LibreOffice Module extensions (master) 1
inspectormodelbase.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 <com/sun/star/inspection/XObjectInspectorModel.hpp>
23#include <com/sun/star/lang/XInitialization.hpp>
24#include <com/sun/star/lang/XServiceInfo.hpp>
25
28
30#include <comphelper/uno3.hxx>
31
32#include <memory>
33
34
35namespace pcr
36{
37
38
39 class InspectorModelProperties;
40
41 //= ImplInspectorModel
42
43 typedef ::cppu::WeakImplHelper < css::inspection::XObjectInspectorModel
44 , css::lang::XInitialization
45 , css::lang::XServiceInfo
48
53 {
54 std::unique_ptr< InspectorModelProperties > m_pProperties;
55
56 protected:
57 virtual ~ImplInspectorModel() override;
58
59 public:
61
63 DECLARE_XTYPEPROVIDER()
64
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;
71
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;
78
79 // css::lang::XServiceInfo
80 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
81
82 protected:
83 void enableHelpSectionProperties( sal_Int32 _nMinHelpTextLines, sal_Int32 _nMaxHelpTextLines );
84
85 private:
87 };
88
89
90} // namespace pcr
91
92
93/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual ::sal_Int32 SAL_CALL getMinHelpTextLines() override
virtual ~ImplInspectorModel() override
virtual ::sal_Int32 SAL_CALL getMaxHelpTextLines() override
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper() override
virtual void SAL_CALL getFastPropertyValue(css::uno::Any &rValue, sal_Int32 nHandle) const override
virtual void SAL_CALL setIsReadOnly(sal_Bool IsReadOnly) override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual sal_Bool SAL_CALL convertFastPropertyValue(css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue) override
std::unique_ptr< InspectorModelProperties > m_pProperties
virtual void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, const css::uno::Any &rValue) override
void enableHelpSectionProperties(sal_Int32 _nMinHelpTextLines, sal_Int32 _nMaxHelpTextLines)
virtual sal_Bool SAL_CALL getHasHelpSection() override
virtual sal_Bool SAL_CALL getIsReadOnly() override
a property handler for any virtual string properties
Definition: browserline.cxx:39
::cppu::OPropertySetHelper ImplInspectorModel_PBase
::cppu::WeakImplHelper< css::inspection::XObjectInspectorModel, css::lang::XInitialization, css::lang::XServiceInfo > ImplInspectorModel_Base
unsigned char sal_Bool
#define DECLARE_XINTERFACE()