LibreOffice Module sot (master) 1
|
#include <stg.hxx>
Public Member Functions | |
UCBStorage (const ::ucbhelper::Content &rContent, const OUString &rName, StreamMode nMode, bool bDirect, bool bIsRoot) | |
UCBStorage (const OUString &rName, StreamMode nMode, bool bDirect, bool bIsRoot) | |
UCBStorage (const OUString &rName, StreamMode nMode, bool bDirect, bool bIsRoot, bool bIsRepair, css::uno::Reference< css::ucb::XProgressHandler > const &xProgressHandler) | |
UCBStorage (UCBStorage_Impl *) | |
UCBStorage (SvStream &rStrm, bool bDirect) | |
virtual const OUString & | GetName () const override |
virtual bool | IsRoot () const override |
virtual void | SetClassId (const ClsId &) override |
virtual const ClsId & | GetClassId () const override |
virtual void | SetDirty () override |
virtual void | SetClass (const SvGlobalName &rClass, SotClipboardFormatId nOriginalClipFormat, const OUString &rUserTypeName) override |
virtual SvGlobalName | GetClassName () override |
virtual SotClipboardFormatId | GetFormat () override |
virtual OUString | GetUserName () override |
virtual void | FillInfoList (SvStorageInfoList *) const override |
virtual bool | CopyTo (BaseStorage *pDestStg) const override |
virtual bool | Commit () final override |
virtual bool | Revert () override |
virtual BaseStorageStream * | OpenStream (const OUString &rEleName, StreamMode=StreamMode::STD_READWRITE, bool bDirect=true) override |
virtual BaseStorage * | OpenStorage (const OUString &rEleName, StreamMode=StreamMode::STD_READWRITE, bool bDirect=false) override |
virtual BaseStorage * | OpenUCBStorage (const OUString &rEleName, StreamMode=StreamMode::STD_READWRITE, bool bDirect=false) override |
virtual BaseStorage * | OpenOLEStorage (const OUString &rEleName, StreamMode=StreamMode::STD_READWRITE, bool bDirect=false) override |
virtual bool | IsStream (const OUString &rEleName) const override |
virtual bool | IsStorage (const OUString &rEleName) const override |
virtual bool | IsContained (const OUString &rEleName) const override |
virtual void | Remove (const OUString &rEleName) override |
virtual bool | CopyTo (const OUString &rEleName, BaseStorage *pDest, const OUString &rNewName) override |
virtual bool | ValidateFAT () override |
virtual bool | Validate (bool=false) const override |
virtual bool | ValidateMode (StreamMode) const override |
virtual bool | Equals (const BaseStorage &rStream) const override |
UCBStorageElement_Impl * | FindElement_Impl (std::u16string_view rName) const |
bool | CopyStorageElement_Impl (UCBStorageElement_Impl const &rElement, BaseStorage *pDest, const OUString &rNew) const |
BaseStorage * | OpenStorage_Impl (const OUString &rEleName, StreamMode, bool bDirect, bool bForceUCBStorage) |
virtual const OUString & | GetName () const =0 |
virtual bool | IsRoot () const =0 |
virtual void | SetClassId (const ClsId &)=0 |
virtual const ClsId & | GetClassId () const =0 |
virtual void | SetDirty ()=0 |
virtual void | SetClass (const SvGlobalName &rClass, SotClipboardFormatId nOriginalClipFormat, const OUString &rUserTypeName)=0 |
virtual SvGlobalName | GetClassName ()=0 |
virtual SotClipboardFormatId | GetFormat ()=0 |
virtual OUString | GetUserName ()=0 |
virtual void | FillInfoList (SvStorageInfoList *) const =0 |
virtual bool | CopyTo (BaseStorage *pDestStg) const =0 |
virtual bool | Commit ()=0 |
virtual bool | Revert ()=0 |
virtual BaseStorageStream * | OpenStream (const OUString &rEleName, StreamMode=StreamMode::STD_READWRITE, bool bDirect=true)=0 |
virtual BaseStorage * | OpenStorage (const OUString &rEleName, StreamMode=StreamMode::STD_READWRITE, bool bDirect=false)=0 |
virtual BaseStorage * | OpenUCBStorage (const OUString &rEleName, StreamMode=StreamMode::STD_READWRITE, bool bDirect=false)=0 |
virtual BaseStorage * | OpenOLEStorage (const OUString &rEleName, StreamMode=StreamMode::STD_READWRITE, bool bDirect=false)=0 |
virtual bool | IsStream (const OUString &rEleName) const =0 |
virtual bool | IsStorage (const OUString &rEleName) const =0 |
virtual bool | IsContained (const OUString &rEleName) const =0 |
virtual void | Remove (const OUString &rEleName)=0 |
virtual bool | CopyTo (const OUString &rEleName, BaseStorage *pDest, const OUString &rNewName)=0 |
virtual bool | ValidateFAT ()=0 |
virtual bool | Equals (const BaseStorage &rStream) const =0 |
Public Member Functions inherited from StorageBase | |
virtual bool | Validate (bool=false) const =0 |
virtual bool | ValidateMode (StreamMode) const =0 |
void | ResetError () const |
void | SetError (ErrCode) const |
ErrCode | GetError () const |
bool | Good () const |
StreamMode | GetMode () const |
void | SetAutoCommit (bool bSet) |
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 |
Static Public Member Functions | |
static bool | IsStorageFile (SvStream *) |
Private Member Functions | |
virtual | ~UCBStorage () override |
Private Attributes | |
UCBStorage_Impl * | pImp |
Additional Inherited Members | |
Protected Member Functions inherited from StorageBase | |
StorageBase () | |
virtual | ~StorageBase () override |
Protected Member Functions inherited from SvRefBase | |
virtual | ~SvRefBase () COVERITY_NOEXCEPT_FALSE |
Protected Attributes inherited from StorageBase | |
ErrCode | m_nError |
StreamMode | m_nMode |
bool | m_bAutoCommit |
|
overrideprivatevirtual |
Definition at line 1423 of file ucbstorage.cxx.
References Commit(), UCBStorage_Impl::m_bDirect, UCBStorage_Impl::m_bIsRoot, UCBStorage_Impl::m_pAntiImpl, UCBStorage_Impl::m_pSource, UCBStorage_Impl::m_pTempFile, pImp, and SvRefBase::ReleaseRef().
UCBStorage::UCBStorage | ( | const ::ucbhelper::Content & | rContent, |
const OUString & | rName, | ||
StreamMode | nMode, | ||
bool | bDirect, | ||
bool | bIsRoot | ||
) |
Definition at line 1384 of file ucbstorage.cxx.
References SvRefBase::AddFirstRef(), UCBStorage_Impl::Init(), StorageBase::m_nMode, UCBStorage_Impl::m_nMode, and pImp.
Referenced by OpenStorage_Impl().
UCBStorage::UCBStorage | ( | const OUString & | rName, |
StreamMode | nMode, | ||
bool | bDirect, | ||
bool | bIsRoot | ||
) |
Definition at line 1404 of file ucbstorage.cxx.
References SvRefBase::AddFirstRef(), UCBStorage_Impl::Init(), StorageBase::m_nMode, UCBStorage_Impl::m_nMode, and pImp.
UCBStorage::UCBStorage | ( | const OUString & | rName, |
StreamMode | nMode, | ||
bool | bDirect, | ||
bool | bIsRoot, | ||
bool | bIsRepair, | ||
css::uno::Reference< css::ucb::XProgressHandler > const & | xProgressHandler | ||
) |
References GetFormat(), and GetName().
UCBStorage::UCBStorage | ( | UCBStorage_Impl * | pImpl | ) |
Definition at line 1414 of file ucbstorage.cxx.
References SvRefBase::AddFirstRef(), UCBStorage_Impl::m_nError, StorageBase::m_nMode, UCBStorage_Impl::m_nMode, UCBStorage_Impl::m_pAntiImpl, pImp, and StorageBase::SetError().
UCBStorage::UCBStorage | ( | SvStream & | rStrm, |
bool | bDirect | ||
) |
Definition at line 1373 of file ucbstorage.cxx.
References SvRefBase::AddFirstRef(), UCBStorage_Impl::Init(), StorageBase::m_nMode, UCBStorage_Impl::m_nMode, pImp, and rStrm.
|
finaloverridevirtual |
Implements BaseStorage.
Definition at line 2483 of file ucbstorage.cxx.
References UCBStorage_Impl::Commit(), COMMIT_RESULT_FAILURE, UCBStorage_Impl::m_bCommited, UCBStorage_Impl::m_bIsRoot, and pImp.
Referenced by ~UCBStorage().
bool UCBStorage::CopyStorageElement_Impl | ( | UCBStorageElement_Impl const & | rElement, |
BaseStorage * | pDest, | ||
const OUString & | rNew | ||
) | const |
Definition at line 2339 of file ucbstorage.cxx.
References BaseStorage::CopyTo(), BaseStorageStream::CopyTo(), tools::SvRef< typename T >::get(), BaseStorage::GetClassId(), BaseStorage::GetClassName(), StorageBase::GetError(), BaseStorage::GetFormat(), StorageBase::Good(), tools::SvRef< typename T >::is(), UCBStorageElement_Impl::m_aName, UCBStorage_Impl::m_aUserTypeName, UCBStorage_Impl::m_bDirect, UCBStorageElement_Impl::m_bIsStorage, UCBStorage_Impl::m_nMode, UCBStorageElement_Impl::m_xStorage, UCBStorageElement_Impl::m_xStream, BaseStorage::OpenOLEStorage(), OpenStorage(), OpenStream(), BaseStorage::OpenStream(), BaseStorage::OpenUCBStorage(), pImp, and StorageBase::SetError().
Referenced by CopyTo().
|
overridevirtual |
Implements BaseStorage.
Definition at line 2428 of file ucbstorage.cxx.
References CopyStorageElement_Impl(), DBG_ASSERT, UCBStorage_Impl::GetChildrenList(), GetClassId(), StorageBase::GetError(), StorageBase::Good(), i, UCBStorage_Impl::m_aClassId, UCBStorage_Impl::m_aUserTypeName, UCBStorage_Impl::m_nFormat, pImp, BaseStorage::SetClass(), BaseStorage::SetClassId(), BaseStorage::SetDirty(), StorageBase::SetError(), and size.
|
overridevirtual |
Implements BaseStorage.
Definition at line 2459 of file ucbstorage.cxx.
References CopyStorageElement_Impl(), FindElement_Impl(), StorageBase::SetError(), and SVSTREAM_FILE_NOT_FOUND.
|
overridevirtual |
Implements BaseStorage.
Definition at line 2809 of file ucbstorage.cxx.
|
overridevirtual |
Implements BaseStorage.
Definition at line 2322 of file ucbstorage.cxx.
References UCBStorage_Impl::GetChildrenList(), and pImp.
UCBStorageElement_Impl * UCBStorage::FindElement_Impl | ( | std::u16string_view | rName | ) | const |
Definition at line 2417 of file ucbstorage.cxx.
References DBG_ASSERT, UCBStorage_Impl::GetChildrenList(), and pImp.
Referenced by CopyTo(), IsContained(), IsStorage(), IsStream(), OpenStorage_Impl(), OpenStream(), and Remove().
|
overridevirtual |
Implements BaseStorage.
Definition at line 2301 of file ucbstorage.cxx.
References SvGlobalName::GetCLSID(), UCBStorage_Impl::m_aClassId, and pImp.
Referenced by CopyTo().
|
overridevirtual |
Implements BaseStorage.
Definition at line 2306 of file ucbstorage.cxx.
References UCBStorage_Impl::m_aClassId, and pImp.
|
overridevirtual |
Implements BaseStorage.
Definition at line 2311 of file ucbstorage.cxx.
References UCBStorage_Impl::m_nFormat, and pImp.
|
overridevirtual |
Implements BaseStorage.
Definition at line 2253 of file ucbstorage.cxx.
References UCBStorage_Impl::m_aName, and pImp.
|
overridevirtual |
Implements BaseStorage.
Definition at line 2316 of file ucbstorage.cxx.
References UCBStorage_Impl::m_aUserTypeName, and pImp.
|
overridevirtual |
Implements BaseStorage.
Definition at line 2761 of file ucbstorage.cxx.
References FindElement_Impl().
|
overridevirtual |
Implements BaseStorage.
Definition at line 2258 of file ucbstorage.cxx.
References UCBStorage_Impl::m_bIsRoot, and pImp.
|
overridevirtual |
Implements BaseStorage.
Definition at line 2743 of file ucbstorage.cxx.
References FindElement_Impl(), and UCBStorageElement_Impl::m_bIsStorage.
|
static |
Definition at line 2815 of file ucbstorage.cxx.
References nPos, SvStream::ReadUInt32(), SvStream::Seek(), SvStream::Tell(), and SvStream::TellEnd().
Referenced by SotStorage::CreateStorage(), SotStorage::IsStorageFile(), and SotStorage::SotStorage().
|
overridevirtual |
Implements BaseStorage.
Definition at line 2752 of file ucbstorage.cxx.
References FindElement_Impl(), and UCBStorageElement_Impl::m_bIsStorage.
|
overridevirtual |
Implements BaseStorage.
Definition at line 2578 of file ucbstorage.cxx.
References OpenStorage_Impl().
|
overridevirtual |
Implements BaseStorage.
Definition at line 2586 of file ucbstorage.cxx.
References OpenStorage_Impl().
Referenced by CopyStorageElement_Impl().
BaseStorage * UCBStorage::OpenStorage_Impl | ( | const OUString & | rEleName, |
StreamMode | nMode, | ||
bool | bDirect, | ||
bool | bForceUCBStorage | ||
) |
Definition at line 2594 of file ucbstorage.cxx.
References aName, Content, FindElement_Impl(), tools::SvRef< typename T >::get(), StorageBase::GetError(), INetURLObject::GetMainURL(), comphelper::getProcessComponentContext(), tools::SvRef< typename T >::is(), UCBStorage_Impl::m_aChildrenList, UCBStorage_Impl::m_aName, UCBStorageElement_Impl::m_aOriginalName, UCBStorage_Impl::m_aURL, UCBStorageElement_Impl::m_bIsFolder, UCBStorageElement_Impl::m_bIsInserted, UCBStorage_Impl::m_bIsLinked, UCBStorage_Impl::m_bIsRoot, UCBStorageElement_Impl::m_bIsStorage, UCBStorage_Impl::m_bListCreated, UCBStorage_Impl::m_bRepairPackage, UCBStorage_Impl::m_nMode, UCBStorage_Impl::m_oContent, UCBStorage_Impl::m_xProgressHandler, UCBStorageElement_Impl::m_xStorage, UCBStorageElement_Impl::m_xStream, INetURLObject::NONE, UCBStorage_Impl::OpenStorage(), OpenStream(), UCBStorageStream::pImp, pImp, INetURLObject::removeSegment(), StorageBase::SetError(), SVSTREAM_ACCESS_DENIED, SVSTREAM_CANNOT_MAKE, SVSTREAM_FILE_NOT_FOUND, and UCBStorage().
Referenced by OpenOLEStorage(), OpenStorage(), and OpenUCBStorage().
|
overridevirtual |
Implements BaseStorage.
Definition at line 2500 of file ucbstorage.cxx.
References aName, FindElement_Impl(), tools::SvRef< typename T >::get(), StorageBase::GetError(), tools::SvRef< typename T >::is(), UCBStorage_Impl::m_aChildrenList, UCBStorageStream_Impl::m_aName, UCBStorage_Impl::m_aURL, UCBStorageElement_Impl::m_bIsFolder, UCBStorageElement_Impl::m_bIsInserted, UCBStorage_Impl::m_bRepairPackage, UCBStorage_Impl::m_xProgressHandler, UCBStorageElement_Impl::m_xStream, UCBStorage_Impl::OpenStream(), UCBStorageStream::pImp, pImp, StorageBase::SetError(), SVSTREAM_ACCESS_DENIED, SVSTREAM_CANNOT_MAKE, and SVSTREAM_FILE_NOT_FOUND.
Referenced by CopyStorageElement_Impl(), and OpenStorage_Impl().
|
overridevirtual |
Implements BaseStorage.
Definition at line 2570 of file ucbstorage.cxx.
References OpenStorage_Impl().
|
overridevirtual |
Implements BaseStorage.
Definition at line 2769 of file ucbstorage.cxx.
References FindElement_Impl(), UCBStorageElement_Impl::m_bIsRemoved, StorageBase::SetError(), and SVSTREAM_FILE_NOT_FOUND.
|
overridevirtual |
Implements BaseStorage.
Definition at line 2494 of file ucbstorage.cxx.
References pImp, and UCBStorage_Impl::Revert().
|
overridevirtual |
Implements BaseStorage.
Definition at line 2267 of file ucbstorage.cxx.
References SotExchange::GetFormatDataFlavor(), UCBStorage_Impl::m_aClassId, UCBStorage_Impl::m_aContentType, UCBStorage_Impl::m_aUserTypeName, UCBStorage_Impl::m_nFormat, and pImp.
|
overridevirtual |
Implements BaseStorage.
Definition at line 2280 of file ucbstorage.cxx.
References SotExchange::GetFormatDataFlavor(), GetFormatId_Impl(), UCBStorage_Impl::m_aClassId, UCBStorage_Impl::m_aContentType, UCBStorage_Impl::m_aUserTypeName, UCBStorage_Impl::m_nFormat, NONE, and pImp.
|
overridevirtual |
Implements BaseStorage.
Definition at line 2263 of file ucbstorage.cxx.
|
overridevirtual |
Implements StorageBase.
Definition at line 2789 of file ucbstorage.cxx.
References UCBStorage_Impl::m_nMode, and pImp.
|
overridevirtual |
Implements BaseStorage.
Definition at line 2783 of file ucbstorage.cxx.
|
overridevirtual |
|
private |
Definition at line 241 of file stg.hxx.
Referenced by Commit(), CopyStorageElement_Impl(), CopyTo(), FillInfoList(), FindElement_Impl(), GetClassId(), GetClassName(), GetFormat(), GetName(), GetUserName(), IsRoot(), OpenStorage_Impl(), OpenStream(), Revert(), SetClass(), SetClassId(), UCBStorage(), Validate(), and ~UCBStorage().