22#include <osl/diagnose.h>
24#include <com/sun/star/uno/Reference.hxx>
25#include <com/sun/star/uno/Sequence.hxx>
26#include <com/sun/star/uno/Exception.hpp>
27#include <com/sun/star/beans/Property.hpp>
28#include <com/sun/star/beans/XPropertySet.hpp>
29#include <com/sun/star/beans/XPropertySetInfo.hpp>
30#include <com/sun/star/beans/PropertyAttribute.hpp>
34using com::sun::star::uno::Exception;
35using com::sun::star::beans::Property;
37using com::sun::star::beans::XPropertySetInfo;
38using com::sun::star::beans::PropertyAttribute::READONLY;
42 OSL_ENSURE(xFrom.is(),
"no source");
43 OSL_ENSURE(xTo.is(),
"no target");
52 const OUString& rName = pProperties[
n].Name;
56 if (xFromInfo->hasPropertyByName(rName))
60 Property aProperty = xFromInfo->getPropertyByName(rName);
61 if ((aProperty.Attributes & READONLY) == 0)
62 xTo->setPropertyValue(rName, xFrom->getPropertyValue(rName));
64 catch (
const Exception&)
PropertiesInfo aProperties
class SAL_NO_VTABLE XPropertySet