LibreOffice Module reportdesign (master) 1
DefaultInspection.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#ifndef INCLUDED_REPORTDESIGN_SOURCE_UI_INC_DEFAULTINSPECTION_HXX
20#define INCLUDED_REPORTDESIGN_SOURCE_UI_INC_DEFAULTINSPECTION_HXX
21
22#include <com/sun/star/inspection/XObjectInspectorModel.hpp>
23#include <com/sun/star/lang/XServiceInfo.hpp>
24#include <com/sun/star/uno/XComponentContext.hpp>
25#include <com/sun/star/lang/XInitialization.hpp>
27#include <mutex>
28
29
30namespace rptui
31{
32
33 class OPropertyInfoService;
34
35 //= DefaultComponentInspectorModel
36
37 typedef ::cppu::WeakAggImplHelper3 < css::inspection::XObjectInspectorModel
38 , css::lang::XServiceInfo
39 , css::lang::XInitialization
42 {
43 private:
44 std::mutex m_aMutex;
45 css::uno::Reference< css::uno::XComponentContext > m_xContext;
46 css::uno::Reference< css::inspection::XObjectInspectorModel > m_xComponent;
52
55
56 virtual ~DefaultComponentInspectorModel() override;
57
58 // XServiceInfo
59 virtual OUString SAL_CALL getImplementationName( ) override;
60 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
61 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
62
63 // XObjectInspectorModel
64 virtual css::uno::Sequence< css::uno::Any > SAL_CALL getHandlerFactories() override;
65 virtual sal_Bool SAL_CALL getHasHelpSection() override;
66 virtual ::sal_Int32 SAL_CALL getMinHelpTextLines() override;
67 virtual ::sal_Int32 SAL_CALL getMaxHelpTextLines() override;
68 virtual sal_Bool SAL_CALL getIsReadOnly() override;
69 virtual void SAL_CALL setIsReadOnly( sal_Bool _isreadonly ) override;
70
71 virtual css::uno::Sequence< css::inspection::PropertyCategoryDescriptor > SAL_CALL describeCategories( ) override;
72 virtual ::sal_Int32 SAL_CALL getPropertyOrderIndex( const OUString& PropertyName ) override;
73
74 // XInitialization
75 virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& aArguments ) override;
76
77 // Service constructors
78 void createWithHelpSection( sal_Int32 _nMinHelpTextLines, sal_Int32 _nMaxHelpTextLines );
79
80 public:
81 DefaultComponentInspectorModel( const css::uno::Reference< css::uno::XComponentContext >& _rxContext);
82 };
83
84
85} // namespace rptui
86
87
88#endif // INCLUDED_REPORTDESIGN_SOURCE_UI_INC_DEFAULTINSPECTION_HXX
89
90/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual sal_Bool SAL_CALL getIsReadOnly() override
virtual OUString SAL_CALL getImplementationName() override
virtual css::uno::Sequence< css::uno::Any > SAL_CALL getHandlerFactories() override
virtual ::sal_Int32 SAL_CALL getMaxHelpTextLines() override
DefaultComponentInspectorModel(const css::uno::Reference< css::uno::XComponentContext > &_rxContext)
virtual void SAL_CALL setIsReadOnly(sal_Bool _isreadonly) override
virtual sal_Bool SAL_CALL getHasHelpSection() override
virtual ::sal_Int32 SAL_CALL getMinHelpTextLines() override
virtual ::sal_Int32 SAL_CALL getPropertyOrderIndex(const OUString &PropertyName) override
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any > &aArguments) override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
void createWithHelpSection(sal_Int32 _nMinHelpTextLines, sal_Int32 _nMaxHelpTextLines)
DefaultComponentInspectorModel(const DefaultComponentInspectorModel &)=delete
css::uno::Reference< css::uno::XComponentContext > m_xContext
virtual css::uno::Sequence< css::inspection::PropertyCategoryDescriptor > SAL_CALL describeCategories() override
DefaultComponentInspectorModel & operator=(const DefaultComponentInspectorModel &)=delete
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
css::uno::Reference< css::inspection::XObjectInspectorModel > m_xComponent
::cppu::WeakAggImplHelper3< css::inspection::XObjectInspectorModel, css::lang::XServiceInfo, css::lang::XInitialization > DefaultComponentInspectorModel_Base
unsigned char sal_Bool