Lines Matching refs:pElement
338 XMLElement *pElement = ( XMLElement * ) pCur; in Write() local
340 WriteString( rStream, pElement->GetName()); in Write()
341 if ( pElement->GetAttributeList()) in Write()
342 for ( sal_uLong j = 0; j < pElement->GetAttributeList()->Count(); j++ ) { in Write()
344 String sData(*pElement->GetAttributeList()->GetObject( j )); in Write()
348 sData=pElement->GetAttributeList()->GetObject( j )->GetValue(); in Write()
353 if ( !pElement->GetChildList()) in Write()
357 for ( sal_uLong k = 0; k < pElement->GetChildList()->Count(); k++ ) in Write()
358 Write( rStream, pElement->GetChildList()->GetObject( k )); in Write()
360 WriteString( rStream, pElement->GetName()); in Write()
404 XMLElement *pElement = ( XMLElement * ) pCur; in Print() local
406 fprintf( stdout, "<%s", ByteString( pElement->GetName(), RTL_TEXTENCODING_UTF8 ).GetBuffer()); in Print()
407 if ( pElement->GetAttributeList()) in Print()
408 for ( sal_uLong j = 0; j < pElement->GetAttributeList()->Count(); j++ ){ in Print()
409 ByteString aAttrName( *pElement->GetAttributeList()->GetObject( j ), RTL_TEXTENCODING_UTF8 ); in Print()
413 ByteString( pElement->GetAttributeList()->GetObject( j )->GetValue(), in Print()
417 if ( !pElement->GetChildList()) in Print()
421 for ( sal_uLong k = 0; k < pElement->GetChildList()->Count(); k++ ) in Print()
422 Print( pElement->GetChildList()->GetObject( k ), nLevel + 1 ); in Print()
423 … fprintf( stdout, "</%s>", ByteString( pElement->GetName(), RTL_TEXTENCODING_UTF8 ).GetBuffer()); in Print()
510 void XMLFile::InsertL10NElement( XMLElement* pElement ){ in InsertL10NElement() argument
515 if( pElement->GetAttributeList() != NULL ){ in InsertL10NElement()
516 for ( sal_uLong j = 0; j < pElement->GetAttributeList()->Count(); j++ ){ in InsertL10NElement()
517 tmpStr=ByteString( *pElement->GetAttributeList()->GetObject( j ),RTL_TEXTENCODING_UTF8 ); in InsertL10NElement()
519 … id = ByteString( pElement->GetAttributeList()->GetObject( j )->GetValue(),RTL_TEXTENCODING_UTF8 ); in InsertL10NElement()
522 …language = ByteString( pElement->GetAttributeList()->GetObject( j )->GetValue(),RTL_TEXTENCODING_U… in InsertL10NElement()
529 Print( pElement , 0 ); in InsertL10NElement()
536 (*elem)[ language ]=pElement; in InsertL10NElement()
546 (*elem)[ language ]=pElement; in InsertL10NElement()
630 XMLParentNode* pElement; in SearchL10NElements() local
633 pElement = (XMLParentNode*) GetChildList()->GetObject( i ); in SearchL10NElements()
634 … if( pElement->GetNodeType() == XML_NODE_TYPE_ELEMENT ) SearchL10NElements( pElement , i); in SearchL10NElements()
640 XMLElement *pElement = ( XMLElement * ) pCur; in SearchL10NElements() local
641 ByteString sName(pElement->GetName(),RTL_TEXTENCODING_ASCII_US); in SearchL10NElements()
643 if ( pElement->GetAttributeList()){ in SearchL10NElements()
644 for ( sal_uLong j = 0 , cnt = pElement->GetAttributeList()->Count(); j < cnt && bInsert; j++ ){ in SearchL10NElements()
645 … const ByteString tmpStr( *pElement->GetAttributeList()->GetObject( j ),RTL_TEXTENCODING_UTF8 ); in SearchL10NElements()
647 …tmpStrVal=ByteString( pElement->GetAttributeList()->GetObject( j )->GetValue(),RTL_TEXTENCODING_UT… in SearchL10NElements()
654 …language=ByteString( pElement->GetAttributeList()->GetObject( j )->GetValue(),RTL_TEXTENCODING_UTF… in SearchL10NElements()
657 …oldref=ByteString( pElement->GetAttributeList()->GetObject( j )->GetValue(),RTL_TEXTENCODING_UTF8 … in SearchL10NElements()
660 pElement->SetLanguageId ( language ); in SearchL10NElements()
661 pElement->SetId ( tmpStrVal.GetBuffer() ); in SearchL10NElements()
662 pElement->SetOldRef ( oldref ); in SearchL10NElements()
663 pElement->SetPos( pos ); in SearchL10NElements()
667 InsertL10NElement(pElement); in SearchL10NElements()
668 else if ( bInsert && pElement->GetChildList() ){ in SearchL10NElements()
669 for ( sal_uLong k = 0; k < pElement->GetChildList()->Count(); k++ ) in SearchL10NElements()
670 SearchL10NElements( (XMLParentNode*) pElement->GetChildList()->GetObject( k ) , k); in SearchL10NElements()
704 XMLParentNode* pElement; in CheckExportStatus() local
707 pElement = (XMLParentNode*) GetChildList()->GetObject( i ); in CheckExportStatus()
708 … if( pElement->GetNodeType() == XML_NODE_TYPE_ELEMENT ) CheckExportStatus( pElement );//, i); in CheckExportStatus()
714 XMLElement *pElement = ( XMLElement * ) pCur; in CheckExportStatus() local
715 ByteString sName(pElement->GetName(),RTL_TEXTENCODING_ASCII_US); in CheckExportStatus()
717 if ( pElement->GetAttributeList()){ in CheckExportStatus()
718 … for ( sal_uLong j = 0 , cnt = pElement->GetAttributeList()->Count(); j < cnt && bInsert; j++ ){ in CheckExportStatus()
719 … const ByteString tmpStr( *pElement->GetAttributeList()->GetObject( j ),RTL_TEXTENCODING_UTF8 ); in CheckExportStatus()
721 …ByteString tmpStrVal=ByteString( pElement->GetAttributeList()->GetObject( j )->GetValue(),RTL_TEXT… in CheckExportStatus()
731 else if ( pElement->GetChildList() ){ in CheckExportStatus()
732 for ( sal_uLong k = 0; k < pElement->GetChildList()->Count(); k++ ) in CheckExportStatus()
733 CheckExportStatus( (XMLParentNode*) pElement->GetChildList()->GetObject( k ) );//, k); in CheckExportStatus()
901 XMLElement *pElement = ( XMLElement * ) pCur; in Print() local
902 if ( pElement->GetAttributeList()){ in Print()
903 if ( pElement->GetChildList()){ in Print()
905 for ( sal_uLong k = 0; k < pElement->GetChildList()->Count(); k++ ){ in Print()
906 tmp=pElement->GetChildList()->GetObject( k ); in Print()
916 XMLElement *pElement = ( XMLElement * ) pCur; in Print() local
918 if( !pElement->GetName().EqualsIgnoreCaseAscii( _COMMENT ) ){ in Print()
920 buffer.append( pElement->GetName() ); in Print()
921 if ( pElement->GetAttributeList()){ in Print()
922 for ( sal_uLong j = 0; j < pElement->GetAttributeList()->Count(); j++ ){ in Print()
924 OUString aAttrName( *pElement->GetAttributeList()->GetObject( j ) ); in Print()
930 buffer.append( pElement->GetAttributeList()->GetObject( j )->GetValue() ); in Print()
935 if ( !pElement->GetChildList()) in Print()
940 for ( sal_uLong k = 0; k < pElement->GetChildList()->Count(); k++ ){ in Print()
941 tmp=pElement->GetChildList()->GetObject( k ); in Print()
945 buffer.append( pElement->GetName() ); in Print()
1139 XMLElement *pElement = new XMLElement( sElementName, ( XMLParentNode * ) pCurNode ); in StartElement() local
1140 pCurNode = pElement; in StartElement()
1145 pElement->AddAttribute( in StartElement()