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>
26 #include <cppuhelper/implbase3.hxx>
27 
28 
29 namespace rptui
30 {
31 
33 
34  //= DefaultComponentInspectorModel
35 
36  typedef ::cppu::WeakAggImplHelper3 < css::inspection::XObjectInspectorModel
37  , css::lang::XServiceInfo
38  , css::lang::XInitialization
40  class DefaultComponentInspectorModel final : public DefaultComponentInspectorModel_Base
41  {
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;
51 
54 
55  virtual ~DefaultComponentInspectorModel() override;
56 
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;
61 
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;
69 
70  virtual css::uno::Sequence< css::inspection::PropertyCategoryDescriptor > SAL_CALL describeCategories( ) override;
71  virtual ::sal_Int32 SAL_CALL getPropertyOrderIndex( const OUString& PropertyName ) override;
72 
73  // XInitialization
74  virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& aArguments ) override;
75 
76  // Service constructors
77  void createWithHelpSection( sal_Int32 _nMinHelpTextLines, sal_Int32 _nMaxHelpTextLines );
78 
79  public:
80  DefaultComponentInspectorModel( const css::uno::Reference< css::uno::XComponentContext >& _rxContext);
81  };
82 
83 
84 } // namespace rptui
85 
86 
87 #endif // INCLUDED_REPORTDESIGN_SOURCE_UI_INC_DEFAULTINSPECTION_HXX
88 
89 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual ::sal_Int32 SAL_CALL getMinHelpTextLines() override
virtual ::sal_Int32 SAL_CALL getPropertyOrderIndex(const OUString &PropertyName) override
virtual sal_Bool SAL_CALL getIsReadOnly() override
virtual sal_Bool SAL_CALL getHasHelpSection() override
virtual OUString SAL_CALL getImplementationName() override
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any > &aArguments) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
DefaultComponentInspectorModel(const DefaultComponentInspectorModel &)=delete
virtual ::sal_Int32 SAL_CALL getMaxHelpTextLines() override
::cppu::WeakAggImplHelper3< css::inspection::XObjectInspectorModel, css::lang::XServiceInfo, css::lang::XInitialization > DefaultComponentInspectorModel_Base
unsigned char sal_Bool
DefaultComponentInspectorModel & operator=(const DefaultComponentInspectorModel &)=delete
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
void createWithHelpSection(sal_Int32 _nMinHelpTextLines, sal_Int32 _nMaxHelpTextLines)
css::uno::Reference< css::inspection::XObjectInspectorModel > m_xComponent
css::uno::Reference< css::uno::XComponentContext > m_xContext
virtual void SAL_CALL setIsReadOnly(sal_Bool _isreadonly) override
virtual css::uno::Sequence< css::inspection::PropertyCategoryDescriptor > SAL_CALL describeCategories() override
virtual css::uno::Sequence< css::uno::Any > SAL_CALL getHandlerFactories() override