property.hxx (2d785d7e) | property.hxx (a72d41dc) |
---|---|
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 --- 92 unchanged lines hidden (view full) --- 101class ConcreteInfoService : public ::comphelper::IPropertyInfoService 102{ 103public: 104 virtual sal_Int32 getPreferedPropertyId(const ::rtl::OUString& _rName); 105}; 106 107//------------------------------------------------------------------------------ 108#define DECL_PROP_IMPL(varname, type) \ | 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 --- 92 unchanged lines hidden (view full) --- 101class ConcreteInfoService : public ::comphelper::IPropertyInfoService 102{ 103public: 104 virtual sal_Int32 getPreferedPropertyId(const ::rtl::OUString& _rName); 105}; 106 107//------------------------------------------------------------------------------ 108#define DECL_PROP_IMPL(varname, type) \ |
109 *pProperties++ = com::sun::star::beans::Property(PROPERTY_##varname, PROPERTY_ID_##varname, ::getCppuType(reinterpret_cast< type* >(NULL)), | 109 *pProperties++ = com::sun::star::beans::Property(PROPERTY_##varname, PROPERTY_ID_##varname, ::getCppuType(static_cast< type* >(NULL)), |
110 111//------------------------------------------------------------------------------ 112#define DECL_BOOL_PROP_IMPL(varname) \ 113 *pProperties++ = com::sun::star::beans::Property(PROPERTY_##varname, PROPERTY_ID_##varname, ::getBooleanCppuType(), 114 115//------------------------------------------------------------------------------ 116#define DECL_IFACE_PROP_IMPL(varname, type) \ | 110 111//------------------------------------------------------------------------------ 112#define DECL_BOOL_PROP_IMPL(varname) \ 113 *pProperties++ = com::sun::star::beans::Property(PROPERTY_##varname, PROPERTY_ID_##varname, ::getBooleanCppuType(), 114 115//------------------------------------------------------------------------------ 116#define DECL_IFACE_PROP_IMPL(varname, type) \ |
117 *pProperties++ = com::sun::star::beans::Property(PROPERTY_##varname, PROPERTY_ID_##varname, ::getCppuType(reinterpret_cast< com::sun::star::uno::Reference< type >* >(NULL)), | 117 *pProperties++ = com::sun::star::beans::Property(PROPERTY_##varname, PROPERTY_ID_##varname, ::getCppuType(static_cast< com::sun::star::uno::Reference< type >* >(NULL)), |
118 119//------------------------------------------------------------------------------ 120#define BEGIN_DESCRIBE_PROPERTIES( count, baseclass ) \ 121 baseclass::describeFixedProperties( _rProps ); \ 122 sal_Int32 nOldCount = _rProps.getLength(); \ 123 _rProps.realloc( nOldCount + ( count ) ); \ 124 ::com::sun::star::beans::Property* pProperties = _rProps.getArray() + nOldCount; \ 125 --- 107 unchanged lines hidden --- | 118 119//------------------------------------------------------------------------------ 120#define BEGIN_DESCRIBE_PROPERTIES( count, baseclass ) \ 121 baseclass::describeFixedProperties( _rProps ); \ 122 sal_Int32 nOldCount = _rProps.getLength(); \ 123 _rProps.realloc( nOldCount + ( count ) ); \ 124 ::com::sun::star::beans::Property* pProperties = _rProps.getArray() + nOldCount; \ 125 --- 107 unchanged lines hidden --- |