27#include <com/sun/star/ucb/AlreadyInitializedException.hpp>
28#include <com/sun/star/lang/IllegalArgumentException.hpp>
29#include <com/sun/star/uno/XComponentContext.hpp>
37 using ::com::sun::star::uno::Sequence;
38 using ::com::sun::star::uno::Any;
39 using ::com::sun::star::uno::XInterface;
40 using ::com::sun::star::uno::XComponentContext;
41 using ::com::sun::star::inspection::PropertyCategoryDescriptor;
42 using ::com::sun::star::ucb::AlreadyInitializedException;
43 using ::com::sun::star::lang::IllegalArgumentException;
46 :m_bUseFormComponentHandlers( _bUseFormFormComponentHandlers )
47 ,m_bConstructed( false )
60 return "org.openoffice.comp.extensions.DefaultFormComponentInspectorModel";
66 return {
"com.sun.star.form.inspection.DefaultFormComponentInspectorModel" };
72 ::osl::MutexGuard aGuard(
m_aMutex );
77 const char* serviceName;
79 }
const aFactories[] = {
82 {
"com.sun.star.form.inspection.FormComponentPropertyHandler",
false },
85 {
"com.sun.star.form.inspection.EditPropertyHandler",
false },
89 {
"com.sun.star.form.inspection.ButtonNavigationHandler",
false },
92 {
"com.sun.star.form.inspection.EventHandler",
false },
95 {
"com.sun.star.form.inspection.CellBindingPropertyHandler",
false },
98 {
"com.sun.star.form.inspection.XMLFormsPropertyHandler",
true },
101 {
"com.sun.star.form.inspection.XSDValidationPropertyHandler",
true },
104 {
"com.sun.star.form.inspection.SubmissionPropertyHandler",
true },
107 {
"com.sun.star.form.inspection.FormGeometryHandler",
true }
111 Sequence< Any > aReturn( nFactories );
112 Any* pReturn = aReturn.getArray();
113 for ( sal_Int32
i = 0;
i < nFactories; ++
i )
117 *pReturn++ <<= OUString::createFromAscii( aFactories[
i].serviceName );
119 aReturn.realloc( pReturn - aReturn.getArray() );
127 ::osl::MutexGuard aGuard(
m_aMutex );
131 const char* programmaticName;
133 rtl::OUStringConstExpr helpId;
134 }
const aCategories[] = {
141 Sequence< PropertyCategoryDescriptor > aReturn( nCategories );
142 PropertyCategoryDescriptor* pReturn = aReturn.getArray();
143 for ( sal_Int32
i=0;
i<nCategories; ++
i, ++pReturn )
145 pReturn->ProgrammaticName = OUString::createFromAscii( aCategories[
i].programmaticName );
146 pReturn->UIName =
PcrRes( aCategories[
i].uiNameResId );
159 if ( _rPropertyName.indexOf(
';' ) != -1 )
173 throw AlreadyInitializedException();
176 if ( arguments.
empty() )
182 if ( arguments.
size() == 2 )
184 sal_Int32 nMinHelpTextLines( 0 ), nMaxHelpTextLines( 0 );
185 if ( !( arguments[0] >>= nMinHelpTextLines ) || !( arguments[1] >>= nMaxHelpTextLines ) )
186 throw IllegalArgumentException( OUString(), *
this, 0 );
191 throw IllegalArgumentException( OUString(), *
this, 0 );
197 if ( ( _nMinHelpTextLines <= 0 ) || ( _nMaxHelpTextLines <= 0 ) || ( _nMinHelpTextLines > _nMaxHelpTextLines ) )
198 throw IllegalArgumentException( OUString(), *
this, 0 );
207extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
209 css::uno::XComponentContext* context , css::uno::Sequence<css::uno::Any>
const&)
static OUString getHelpURL(std::u16string_view)
void enableHelpSectionProperties(sal_Int32 _nMinHelpTextLines, sal_Int32 _nMaxHelpTextLines)
constexpr OUStringLiteral HID_FM_PROPDLG_TAB_EVT
constexpr OUStringLiteral HID_FM_PROPDLG_TAB_GENERAL
constexpr OUStringLiteral HID_FM_PROPDLG_TAB_DATA
#define SAL_N_ELEMENTS(arr)
a property handler for any virtual string properties
OUString PcrRes(TranslateId aId)