1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 EXTENSIONS_SOURCE_PROPCTRLR_DEFAULTFORMINSPECTION_HXX
20 #define EXTENSIONS_SOURCE_PROPCTRLR_DEFAULTFORMINSPECTION_HXX
22 #include "inspectormodelbase.hxx"
26 //........................................................................
29 //........................................................................
31 class OPropertyInfoService
;
32 //====================================================================
33 //= DefaultFormComponentInspectorModel
34 //====================================================================
35 class DefaultFormComponentInspectorModel
: public ImplInspectorModel
38 bool m_bUseFormComponentHandlers
;
41 /// access to property meta data
42 SAL_WNODEPRECATED_DECLARATIONS_PUSH
43 ::std::auto_ptr
< OPropertyInfoService
> m_pInfoService
;
44 SAL_WNODEPRECATED_DECLARATIONS_POP
47 ~DefaultFormComponentInspectorModel();
50 virtual OUString SAL_CALL
getImplementationName( ) throw(::com::sun::star::uno::RuntimeException
);
51 virtual ::com::sun::star::uno::Sequence
< OUString
> SAL_CALL
getSupportedServiceNames( ) throw(::com::sun::star::uno::RuntimeException
);
53 // XObjectInspectorModel
54 virtual ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Any
> SAL_CALL
getHandlerFactories() throw (::com::sun::star::uno::RuntimeException
);
55 virtual ::com::sun::star::uno::Sequence
< ::com::sun::star::inspection::PropertyCategoryDescriptor
> SAL_CALL
describeCategories( ) throw (::com::sun::star::uno::RuntimeException
);
56 virtual ::sal_Int32 SAL_CALL
getPropertyOrderIndex( const OUString
& PropertyName
) throw (::com::sun::star::uno::RuntimeException
);
59 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
);
62 // XServiceInfo - static versions
63 static OUString
getImplementationName_static( ) throw(::com::sun::star::uno::RuntimeException
);
64 static ::com::sun::star::uno::Sequence
< OUString
> getSupportedServiceNames_static( ) throw(::com::sun::star::uno::RuntimeException
);
65 static ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XInterface
> SAL_CALL
66 Create(const ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XComponentContext
>&);
69 DefaultFormComponentInspectorModel( const ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XComponentContext
>& _rxContext
, bool _bUseFormFormComponentHandlers
= true );
72 // Service constructors
74 void createWithHelpSection( sal_Int32 _nMinHelpTextLines
, sal_Int32 _nMaxHelpTextLines
);
77 //........................................................................
79 //........................................................................
81 #endif // EXTENSIONS_SOURCE_PROPCTRLR_DEFAULTFORMINSPECTION_HXX
83 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */