Kaydet (Commit) 9a7098a3 authored tarafından Rüdiger Timm's avatar Rüdiger Timm

INTEGRATION: CWS oasis (1.6.256); FILE MERGED

2004/05/28 16:37:55 mib 1.6.256.2: - #i20153#: Events
2004/05/18 06:48:15 mib 1.6.256.1: - #i20153#: added <draw:frame>
üst 3a3f3729
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: XMLImageMapContext.cxx,v $ * $RCSfile: XMLImageMapContext.cxx,v $
* *
* $Revision: 1.6 $ * $Revision: 1.7 $
* *
* last change: $Author: cl $ $Date: 2002-03-21 08:39:31 $ * last change: $Author: rt $ $Date: 2004-07-13 08:07:55 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -74,6 +74,9 @@ ...@@ -74,6 +74,9 @@
#ifndef _COM_SUN_STAR_BEANS_XPROPERTYSET_HPP_ #ifndef _COM_SUN_STAR_BEANS_XPROPERTYSET_HPP_
#include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/beans/XPropertySet.hpp>
#endif #endif
#ifndef _COM_SUN_STAR_BEANS_XPROPERTYSETINFO_HPP
#include <com/sun/star/beans/XPropertySetInfo.hpp>
#endif
#ifndef _COM_SUN_STAR_XML_SAX_XATTRIBUTELIST_HPP_ #ifndef _COM_SUN_STAR_XML_SAX_XATTRIBUTELIST_HPP_
#include <com/sun/star/xml/sax/XAttributeList.hpp> #include <com/sun/star/xml/sax/XAttributeList.hpp>
...@@ -150,6 +153,7 @@ using namespace ::xmloff::token; ...@@ -150,6 +153,7 @@ using namespace ::xmloff::token;
using ::rtl::OUString; using ::rtl::OUString;
using ::rtl::OUStringBuffer; using ::rtl::OUStringBuffer;
using ::com::sun::star::beans::XPropertySet; using ::com::sun::star::beans::XPropertySet;
using ::com::sun::star::beans::XPropertySetInfo;
using ::com::sun::star::container::XIndexContainer; using ::com::sun::star::container::XIndexContainer;
using ::com::sun::star::lang::XMultiServiceFactory; using ::com::sun::star::lang::XMultiServiceFactory;
using ::com::sun::star::uno::Reference; using ::com::sun::star::uno::Reference;
...@@ -348,7 +352,7 @@ SvXMLImportContext* XMLImageMapObjectContext::CreateChildContext( ...@@ -348,7 +352,7 @@ SvXMLImportContext* XMLImageMapObjectContext::CreateChildContext(
const Reference<XAttributeList> & xAttrList ) const Reference<XAttributeList> & xAttrList )
{ {
if ( (XML_NAMESPACE_OFFICE == nPrefix) && if ( (XML_NAMESPACE_OFFICE == nPrefix) &&
IsXMLToken(rLocalName, XML_EVENTS) ) IsXMLToken(rLocalName, XML_EVENT_LISTENERS) )
{ {
Reference<XEventsSupplier> xEvents( xMapEntry, UNO_QUERY ); Reference<XEventsSupplier> xEvents( xMapEntry, UNO_QUERY );
return new XMLEventsImportContext( return new XMLEventsImportContext(
...@@ -751,7 +755,10 @@ XMLImageMapContext::XMLImageMapContext( ...@@ -751,7 +755,10 @@ XMLImageMapContext::XMLImageMapContext(
{ {
try try
{ {
xPropertySet->getPropertyValue(sImageMap) >>= xImageMap; Reference < XPropertySetInfo > xInfo =
xPropertySet->getPropertySetInfo();
if( xInfo.is() && xInfo->hasPropertyByName( sImageMap ) )
xPropertySet->getPropertyValue(sImageMap) >>= xImageMap;
} }
catch( com::sun::star::uno::Exception e ) catch( com::sun::star::uno::Exception e )
{ {
...@@ -798,8 +805,9 @@ SvXMLImportContext *XMLImageMapContext::CreateChildContext( ...@@ -798,8 +805,9 @@ SvXMLImportContext *XMLImageMapContext::CreateChildContext(
void XMLImageMapContext::EndElement() void XMLImageMapContext::EndElement()
{ {
Any aAny; Reference < XPropertySetInfo > xInfo =
aAny <<= xImageMap; xPropertySet->getPropertySetInfo();
xPropertySet->setPropertyValue(sImageMap, aAny); if( xInfo.is() && xInfo->hasPropertyByName( sImageMap ) )
xPropertySet->setPropertyValue(sImageMap, uno::makeAny( xImageMap ) );
} }
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