28#include <com/sun/star/container/XNameContainer.hpp>
29#include <com/sun/star/lang/XMultiServiceFactory.hpp>
41 ,
const Reference< XFastAttributeList > & _xAttrList
42 ,
const Reference< XNameAccess >& _xParentContainer
43 ,
const OUString& _sCollectionServiceName
44 ,OUString _sComponentServiceName) :
46 ,m_sCollectionServiceName(_sCollectionServiceName)
47 ,m_sComponentServiceName(
std::move(_sComponentServiceName))
52 switch( aIter.getToken() & TOKEN_MASK )
55 sName = aIter.toString();
61 if (
sName.isEmpty() || !_xParentContainer.is() )
66 Reference<XMultiServiceFactory> xORB(_xParentContainer,UNO_QUERY);
72 {
"Parent",
Any(_xParentContainer)},
75 Reference<XNameContainer> xNameContainer(_xParentContainer,UNO_QUERY);
76 if ( xNameContainer.is() && !xNameContainer->hasByName(
sName) )
86OXMLHierarchyCollection::OXMLHierarchyCollection( ODBFilter& rImport
87 ,
const Reference< XNameAccess >& _xContainer
88 ,
const Reference< XPropertySet >& _xTable
96OXMLHierarchyCollection::~OXMLHierarchyCollection()
101css::uno::Reference< css::xml::sax::XFastContextHandler > OXMLHierarchyCollection::createFastChildContext(
102 sal_Int32 nElement,
const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
127 return static_cast<ODBFilter&
>(GetImport());
OXMLHierarchyCollection(ODBFilter &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &_xAttrList, const css::uno::Reference< css::container::XNameAccess > &_xParentContainer, const OUString &_sCollectionServiceName, OUString _sComponentServiceName)
#define TOOLS_WARN_EXCEPTION(area, stream)
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)
Reference< XNameAccess > m_xContainer
#define PROGRESS_BAR_STEP
#define XMLOFF_WARN_UNKNOWN(area, rIter)
constexpr sal_Int32 TOKEN_MASK