diff options
author | RĂ¼diger Timm <rt@openoffice.org> | 2004-05-07 15:09:54 +0000 |
---|---|---|
committer | RĂ¼diger Timm <rt@openoffice.org> | 2004-05-07 15:09:54 +0000 |
commit | 480c06f49aeb7de7245411e00a73c157f79a07e0 (patch) | |
tree | 067b13ef94f0da6032780a9a70c2750e5abe09fc /forms/source/inc/property.hxx | |
parent | 2606376a1028411aa1b6cb0895c53cc1cb8dae2c (diff) |
INTEGRATION: CWS frmcontrols03 (1.4.176); FILE MERGED
2004/04/28 11:58:04 fs 1.4.176.2: RESYNC: (1.4-1.5); FILE MERGED
2004/02/18 15:22:09 fs 1.4.176.1: #i24387# some more helper defines for usage together with the OPropertyContainerHelper
Diffstat (limited to 'forms/source/inc/property.hxx')
-rw-r--r-- | forms/source/inc/property.hxx | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/forms/source/inc/property.hxx b/forms/source/inc/property.hxx index ee9c465c7fa4..3cc2a2b114fe 100644 --- a/forms/source/inc/property.hxx +++ b/forms/source/inc/property.hxx @@ -2,9 +2,9 @@ * * $RCSfile: property.hxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: rt $ $Date: 2004-04-02 10:58:15 $ + * last change: $Author: rt $ $Date: 2004-05-07 16:09:54 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -252,6 +252,25 @@ public: #define END_DESCRIBE_PROPERTIES() \ DBG_ASSERT( pProperties == _rProps.getArray() + _rProps.getLength(), "<...>::fillProperties/getInfoHelper: forgot to adjust the count ?"); \ +//============================================================================== +//------------------------------------------------------------------------------ +#define REGISTER_PROP_1( prop, member, attrib1 ) \ + registerProperty( PROPERTY_##prop, PROPERTY_ID_##prop, PropertyAttribute::attrib1, \ + &member, ::getCppuType( &member ) ); + +#define REGISTER_PROP_2( prop, member, attrib1, attrib2 ) \ + registerProperty( PROPERTY_##prop, PROPERTY_ID_##prop, PropertyAttribute::attrib1 | PropertyAttribute::attrib2, \ + &member, ::getCppuType( &member ) ); + +//------------------------------------------------------------------------------ +#define REGISTER_VOID_PROP_1( prop, memberAny, type, attrib1 ) \ + registerMayBeVoidProperty( PROPERTY_##prop, PROPERTY_ID_##prop, PropertyAttribute::MAYBEVOID | PropertyAttribute::attrib1, \ + &memberAny, ::getCppuType( static_cast< type* >( NULL ) ) ); + +#define REGISTER_VOID_PROP_2( prop, memberAny, type, attrib1, attrib2 ) \ + registerMayBeVoidProperty( PROPERTY_##prop, PROPERTY_ID_##prop, PropertyAttribute::MAYBEVOID | PropertyAttribute::attrib1 | PropertyAttribute::attrib2, \ + &memberAny, ::getCppuType( static_cast< type* >( NULL ) ) ); + //......................................................................... } //... namespace frm ....................................................... |