LibreOffice Module sot (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
UCBStorage Class Referencefinal

#include <stg.hxx>

Inheritance diagram for UCBStorage:
[legend]
Collaboration diagram for UCBStorage:
[legend]

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 ClsIdGetClassId () 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 BaseStorageStreamOpenStream (const OUString &rEleName, StreamMode=StreamMode::STD_READWRITE, bool bDirect=true) override
 
virtual BaseStorageOpenStorage (const OUString &rEleName, StreamMode=StreamMode::STD_READWRITE, bool bDirect=false) override
 
virtual BaseStorageOpenUCBStorage (const OUString &rEleName, StreamMode=StreamMode::STD_READWRITE, bool bDirect=false) override
 
virtual BaseStorageOpenOLEStorage (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_ImplFindElement_Impl (std::u16string_view rName) const
 
bool CopyStorageElement_Impl (UCBStorageElement_Impl const &rElement, BaseStorage *pDest, const OUString &rNew) const
 
BaseStorageOpenStorage_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 ClsIdGetClassId () 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 BaseStorageStreamOpenStream (const OUString &rEleName, StreamMode=StreamMode::STD_READWRITE, bool bDirect=true)=0
 
virtual BaseStorageOpenStorage (const OUString &rEleName, StreamMode=StreamMode::STD_READWRITE, bool bDirect=false)=0
 
virtual BaseStorageOpenUCBStorage (const OUString &rEleName, StreamMode=StreamMode::STD_READWRITE, bool bDirect=false)=0
 
virtual BaseStorageOpenOLEStorage (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 &)
 
SvRefBaseoperator= (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_ImplpImp
 

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
 

Detailed Description

Definition at line 239 of file stg.hxx.

Constructor & Destructor Documentation

◆ ~UCBStorage()

UCBStorage::~UCBStorage ( )
overrideprivatevirtual

◆ UCBStorage() [1/5]

UCBStorage::UCBStorage ( const ::ucbhelper::Content rContent,
const OUString &  rName,
StreamMode  nMode,
bool  bDirect,
bool  bIsRoot 
)

◆ UCBStorage() [2/5]

UCBStorage::UCBStorage ( const OUString &  rName,
StreamMode  nMode,
bool  bDirect,
bool  bIsRoot 
)

◆ UCBStorage() [3/5]

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() [4/5]

UCBStorage::UCBStorage ( UCBStorage_Impl pImpl)

◆ UCBStorage() [5/5]

UCBStorage::UCBStorage ( SvStream rStrm,
bool  bDirect 
)

Member Function Documentation

◆ Commit()

bool UCBStorage::Commit ( )
finaloverridevirtual

◆ CopyStorageElement_Impl()

bool UCBStorage::CopyStorageElement_Impl ( UCBStorageElement_Impl const &  rElement,
BaseStorage pDest,
const OUString &  rNew 
) const

◆ CopyTo() [1/2]

bool UCBStorage::CopyTo ( BaseStorage pDestStg) const
overridevirtual

◆ CopyTo() [2/2]

bool UCBStorage::CopyTo ( const OUString &  rEleName,
BaseStorage pDest,
const OUString &  rNewName 
)
overridevirtual

◆ Equals()

bool UCBStorage::Equals ( const BaseStorage rStream) const
overridevirtual

Implements BaseStorage.

Definition at line 2809 of file ucbstorage.cxx.

◆ FillInfoList()

void UCBStorage::FillInfoList ( SvStorageInfoList pList) const
overridevirtual

Implements BaseStorage.

Definition at line 2322 of file ucbstorage.cxx.

References UCBStorage_Impl::GetChildrenList(), and pImp.

◆ FindElement_Impl()

UCBStorageElement_Impl * UCBStorage::FindElement_Impl ( std::u16string_view  rName) const

◆ GetClassId()

const ClsId & UCBStorage::GetClassId ( ) const
overridevirtual

Implements BaseStorage.

Definition at line 2301 of file ucbstorage.cxx.

References SvGlobalName::GetCLSID(), UCBStorage_Impl::m_aClassId, and pImp.

Referenced by CopyTo().

◆ GetClassName()

SvGlobalName UCBStorage::GetClassName ( )
overridevirtual

Implements BaseStorage.

Definition at line 2306 of file ucbstorage.cxx.

References UCBStorage_Impl::m_aClassId, and pImp.

◆ GetFormat()

SotClipboardFormatId UCBStorage::GetFormat ( )
overridevirtual

Implements BaseStorage.

Definition at line 2311 of file ucbstorage.cxx.

References UCBStorage_Impl::m_nFormat, and pImp.

◆ GetName()

const OUString & UCBStorage::GetName ( ) const
overridevirtual

Implements BaseStorage.

Definition at line 2253 of file ucbstorage.cxx.

References UCBStorage_Impl::m_aName, and pImp.

◆ GetUserName()

OUString UCBStorage::GetUserName ( )
overridevirtual

Implements BaseStorage.

Definition at line 2316 of file ucbstorage.cxx.

References UCBStorage_Impl::m_aUserTypeName, and pImp.

◆ IsContained()

bool UCBStorage::IsContained ( const OUString &  rEleName) const
overridevirtual

Implements BaseStorage.

Definition at line 2761 of file ucbstorage.cxx.

References FindElement_Impl().

◆ IsRoot()

bool UCBStorage::IsRoot ( ) const
overridevirtual

Implements BaseStorage.

Definition at line 2258 of file ucbstorage.cxx.

References UCBStorage_Impl::m_bIsRoot, and pImp.

◆ IsStorage()

bool UCBStorage::IsStorage ( const OUString &  rEleName) const
overridevirtual

Implements BaseStorage.

Definition at line 2743 of file ucbstorage.cxx.

References FindElement_Impl(), and UCBStorageElement_Impl::m_bIsStorage.

◆ IsStorageFile()

bool UCBStorage::IsStorageFile ( SvStream pFile)
static

◆ IsStream()

bool UCBStorage::IsStream ( const OUString &  rEleName) const
overridevirtual

Implements BaseStorage.

Definition at line 2752 of file ucbstorage.cxx.

References FindElement_Impl(), and UCBStorageElement_Impl::m_bIsStorage.

◆ OpenOLEStorage()

BaseStorage * UCBStorage::OpenOLEStorage ( const OUString &  rEleName,
StreamMode  nMode = StreamMode::STD_READWRITE,
bool  bDirect = false 
)
overridevirtual

Implements BaseStorage.

Definition at line 2578 of file ucbstorage.cxx.

References OpenStorage_Impl().

◆ OpenStorage()

BaseStorage * UCBStorage::OpenStorage ( const OUString &  rEleName,
StreamMode  nMode = StreamMode::STD_READWRITE,
bool  bDirect = false 
)
overridevirtual

Implements BaseStorage.

Definition at line 2586 of file ucbstorage.cxx.

References OpenStorage_Impl().

Referenced by CopyStorageElement_Impl().

◆ OpenStorage_Impl()

BaseStorage * UCBStorage::OpenStorage_Impl ( const OUString &  rEleName,
StreamMode  nMode,
bool  bDirect,
bool  bForceUCBStorage 
)

◆ OpenStream()

BaseStorageStream * UCBStorage::OpenStream ( const OUString &  rEleName,
StreamMode  nMode = StreamMode::STD_READWRITE,
bool  bDirect = true 
)
overridevirtual

◆ OpenUCBStorage()

BaseStorage * UCBStorage::OpenUCBStorage ( const OUString &  rEleName,
StreamMode  nMode = StreamMode::STD_READWRITE,
bool  bDirect = false 
)
overridevirtual

Implements BaseStorage.

Definition at line 2570 of file ucbstorage.cxx.

References OpenStorage_Impl().

◆ Remove()

void UCBStorage::Remove ( const OUString &  rEleName)
overridevirtual

◆ Revert()

bool UCBStorage::Revert ( )
overridevirtual

Implements BaseStorage.

Definition at line 2494 of file ucbstorage.cxx.

References pImp, and UCBStorage_Impl::Revert().

◆ SetClass()

void UCBStorage::SetClass ( const SvGlobalName rClass,
SotClipboardFormatId  nOriginalClipFormat,
const OUString &  rUserTypeName 
)
overridevirtual

◆ SetClassId()

void UCBStorage::SetClassId ( const ClsId rClsId)
overridevirtual

◆ SetDirty()

void UCBStorage::SetDirty ( )
overridevirtual

Implements BaseStorage.

Definition at line 2263 of file ucbstorage.cxx.

◆ Validate()

bool UCBStorage::Validate ( bool  bWrite = false) const
overridevirtual

Implements StorageBase.

Definition at line 2789 of file ucbstorage.cxx.

References UCBStorage_Impl::m_nMode, and pImp.

◆ ValidateFAT()

bool UCBStorage::ValidateFAT ( )
overridevirtual

Implements BaseStorage.

Definition at line 2783 of file ucbstorage.cxx.

◆ ValidateMode()

bool UCBStorage::ValidateMode ( StreamMode  m) const
overridevirtual

Implements StorageBase.

Definition at line 2795 of file ucbstorage.cxx.

References m.

Member Data Documentation

◆ pImp

UCBStorage_Impl* UCBStorage::pImp
private

The documentation for this class was generated from the following files: