Lines Matching refs:pElement

552 …UCBStorage_Impl*            OpenStorage( UCBStorageElement_Impl* pElement, StreamMode nMode, sal_B…
2012 …UCBStorageElement_Impl* pElement = new UCBStorageElement_Impl( aTitle, bIsFolder, (sal_uLong) nSiz… local
2013 m_aChildrenList.Insert( pElement, LIST_APPEND );
2019 OpenStorage( pElement, m_nMode, m_bDirect );
2020 if ( pElement->m_xStorage.Is() )
2021 pElement->m_xStorage->Init();
2043 pElement->m_bIsStorage = sal_True;
2047 OpenStream( pElement, STREAM_STD_READ, m_bDirect );
2048 if ( Storage::IsStorageFile( pElement->m_xStream ) )
2049 pElement->m_bIsStorage = sal_True;
2051 pElement->m_xStream->Free();
2103 UCBStorageElement_Impl* pElement = m_aChildrenList.First(); local
2104 while ( pElement )
2106 … DBG_ASSERT( !pElement->m_bIsFolder || pElement->m_xStorage.Is(), "Storage should be open!" );
2107 if ( pElement->m_bIsFolder && pElement->m_xStorage.Is() )
2108 nCount += pElement->m_xStorage->GetObjectCount();
2109 pElement = m_aChildrenList.Next();
2161 UCBStorageElement_Impl* pElement = m_aChildrenList.First(); local
2162 while ( pElement )
2164 … DBG_ASSERT( !pElement->m_bIsFolder || pElement->m_xStorage.Is(), "Storage should be open!" );
2165 if ( pElement->m_bIsFolder && pElement->m_xStorage.Is() )
2166 pElement->m_xStorage->SetProps( rSequence, aPath );
2170 aElementPath += pElement->m_aName;
2171 pElement->SetContentType( Find_Impl( rSequence, aElementPath ) );
2174 pElement = m_aChildrenList.Next();
2215 UCBStorageElement_Impl* pElement = m_aChildrenList.First(); local
2216 while ( pElement )
2218 … DBG_ASSERT( !pElement->m_bIsFolder || pElement->m_xStorage.Is(), "Storage should be open!" );
2219 if ( pElement->m_bIsFolder && pElement->m_xStorage.Is() )
2221 pElement->m_xStorage->GetProps( nProps, rSequence, aPath );
2226 aElementPath += pElement->m_aName;
2228 aProps[0].Value <<= (::rtl::OUString ) pElement->GetContentType();
2234 pElement = m_aChildrenList.Next();
2256 UCBStorageElement_Impl* pElement = m_aChildrenList.First(); local
2257 while ( pElement )
2259 delete pElement;
2260 pElement = m_aChildrenList.Next();
2335 UCBStorageElement_Impl* pElement = m_aChildrenList.First(); local
2345 while ( pElement && nRet )
2347 ::ucbhelper::Content* pContent = pElement->GetContent();
2349 if ( !pContent && pElement->IsModified() )
2355 aName += pElement->m_aOriginalName;
2359 if ( pElement->m_bIsRemoved )
2362 if ( !pElement->m_bIsInserted )
2365 if( !pElement->m_xStream.Is() || pElement->m_xStream->Clear() )
2378 if ( pElement->m_xStorage.Is() )
2385 … if ( !pElement->m_bIsInserted || m_bIsLinked || pElement->m_xStorage->Insert( m_pContent ) )
2387 nLocalRet = pElement->m_xStorage->Commit();
2388 pContent = pElement->GetContent();
2391 else if ( pElement->m_xStream.Is() )
2394 nLocalRet = pElement->m_xStream->Commit();
2395 if ( pElement->m_xStream->m_bIsOLEStorage )
2398pElement->m_xStream->m_aContentType = String::CreateFromAscii("application/vnd.sun.star.oleobject"…
2401pElement->m_xStream->m_pContent->setPropertyValue(String::CreateFromAscii("Encrypted"), aValue );
2404 pContent = pElement->GetContent();
2407 if ( pElement->m_aName != pElement->m_aOriginalName )
2412 aAny <<= (rtl::OUString) pElement->m_aName;
2416 … if ( pElement->IsLoaded() && pElement->GetContentType() != pElement->GetOriginalContentType() )
2421 aAny <<= (rtl::OUString) pElement->GetContentType();
2436 pElement = m_aChildrenList.Next();
2610 UCBStorageElement_Impl* pElement = m_aChildrenList.First(); local
2612 while ( pElement && bRet )
2614 pElement->m_bIsRemoved = sal_False;
2615 if ( pElement->m_bIsInserted )
2617 m_aChildrenList.Remove( pElement ); // correct usage of list ???
2621 if ( pElement->m_xStream.Is() )
2623 pElement->m_xStream->m_bCommited = sal_False;
2624 pElement->m_xStream->Revert();
2626 else if ( pElement->m_xStorage.Is() )
2628 pElement->m_xStorage->m_bCommited = sal_False;
2629 pElement->m_xStorage->Revert();
2632 pElement->m_aName = pElement->m_aOriginalName;
2633 pElement->m_bIsRemoved = sal_False;
2636 pElement = m_aChildrenList.Next();
2726 UCBStorageElement_Impl* pElement = pImp->GetChildrenList().First(); local
2727 while ( pElement )
2729 if ( !pElement->m_bIsRemoved )
2732 sal_uLong nSize = pElement->m_nSize;
2733 if ( pElement->m_xStream.Is() )
2734 nSize = pElement->m_xStream->GetSize();
2735 SvStorageInfo aInfo( pElement->m_aName, nSize, pElement->m_bIsStorage );
2739 pElement = pImp->m_aChildrenList.Next();
2826 UCBStorageElement_Impl* pElement = pImp->GetChildrenList().First(); local
2827 while ( pElement )
2829 if ( pElement->m_aName == rName && !pElement->m_bIsRemoved )
2831 pElement = pImp->m_aChildrenList.Next();
2834 return pElement;
2856 UCBStorageElement_Impl* pElement = pImp->GetChildrenList().First(); local
2857 while ( pElement && bRet )
2859 if ( !pElement->m_bIsRemoved )
2860 bRet = CopyStorageElement_Impl( *pElement, pDestStg, pElement->m_aName );
2861 pElement = pImp->m_aChildrenList.Next();
2882 UCBStorageElement_Impl* pElement = FindElement_Impl( rElemName ); local
2883 if ( pElement )
2884 return CopyStorageElement_Impl( *pElement, pDest, rNew );
2915 UCBStorageElement_Impl *pElement = FindElement_Impl( rEleName ); local
2916 if ( !pElement )
2933 pElement = new UCBStorageElement_Impl( rEleName );
2934 pElement->m_bIsInserted = sal_True;
2935 pImp->m_aChildrenList.Insert( pElement, LIST_APPEND );
2939 if ( pElement && !pElement->m_bIsFolder )
2942 if ( pElement->m_xStream.Is() )
2945 if ( pElement->m_xStream->m_pAntiImpl )
2958 if ( pElement->m_xStream->m_aKey == aKey )
2960 pElement->m_xStream->PrepareCachedForReopen( nMode );
2963 return new UCBStorageStream( pElement->m_xStream );
2969 pImp->OpenStream( pElement, nMode, bDirect, pKey );
2972 pElement->m_xStream->m_aName = rEleName;
2973 return new UCBStorageStream( pElement->m_xStream );
2979 UCBStorageStream_Impl* UCBStorage_Impl::OpenStream( UCBStorageElement_Impl* pElement, StreamMode nM… argument
2983 aName += pElement->m_aOriginalName;
2984pElement->m_xStream = new UCBStorageStream_Impl( aName, nMode, NULL, bDirect, pKey, m_bRepairPacka…
2985 return pElement->m_xStream;
3015 UCBStorageElement_Impl *pElement = FindElement_Impl( rEleName ); local
3016 if ( !pElement )
3035 pElement = new UCBStorageElement_Impl( rEleName );
3036 pElement->m_bIsInserted = sal_True;
3037 pImp->m_aChildrenList.Insert( pElement, LIST_APPEND );
3040 if ( !pElement->m_bIsFolder && ( pElement->m_bIsStorage || !bForceUCBStorage ) )
3046 if ( !pElement->m_xStream.Is() )
3056 pElement->m_xStream = pStream->pImp;
3060 pElement->m_xStream->PrepareCachedForReopen( nMode );
3061 pElement->m_xStream->Init();
3063 pElement->m_bIsStorage = sal_True;
3064 return pElement->m_xStream->CreateStorage(); // can only be created in transacted mode
3066 else if ( pElement->m_xStorage.Is() )
3069 if ( pElement->m_xStorage->m_pAntiImpl )
3076 sal_Bool bIsWritable = (( pElement->m_xStorage->m_nMode & STREAM_WRITE ) != 0);
3081 aName += pElement->m_aOriginalName;
3083 pElement->m_xStorage = pStorage->pImp;
3089 return new UCBStorage( pElement->m_xStorage );
3093 else if ( !pElement->m_xStream.Is() )
3114 UCBStorage_Impl* pStor = pImp->OpenStorage( pElement, nMode, bDirect );
3117 if ( pElement->m_bIsInserted )
3127 UCBStorage_Impl* UCBStorage_Impl::OpenStorage( UCBStorageElement_Impl* pElement, StreamMode nMode, … argument
3132 aName += pElement->m_aOriginalName; // ???
3134 pElement->m_bIsStorage = pElement->m_bIsFolder = sal_True;
3139 …sal_Bool bRet = ::utl::UCBContentHelper::MakeFolder( *m_pContent, pElement->m_aOriginalName, aNewF…
3154 pRet->m_aName = pElement->m_aOriginalName;
3155 pElement->m_xStorage = pRet;
3169 const UCBStorageElement_Impl *pElement = FindElement_Impl( rEleName ); local
3170 return ( pElement && pElement->m_bIsStorage );
3178 const UCBStorageElement_Impl *pElement = FindElement_Impl( rEleName ); local
3179 return ( pElement && !pElement->m_bIsStorage );
3186 const UCBStorageElement_Impl *pElement = FindElement_Impl( rEleName ); local
3187 return ( pElement != NULL );
3195 UCBStorageElement_Impl *pElement = FindElement_Impl( rEleName ); local
3196 if ( pElement )
3198 pElement->m_bIsRemoved = sal_True;
3203 return ( pElement != NULL );
3218 UCBStorageElement_Impl *pElement = FindElement_Impl( rEleName ); local
3219 if ( pElement )
3221 pElement->m_aName = rNewName;
3226 return pElement != NULL;