Use o3tl::convert in Math
[LibreOffice.git] / reportdesign / source / ui / inc / DefaultInspection.hxx
blob3f32725c584ffb6188fc47e388fcc7492b158049
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>
29 namespace rptui
32 class OPropertyInfoService;
34 //= DefaultComponentInspectorModel
36 typedef ::cppu::WeakAggImplHelper3 < css::inspection::XObjectInspectorModel
37 , css::lang::XServiceInfo
38 , css::lang::XInitialization
39 > DefaultComponentInspectorModel_Base;
40 class DefaultComponentInspectorModel final : public DefaultComponentInspectorModel_Base
42 private:
43 ::osl::Mutex m_aMutex;
44 css::uno::Reference< css::uno::XComponentContext > m_xContext;
45 css::uno::Reference< css::inspection::XObjectInspectorModel > m_xComponent; /// delegatee
46 bool m_bConstructed;
47 bool m_bHasHelpSection;
48 bool m_bIsReadOnly;
49 sal_Int32 m_nMinHelpTextLines;
50 sal_Int32 m_nMaxHelpTextLines;
52 DefaultComponentInspectorModel(const DefaultComponentInspectorModel&) = delete;
53 DefaultComponentInspectorModel& operator=(const DefaultComponentInspectorModel&) = delete;
55 virtual ~DefaultComponentInspectorModel() override;
57 // XServiceInfo
58 virtual OUString SAL_CALL getImplementationName( ) override;
59 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
60 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
62 // XObjectInspectorModel
63 virtual css::uno::Sequence< css::uno::Any > SAL_CALL getHandlerFactories() override;
64 virtual sal_Bool SAL_CALL getHasHelpSection() override;
65 virtual ::sal_Int32 SAL_CALL getMinHelpTextLines() override;
66 virtual ::sal_Int32 SAL_CALL getMaxHelpTextLines() override;
67 virtual sal_Bool SAL_CALL getIsReadOnly() override;
68 virtual void SAL_CALL setIsReadOnly( sal_Bool _isreadonly ) override;
70 virtual css::uno::Sequence< css::inspection::PropertyCategoryDescriptor > SAL_CALL describeCategories( ) override;
71 virtual ::sal_Int32 SAL_CALL getPropertyOrderIndex( const OUString& PropertyName ) override;
73 // XInitialization
74 virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& aArguments ) override;
76 // Service constructors
77 void createWithHelpSection( sal_Int32 _nMinHelpTextLines, sal_Int32 _nMaxHelpTextLines );
79 public:
80 DefaultComponentInspectorModel( const css::uno::Reference< css::uno::XComponentContext >& _rxContext);
84 } // namespace rptui
87 #endif // INCLUDED_REPORTDESIGN_SOURCE_UI_INC_DEFAULTINSPECTION_HXX
89 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */