Kaydet (Commit) 51e65d93 authored tarafından Rüdiger Timm's avatar Rüdiger Timm

INTEGRATION: CWS dba22a (1.3.46); FILE MERGED

2006/11/22 09:32:33 fs 1.3.46.1: allow construction from NamedValues
üst a18d2769
......@@ -4,9 +4,9 @@
*
* $RCSfile: namedvaluecollection.hxx,v $
*
* $Revision: 1.3 $
* $Revision: 1.4 $
*
* last change: $Author: ihi $ $Date: 2006-08-04 13:58:34 $
* last change: $Author: rt $ $Date: 2006-12-01 17:32:25 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
......@@ -50,6 +50,9 @@
#ifndef _COM_SUN_STAR_BEANS_PROPERTYVALUE_HPP_
#include <com/sun/star/beans/PropertyValue.hpp>
#endif
#ifndef _COM_SUN_STAR_BEANS_NAMEDVALUE_HPP_
#include <com/sun/star/beans/NamedValue.hpp>
#endif
/** === end UNO includes === **/
#include <memory>
......@@ -85,6 +88,12 @@ namespace comphelper
*/
NamedValueCollection( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& _rArguments );
/** constructs a collection
@param _rArguments
a sequence of NamedValue's
*/
NamedValueCollection( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue >& _rArguments );
~NamedValueCollection();
inline void assign( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& _rArguments )
......@@ -97,6 +106,11 @@ namespace comphelper
impl_assign( _rArguments );
}
inline void assign( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue >& _rArguments )
{
impl_assign( _rArguments );
}
/** retrieves a value with a given name from the collection, if it is present
@param _pAsciiValueName
......@@ -161,6 +175,7 @@ namespace comphelper
private:
void impl_assign( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& _rArguments );
void impl_assign( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& _rArguments );
void impl_assign( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue >& _rArguments );
bool getIfExists_ensureType(
const ::rtl::OUString& _rValueName,
......
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