bump product version to 6.3.0.0.beta1
[LibreOffice.git] / reportdesign / source / ui / inc / DefaultInspection.hxx
blob8116986cb6082b745e2a3a682fc6c3090719af90
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 #ifndef INCLUDED_REPORTDESIGN_SOURCE_UI_INC_DEFAULTINSPECTION_HXX
20 #define INCLUDED_REPORTDESIGN_SOURCE_UI_INC_DEFAULTINSPECTION_HXX
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>
26 #include <cppuhelper/implbase3.hxx>
28 #include <memory>
31 namespace rptui
34 class OPropertyInfoService;
36 //= DefaultComponentInspectorModel
38 typedef ::cppu::WeakAggImplHelper3 < css::inspection::XObjectInspectorModel
39 , css::lang::XServiceInfo
40 , css::lang::XInitialization
41 > DefaultComponentInspectorModel_Base;
42 class DefaultComponentInspectorModel final : public DefaultComponentInspectorModel_Base
44 private:
45 ::osl::Mutex m_aMutex;
46 css::uno::Reference< css::uno::XComponentContext > m_xContext;
47 css::uno::Reference< css::inspection::XObjectInspectorModel > m_xComponent; /// delegatee
48 bool m_bConstructed;
49 bool m_bHasHelpSection;
50 bool m_bIsReadOnly;
51 sal_Int32 m_nMinHelpTextLines;
52 sal_Int32 m_nMaxHelpTextLines;
54 DefaultComponentInspectorModel(const DefaultComponentInspectorModel&) = delete;
55 DefaultComponentInspectorModel& operator=(const DefaultComponentInspectorModel&) = delete;
57 virtual ~DefaultComponentInspectorModel() override;
59 // XServiceInfo
60 virtual OUString SAL_CALL getImplementationName( ) override;
61 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
62 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
64 // XObjectInspectorModel
65 virtual css::uno::Sequence< css::uno::Any > SAL_CALL getHandlerFactories() override;
66 virtual sal_Bool SAL_CALL getHasHelpSection() override;
67 virtual ::sal_Int32 SAL_CALL getMinHelpTextLines() override;
68 virtual ::sal_Int32 SAL_CALL getMaxHelpTextLines() override;
69 virtual sal_Bool SAL_CALL getIsReadOnly() override;
70 virtual void SAL_CALL setIsReadOnly( sal_Bool _isreadonly ) override;
72 virtual css::uno::Sequence< css::inspection::PropertyCategoryDescriptor > SAL_CALL describeCategories( ) override;
73 virtual ::sal_Int32 SAL_CALL getPropertyOrderIndex( const OUString& PropertyName ) override;
75 // XInitialization
76 virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& aArguments ) override;
78 // Service constructors
79 void createWithHelpSection( sal_Int32 _nMinHelpTextLines, sal_Int32 _nMaxHelpTextLines );
81 public:
82 // XServiceInfo - static versions
83 /// @throws css::uno::RuntimeException
84 static OUString getImplementationName_Static( );
85 /// @throws css::uno::RuntimeException
86 static css::uno::Sequence< OUString > getSupportedServiceNames_static( );
87 static css::uno::Reference< css::uno::XInterface >
88 create(const css::uno::Reference< css::uno::XComponentContext >&);
90 DefaultComponentInspectorModel( const css::uno::Reference< css::uno::XComponentContext >& _rxContext);
94 } // namespace rptui
97 #endif // INCLUDED_REPORTDESIGN_SOURCE_UI_INC_DEFAULTINSPECTION_HXX
99 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */