1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: defaultforminspection.hxx,v $
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 === **/
40 //........................................................................
43 //........................................................................
45 class OPropertyInfoService
;
46 //====================================================================
47 //= DefaultFormComponentInspectorModel
48 //====================================================================
49 class DefaultFormComponentInspectorModel
: public ImplInspectorModel
52 bool m_bUseFormComponentHandlers
;
55 /// access to property meta data
56 ::std::auto_ptr
< OPropertyInfoService
> m_pInfoService
;
59 ~DefaultFormComponentInspectorModel();
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
);
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
);
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
>&);
81 DefaultFormComponentInspectorModel( const ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XComponentContext
>& _rxContext
, bool _bUseFormFormComponentHandlers
= true );
84 // Service constructors
86 void createWithHelpSection( sal_Int32 _nMinHelpTextLines
, sal_Int32 _nMaxHelpTextLines
);
89 //........................................................................
91 //........................................................................
93 #endif // EXTENSIONS_SOURCE_PROPCTRLR_DEFAULTFORMINSPECTION_HXX