Lines Matching refs:rEntity
219 Entity& rEntity = getEntity(); in pushContext() local
220 if( rEntity.maContextStack.empty() ) in pushContext()
222 rEntity.maContextStack.push( SaxContextImplPtr( new SaxContextImpl ) ); in pushContext()
227 …rEntity.maContextStack.push( SaxContextImplPtr( new SaxContextImpl( rEntity.maContextStack.top() )… in pushContext()
235 Entity& rEntity = getEntity(); in popContext() local
236 …OSL_ENSURE( !rEntity.maContextStack.empty(), "sax::FastSaxParser::popContext(), pop without push?"… in popContext()
237 if( !rEntity.maContextStack.empty() ) in popContext()
238 rEntity.maContextStack.pop(); in popContext()
245 Entity& rEntity = getEntity(); in DefineNamespace() local
246 …OSL_ENSURE( !rEntity.maContextStack.empty(), "sax::FastSaxParser::DefineNamespace(), I need a cont… in DefineNamespace()
247 if( !rEntity.maContextStack.empty() ) in DefineNamespace()
249 sal_uInt32 nOffset = rEntity.maContextStack.top()->mnNamespaceCount++; in DefineNamespace()
251 if( rEntity.maNamespaceDefines.size() <= nOffset ) in DefineNamespace()
252 rEntity.maNamespaceDefines.resize( rEntity.maNamespaceDefines.size() + 64 ); in DefineNamespace()
255 …rEntity.maNamespaceDefines[nOffset].reset( new NamespaceDefine( rPrefix, GetNamespaceToken( aNames… in DefineNamespace()
284 Entity& rEntity = getEntity(); in GetTokenWithPrefix() local
285 sal_uInt32 nNamespace = rEntity.maContextStack.top()->mnNamespaceCount; in GetTokenWithPrefix()
288 if( rEntity.maNamespaceDefines[nNamespace]->maPrefix == rPrefix ) in GetTokenWithPrefix()
290 nNamespaceToken = rEntity.maNamespaceDefines[nNamespace]->mnToken; in GetTokenWithPrefix()
312 Entity& rEntity = getEntity(); in GetTokenWithPrefix() local
313 sal_uInt32 nNamespace = rEntity.maContextStack.top()->mnNamespaceCount; in GetTokenWithPrefix()
316 const OString& rPrefix( rEntity.maNamespaceDefines[nNamespace]->maPrefix ); in GetTokenWithPrefix()
320 nNamespaceToken = rEntity.maNamespaceDefines[nNamespace]->mnToken; in GetTokenWithPrefix()
353 Entity& rEntity = getEntity(); in GetNamespaceURL() local
354 if( !rEntity.maContextStack.empty() ) in GetNamespaceURL()
356 sal_uInt32 nNamespace = rEntity.maContextStack.top()->mnNamespaceCount; in GetNamespaceURL()
358 if( rEntity.maNamespaceDefines[nNamespace]->maPrefix == rPrefix ) in GetNamespaceURL()
359 return rEntity.maNamespaceDefines[nNamespace]->maNamespaceURL; in GetNamespaceURL()
367 Entity& rEntity = getEntity(); in GetNamespaceURL() local
368 if( pPrefix && !rEntity.maContextStack.empty() ) in GetNamespaceURL()
370 sal_uInt32 nNamespace = rEntity.maContextStack.top()->mnNamespaceCount; in GetNamespaceURL()
373 const OString& rPrefix( rEntity.maNamespaceDefines[nNamespace]->maPrefix ); in GetNamespaceURL()
377 return rEntity.maNamespaceDefines[nNamespace]->maNamespaceURL; in GetNamespaceURL()
635 Entity& rEntity = getEntity(); in parse() local
639 nRead = rEntity.maConverter.readAndConvert( seqOut, BUFFER_SIZE ); in parse()
642 XML_Parse( rEntity.mpParser, (const char*) seqOut.getConstArray(), 0, 1 ); in parse()
646 …bool bContinue = XML_Parse( rEntity.mpParser, (const char*) seqOut.getConstArray(), nRead, 0 ) != … in parse()
648 if( !bContinue || rEntity.maSavedException.hasValue() ) in parse()
651 XML_Error xmlE = XML_GetErrorCode( rEntity.mpParser ); in parse()
658 Any( &rEntity.maSavedException, getCppuType( &rEntity.maSavedException ) ), in parse()
666 if( rEntity.mxErrorHandler.is() ) in parse()
667 rEntity.mxErrorHandler->fatalError( Any( aExcept ) ); in parse()
697 Entity& rEntity = getEntity(); in callbackStartElement() local
698 if( !rEntity.maContextStack.empty() ) in callbackStartElement()
700 xParentContext = rEntity.maContextStack.top()->mxContext; in callbackStartElement()
711 rEntity.mxAttributes->clear(); in callbackStartElement()
752 …rEntity.maContextStack.top()->maNamespace = OUString( awAttributes[i+1], strlen( awAttributes[i+1]… in callbackStartElement()
770 rEntity.mxAttributes->add( nAttributeToken, aIt->maValue ); in callbackStartElement()
772 … rEntity.mxAttributes->addUnknown( GetNamespaceURL( aIt->maPrefix ), aIt->maName, aIt->maValue ); in callbackStartElement()
778 rEntity.mxAttributes->add( nAttributeToken, aIt->maValue ); in callbackStartElement()
780 rEntity.mxAttributes->addUnknown( aIt->maName, aIt->maValue ); in callbackStartElement()
788 else if( rEntity.maContextStack.top()->maNamespace.getLength() > 0 ) in callbackStartElement()
789 …nElementToken = GetTokenWithNamespaceURL( rEntity.maContextStack.top()->maNamespace, pName, nNameL… in callbackStartElement()
792 rEntity.maContextStack.top()->mnElementToken = nElementToken; in callbackStartElement()
794 Reference< XFastAttributeList > xAttr( rEntity.mxAttributes.get() ); in callbackStartElement()
799 rEntity.maContextStack.top()->maNamespace = GetNamespaceURL( pPrefix, nPrefixLen ); in callbackStartElement()
801 const OUString aNamespace( rEntity.maContextStack.top()->maNamespace ); in callbackStartElement()
803 rEntity.maContextStack.top()->maElementName = aElementName; in callbackStartElement()
808 …xContext = rEntity.mxDocumentHandler->createUnknownChildContext( aNamespace, aElementName, xAttr ); in callbackStartElement()
812 rEntity.maContextStack.top()->mxContext = xContext; in callbackStartElement()
821 xContext = rEntity.mxDocumentHandler->createFastChildContext( nElementToken, xAttr ); in callbackStartElement()
826 rEntity.maContextStack.top()->mxContext = xContext; in callbackStartElement()
833 rEntity.maSavedException <<= e; in callbackStartElement()
839 Entity& rEntity = getEntity(); in callbackEndElement() local
840 OSL_ENSURE( !rEntity.maContextStack.empty(), "FastSaxParser::callbackEndElement - no context" ); in callbackEndElement()
841 if( !rEntity.maContextStack.empty() ) in callbackEndElement()
843 SaxContextImplPtr pContext = rEntity.maContextStack.top(); in callbackEndElement()
855 rEntity.maSavedException <<= e; in callbackEndElement()
865 Entity& rEntity = getEntity(); in callbackCharacters() local
866 const Reference< XFastContextHandler >& xContext( rEntity.maContextStack.top()->mxContext ); in callbackCharacters()
873 rEntity.maSavedException <<= e; in callbackCharacters()