1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 #ifndef EXTENSIONS_SOURCE_PROPCTRLR_DEFAULTFORMINSPECTION_HXX 24 #define EXTENSIONS_SOURCE_PROPCTRLR_DEFAULTFORMINSPECTION_HXX 25 26 #include "inspectormodelbase.hxx" 27 28 /** === begin UNO includes === **/ 29 /** === end UNO includes === **/ 30 31 #include <memory> 32 33 //........................................................................ 34 namespace pcr 35 { 36 //........................................................................ 37 38 class OPropertyInfoService; 39 //==================================================================== 40 //= DefaultFormComponentInspectorModel 41 //==================================================================== 42 class DefaultFormComponentInspectorModel : public ImplInspectorModel 43 { 44 private: 45 bool m_bUseFormComponentHandlers; 46 bool m_bConstructed; 47 48 /// access to property meta data 49 ::std::auto_ptr< OPropertyInfoService > m_pInfoService; 50 51 protected: 52 ~DefaultFormComponentInspectorModel(); 53 54 // XServiceInfo 55 virtual ::rtl::OUString SAL_CALL getImplementationName( ) throw(::com::sun::star::uno::RuntimeException); 56 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( ) throw(::com::sun::star::uno::RuntimeException); 57 58 // XObjectInspectorModel 59 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > SAL_CALL getHandlerFactories() throw (::com::sun::star::uno::RuntimeException); 60 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::inspection::PropertyCategoryDescriptor > SAL_CALL describeCategories( ) throw (::com::sun::star::uno::RuntimeException); 61 virtual ::sal_Int32 SAL_CALL getPropertyOrderIndex( const ::rtl::OUString& PropertyName ) throw (::com::sun::star::uno::RuntimeException); 62 63 // XInitialization 64 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); 65 66 public: 67 // XServiceInfo - static versions 68 static ::rtl::OUString getImplementationName_static( ) throw(::com::sun::star::uno::RuntimeException); 69 static ::com::sun::star::uno::Sequence< ::rtl::OUString > getSupportedServiceNames_static( ) throw(::com::sun::star::uno::RuntimeException); 70 static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL 71 Create(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >&); 72 73 public: 74 DefaultFormComponentInspectorModel( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxContext, bool _bUseFormFormComponentHandlers = true ); 75 76 protected: 77 // Service constructors 78 void createDefault(); 79 void createWithHelpSection( sal_Int32 _nMinHelpTextLines, sal_Int32 _nMaxHelpTextLines ); 80 }; 81 82 //........................................................................ 83 } // namespace pcr 84 //........................................................................ 85 86 #endif // EXTENSIONS_SOURCE_PROPCTRLR_DEFAULTFORMINSPECTION_HXX 87 88