merge the formfield patch from ooo-build
[ooovba.git] / extensions / source / propctrlr / defaultforminspection.hxx
blob5b28a84cab94dff2615ed50e233fa7a256ccdffc
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: defaultforminspection.hxx,v $
10 * $Revision: 1.5 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef EXTENSIONS_SOURCE_PROPCTRLR_DEFAULTFORMINSPECTION_HXX
31 #define EXTENSIONS_SOURCE_PROPCTRLR_DEFAULTFORMINSPECTION_HXX
33 #include "inspectormodelbase.hxx"
35 /** === begin UNO includes === **/
36 /** === end UNO includes === **/
38 #include <memory>
40 //........................................................................
41 namespace pcr
43 //........................................................................
45 class OPropertyInfoService;
46 //====================================================================
47 //= DefaultFormComponentInspectorModel
48 //====================================================================
49 class DefaultFormComponentInspectorModel : public ImplInspectorModel
51 private:
52 bool m_bUseFormComponentHandlers;
53 bool m_bConstructed;
55 /// access to property meta data
56 ::std::auto_ptr< OPropertyInfoService > m_pInfoService;
58 protected:
59 ~DefaultFormComponentInspectorModel();
61 // XServiceInfo
62 virtual ::rtl::OUString SAL_CALL getImplementationName( ) throw(::com::sun::star::uno::RuntimeException);
63 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( ) throw(::com::sun::star::uno::RuntimeException);
65 // XObjectInspectorModel
66 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > SAL_CALL getHandlerFactories() throw (::com::sun::star::uno::RuntimeException);
67 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::inspection::PropertyCategoryDescriptor > SAL_CALL describeCategories( ) throw (::com::sun::star::uno::RuntimeException);
68 virtual ::sal_Int32 SAL_CALL getPropertyOrderIndex( const ::rtl::OUString& PropertyName ) throw (::com::sun::star::uno::RuntimeException);
70 // XInitialization
71 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);
73 public:
74 // XServiceInfo - static versions
75 static ::rtl::OUString getImplementationName_static( ) throw(::com::sun::star::uno::RuntimeException);
76 static ::com::sun::star::uno::Sequence< ::rtl::OUString > getSupportedServiceNames_static( ) throw(::com::sun::star::uno::RuntimeException);
77 static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL
78 Create(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >&);
80 public:
81 DefaultFormComponentInspectorModel( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxContext, bool _bUseFormFormComponentHandlers = true );
83 protected:
84 // Service constructors
85 void createDefault();
86 void createWithHelpSection( sal_Int32 _nMinHelpTextLines, sal_Int32 _nMaxHelpTextLines );
89 //........................................................................
90 } // namespace pcr
91 //........................................................................
93 #endif // EXTENSIONS_SOURCE_PROPCTRLR_DEFAULTFORMINSPECTION_HXX