Lines Matching refs:pElement

796 void OStorage_Impl::CopyStorageElement( SotElement_Impl* pElement,  in CopyStorageElement()  argument
811 && !( pElement->m_bIsStorage && xDest->isStorageElement( aName ) ) ) in CopyStorageElement()
814 if ( pElement->m_bIsStorage ) in CopyStorageElement()
822 if ( !pElement->m_pStorage ) in CopyStorageElement()
824 OpenSubStorage( pElement, embed::ElementModes::READ ); in CopyStorageElement()
825 if ( !pElement->m_pStorage ) in CopyStorageElement()
829 pElement->m_pStorage->CopyToStorage( xSubDest, bDirect ); in CopyStorageElement()
833 if ( !pElement->m_pStream ) in CopyStorageElement()
835 OpenSubStream( pElement ); in CopyStorageElement()
836 if ( !pElement->m_pStream ) in CopyStorageElement()
840 if ( !pElement->m_pStream->IsEncrypted() ) in CopyStorageElement()
846 uno::Sequence< beans::PropertyValue > aSrcPkgProps = pElement->m_pStream->GetStreamProperties(); in CopyStorageElement()
863 aStrProps[nNum-1].Value <<= (sal_Bool)( pElement->m_pStream->UsesCommonEncryption_Impl() ); in CopyStorageElement()
886 if ( pElement->m_pStream->HasTempFile_Impl() || !pElement->m_pStream->m_xPackageStream.is() ) in CopyStorageElement()
888 OSL_ENSURE( pElement->m_pStream->m_xPackageStream.is(), "No package stream!" ); in CopyStorageElement()
891 xInputToInsert = pElement->m_pStream->GetTempFileAsInputStream(); in CopyStorageElement()
898 xInputToInsert = pElement->m_pStream->m_xPackageStream->getDataStream(); in CopyStorageElement()
913 pElement->m_pStream->CopyInternallyTo_Impl( xSubStr ); in CopyStorageElement()
921 else if ( pElement->m_pStream->HasCachedEncryptionData() in CopyStorageElement()
922 && ( pElement->m_pStream->IsModified() || pElement->m_pStream->HasWriteOwner_Impl() ) ) in CopyStorageElement()
937 …if ( bHasCommonEncryptionData && ::package::PackageEncryptionDatasEqual( pElement->m_pStream->GetC… in CopyStorageElement()
945 pElement->m_pStream->CopyInternallyTo_Impl( xDestStream ); in CopyStorageElement()
959 pElement->m_pStream->GetCachedEncryptionData().getAsConstNamedValueList() ); in CopyStorageElement()
962pElement->m_pStream->CopyInternallyTo_Impl( xSubStr, pElement->m_pStream->GetCachedEncryptionData(… in CopyStorageElement()
973 …uno::Reference< io::XStream > xOwnStream = pElement->m_pStream->GetStream( embed::ElementModes::RE… in CopyStorageElement()
996 uno::Reference< io::XInputStream > xRawInStream = pElement->m_pStream->GetRawInStream(); in CopyStorageElement()
1571 void OStorage_Impl::OpenSubStorage( SotElement_Impl* pElement, sal_Int32 nStorageMode ) in OpenSubStorage() argument
1573 OSL_ENSURE( pElement, "pElement is not set!\n" ); in OpenSubStorage()
1574 OSL_ENSURE( pElement->m_bIsStorage, "Storage flag is not set!\n" ); in OpenSubStorage()
1578 if ( !pElement->m_pStorage ) in OpenSubStorage()
1580 OSL_ENSURE( !pElement->m_bIsInserted, "Inserted element must be created already!\n" ); in OpenSubStorage()
1583 m_xPackageFolder->getByName( pElement->m_aOriginalName ) >>= xTunnel; in OpenSubStorage()
1594pElement->m_pStorage = new OStorage_Impl( this, nStorageMode, xPackageSubFolder, m_xPackage, m_xFa… in OpenSubStorage()
1599 void OStorage_Impl::OpenSubStream( SotElement_Impl* pElement ) in OpenSubStream() argument
1601 OSL_ENSURE( pElement, "pElement is not set!\n" ); in OpenSubStream()
1602 OSL_ENSURE( !pElement->m_bIsStorage, "Storage flag is set!\n" ); in OpenSubStream()
1606 if ( !pElement->m_pStream ) in OpenSubStream()
1608 OSL_ENSURE( !pElement->m_bIsInserted, "Inserted element must be created already!\n" ); in OpenSubStream()
1611 m_xPackageFolder->getByName( pElement->m_aOriginalName ) >>= xTunnel; in OpenSubStream()
1620pElement->m_pStream = new OWriteStream_Impl( this, xPackageSubStream, m_xPackage, m_xFactory, sal_… in OpenSubStream()
1647 void OStorage_Impl::RemoveElement( SotElement_Impl* pElement ) in RemoveElement() argument
1649 OSL_ENSURE( pElement, "Element must be provided!" ); in RemoveElement()
1651 if ( !pElement ) in RemoveElement()
1654 …if ( (pElement->m_pStorage && ( pElement->m_pStorage->m_pAntiImpl || !pElement->m_pStorage->m_aRea… in RemoveElement()
1655 …|| (pElement->m_pStream && ( pElement->m_pStream->m_pAntiImpl || !pElement->m_pStream->m_aInputStr… in RemoveElement()
1658 if ( pElement->m_bIsInserted ) in RemoveElement()
1660 m_aChildrenList.remove( pElement ); in RemoveElement()
1661 delete pElement; // ??? in RemoveElement()
1665 pElement->m_bIsRemoved = sal_True; in RemoveElement()
1666 ClearElement( pElement ); in RemoveElement()
1673 void OStorage_Impl::ClearElement( SotElement_Impl* pElement ) in ClearElement() argument
1675 if ( pElement->m_pStorage ) in ClearElement()
1677 delete pElement->m_pStorage; in ClearElement()
1678 pElement->m_pStorage = NULL; in ClearElement()
1681 if ( pElement->m_pStream ) in ClearElement()
1683 delete pElement->m_pStream; in ClearElement()
1684 pElement->m_pStream = NULL; in ClearElement()
1700 SotElement_Impl *pElement = FindElement( aStreamName ); in CloneStreamElement() local
1701 if ( !pElement ) in CloneStreamElement()
1706 else if ( pElement->m_bIsStorage ) in CloneStreamElement()
1709 if ( !pElement->m_pStream ) in CloneStreamElement()
1710 OpenSubStream( pElement ); in CloneStreamElement()
1712 if ( pElement->m_pStream && pElement->m_pStream->m_xPackageStream.is() ) in CloneStreamElement()
1724 pElement->m_pStream->GetCopyOfLastCommit( xTargetStream, aEncryptionData ); in CloneStreamElement()
1726 pElement->m_pStream->GetCopyOfLastCommit( xTargetStream ); in CloneStreamElement()
2197 SotElement_Impl *pElement = m_pImpl->FindElement( aStreamName ); in OpenStreamElement_Impl() local
2198 if ( !pElement ) in OpenStreamElement_Impl()
2207 pElement = m_pImpl->InsertStream( aStreamName, bEncr ); in OpenStreamElement_Impl()
2209 else if ( pElement->m_bIsStorage ) in OpenStreamElement_Impl()
2214 OSL_ENSURE( pElement, "In case element can not be created an exception must be thrown!" ); in OpenStreamElement_Impl()
2216 if ( !pElement->m_pStream ) in OpenStreamElement_Impl()
2217 m_pImpl->OpenSubStream( pElement ); in OpenStreamElement_Impl()
2219 if ( !pElement->m_pStream ) in OpenStreamElement_Impl()
2222 return pElement; in OpenStreamElement_Impl()
2507 SotElement_Impl *pElement = OpenStreamElement_Impl( aStreamName, nOpenMode, sal_False ); in openStreamElement() local
2508 …OSL_ENSURE( pElement && pElement->m_pStream, "In case element can not be created an exception must… in openStreamElement()
2510 xResult = pElement->m_pStream->GetStream( nOpenMode, sal_False ); in openStreamElement()
2632 SotElement_Impl *pElement = m_pImpl->FindElement( aStorName ); in openStorageElement() local
2633 if ( !pElement ) in openStorageElement()
2642 pElement = m_pImpl->InsertStorage( aStorName, nStorageMode ); in openStorageElement()
2644 else if ( !pElement->m_bIsStorage ) in openStorageElement()
2648 else if ( pElement->m_pStorage ) in openStorageElement()
2651 if ( pElement->m_pStorage->m_pAntiImpl ) in openStorageElement()
2655 else if ( !pElement->m_pStorage->m_aReadOnlyWrapList.empty() in openStorageElement()
2665 pElement->m_pStorage->m_nStorageMode = nStorageMode | embed::ElementModes::READ; in openStorageElement()
2669 … for ( SotElementList_Impl::iterator pElementIter = pElement->m_pStorage->m_aChildrenList.begin(); in openStorageElement()
2670 pElementIter != pElement->m_pStorage->m_aChildrenList.end(); ) in openStorageElement()
2681 if ( !pElement->m_pStorage ) in openStorageElement()
2682 m_pImpl->OpenSubStorage( pElement, nStorageMode ); in openStorageElement()
2684 if ( !pElement->m_pStorage ) in openStorageElement()
2688 OStorage* pResultStorage = new OStorage( pElement->m_pStorage, bReadOnlyWrap ); in openStorageElement()
2694 pElement->m_pStorage->SetReadOnlyWrap( *pResultStorage ); in openStorageElement()
2945 SotElement_Impl *pElement = m_pImpl->FindElement( aStorName ); in copyStorageElementLastCommitTo() local
2946 if ( !pElement ) in copyStorageElementLastCommitTo()
2951 else if ( !pElement->m_bIsStorage ) in copyStorageElementLastCommitTo()
2956 if ( !pElement->m_pStorage ) in copyStorageElementLastCommitTo()
2957 m_pImpl->OpenSubStorage( pElement, nStorageMode ); in copyStorageElementLastCommitTo()
2960 if ( pElement->m_pStorage ) in copyStorageElementLastCommitTo()
2965 pElement->m_pStorage->CopyLastCommitTo( xTargetStorage ); in copyStorageElementLastCommitTo()
3034 SotElement_Impl* pElement = NULL; in isStreamElement() local
3038 pElement = m_pImpl->FindElement( aElementName ); in isStreamElement()
3075 if ( !pElement ) in isStreamElement()
3078 return !pElement->m_bIsStorage; in isStreamElement()
3103 SotElement_Impl* pElement = NULL; in isStorageElement() local
3107 pElement = m_pImpl->FindElement( aElementName ); in isStorageElement()
3144 if ( !pElement ) in isStorageElement()
3147 return pElement->m_bIsStorage; in isStorageElement()
3181 SotElement_Impl* pElement = m_pImpl->FindElement( aElementName ); in removeElement() local
3183 if ( !pElement ) in removeElement()
3186 m_pImpl->RemoveElement( pElement ); in removeElement()
3281 SotElement_Impl* pElement = m_pImpl->FindElement( aElementName ); in renameElement() local
3282 if ( !pElement ) in renameElement()
3285 pElement->m_aName = aNewName; in renameElement()
3385 SotElement_Impl* pElement = m_pImpl->FindElement( aElementName ); in copyElementTo() local
3386 if ( !pElement ) in copyElementTo()
3396 m_pImpl->CopyStorageElement( pElement, xDest, aNewName, sal_False ); in copyElementTo()
3492 SotElement_Impl* pElement = m_pImpl->FindElement( aElementName ); in moveElementTo() local
3493 if ( !pElement ) in moveElementTo()
3503 m_pImpl->CopyStorageElement( pElement, xDest, aNewName, sal_False ); in moveElementTo()
3505 m_pImpl->RemoveElement( pElement ); in moveElementTo()
3605 SotElement_Impl *pElement = OpenStreamElement_Impl( aStreamName, nOpenMode, sal_True ); in openEncryptedStream() local
3606 …OSL_ENSURE( pElement && pElement->m_pStream, "In case element can not be created an exception must… in openEncryptedStream()
3608 xResult = pElement->m_pStream->GetStream( nOpenMode, aEncryptionData, sal_False ); in openEncryptedStream()
3805 SotElement_Impl* pElement = m_pImpl->FindElement( sStreamName ); in getPlainRawStreamElement() local
3806 if ( !pElement ) in getPlainRawStreamElement()
3809 if ( !pElement->m_pStream ) in getPlainRawStreamElement()
3811 m_pImpl->OpenSubStream( pElement ); in getPlainRawStreamElement()
3812 if ( !pElement->m_pStream ) in getPlainRawStreamElement()
3816 uno::Reference< io::XInputStream > xRawInStream = pElement->m_pStream->GetPlainRawInStream(); in getPlainRawStreamElement()
3915 SotElement_Impl* pElement = m_pImpl->FindElement( sStreamName ); in getRawEncrStreamElement() local
3916 if ( !pElement ) in getRawEncrStreamElement()
3919 if ( !pElement->m_pStream ) in getRawEncrStreamElement()
3921 m_pImpl->OpenSubStream( pElement ); in getRawEncrStreamElement()
3922 if ( !pElement->m_pStream ) in getRawEncrStreamElement()
3926 if ( !pElement->m_pStream->IsEncrypted() ) in getRawEncrStreamElement()
3929 uno::Reference< io::XInputStream > xRawInStream = pElement->m_pStream->GetRawInStream(); in getRawEncrStreamElement()
4040 SotElement_Impl* pElement = m_pImpl->FindElement( aStreamName ); in insertRawEncrStreamElement() local
4041 if ( pElement ) in insertRawEncrStreamElement()
4394 SotElement_Impl* pElement = m_pImpl->FindElement( aName ); in getByName() local
4395 if ( !pElement ) in getByName()
4398 if ( pElement->m_bIsStorage ) in getByName()
4496 SotElement_Impl* pElement = NULL; in hasByName() local
4499 pElement = m_pImpl->FindElement( aName ); in hasByName()
4519 return ( pElement != NULL ); in hasByName()
5707 SotElement_Impl* pElement = m_pImpl->FindElement( aStreamName ); in insertStreamElementDirect() local
5709 if ( pElement ) in insertStreamElementDirect()
5712 pElement = OpenStreamElement_Impl( aStreamName, embed::ElementModes::READWRITE, sal_False ); in insertStreamElementDirect()
5713 …OSL_ENSURE( pElement && pElement->m_pStream, "In case element can not be created an exception must… in insertStreamElementDirect()
5715 pElement->m_pStream->InsertStreamDirectly( xInStream, aProps ); in insertStreamElementDirect()
5802 SotElement_Impl* pElement = m_pImpl->FindElement( aElementName ); in copyElementDirectlyTo() local
5803 if ( !pElement ) in copyElementDirectlyTo()
5815 m_pImpl->CopyStorageElement( pElement, xStorDest, aNewName, sal_True ); in copyElementDirectlyTo()
6057 SotElement_Impl *pElement = m_pImpl->FindElement( aElementName ); in getElementPropertyValue() local
6058 if ( !pElement ) in getElementPropertyValue()
6062 …if ( !pElement->m_bIsStorage || m_pData->m_nStorageType != embed::StorageFormats::PACKAGE || !aPro… in getElementPropertyValue()
6065 if ( !pElement->m_pStorage ) in getElementPropertyValue()
6066 m_pImpl->OpenSubStorage( pElement, embed::ElementModes::READ ); in getElementPropertyValue()
6068 if ( !pElement->m_pStorage ) in getElementPropertyValue()
6071 pElement->m_pStorage->ReadContents(); in getElementPropertyValue()
6072 return uno::makeAny( pElement->m_pStorage->m_aMediaType ); in getElementPropertyValue()
6257 SotElement_Impl *pElement = OpenStreamElement_Impl( aStreamPath, nOpenMode, sal_False ); in openStreamElementByHierarchicalName() local
6258 …OSL_ENSURE( pElement && pElement->m_pStream, "In case element can not be created an exception must… in openStreamElementByHierarchicalName()
6261 pElement->m_pStream->GetStream( nOpenMode, sal_True ), in openStreamElementByHierarchicalName()
6372 SotElement_Impl *pElement = OpenStreamElement_Impl( aStreamPath, nOpenMode, sal_True ); in openEncryptedStreamByHierarchicalName() local
6373 …OSL_ENSURE( pElement && pElement->m_pStream, "In case element can not be created an exception must… in openEncryptedStreamByHierarchicalName()
6376 pElement->m_pStream->GetStream( nOpenMode, aEncryptionData, sal_True ), in openEncryptedStreamByHierarchicalName()