LibreOffice Module sfx2 (master) 1
Public Types | Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
SfxMedium Class Referencefinal

#include <docfile.hxx>

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

Public Types

enum class  LockFileResult {
  Failed ,
  FailedLockFile ,
  Succeeded
}
 

Public Member Functions

 SfxMedium ()
 
 SfxMedium (const OUString &rName, StreamMode nOpenMode, std::shared_ptr< const SfxFilter > pFilter=nullptr, const std::shared_ptr< SfxItemSet > &pSet=nullptr)
 
 SfxMedium (const OUString &rName, const OUString &rReferer, StreamMode nOpenMode, std::shared_ptr< const SfxFilter > pFilter=nullptr, const std::shared_ptr< SfxItemSet > &pSet=nullptr)
 
 SfxMedium (const css::uno::Reference< css::embed::XStorage > &xStorage, const OUString &rBaseURL, const std::shared_ptr< SfxItemSet > &pSet=nullptr)
 
 SfxMedium (const css::uno::Reference< css::embed::XStorage > &xStorage, const OUString &rBaseURL, const OUString &rTypeName, const std::shared_ptr< SfxItemSet > &pSet=nullptr)
 
 SfxMedium (const css::uno::Sequence< css::beans::PropertyValue > &aArgs)
 
virtual ~SfxMedium () override
 
 DECL_DLLPRIVATE_STATIC_LINK (SfxMedium, ShowReloadEditableDialog, void *, void)
 
bool CheckCanGetLockfile () const
 
void SetOriginallyReadOnly (bool val)
 
void AddToCheckEditableWorkerList ()
 
void SetWorkerReloadEvent (ImplSVEvent *pEvent)
 
ImplSVEventGetWorkerReloadEvent () const
 
const std::shared_ptr< std::recursive_mutex > & GetCheckEditableMutex () const
 
void CancelCheckEditableEntry (bool bRemoveEvent=true)
 
void UseInteractionHandler (bool)
 
css::uno::Reference< css::task::XInteractionHandler > GetInteractionHandler (bool bGetAlways=false)
 
void setStreamToLoadFrom (const css::uno::Reference< css::io::XInputStream > &xInputStream, bool bIsReadOnly)
 
void SetLoadTargetFrame (SfxFrame *pFrame)
 
SfxFrameGetLoadTargetFrame () const
 
void SetFilter (const std::shared_ptr< const SfxFilter > &pFilter)
 Does not take ownership of pFlt but pFlt needs to be around as long as the SfxMedium instance. More...
 
const std::shared_ptr< const SfxFilter > & GetFilter () const
 
const OUString & GetOrigURL () const
 
SfxItemSetGetItemSet () const
 
void SetArgs (const css::uno::Sequence< css::beans::PropertyValue > &rArgs)
 
const css::uno::Sequence< css::beans::PropertyValue > & GetArgs () const
 
void Close (bool bInDestruction=false)
 
void CloseAndRelease ()
 
void ReOpen ()
 
void CompleteReOpen ()
 
const OUString & GetName () const
 
const INetURLObjectGetURLObject () const
 
void CheckFileDate (const css::util::DateTime &aInitDate)
 
bool DocNeedsFileDateCheck () const
 
css::util::DateTime const & GetInitFileDate (bool bIgnoreOldValue)
 
css::uno::Reference< css::ucb::XContent > GetContent () const
 
const OUString & GetPhysicalName () const
 
bool IsRemote () const
 
bool IsOpen () const
 
void Download (const Link< void *, void > &aLink=Link< void *, void >())
 
void SetDoneLink (const Link< void *, void > &rLink)
 
ErrCode GetErrorCode () const
 
ErrCode GetError () const
 
ErrCode GetWarningError () const
 
ErrCode const & GetLastStorageCreationState () const
 
void SetError (ErrCode nError)
 
void SetWarningError (ErrCode nWarningError)
 
void CloseInStream ()
 
void CloseOutStream ()
 
void CloseStorage ()
 
StreamMode GetOpenMode () const
 
void SetOpenMode (StreamMode nStorOpen, bool bDontClose=false)
 
SvStreamGetInStream ()
 
SvStreamGetOutStream ()
 
bool Commit ()
 
bool IsStorage ()
 
LockFileResult LockOrigFileOnDemand (bool bLoading, bool bNoUI, bool bTryIgnoreLockFile=false, LockFileEntry *pLockData=nullptr)
 
void DisableUnlockWebDAV (bool bDisableUnlockWebDAV=true)
 
void UnlockFile (bool bReleaseLockStream)
 
void DisableFileSync (bool bDisableFileSync)
 Lets Transfer_Impl() not fsync the output file. More...
 
css::uno::Reference< css::embed::XStorage > GetStorage (bool bCreateTempFile=true)
 
css::uno::Reference< css::embed::XStorage > GetOutputStorage ()
 
void ResetError ()
 
bool IsExpired () const
 
void SetName (const OUString &rName, bool bSetOrigURL=false)
 
const css::uno::Sequence< css::util::RevisionTag > & GetVersionList (bool _bNoReload=false)
 
bool IsReadOnly () const
 
bool IsOriginallyReadOnly () const
 
bool IsOriginallyLoadedReadOnly () const
 
css::uno::Reference< css::io::XInputStream > const & GetInputStream ()
 
void CreateTempFile (bool bReplace=true)
 
void CreateTempFileNoCopy ()
 
OUString SwitchDocumentToTempFile ()
 
bool SwitchDocumentToFile (const OUString &aURL)
 
OUString GetBaseURL (bool bForSaving=false)
 
void SetInCheckIn (bool bInCheckIn)
 
bool IsInCheckIn () const
 
bool IsSkipImages () const
 
SAL_DLLPRIVATE bool HasStorage_Impl () const
 
SAL_DLLPRIVATE void StorageBackup_Impl ()
 
SAL_DLLPRIVATE OUString const & GetBackup_Impl ()
 
SAL_DLLPRIVATE css::uno::Reference< css::embed::XStorage > const & GetZipStorageToSign_Impl (bool bReadOnly=true)
 
SAL_DLLPRIVATE void CloseZipStorage_Impl ()
 
SAL_DLLPRIVATE void SetStorage_Impl (const css::uno::Reference< css::embed::XStorage > &xNewStorage)
 
SAL_DLLPRIVATE void CloseAndReleaseStreams_Impl ()
 
SAL_DLLPRIVATE void AddVersion_Impl (css::util::RevisionTag &rVersion)
 
SAL_DLLPRIVATE bool TransferVersionList_Impl (SfxMedium const &rMedium)
 
SAL_DLLPRIVATE void SaveVersionList_Impl ()
 
SAL_DLLPRIVATE void RemoveVersion_Impl (const OUString &rVersion)
 
SAL_DLLPRIVATE void SetExpired_Impl (const DateTime &rDateTime)
 
SAL_DLLPRIVATE SvKeyValueIteratorGetHeaderAttributes_Impl ()
 
SAL_DLLPRIVATE void Init_Impl ()
 
SAL_DLLPRIVATE void GetLockingStream_Impl ()
 
SAL_DLLPRIVATE void GetMedium_Impl ()
 
SAL_DLLPRIVATE bool TryDirectTransfer (const OUString &aURL, SfxItemSet const &aTargetSet)
 
SAL_DLLPRIVATE void Transfer_Impl ()
 
SAL_DLLPRIVATE void CreateFileStream ()
 
SAL_DLLPRIVATE void SetUpdatePickList (bool)
 
SAL_DLLPRIVATE bool IsUpdatePickList () const
 
SAL_DLLPRIVATE void SetLongName (const OUString &rName)
 
SAL_DLLPRIVATE const OUString & GetLongName () const
 
SAL_DLLPRIVATE bool IsPreview_Impl () const
 
SAL_DLLPRIVATE void ClearBackup_Impl ()
 
SAL_DLLPRIVATE void SetPhysicalName_Impl (const OUString &rName)
 
SAL_DLLPRIVATE void CanDisposeStorage_Impl (bool bDisposeStorage)
 
SAL_DLLPRIVATE bool WillDisposeStorageOnClose_Impl ()
 
SAL_DLLPRIVATE void DoBackup_Impl (bool bForceUsingBackupPath)
 
SAL_DLLPRIVATE void DoInternalBackup_Impl (const ::ucbhelper::Content &aOriginalContent)
 
SAL_DLLPRIVATE void DoInternalBackup_Impl (const ::ucbhelper::Content &aOriginalContent, std::u16string_view aPrefix, std::u16string_view aExtension, const OUString &aDestDir)
 
SAL_DLLPRIVATE bool UseBackupToRestore_Impl (::ucbhelper::Content &aOriginalContent, const css::uno::Reference< css::ucb::XCommandEnvironment > &xComEnv)
 
SAL_DLLPRIVATE bool StorageCommit_Impl ()
 
SAL_DLLPRIVATE void TransactedTransferForFS_Impl (const INetURLObject &aSource, const INetURLObject &aDest, const css::uno::Reference< css::ucb::XCommandEnvironment > &xComEnv)
 
SAL_DLLPRIVATE bool SignContents_Impl (weld::Window *pDialogParent, bool bSignScriptingContent, bool bHasValidDocumentSignature, const OUString &aSignatureLineId=OUString(), const css::uno::Reference< css::security::XCertificate > &xCert=css::uno::Reference< css::security::XCertificate >(), const css::uno::Reference< css::graphic::XGraphic > &xValidGraphic=css::uno::Reference< css::graphic::XGraphic >(), const css::uno::Reference< css::graphic::XGraphic > &xInvalidGraphic=css::uno::Reference< css::graphic::XGraphic >(), const OUString &aComment=OUString())
 
SAL_DLLPRIVATE bool SignDocumentContentUsingCertificate (const css::uno::Reference< css::frame::XModel > &xModel, bool bHasValidDocumentSignature, const css::uno::Reference< css::security::XCertificate > &xCertificate)
 
SAL_DLLPRIVATE SignatureState GetCachedSignatureState_Impl () const
 
SAL_DLLPRIVATE void SetCachedSignatureState_Impl (SignatureState nState)
 
void SetHasEmbeddedObjects (bool bHasEmbeddedObjects)
 
- 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 css::uno::Sequence< css::util::RevisionTag > GetVersionList (const css::uno::Reference< css::embed::XStorage > &xStorage)
 
static OUString CreateTempCopyWithExt (std::u16string_view aURL)
 
static bool CallApproveHandler (const css::uno::Reference< css::task::XInteractionHandler > &xHandler, const css::uno::Any &rRequest, bool bAllowAbort)
 
static bool SetWritableForUserOnly (const OUString &aURL)
 
static sal_uInt32 CreatePasswordToModifyHash (std::u16string_view aPasswd, bool bWriter)
 

Private Types

enum class  ShowLockResult {
  NoLock ,
  Succeeded ,
  Try
}
 
enum class  MessageDlg {
  LockFileIgnore ,
  LockFileCorrupt
}
 

Private Member Functions

SAL_DLLPRIVATE void SetIsRemote_Impl ()
 
SAL_DLLPRIVATE void CloseInStream_Impl (bool bInDestruction=false)
 
SAL_DLLPRIVATE void CloseOutStream_Impl ()
 
SAL_DLLPRIVATE void CloseStreams_Impl (bool bInDestruction=false)
 
SAL_DLLPRIVATE void SetEncryptionDataToStorage_Impl ()
 
ShowLockResult ShowLockedDocumentDialog (const LockFileEntry &aData, bool bIsLoading, bool bOwnLock, bool bHandleSysLocked)
 
bool ShowLockFileProblemDialog (MessageDlg nWhichDlg)
 

Private Attributes

std::unique_ptr< SfxMedium_ImplpImpl
 

Additional Inherited Members

- Protected Member Functions inherited from SvRefBase
virtual ~SvRefBase () COVERITY_NOEXCEPT_FALSE
 

Detailed Description

Definition at line 64 of file docfile.hxx.

Member Enumeration Documentation

◆ LockFileResult

enum class SfxMedium::LockFileResult
strong
Enumerator
Failed 
FailedLockFile 
Succeeded 

Definition at line 169 of file docfile.hxx.

◆ MessageDlg

enum class SfxMedium::MessageDlg
strongprivate
Enumerator
LockFileIgnore 
LockFileCorrupt 

Definition at line 305 of file docfile.hxx.

◆ ShowLockResult

enum class SfxMedium::ShowLockResult
strongprivate
Enumerator
NoLock 
Succeeded 
Try 

Definition at line 302 of file docfile.hxx.

Constructor & Destructor Documentation

◆ SfxMedium() [1/6]

SfxMedium::SfxMedium ( )

Definition at line 3063 of file docfile.cxx.

References Init_Impl().

◆ SfxMedium() [2/6]

SfxMedium::SfxMedium ( const OUString &  rName,
StreamMode  nOpenMode,
std::shared_ptr< const SfxFilter pFilter = nullptr,
const std::shared_ptr< SfxItemSet > &  pSet = nullptr 
)

Definition at line 3428 of file docfile.cxx.

References Init_Impl(), and pImpl.

◆ SfxMedium() [3/6]

SfxMedium::SfxMedium ( const OUString &  rName,
const OUString &  rReferer,
StreamMode  nOpenMode,
std::shared_ptr< const SfxFilter pFilter = nullptr,
const std::shared_ptr< SfxItemSet > &  pSet = nullptr 
)

Definition at line 3438 of file docfile.cxx.

References SfxItemSet::GetItem(), GetItemSet(), Init_Impl(), pImpl, and SfxItemSet::Put().

◆ SfxMedium() [4/6]

SfxMedium::SfxMedium ( const css::uno::Reference< css::embed::XStorage > &  xStorage,
const OUString &  rBaseURL,
const std::shared_ptr< SfxItemSet > &  pSet = nullptr 
)

◆ SfxMedium() [5/6]

SfxMedium::SfxMedium ( const css::uno::Reference< css::embed::XStorage > &  xStorage,
const OUString &  rBaseURL,
const OUString &  rTypeName,
const std::shared_ptr< SfxItemSet > &  pSet = nullptr 
)

◆ SfxMedium() [6/6]

SfxMedium::SfxMedium ( const css::uno::Sequence< css::beans::PropertyValue > &  aArgs)

◆ ~SfxMedium()

SfxMedium::~SfxMedium ( )
overridevirtual

Definition at line 3567 of file docfile.cxx.

References CancelCheckEditableEntry(), ClearBackup_Impl(), Close(), pImpl, and SAL_WARN.

Member Function Documentation

◆ AddToCheckEditableWorkerList()

void SfxMedium::AddToCheckEditableWorkerList ( )

◆ AddVersion_Impl()

void SfxMedium::AddVersion_Impl ( css::util::RevisionTag &  rVersion)

Definition at line 3725 of file docfile.cxx.

References GetStorage(), n, nLength, pImpl, and o3tl::toInt32().

Referenced by SfxObjectShell::SaveTo_Impl().

◆ CallApproveHandler()

bool SfxMedium::CallApproveHandler ( const css::uno::Reference< css::task::XInteractionHandler > &  xHandler,
const css::uno::Any &  rRequest,
bool  bAllowAbort 
)
static

◆ CancelCheckEditableEntry()

void SfxMedium::CancelCheckEditableEntry ( bool  bRemoveEvent = true)

◆ CanDisposeStorage_Impl()

void SfxMedium::CanDisposeStorage_Impl ( bool  bDisposeStorage)

◆ CheckCanGetLockfile()

bool SfxMedium::CheckCanGetLockfile ( ) const

◆ CheckFileDate()

void SfxMedium::CheckFileDate ( const css::util::DateTime &  aInitDate)

◆ ClearBackup_Impl()

void SfxMedium::ClearBackup_Impl ( )

Definition at line 2716 of file docfile.cxx.

References pImpl, and SAL_WARN.

Referenced by SfxObjectShell::DoSaveCompleted(), and ~SfxMedium().

◆ Close()

void SfxMedium::Close ( bool  bInDestruction = false)

◆ CloseAndRelease()

void SfxMedium::CloseAndRelease ( )

◆ CloseAndReleaseStreams_Impl()

void SfxMedium::CloseAndReleaseStreams_Impl ( )

◆ CloseInStream()

void SfxMedium::CloseInStream ( )

◆ CloseInStream_Impl()

void SfxMedium::CloseInStream_Impl ( bool  bInDestruction = false)
private

◆ CloseOutStream()

void SfxMedium::CloseOutStream ( )

Definition at line 776 of file docfile.cxx.

References CloseOutStream_Impl().

Referenced by CreateTempFile().

◆ CloseOutStream_Impl()

void SfxMedium::CloseOutStream_Impl ( )
private

Definition at line 781 of file docfile.cxx.

References CloseStorage(), and pImpl.

Referenced by CloseOutStream(), CloseStreams_Impl(), CreateTempFile(), and CreateTempFileNoCopy().

◆ CloseStorage()

void SfxMedium::CloseStorage ( )

◆ CloseStreams_Impl()

void SfxMedium::CloseStreams_Impl ( bool  bInDestruction = false)
private

◆ CloseZipStorage_Impl()

void SfxMedium::CloseZipStorage_Impl ( )

◆ Commit()

bool SfxMedium::Commit ( )

◆ CompleteReOpen()

void SfxMedium::CompleteReOpen ( )

Definition at line 3393 of file docfile.cxx.

References GetError(), GetMedium_Impl(), and pImpl.

Referenced by SfxViewFrame::ExecReload_Impl().

◆ CreateFileStream()

void SfxMedium::CreateFileStream ( )

◆ CreatePasswordToModifyHash()

sal_uInt32 SfxMedium::CreatePasswordToModifyHash ( std::u16string_view  aPasswd,
bool  bWriter 
)
static

◆ CreateTempCopyWithExt()

OUString SfxMedium::CreateTempCopyWithExt ( std::u16string_view  aURL)
static

◆ CreateTempFile()

void SfxMedium::CreateTempFile ( bool  bReplace = true)

◆ CreateTempFileNoCopy()

void SfxMedium::CreateTempFileNoCopy ( )

◆ DECL_DLLPRIVATE_STATIC_LINK()

SfxMedium::DECL_DLLPRIVATE_STATIC_LINK ( SfxMedium  ,
ShowReloadEditableDialog  ,
void *  ,
void   
)

References Close, GetItemSet(), GetName(), and IsRemote().

◆ DisableFileSync()

void SfxMedium::DisableFileSync ( bool  bDisableFileSync)

Lets Transfer_Impl() not fsync the output file.

Definition at line 3166 of file docfile.cxx.

References pImpl.

Referenced by SfxObjectShell::DoSave_Impl(), and SfxObjectShell::PreDoSaveAs_Impl().

◆ DisableUnlockWebDAV()

void SfxMedium::DisableUnlockWebDAV ( bool  bDisableUnlockWebDAV = true)

Definition at line 3161 of file docfile.cxx.

References pImpl.

Referenced by SfxObjectShell::SaveTo_Impl().

◆ DoBackup_Impl()

void SfxMedium::DoBackup_Impl ( bool  bForceUsingBackupPath)

◆ DocNeedsFileDateCheck()

bool SfxMedium::DocNeedsFileDateCheck ( ) const

◆ DoInternalBackup_Impl() [1/2]

void SfxMedium::DoInternalBackup_Impl ( const ::ucbhelper::Content aOriginalContent)

◆ DoInternalBackup_Impl() [2/2]

void SfxMedium::DoInternalBackup_Impl ( const ::ucbhelper::Content aOriginalContent,
std::u16string_view  aPrefix,
std::u16string_view  aExtension,
const OUString &  aDestDir 
)

◆ Download()

void SfxMedium::Download ( const Link< void *, void > &  aLink = Link<void*,void>())

◆ GetArgs()

const uno::Sequence< beans::PropertyValue > & SfxMedium::GetArgs ( ) const

Definition at line 3530 of file docfile.cxx.

References pImpl.

Referenced by SfxObjectShell::ExportTo(), and SfxObjectShell::SaveAsChildren().

◆ GetBackup_Impl()

OUString const & SfxMedium::GetBackup_Impl ( )

Definition at line 940 of file docfile.cxx.

References pImpl, and StorageBackup_Impl().

Referenced by SfxObjectShell::DisconnectStorage_Impl().

◆ GetBaseURL()

OUString SfxMedium::GetBaseURL ( bool  bForSaving = false)

◆ GetCachedSignatureState_Impl()

SignatureState SfxMedium::GetCachedSignatureState_Impl ( ) const

Definition at line 4311 of file docfile.cxx.

References pImpl.

Referenced by SfxObjectShell::DoSaveCompleted().

◆ GetCheckEditableMutex()

const std::shared_ptr< std::recursive_mutex > & SfxMedium::GetCheckEditableMutex ( ) const

Definition at line 4545 of file docfile.cxx.

References pImpl.

Referenced by SfxViewFrame::ExecReload_Impl().

◆ GetContent()

Reference< XContent > SfxMedium::GetContent ( ) const

◆ GetError()

ErrCode SfxMedium::GetError ( ) const
inline

◆ GetErrorCode()

ErrCode SfxMedium::GetErrorCode ( ) const

◆ GetFilter()

const std::shared_ptr< const SfxFilter > & SfxMedium::GetFilter ( ) const

◆ GetHeaderAttributes_Impl()

SvKeyValueIterator * SfxMedium::GetHeaderAttributes_Impl ( )

Definition at line 3655 of file docfile.cxx.

References Any, GetContent(), and pImpl.

◆ GetInitFileDate()

util::DateTime const & SfxMedium::GetInitFileDate ( bool  bIgnoreOldValue)

◆ GetInputStream()

css::uno::Reference< css::io::XInputStream > const & SfxMedium::GetInputStream ( )

◆ GetInStream()

SvStream * SfxMedium::GetInStream ( )

◆ GetInteractionHandler()

css::uno::Reference< css::task::XInteractionHandler > SfxMedium::GetInteractionHandler ( bool  bGetAlways = false)

◆ GetItemSet()

SfxItemSet & SfxMedium::GetItemSet ( ) const

Definition at line 3647 of file docfile.cxx.

References pImpl, and SfxGetpApp().

Referenced by SfxPickListImpl::AddDocumentToPickList(), SfxBaseModel::attachResource(), SfxBaseModel::checkIn(), SfxBaseModel::checkOut(), CheckPasswd_Impl(), SfxObjectShell::CommonSaveAs_Impl(), SfxFrame::CreateHidden(), SfxObjectShell::DoInitNew(), SfxObjectShell::DoLoad(), SfxObjectShell::DoSave_Impl(), SfxObjectShell::DoSaveCompleted(), SfxObjectShell::ExecFile_Impl(), SfxViewFrame::ExecReload_Impl(), SfxViewFrame::ExecView_Impl(), SfxObjectShell::ExportTo(), SfxObjectShell::FinishedLoading(), GetBaseURL(), SfxObjectShell_Impl::getCurrentMacroExecMode(), SfxObjectShell::GetDialogParent(), GetLockingStream_Impl(), GetMedium_Impl(), GetStorage(), SfxBaseModel::getTitle(), SfxObjectShell::GetTitle(), SfxFilterMatcher::GuessFilterControlDefaultUI(), SfxObjectShell::HandleFilter(), SfxBaseModel::handleLoadError(), IMPL_LINK(), IMPL_LINK_NOARG(), SfxBaseModel::impl_store(), SfxDocumentPage::ImplCheckPasswordState(), SfxObjectShell::ImportFrom(), SfxObjectShell::ImportFromGeneratedStream_Impl(), Init_Impl(), SfxObjectShell::InitOwnModel_Impl(), SfxWorkWindow::IsPluginMode(), SfxObjectShell::IsPreview(), IsPreview_Impl(), IsReadOnly(), IsSkipImages(), SfxBaseModel::load(), SfxBaseModel::loadFromStorage(), SfxObjectShell::LoadOwnFormat(), SfxApplication::LoadTemplate(), LockOrigFileOnDemand(), SfxViewShell::Notify(), SfxVersionDialog::Open_Impl(), SfxObjectShell::PostActivateEvent_Impl(), SfxObjectShell::PreDoSaveAs_Impl(), SfxObjectShell::Save_Impl(), SfxObjectShell::SaveAsChildren(), SfxObjectShell::SaveTo_Impl(), SfxBaseModel::setArgs(), SfxObjectShell_Impl::setCurrentMacroExecMode(), SfxObjectShell::SetReadOnly(), SfxProgress::SetState(), SfxMedium(), SfxViewFrame::StateReload_Impl(), SwitchDocumentToTempFile(), SfxObjectShell::TemplateDisconnectionAfterLoad(), TransactedTransferForFS_Impl(), Transfer_Impl(), TryDirectTransfer(), SfxDispatcher::Update_Impl_(), SfxFrame::UpdateDescriptor(), and SfxObjectShell::UpdateFromTemplate_Impl().

◆ GetLastStorageCreationState()

ErrCode const & SfxMedium::GetLastStorageCreationState ( ) const

Definition at line 497 of file docfile.cxx.

References pImpl.

Referenced by SfxObjectShell::DoLoad().

◆ GetLoadTargetFrame()

SfxFrame * SfxMedium::GetLoadTargetFrame ( ) const

Definition at line 3624 of file docfile.cxx.

References pImpl.

◆ GetLockingStream_Impl()

void SfxMedium::GetLockingStream_Impl ( )

◆ GetLongName()

const OUString & SfxMedium::GetLongName ( ) const

Definition at line 2934 of file docfile.cxx.

References pImpl.

Referenced by SfxObjectShell::DoSave_Impl().

◆ GetMedium_Impl()

void SfxMedium::GetMedium_Impl ( )

◆ GetName()

const OUString & SfxMedium::GetName ( ) const

◆ GetOpenMode()

StreamMode SfxMedium::GetOpenMode ( ) const

◆ GetOrigURL()

const OUString & SfxMedium::GetOrigURL ( ) const

◆ GetOutputStorage()

uno::Reference< embed::XStorage > SfxMedium::GetOutputStorage ( )

◆ GetOutStream()

SvStream * SfxMedium::GetOutStream ( )

◆ GetPhysicalName()

const OUString & SfxMedium::GetPhysicalName ( ) const

◆ GetStorage()

uno::Reference< embed::XStorage > SfxMedium::GetStorage ( bool  bCreateTempFile = true)

◆ GetURLObject()

const INetURLObject & SfxMedium::GetURLObject ( ) const

◆ GetVersionList() [1/2]

const uno::Sequence< util::RevisionTag > & SfxMedium::GetVersionList ( bool  _bNoReload = false)

◆ GetVersionList() [2/2]

static css::uno::Sequence< css::util::RevisionTag > SfxMedium::GetVersionList ( const css::uno::Reference< css::embed::XStorage > &  xStorage)
static

◆ GetWarningError()

ErrCode SfxMedium::GetWarningError ( ) const

Definition at line 492 of file docfile.cxx.

References pImpl.

◆ GetWorkerReloadEvent()

ImplSVEvent * SfxMedium::GetWorkerReloadEvent ( ) const

Definition at line 4557 of file docfile.cxx.

References pImpl.

◆ GetZipStorageToSign_Impl()

uno::Reference< embed::XStorage > const & SfxMedium::GetZipStorageToSign_Impl ( bool  bReadOnly = true)

◆ HasStorage_Impl()

bool SfxMedium::HasStorage_Impl ( ) const

◆ Init_Impl()

void SfxMedium::Init_Impl ( )

◆ IsExpired()

bool SfxMedium::IsExpired ( ) const

Definition at line 3618 of file docfile.cxx.

References pImpl, and DateTime::SYSTEM.

Referenced by SfxViewFrame::ExecReload_Impl().

◆ IsInCheckIn()

bool SfxMedium::IsInCheckIn ( ) const

Definition at line 4539 of file docfile.cxx.

References pImpl.

Referenced by SfxObjectShell::DoSave_Impl(), SfxObjectShell::SaveTo_Impl(), and Transfer_Impl().

◆ IsOpen()

bool SfxMedium::IsOpen ( ) const

◆ IsOriginallyLoadedReadOnly()

bool SfxMedium::IsOriginallyLoadedReadOnly ( ) const

◆ IsOriginallyReadOnly()

bool SfxMedium::IsOriginallyReadOnly ( ) const

Definition at line 3819 of file docfile.cxx.

References pImpl.

Referenced by SfxObjectShell::IsOriginallyReadOnlyMedium(), and SfxObjectShell::IsSignPDF().

◆ IsPreview_Impl()

bool SfxMedium::IsPreview_Impl ( ) const

◆ IsReadOnly()

bool SfxMedium::IsReadOnly ( ) const

◆ IsRemote()

bool SfxMedium::IsRemote ( ) const

Definition at line 2914 of file docfile.cxx.

References pImpl.

Referenced by SfxViewFrame::ExecReload_Impl(), and GetBaseURL().

◆ IsSkipImages()

bool SfxMedium::IsSkipImages ( ) const

◆ IsStorage()

bool SfxMedium::IsStorage ( )

◆ IsUpdatePickList()

bool SfxMedium::IsUpdatePickList ( ) const

Definition at line 2924 of file docfile.cxx.

References pImpl.

Referenced by SfxPickListImpl::AddDocumentToPickList().

◆ LockOrigFileOnDemand()

SfxMedium::LockFileResult SfxMedium::LockOrigFileOnDemand ( bool  bLoading,
bool  bNoUI,
bool  bTryIgnoreLockFile = false,
LockFileEntry pLockData = nullptr 
)

◆ RemoveVersion_Impl()

void SfxMedium::RemoveVersion_Impl ( const OUString &  rVersion)

Definition at line 3755 of file docfile.cxx.

References nIndex, pImpl, and comphelper::removeElementAt().

Referenced by IMPL_LINK().

◆ ReOpen()

void SfxMedium::ReOpen ( )

Definition at line 3385 of file docfile.cxx.

References GetMedium_Impl(), and pImpl.

Referenced by SfxObjectShell::DoSaveCompleted(), and SfxViewFrame::ExecReload_Impl().

◆ ResetError()

void SfxMedium::ResetError ( )

◆ SaveVersionList_Impl()

void SfxMedium::SaveVersionList_Impl ( )

Definition at line 3780 of file docfile.cxx.

References comphelper::getProcessComponentContext(), GetStorage(), and pImpl.

Referenced by SfxObjectShell::SaveTo_Impl().

◆ SetArgs()

void SfxMedium::SetArgs ( const css::uno::Sequence< css::beans::PropertyValue > &  rArgs)

◆ SetCachedSignatureState_Impl()

void SfxMedium::SetCachedSignatureState_Impl ( SignatureState  nState)

Definition at line 4317 of file docfile.cxx.

References nState, and pImpl.

Referenced by SfxObjectShell::DoSaveCompleted(), and SfxObjectShell::SaveTo_Impl().

◆ SetDoneLink()

void SfxMedium::SetDoneLink ( const Link< void *, void > &  rLink)

Definition at line 2939 of file docfile.cxx.

References pImpl.

Referenced by Download().

◆ SetEncryptionDataToStorage_Impl()

void SfxMedium::SetEncryptionDataToStorage_Impl ( )
private

◆ SetError()

void SfxMedium::SetError ( ErrCode  nError)

◆ SetExpired_Impl()

void SfxMedium::SetExpired_Impl ( const DateTime rDateTime)

Definition at line 3612 of file docfile.cxx.

References pImpl.

◆ SetFilter()

void SfxMedium::SetFilter ( const std::shared_ptr< const SfxFilter > &  pFilter)

Does not take ownership of pFlt but pFlt needs to be around as long as the SfxMedium instance.

Definition at line 3106 of file docfile.cxx.

References pImpl.

Referenced by SfxBaseModel::attachResource(), SfxBaseModel::load(), SfxObjectShell::PreDoSaveAs_Impl(), and SfxObjectShell::SaveTo_Impl().

◆ SetHasEmbeddedObjects()

void SfxMedium::SetHasEmbeddedObjects ( bool  bHasEmbeddedObjects)

Definition at line 4322 of file docfile.cxx.

References pImpl.

Referenced by SfxObjectShell::SaveTo_Impl().

◆ SetInCheckIn()

void SfxMedium::SetInCheckIn ( bool  bInCheckIn)

Definition at line 4534 of file docfile.cxx.

References pImpl.

Referenced by SfxObjectShell::DoSave_Impl().

◆ SetIsRemote_Impl()

void SfxMedium::SetIsRemote_Impl ( )
private

Definition at line 3324 of file docfile.cxx.

References GetName(), INetURLObject::GetProtocol(), and pImpl.

Referenced by Init_Impl().

◆ SetLoadTargetFrame()

void SfxMedium::SetLoadTargetFrame ( SfxFrame pFrame)

Definition at line 3635 of file docfile.cxx.

References pImpl.

◆ SetLongName()

void SfxMedium::SetLongName ( const OUString &  rName)

Definition at line 2929 of file docfile.cxx.

References pImpl.

Referenced by SfxObjectShell::DoSave_Impl().

◆ SetName()

void SfxMedium::SetName ( const OUString &  rName,
bool  bSetOrigURL = false 
)

◆ SetOpenMode()

void SfxMedium::SetOpenMode ( StreamMode  nStorOpen,
bool  bDontClose = false 
)

◆ SetOriginallyReadOnly()

void SfxMedium::SetOriginallyReadOnly ( bool  val)

Definition at line 3824 of file docfile.cxx.

References pImpl.

Referenced by IMPL_STATIC_LINK().

◆ SetPhysicalName_Impl()

void SfxMedium::SetPhysicalName_Impl ( const OUString &  rName)

Definition at line 3370 of file docfile.cxx.

References pImpl.

Referenced by GetStorage(), SwitchDocumentToFile(), and SwitchDocumentToTempFile().

◆ SetStorage_Impl()

void SfxMedium::SetStorage_Impl ( const css::uno::Reference< css::embed::XStorage > &  xNewStorage)

◆ setStreamToLoadFrom()

void SfxMedium::setStreamToLoadFrom ( const css::uno::Reference< css::io::XInputStream > &  xInputStream,
bool  bIsReadOnly 
)

Definition at line 3629 of file docfile.cxx.

References pImpl.

◆ SetUpdatePickList()

void SfxMedium::SetUpdatePickList ( bool  bVal)

Definition at line 2919 of file docfile.cxx.

References pImpl.

Referenced by SfxObjectShell::ExecFile_Impl().

◆ SetWarningError()

void SfxMedium::SetWarningError ( ErrCode  nWarningError)

Definition at line 507 of file docfile.cxx.

References pImpl.

Referenced by SfxBaseModel::handleLoadError().

◆ SetWorkerReloadEvent()

void SfxMedium::SetWorkerReloadEvent ( ImplSVEvent pEvent)

Definition at line 4551 of file docfile.cxx.

References pImpl.

◆ SetWritableForUserOnly()

bool SfxMedium::SetWritableForUserOnly ( const OUString &  aURL)
static

Definition at line 3834 of file docfile.cxx.

References aURL, and nAttributes.

Referenced by CreateTempFile().

◆ ShowLockedDocumentDialog()

ShowLockResult SfxMedium::ShowLockedDocumentDialog ( const LockFileEntry aData,
bool  bIsLoading,
bool  bOwnLock,
bool  bHandleSysLocked 
)
private

Referenced by LockOrigFileOnDemand().

◆ ShowLockFileProblemDialog()

bool SfxMedium::ShowLockFileProblemDialog ( MessageDlg  nWhichDlg)
private

Referenced by LockOrigFileOnDemand().

◆ SignContents_Impl()

bool SfxMedium::SignContents_Impl ( weld::Window pDialogParent,
bool  bSignScriptingContent,
bool  bHasValidDocumentSignature,
const OUString &  aSignatureLineId = OUString(),
const css::uno::Reference< css::security::XCertificate > &  xCert = css::uno::Reference<css::security::XCertificate>(),
const css::uno::Reference< css::graphic::XGraphic > &  xValidGraphic = css::uno::Reference<css::graphic::XGraphic>(),
const css::uno::Reference< css::graphic::XGraphic > &  xInvalidGraphic = css::uno::Reference<css::graphic::XGraphic>(),
const OUString &  aComment = OUString() 
)

◆ SignDocumentContentUsingCertificate()

bool SfxMedium::SignDocumentContentUsingCertificate ( const css::uno::Reference< css::frame::XModel > &  xModel,
bool  bHasValidDocumentSignature,
const css::uno::Reference< css::security::XCertificate > &  xCertificate 
)

◆ StorageBackup_Impl()

void SfxMedium::StorageBackup_Impl ( )

◆ StorageCommit_Impl()

bool SfxMedium::StorageCommit_Impl ( )

◆ SwitchDocumentToFile()

bool SfxMedium::SwitchDocumentToFile ( const OUString &  aURL)

◆ SwitchDocumentToTempFile()

OUString SfxMedium::SwitchDocumentToTempFile ( )

◆ TransactedTransferForFS_Impl()

void SfxMedium::TransactedTransferForFS_Impl ( const INetURLObject aSource,
const INetURLObject aDest,
const css::uno::Reference< css::ucb::XCommandEnvironment > &  xComEnv 
)

◆ Transfer_Impl()

void SfxMedium::Transfer_Impl ( )

◆ TransferVersionList_Impl()

bool SfxMedium::TransferVersionList_Impl ( SfxMedium const &  rMedium)

◆ TryDirectTransfer()

bool SfxMedium::TryDirectTransfer ( const OUString &  aURL,
SfxItemSet const &  aTargetSet 
)

◆ UnlockFile()

void SfxMedium::UnlockFile ( bool  bReleaseLockStream)

◆ UseBackupToRestore_Impl()

bool SfxMedium::UseBackupToRestore_Impl ( ::ucbhelper::Content aOriginalContent,
const css::uno::Reference< css::ucb::XCommandEnvironment > &  xComEnv 
)

◆ UseInteractionHandler()

void SfxMedium::UseInteractionHandler ( bool  bUse)

Definition at line 3069 of file docfile.cxx.

References pImpl.

Referenced by SfxBaseModel::loadFromStorage(), and SfxApplication::LoadTemplate().

◆ WillDisposeStorageOnClose_Impl()

bool SfxMedium::WillDisposeStorageOnClose_Impl ( )

Definition at line 1952 of file docfile.cxx.

References pImpl.

Referenced by SfxObjectShell::SaveTo_Impl().

Member Data Documentation

◆ pImpl

std::unique_ptr< SfxMedium_Impl > SfxMedium::pImpl
private

Definition at line 66 of file docfile.hxx.

Referenced by AddToCheckEditableWorkerList(), AddVersion_Impl(), CancelCheckEditableEntry(), CanDisposeStorage_Impl(), CheckFileDate(), ClearBackup_Impl(), Close(), CloseAndRelease(), CloseAndReleaseStreams_Impl(), CloseInStream_Impl(), CloseOutStream_Impl(), CloseStorage(), CloseStreams_Impl(), CloseZipStorage_Impl(), Commit(), CompleteReOpen(), CreateFileStream(), CreateTempFile(), CreateTempFileNoCopy(), DisableFileSync(), DisableUnlockWebDAV(), DoBackup_Impl(), DoInternalBackup_Impl(), Download(), GetArgs(), GetBackup_Impl(), GetBaseURL(), GetCachedSignatureState_Impl(), GetCheckEditableMutex(), GetContent(), GetErrorCode(), GetFilter(), GetHeaderAttributes_Impl(), GetInitFileDate(), GetInputStream(), GetInStream(), GetInteractionHandler(), GetItemSet(), GetLastStorageCreationState(), GetLoadTargetFrame(), GetLockingStream_Impl(), GetLongName(), GetMedium_Impl(), GetName(), GetOpenMode(), GetOrigURL(), GetOutputStorage(), GetOutStream(), GetPhysicalName(), GetStorage(), GetURLObject(), GetVersionList(), GetWarningError(), GetWorkerReloadEvent(), GetZipStorageToSign_Impl(), HasStorage_Impl(), Init_Impl(), IsExpired(), IsInCheckIn(), IsOpen(), IsOriginallyLoadedReadOnly(), IsOriginallyReadOnly(), IsReadOnly(), IsRemote(), IsStorage(), IsUpdatePickList(), LockOrigFileOnDemand(), RemoveVersion_Impl(), ReOpen(), ResetError(), SaveVersionList_Impl(), SetArgs(), SetCachedSignatureState_Impl(), SetDoneLink(), SetEncryptionDataToStorage_Impl(), SetError(), SetExpired_Impl(), SetFilter(), SetHasEmbeddedObjects(), SetInCheckIn(), SetIsRemote_Impl(), SetLoadTargetFrame(), SetLongName(), SetName(), SetOpenMode(), SetOriginallyReadOnly(), SetPhysicalName_Impl(), SetStorage_Impl(), setStreamToLoadFrom(), SetUpdatePickList(), SetWarningError(), SetWorkerReloadEvent(), SfxMedium(), SignContents_Impl(), SignDocumentContentUsingCertificate(), StorageBackup_Impl(), StorageCommit_Impl(), SwitchDocumentToFile(), SwitchDocumentToTempFile(), TransactedTransferForFS_Impl(), Transfer_Impl(), TransferVersionList_Impl(), UnlockFile(), UseBackupToRestore_Impl(), UseInteractionHandler(), WillDisposeStorageOnClose_Impl(), and ~SfxMedium().


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