Linux x86 build fix
[LibreOffice.git] / extensions / source / propctrlr / defaultforminspection.hxx
blob780d0cfd1242bc55dfbc9d1fcf005c2a89d78574
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_EXTENSIONS_SOURCE_PROPCTRLR_DEFAULTFORMINSPECTION_HXX
20 #define INCLUDED_EXTENSIONS_SOURCE_PROPCTRLR_DEFAULTFORMINSPECTION_HXX
22 #include "inspectormodelbase.hxx"
24 #include <memory>
27 namespace pcr
31 class OPropertyInfoService;
33 class DefaultFormComponentInspectorModel : public ImplInspectorModel
35 private:
36 bool m_bUseFormComponentHandlers;
37 bool m_bConstructed;
39 /// access to property meta data
40 ::std::unique_ptr< OPropertyInfoService > m_pInfoService;
42 protected:
43 virtual ~DefaultFormComponentInspectorModel();
45 // XServiceInfo
46 virtual OUString SAL_CALL getImplementationName( ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
47 virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
49 // XObjectInspectorModel
50 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > SAL_CALL getHandlerFactories() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
51 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::inspection::PropertyCategoryDescriptor > SAL_CALL describeCategories( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
52 virtual ::sal_Int32 SAL_CALL getPropertyOrderIndex( const OUString& PropertyName ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
54 // XInitialization
55 virtual void SAL_CALL initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments ) throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
57 public:
58 // XServiceInfo - static versions
59 static OUString getImplementationName_static( ) throw(::com::sun::star::uno::RuntimeException);
60 static ::com::sun::star::uno::Sequence< OUString > getSupportedServiceNames_static( ) throw(::com::sun::star::uno::RuntimeException);
61 static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL
62 Create(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >&);
64 public:
65 DefaultFormComponentInspectorModel( bool _bUseFormFormComponentHandlers = true );
67 protected:
68 // Service constructors
69 void createDefault();
70 void createWithHelpSection( sal_Int32 _nMinHelpTextLines, sal_Int32 _nMaxHelpTextLines );
74 } // namespace pcr
77 #endif // INCLUDED_EXTENSIONS_SOURCE_PROPCTRLR_DEFAULTFORMINSPECTION_HXX
79 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */