LibreOffice Module sot (master) 1
Public Member Functions | Public Attributes | Private Member Functions | List of all members
UCBStorage_Impl Class Reference
Inheritance diagram for UCBStorage_Impl:
[legend]
Collaboration diagram for UCBStorage_Impl:
[legend]

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_ImplOpenStorage (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::ContentGetContent ()
 
UCBStorageElementList_ImplGetChildrenList ()
 
void SetError (ErrCode nError)
 
- 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
 

Public Attributes

UCBStoragem_pAntiImpl
 
OUString m_aName
 
OUString m_aURL
 
OUString m_aContentType
 
OUString m_aOriginalContentType
 
std::optional<::ucbhelper::Contentm_oContent
 
std::unique_ptr<::utl::TempFileNamedm_pTempFile
 
SvStreamm_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
 

Detailed Description

Definition at line 452 of file ucbstorage.cxx.

Constructor & Destructor Documentation

◆ ~UCBStorage_Impl()

UCBStorage_Impl::~UCBStorage_Impl ( )
overrideprivatevirtual

Definition at line 1906 of file ucbstorage.cxx.

References m_aChildrenList, m_oContent, and m_pTempFile.

◆ UCBStorage_Impl() [1/3]

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() [2/3]

UCBStorage_Impl::UCBStorage_Impl ( const OUString &  rName,
StreamMode  nMode,
UCBStorage pStorage,
bool  bDirect,
bool  bIsRoot,
bool  bIsRepair,
Reference< XProgressHandler > const &  xProgressHandler 
)

◆ UCBStorage_Impl() [3/3]

UCBStorage_Impl::UCBStorage_Impl ( SvStream rStream,
UCBStorage pStorage,
bool  bDirect 
)

Member Function Documentation

◆ Commit()

sal_Int16 UCBStorage_Impl::Commit ( )

◆ CreateContent()

void UCBStorage_Impl::CreateContent ( )

◆ GetChildrenList()

UCBStorageElementList_Impl & UCBStorage_Impl::GetChildrenList ( )
inline

◆ GetContent()

::ucbhelper::Content * UCBStorage_Impl::GetContent ( )
inline

Definition at line 499 of file ucbstorage.cxx.

References CreateContent(), and m_oContent.

Referenced by ReadContent().

◆ GetObjectCount()

sal_Int32 UCBStorage_Impl::GetObjectCount ( )

Definition at line 1784 of file ucbstorage.cxx.

References DBG_ASSERT, m_aChildrenList, and nCount.

Referenced by Commit().

◆ GetProps()

void UCBStorage_Impl::GetProps ( sal_Int32 &  nProps,
Sequence< Sequence< PropertyValue > > &  rSequence,
const OUString &  rPath 
)

◆ Init()

void UCBStorage_Impl::Init ( void  )

◆ Insert()

bool UCBStorage_Impl::Insert ( ::ucbhelper::Content pContent)

◆ OpenStorage()

UCBStorage_Impl * UCBStorage_Impl::OpenStorage ( UCBStorageElement_Impl pElement,
StreamMode  nMode,
bool  bDirect 
)

◆ OpenStream()

void UCBStorage_Impl::OpenStream ( UCBStorageElement_Impl pElement,
StreamMode  nMode,
bool  bDirect 
)

◆ ReadContent()

void UCBStorage_Impl::ReadContent ( )

◆ Revert()

void UCBStorage_Impl::Revert ( )

Definition at line 2225 of file ucbstorage.cxx.

References i, and m_aChildrenList.

Referenced by UCBStorage::Revert().

◆ SetError()

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().

◆ SetProps()

void UCBStorage_Impl::SetProps ( const Sequence< Sequence< PropertyValue > > &  rSequence,
const OUString &  rPath 
)

Member Data Documentation

◆ m_aChildrenList

UCBStorageElementList_Impl UCBStorage_Impl::m_aChildrenList

◆ m_aClassId

SvGlobalName UCBStorage_Impl::m_aClassId

◆ m_aContentType

OUString UCBStorage_Impl::m_aContentType

◆ m_aName

OUString UCBStorage_Impl::m_aName

◆ m_aOriginalContentType

OUString UCBStorage_Impl::m_aOriginalContentType

Definition at line 461 of file ucbstorage.cxx.

Referenced by Init(), and SetProps().

◆ m_aURL

OUString UCBStorage_Impl::m_aURL

◆ m_aUserTypeName

OUString UCBStorage_Impl::m_aUserTypeName

◆ m_bCommited

bool UCBStorage_Impl::m_bCommited

Definition at line 467 of file ucbstorage.cxx.

Referenced by Commit(), and UCBStorage::Commit().

◆ m_bDirect

bool UCBStorage_Impl::m_bDirect

◆ m_bIsLinked

bool UCBStorage_Impl::m_bIsLinked

◆ m_bIsRoot

bool UCBStorage_Impl::m_bIsRoot

◆ m_bListCreated

bool UCBStorage_Impl::m_bListCreated

Definition at line 473 of file ucbstorage.cxx.

Referenced by UCBStorage::OpenStorage_Impl(), and ReadContent().

◆ m_bRepairPackage

bool UCBStorage_Impl::m_bRepairPackage

◆ m_nError

ErrCode UCBStorage_Impl::m_nError

Definition at line 465 of file ucbstorage.cxx.

Referenced by GetChildrenList(), Init(), SetError(), and UCBStorage::UCBStorage().

◆ m_nFormat

SotClipboardFormatId UCBStorage_Impl::m_nFormat

◆ m_nMode

StreamMode UCBStorage_Impl::m_nMode

◆ m_oContent

std::optional<::ucbhelper::Content> UCBStorage_Impl::m_oContent

◆ m_pAntiImpl

UCBStorage* UCBStorage_Impl::m_pAntiImpl

◆ m_pSource

SvStream* UCBStorage_Impl::m_pSource

Definition at line 464 of file ucbstorage.cxx.

Referenced by Commit(), UCBStorage_Impl(), and UCBStorage::~UCBStorage().

◆ m_pTempFile

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().

◆ m_xProgressHandler

Reference< XProgressHandler > UCBStorage_Impl::m_xProgressHandler

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