LibreOffice Module sot (master) 1
|
Public Member Functions | |
UCBStorage_Impl (const ::ucbhelper::Content &, const OUString &, StreamMode, UCBStorage *, bool, bool, bool=false, Reference< XProgressHandler > const &=Reference< XProgressHandler >()) | |
UCBStorage_Impl (const OUString &, StreamMode, UCBStorage *, bool, bool, bool, Reference< XProgressHandler > const &) | |
UCBStorage_Impl (SvStream &, UCBStorage *, bool) | |
void | Init () |
sal_Int16 | Commit () |
void | Revert () |
bool | Insert (::ucbhelper::Content *pContent) |
UCBStorage_Impl * | OpenStorage (UCBStorageElement_Impl *pElement, StreamMode nMode, bool bDirect) |
void | OpenStream (UCBStorageElement_Impl *, StreamMode, bool) |
void | SetProps (const Sequence< Sequence< PropertyValue > > &rSequence, const OUString &) |
void | GetProps (sal_Int32 &, Sequence< Sequence< PropertyValue > > &rSequence, const OUString &) |
sal_Int32 | GetObjectCount () |
void | ReadContent () |
void | CreateContent () |
::ucbhelper::Content * | GetContent () |
UCBStorageElementList_Impl & | GetChildrenList () |
void | SetError (ErrCode nError) |
Public Member Functions inherited from SvRefBase | |
SvRefBase () | |
SvRefBase (const SvRefBase &) | |
SvRefBase & | operator= (const SvRefBase &) |
void | RestoreNoDelete () |
void | AddNextRef () |
void | AddFirstRef () |
void | ReleaseRef () |
unsigned int | GetRefCount () const |
Public Attributes | |
UCBStorage * | m_pAntiImpl |
OUString | m_aName |
OUString | m_aURL |
OUString | m_aContentType |
OUString | m_aOriginalContentType |
std::optional<::ucbhelper::Content > | m_oContent |
std::unique_ptr<::utl::TempFileNamed > | m_pTempFile |
SvStream * | m_pSource |
ErrCode | m_nError |
StreamMode | m_nMode |
bool | m_bCommited |
bool | m_bDirect |
bool | m_bIsRoot |
bool | m_bIsLinked |
bool | m_bListCreated |
SotClipboardFormatId | m_nFormat |
OUString | m_aUserTypeName |
SvGlobalName | m_aClassId |
UCBStorageElementList_Impl | m_aChildrenList |
bool | m_bRepairPackage |
Reference< XProgressHandler > | m_xProgressHandler |
Private Member Functions | |
virtual | ~UCBStorage_Impl () override |
Additional Inherited Members | |
Protected Member Functions inherited from SvRefBase | |
virtual | ~SvRefBase () COVERITY_NOEXCEPT_FALSE |
Definition at line 452 of file ucbstorage.cxx.
|
overrideprivatevirtual |
Definition at line 1906 of file ucbstorage.cxx.
References m_aChildrenList, m_oContent, and m_pTempFile.
UCBStorage_Impl::UCBStorage_Impl | ( | const ::ucbhelper::Content & | rContent, |
const OUString & | rName, | ||
StreamMode | nMode, | ||
UCBStorage * | pStorage, | ||
bool | bDirect, | ||
bool | bIsRoot, | ||
bool | bIsRepair = false , |
||
Reference< XProgressHandler > const & | xProgressHandler = Reference< XProgressHandler >() |
||
) |
Definition at line 1433 of file ucbstorage.cxx.
References aName, DBG_ASSERT, ERRCODE_NONE, m_aName, m_aURL, m_bIsRoot, m_nFormat, m_pTempFile, m_xProgressHandler, and NONE.
Referenced by OpenStorage().
UCBStorage_Impl::UCBStorage_Impl | ( | const OUString & | rName, |
StreamMode | nMode, | ||
UCBStorage * | pStorage, | ||
bool | bDirect, | ||
bool | bIsRoot, | ||
bool | bIsRepair, | ||
Reference< XProgressHandler > const & | xProgressHandler | ||
) |
Definition at line 1462 of file ucbstorage.cxx.
References INetURLObject::All, aName, utl::UcbStreamHelper::CreateStream(), DBG_ASSERT, INetURLObject::encode(), ERRCODE_NONE, m_aName, m_aURL, m_bIsLinked, m_bIsRoot, m_nFormat, m_nMode, m_pTempFile, m_xProgressHandler, NONE, and INetURLObject::PART_AUTHORITY.
UCBStorage_Impl::UCBStorage_Impl | ( | SvStream & | rStream, |
UCBStorage * | pStorage, | ||
bool | bDirect | ||
) |
Definition at line 1508 of file ucbstorage.cxx.
References INetURLObject::All, utl::UcbStreamHelper::CreateStream(), DBG_ASSERT, INetURLObject::encode(), ERRCODE_NONE, SvStream::Flush(), SvStream::IsWritable(), m_aURL, m_nFormat, m_nMode, m_pSource, m_pTempFile, NONE, INetURLObject::PART_AUTHORITY, SvStream::ReadStream(), and SvStream::Seek().
sal_Int16 UCBStorage_Impl::Commit | ( | ) |
Definition at line 1968 of file ucbstorage.cxx.
References aName, Any, aURL, COMMIT_RESULT_FAILURE, COMMIT_RESULT_NOTHING_TO_DO, COMMIT_RESULT_SUCCESS, Content, utl::UcbStreamHelper::CreateStream(), ERRCODE_IO_ACCESSDENIED, ERRCODE_IO_CANTREAD, ERRCODE_IO_CANTWRITE, ERRCODE_IO_GENERAL, ERRCODE_IO_NOTEXISTS, Exception, ucbhelper::Content::executeCommand(), GetObjectCount(), comphelper::getProcessComponentContext(), GetProps(), i, m_aChildrenList, m_aContentType, m_aURL, m_bCommited, m_bDirect, m_bIsLinked, m_bIsRoot, m_nMode, m_oContent, m_pSource, m_pTempFile, nCount, nOpenFiles, nOpenStreams, SAL_INFO, SvStream::Seek(), SetError(), ucbhelper::Content::setPropertyValue(), and SvStream::SetStreamSize().
Referenced by UCBStorage::Commit().
void UCBStorage_Impl::CreateContent | ( | ) |
Definition at line 1637 of file ucbstorage.cxx.
References comphelper::getProcessComponentContext(), m_aURL, m_bRepairPackage, m_oContent, m_xProgressHandler, SetError(), and SVSTREAM_CANNOT_MAKE.
Referenced by GetContent(), and Init().
|
inline |
Definition at line 505 of file ucbstorage.cxx.
References m_aChildrenList, m_nError, m_nMode, m_pAntiImpl, ReadContent(), StorageBase::ResetError(), and StorageBase::SetError().
Referenced by UCBStorage::CopyTo(), UCBStorage::FillInfoList(), and UCBStorage::FindElement_Impl().
|
inline |
Definition at line 499 of file ucbstorage.cxx.
References CreateContent(), and m_oContent.
Referenced by ReadContent().
sal_Int32 UCBStorage_Impl::GetObjectCount | ( | ) |
Definition at line 1784 of file ucbstorage.cxx.
References DBG_ASSERT, m_aChildrenList, and nCount.
Referenced by Commit().
void UCBStorage_Impl::GetProps | ( | sal_Int32 & | nProps, |
Sequence< Sequence< PropertyValue > > & | rSequence, | ||
const OUString & | rPath | ||
) |
Definition at line 1869 of file ucbstorage.cxx.
References DBG_ASSERT, m_aChildrenList, m_aContentType, m_aName, m_bIsRoot, and comphelper::makePropertyValue().
Referenced by Commit().
void UCBStorage_Impl::Init | ( | void | ) |
Definition at line 1551 of file ucbstorage.cxx.
References Any, INetURLObject::Append(), CreateContent(), utl::UcbStreamHelper::CreateStream(), ERRCODE_NONE, Exception, GetClassId_Impl(), SotExchange::GetFormat(), SotExchange::GetFormatDataFlavor(), INetURLObject::GetLastName(), INetURLObject::GetMainURL(), m_aClassId, m_aContentType, m_aName, m_aOriginalContentType, m_aURL, m_aUserTypeName, m_bIsLinked, m_bIsRoot, m_nError, m_nFormat, m_oContent, INetURLObject::NONE, ReadContent(), SAL_WARN, SetProps(), and u.
Referenced by OpenStorage(), and UCBStorage::UCBStorage().
bool UCBStorage_Impl::Insert | ( | ::ucbhelper::Content * | pContent | ) |
Definition at line 1914 of file ucbstorage.cxx.
References Content, ERRCODE_IO_GENERAL, Exception, ucbhelper::Content::insertNewContent(), m_oContent, Name, ucbhelper::Content::queryCreatableContentsInfo(), and SetError().
UCBStorage_Impl * UCBStorage_Impl::OpenStorage | ( | UCBStorageElement_Impl * | pElement, |
StreamMode | nMode, | ||
bool | bDirect | ||
) |
Definition at line 2708 of file ucbstorage.cxx.
References aName, Content, Init(), m_aName, UCBStorageElement_Impl::m_aOriginalName, m_aURL, UCBStorageElement_Impl::m_bIsFolder, m_bIsLinked, m_bIsRoot, UCBStorageElement_Impl::m_bIsStorage, m_bRepairPackage, m_oContent, m_xProgressHandler, UCBStorageElement_Impl::m_xStorage, and UCBStorage_Impl().
Referenced by UCBStorage::OpenStorage_Impl(), and ReadContent().
void UCBStorage_Impl::OpenStream | ( | UCBStorageElement_Impl * | pElement, |
StreamMode | nMode, | ||
bool | bDirect | ||
) |
Definition at line 2564 of file ucbstorage.cxx.
References aName, UCBStorageElement_Impl::m_aOriginalName, m_aURL, m_bRepairPackage, m_xProgressHandler, and UCBStorageElement_Impl::m_xStream.
Referenced by UCBStorage::OpenStream(), and ReadContent().
void UCBStorage_Impl::ReadContent | ( | ) |
Definition at line 1667 of file ucbstorage.cxx.
References aName, Any, ERRCODE_IO_BROKENPACKAGE, ERRCODE_IO_GENERAL, ERRCODE_IO_WRONGFORMAT, Exception, tools::SvRef< typename T >::get(), GetContent(), comphelper::getProcessComponentContext(), ucbhelper::Content::getPropertyValue(), tools::SvRef< typename T >::is(), m_aChildrenList, m_aClassId, m_aURL, m_bDirect, m_bIsLinked, UCBStorageElement_Impl::m_bIsStorage, m_bListCreated, m_bRepairPackage, m_nMode, m_oContent, m_xProgressHandler, UCBStorageElement_Impl::m_xStorage, UCBStorageElement_Impl::m_xStream, OpenStorage(), OpenStream(), and SetError().
Referenced by GetChildrenList(), and Init().
void UCBStorage_Impl::Revert | ( | ) |
Definition at line 2225 of file ucbstorage.cxx.
References i, and m_aChildrenList.
Referenced by UCBStorage::Revert().
void UCBStorage_Impl::SetError | ( | ErrCode | nError | ) |
Definition at line 1775 of file ucbstorage.cxx.
References m_nError, m_pAntiImpl, and StorageBase::SetError().
Referenced by Commit(), CreateContent(), Insert(), and ReadContent().
void UCBStorage_Impl::SetProps | ( | const Sequence< Sequence< PropertyValue > > & | rSequence, |
const OUString & | rPath | ||
) |
Definition at line 1828 of file ucbstorage.cxx.
References DBG_ASSERT, Find_Impl(), GetClassId_Impl(), SotExchange::GetFormat(), SotExchange::GetFormatDataFlavor(), m_aChildrenList, m_aClassId, m_aContentType, m_aName, m_aOriginalContentType, m_aUserTypeName, m_bIsRoot, and m_nFormat.
Referenced by Init().
UCBStorageElementList_Impl UCBStorage_Impl::m_aChildrenList |
Definition at line 478 of file ucbstorage.cxx.
Referenced by Commit(), GetChildrenList(), GetObjectCount(), GetProps(), UCBStorage::OpenStorage_Impl(), UCBStorage::OpenStream(), ReadContent(), Revert(), SetProps(), and ~UCBStorage_Impl().
SvGlobalName UCBStorage_Impl::m_aClassId |
Definition at line 476 of file ucbstorage.cxx.
Referenced by UCBStorage::CopyTo(), UCBStorage::GetClassId(), UCBStorage::GetClassName(), Init(), ReadContent(), UCBStorage::SetClass(), UCBStorage::SetClassId(), and SetProps().
OUString UCBStorage_Impl::m_aContentType |
Definition at line 460 of file ucbstorage.cxx.
Referenced by Commit(), GetProps(), Init(), UCBStorage::SetClass(), UCBStorage::SetClassId(), and SetProps().
OUString UCBStorage_Impl::m_aName |
Definition at line 458 of file ucbstorage.cxx.
Referenced by UCBStorage::GetName(), GetProps(), Init(), OpenStorage(), UCBStorage::OpenStorage_Impl(), SetProps(), and UCBStorage_Impl().
OUString UCBStorage_Impl::m_aOriginalContentType |
Definition at line 461 of file ucbstorage.cxx.
Referenced by Init(), and SetProps().
OUString UCBStorage_Impl::m_aURL |
Definition at line 459 of file ucbstorage.cxx.
Referenced by Commit(), CreateContent(), Init(), OpenStorage(), UCBStorage::OpenStorage_Impl(), UCBStorage::OpenStream(), OpenStream(), ReadContent(), and UCBStorage_Impl().
OUString UCBStorage_Impl::m_aUserTypeName |
Definition at line 475 of file ucbstorage.cxx.
Referenced by UCBStorage::CopyStorageElement_Impl(), UCBStorage::CopyTo(), UCBStorage::GetUserName(), Init(), UCBStorage::SetClass(), UCBStorage::SetClassId(), and SetProps().
bool UCBStorage_Impl::m_bCommited |
Definition at line 467 of file ucbstorage.cxx.
Referenced by Commit(), and UCBStorage::Commit().
bool UCBStorage_Impl::m_bDirect |
Definition at line 468 of file ucbstorage.cxx.
Referenced by Commit(), UCBStorage::CopyStorageElement_Impl(), ReadContent(), and UCBStorage::~UCBStorage().
bool UCBStorage_Impl::m_bIsLinked |
Definition at line 472 of file ucbstorage.cxx.
Referenced by Commit(), Init(), OpenStorage(), UCBStorage::OpenStorage_Impl(), ReadContent(), and UCBStorage_Impl().
bool UCBStorage_Impl::m_bIsRoot |
Definition at line 471 of file ucbstorage.cxx.
Referenced by Commit(), UCBStorage::Commit(), GetProps(), Init(), UCBStorage::IsRoot(), OpenStorage(), UCBStorage::OpenStorage_Impl(), SetProps(), UCBStorage_Impl(), and UCBStorage::~UCBStorage().
bool UCBStorage_Impl::m_bListCreated |
Definition at line 473 of file ucbstorage.cxx.
Referenced by UCBStorage::OpenStorage_Impl(), and ReadContent().
bool UCBStorage_Impl::m_bRepairPackage |
Definition at line 480 of file ucbstorage.cxx.
Referenced by CreateContent(), OpenStorage(), UCBStorage::OpenStorage_Impl(), UCBStorage::OpenStream(), OpenStream(), and ReadContent().
ErrCode UCBStorage_Impl::m_nError |
Definition at line 465 of file ucbstorage.cxx.
Referenced by GetChildrenList(), Init(), SetError(), and UCBStorage::UCBStorage().
SotClipboardFormatId UCBStorage_Impl::m_nFormat |
Definition at line 474 of file ucbstorage.cxx.
Referenced by UCBStorage::CopyTo(), UCBStorage::GetFormat(), Init(), UCBStorage::SetClass(), UCBStorage::SetClassId(), and SetProps().
StreamMode UCBStorage_Impl::m_nMode |
Definition at line 466 of file ucbstorage.cxx.
Referenced by Commit(), UCBStorage::CopyStorageElement_Impl(), GetChildrenList(), UCBStorage::OpenStorage_Impl(), ReadContent(), UCBStorage::UCBStorage(), UCBStorage_Impl(), and UCBStorage::Validate().
std::optional<::ucbhelper::Content> UCBStorage_Impl::m_oContent |
Definition at line 462 of file ucbstorage.cxx.
Referenced by Commit(), CreateContent(), GetContent(), Init(), Insert(), OpenStorage(), UCBStorage::OpenStorage_Impl(), ReadContent(), and ~UCBStorage_Impl().
UCBStorage* UCBStorage_Impl::m_pAntiImpl |
Definition at line 456 of file ucbstorage.cxx.
Referenced by GetChildrenList(), SetError(), UCBStorage::UCBStorage(), and UCBStorage::~UCBStorage().
SvStream* UCBStorage_Impl::m_pSource |
Definition at line 464 of file ucbstorage.cxx.
Referenced by Commit(), UCBStorage_Impl(), and UCBStorage::~UCBStorage().
std::unique_ptr<::utl::TempFileNamed> UCBStorage_Impl::m_pTempFile |
Definition at line 463 of file ucbstorage.cxx.
Referenced by Commit(), UCBStorage_Impl(), UCBStorage::~UCBStorage(), and ~UCBStorage_Impl().
Reference< XProgressHandler > UCBStorage_Impl::m_xProgressHandler |
Definition at line 481 of file ucbstorage.cxx.
Referenced by CreateContent(), OpenStorage(), UCBStorage::OpenStorage_Impl(), UCBStorage::OpenStream(), OpenStream(), and ReadContent().