Kaydet (Commit) 7cf8fe21 authored tarafından Kurt Zenker's avatar Kurt Zenker

INTEGRATION: CWS odbmacros2 (1.7.10); FILE MERGED

2008/01/30 13:17:22 fs 1.7.10.3: #i49133# new ctor taking an Any
2007/12/12 11:29:30 fs 1.7.10.2: +getProperty/NamedValues
2007/12/06 13:30:51 fs 1.7.10.1: #i49133# operator >>= is const
üst 629c83e5
......@@ -4,9 +4,9 @@
*
* $RCSfile: namedvaluecollection.hxx,v $
*
* $Revision: 1.7 $
* $Revision: 1.8 $
*
* last change: $Author: ihi $ $Date: 2007-11-21 16:52:10 $
* last change: $Author: kz $ $Date: 2008-03-06 19:58:55 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
......@@ -76,6 +76,14 @@ namespace comphelper
public:
NamedValueCollection();
/** constructs a collection
@param _rElements
the wrapped elements of the collection. The <code>Any</code> might contain a sequence of
property values, a sequence of named values, or directly a property value or named value.
All other cases are worth an assertion in non-product builds.
*/
NamedValueCollection( const ::com::sun::star::uno::Any& _rElements );
/** constructs a collection
@param _rArguments
a sequence of Any's containing either PropertyValue's or NamedValue's.
......@@ -252,14 +260,34 @@ namespace comphelper
@return
the number of elements in the sequence
*/
sal_Int32 operator >>= ( ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& _out_rValues );
sal_Int32 operator >>= ( ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& _out_rValues ) const;
/** transforms the collection to a sequence of NamedValues
@return
the number of elements in the sequence
*/
sal_Int32 operator >>= ( ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue >& _out_rValues );
sal_Int32 operator >>= ( ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue >& _out_rValues ) const;
/** transforms the collection into a sequence of PropertyValues
*/
inline ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >
getPropertyValues() const
{
::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > aValues;
*this >>= aValues;
return aValues;
}
/** transforms the collection into a sequence of NamedValues
*/
inline ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue >
getNamedValues() const
{
::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue > aValues;
*this >>= aValues;
return aValues;
}
private:
void impl_assign( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& _rArguments );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment