25#include <com/sun/star/container/XNameContainer.hpp>
26#include <com/sun/star/lang/XMultiServiceFactory.hpp>
38 ,
const Reference< XFastAttributeList > & _xAttrList
39 ,
const Reference< XNameAccess >& _xParentContainer
40 ,
const OUString& _sComponentServiceName
46 bool bAsTemplate(
false);
49 switch( aIter.getToken() )
70 if ( !(!sHREF.isEmpty() && !
sName.isEmpty() && _xParentContainer.is()) )
81 Reference< XMultiServiceFactory > xORB( _xParentContainer, UNO_QUERY_THROW );
82 Reference< XInterface > xComponent( xORB->createInstanceWithArguments( _sComponentServiceName,
aArguments ) );
83 Reference< XNameContainer > xNameContainer( _xParentContainer, UNO_QUERY_THROW );
84 xNameContainer->insertByName(
sName,
Any( xComponent ) );
92OXMLComponent::~OXMLComponent()
OXMLComponent(ODBFilter &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &_xAttrList, const css::uno::Reference< css::container::XNameAccess > &_xParentContainer, const OUString &_sComponentServiceName)
#define DBG_UNHANDLED_EXCEPTION(...)
Sequence< PropertyValue > aArguments
css::uno::Sequence< css::uno::Any > InitAnyPropertySequence(::std::initializer_list< ::std::pair< OUString, css::uno::Any > > vInit)
FastAttributeList & castToFastAttributeList(const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
OUString toString(OptionInfo const *info)
bool IsXMLToken(std::u16string_view rString, enum XMLTokenEnum eToken)
constexpr OUStringLiteral PROPERTY_PERSISTENT_NAME(u"PersistentName")
constexpr OUStringLiteral PROPERTY_AS_TEMPLATE(u"AsTemplate")
constexpr OUStringLiteral PROPERTY_NAME(u"Name")
#define XMLOFF_WARN_UNKNOWN(area, rIter)
#define XML_ELEMENT(prefix, name)