LibreOffice Module sfx2 (master) 1
|
#include <docfile.hxx>
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) |
ImplSVEvent * | GetWorkerReloadEvent () 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) |
SfxFrame * | GetLoadTargetFrame () 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 |
SfxItemSet & | GetItemSet () 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 INetURLObject & | GetURLObject () 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) |
SvStream * | GetInStream () |
SvStream * | GetOutStream () |
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 SvKeyValueIterator * | GetHeaderAttributes_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 &) | |
SvRefBase & | operator= (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_Impl > | pImpl |
Additional Inherited Members | |
Protected Member Functions inherited from SvRefBase | |
virtual | ~SvRefBase () COVERITY_NOEXCEPT_FALSE |
Definition at line 64 of file docfile.hxx.
|
strong |
Enumerator | |
---|---|
Failed | |
FailedLockFile | |
Succeeded |
Definition at line 169 of file docfile.hxx.
|
strongprivate |
Enumerator | |
---|---|
LockFileIgnore | |
LockFileCorrupt |
Definition at line 305 of file docfile.hxx.
|
strongprivate |
Enumerator | |
---|---|
NoLock | |
Succeeded | |
Try |
Definition at line 302 of file docfile.hxx.
SfxMedium::SfxMedium | ( | ) |
Definition at line 3063 of file docfile.cxx.
References Init_Impl().
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::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::SfxMedium | ( | const css::uno::Reference< css::embed::XStorage > & | xStorage, |
const OUString & | rBaseURL, | ||
const std::shared_ptr< SfxItemSet > & | pSet = nullptr |
||
) |
SfxMedium::SfxMedium | ( | const css::uno::Reference< css::embed::XStorage > & | xStorage, |
const OUString & | rBaseURL, | ||
const OUString & | rTypeName, | ||
const std::shared_ptr< SfxItemSet > & | pSet = nullptr |
||
) |
SfxMedium::SfxMedium | ( | const css::uno::Sequence< css::beans::PropertyValue > & | aArgs | ) |
|
overridevirtual |
Definition at line 3567 of file docfile.cxx.
References CancelCheckEditableEntry(), ClearBackup_Impl(), Close(), pImpl, and SAL_WARN.
void SfxMedium::AddToCheckEditableWorkerList | ( | ) |
Definition at line 4563 of file docfile.cxx.
References CancelCheckEditableEntry(), comphelper::ThreadPool::createThreadTaskTag(), g_bChkReadOnlyTaskRunning, g_chkReadOnlyGlobalMutex, g_newReadOnlyDocs, comphelper::ThreadPool::getSharedOptimalPool(), pImpl, and comphelper::ThreadPool::pushTask().
Referenced by SfxViewFrame::ExecReload_Impl(), and LockOrigFileOnDemand().
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().
|
static |
Definition at line 4376 of file docfile.cxx.
References framework::InteractionRequest::CreateRequest(), and Exception.
Referenced by SfxObjectShell::CheckEncryption_Impl(), SfxObjectShell_Impl::hasTrustedScriptingSignature(), and SfxBaseModel::impl_store().
void SfxMedium::CancelCheckEditableEntry | ( | bool | bRemoveEvent = true | ) |
Definition at line 4614 of file docfile.cxx.
References lock(), pImpl, and Application::RemoveUserEvent().
Referenced by AddToCheckEditableWorkerList(), SfxViewFrame::ExecReload_Impl(), IMPL_STATIC_LINK(), and ~SfxMedium().
void SfxMedium::CanDisposeStorage_Impl | ( | bool | bDisposeStorage | ) |
Definition at line 1947 of file docfile.cxx.
References pImpl.
Referenced by SfxObjectShell::ConnectTmpStorage_Impl(), SfxObjectShell::DisconnectStorage_Impl(), SfxObjectShell::DoInitNew(), SfxObjectShell::DoLoad(), SfxObjectShell::DoSaveCompleted(), SfxObjectShell::ImportFromGeneratedStream_Impl(), SfxBaseModel::storeToStorage(), SwitchDocumentToFile(), SwitchDocumentToTempFile(), SfxObjectShell::TemplateDisconnectionAfterLoad(), and SfxObjectShell::~SfxObjectShell().
bool SfxMedium::CheckCanGetLockfile | ( | ) | const |
Definition at line 4686 of file docfile.cxx.
References aData, svt::GenDocumentLockFile::CreateOwnLockFile(), svt::LockFileCommon::GenerateOwnEntry(), svt::GenDocumentLockFile::GetLockData(), GetName(), svt::LockFileCommon::GetURL(), svt::GenDocumentLockFile::RemoveFile(), and svt::GenDocumentLockFile::RemoveFileDirectly().
void SfxMedium::CheckFileDate | ( | const css::util::DateTime & | aInitDate | ) |
Definition at line 522 of file docfile.cxx.
References ERRCODE_ABORT, GetInitFileDate(), GetInteractionHandler(), pImpl, and SetError().
Referenced by SfxObjectShell::SaveTo_Impl().
void SfxMedium::ClearBackup_Impl | ( | ) |
Definition at line 2716 of file docfile.cxx.
References pImpl, and SAL_WARN.
Referenced by SfxObjectShell::DoSaveCompleted(), and ~SfxMedium().
void SfxMedium::Close | ( | bool | bInDestruction = false | ) |
Definition at line 3137 of file docfile.cxx.
References CloseStorage(), CloseStreams_Impl(), pImpl, and UnlockFile().
Referenced by SfxObjectShell::DisconnectStorage_Impl(), sfx2::DocumentMetadataAccess::storeMetadataToMedium(), SwitchDocumentToFile(), SwitchDocumentToTempFile(), SfxObjectShell::TemplateDisconnectionAfterLoad(), and ~SfxMedium().
void SfxMedium::CloseAndRelease | ( | ) |
Definition at line 3149 of file docfile.cxx.
References CloseAndReleaseStreams_Impl(), CloseStorage(), pImpl, and UnlockFile().
Referenced by SfxViewFrame::ExecReload_Impl(), SfxObjectShell::PrepareForSigning(), SfxObjectShell::SaveTo_Impl(), SignContents_Impl(), SignDocumentContentUsingCertificate(), and SfxObjectShell::SignDocumentContentUsingCertificate().
void SfxMedium::CloseAndReleaseStreams_Impl | ( | ) |
Definition at line 3277 of file docfile.cxx.
References CloseStreams_Impl(), CloseZipStorage_Impl(), and pImpl.
Referenced by CloseAndRelease(), StorageCommit_Impl(), and SfxObjectShell::~SfxObjectShell().
void SfxMedium::CloseInStream | ( | ) |
Definition at line 701 of file docfile.cxx.
References CloseInStream_Impl().
Referenced by CreateTempFile(), SfxObjectShell::FinishedLoading(), GetOutputStorage(), and SfxObjectShell::SetReadOnly().
|
private |
Definition at line 706 of file docfile.cxx.
References CloseStorage(), CloseZipStorage_Impl(), CreateTempFile(), GetContent(), and pImpl.
Referenced by CloseInStream(), CloseStreams_Impl(), and CreateFileStream().
void SfxMedium::CloseOutStream | ( | ) |
Definition at line 776 of file docfile.cxx.
References CloseOutStream_Impl().
Referenced by CreateTempFile().
|
private |
Definition at line 781 of file docfile.cxx.
References CloseStorage(), and pImpl.
Referenced by CloseOutStream(), CloseStreams_Impl(), CreateTempFile(), and CreateTempFileNoCopy().
void SfxMedium::CloseStorage | ( | ) |
Definition at line 1923 of file docfile.cxx.
References pImpl, and SAL_WARN.
Referenced by Close(), CloseAndRelease(), CloseInStream_Impl(), CloseOutStream_Impl(), CreateTempFile(), CreateTempFileNoCopy(), GetOutStream(), SfxObjectShell::ImportFromGeneratedStream_Impl(), SfxBaseModel::load(), SfxObjectShell::SaveTo_Impl(), SetOpenMode(), TransactedTransferForFS_Impl(), and Transfer_Impl().
|
private |
Definition at line 3312 of file docfile.cxx.
References CloseInStream_Impl(), CloseOutStream_Impl(), and pImpl.
Referenced by Close(), CloseAndReleaseStreams_Impl(), GetStorage(), SetOpenMode(), TransactedTransferForFS_Impl(), and Transfer_Impl().
void SfxMedium::CloseZipStorage_Impl | ( | ) |
Definition at line 1910 of file docfile.cxx.
References pImpl.
Referenced by CloseAndReleaseStreams_Impl(), CloseInStream_Impl(), SfxObjectShell::SaveTo_Impl(), and StorageCommit_Impl().
bool SfxMedium::Commit | ( | ) |
Definition at line 839 of file docfile.cxx.
References DocNeedsFileDateCheck(), ERRCODE_NONE, GetError(), GetInitFileDate(), pImpl, StorageCommit_Impl(), and Transfer_Impl().
Referenced by SfxObjectShell::DoSave(), SfxObjectShell::SaveTo_Impl(), SignContents_Impl(), SignDocumentContentUsingCertificate(), and sfx2::DocumentMetadataAccess::storeMetadataToMedium().
void SfxMedium::CompleteReOpen | ( | ) |
Definition at line 3393 of file docfile.cxx.
References GetError(), GetMedium_Impl(), and pImpl.
Referenced by SfxViewFrame::ExecReload_Impl().
void SfxMedium::CreateFileStream | ( | ) |
Definition at line 819 of file docfile.cxx.
References CloseInStream_Impl(), CreateTempFile(), GetInStream(), pImpl, and SvLockBytes::SetSynchronMode().
Referenced by GetPhysicalName().
|
static |
Definition at line 3116 of file docfile.cxx.
References comphelper::DocPasswordHelper::GetWordHashAsUINT32(), and comphelper::DocPasswordHelper::GetXLHashAsUINT16().
Referenced by sfx2::SetPassword().
|
static |
Definition at line 4337 of file docfile.cxx.
References aURL, ucbhelper::Copy, INetURLObject::GetMainURL(), INetURLObject::getName(), comphelper::getProcessComponentContext(), INetURLObject::LAST_SEGMENT, INetURLObject::NONE, INetURLObject::removeSegment(), ucbhelper::Content::transferContent(), u, and INetURLObject::WithCharset.
void SfxMedium::CreateTempFile | ( | bool | bReplace = true | ) |
Definition at line 3893 of file docfile.cxx.
References CloseInStream(), CloseOutStream(), CloseOutStream_Impl(), CloseStorage(), ucbhelper::Copy, ERRCODE_IO_CANTWRITE, ERRCODE_NONE, GetContent(), INetURLObject::GetMainURL(), INetURLObject::getName(), GetOutStream(), comphelper::getProcessComponentContext(), GetURLObject(), INetURLObject::LAST_SEGMENT, INetURLObject::NONE, pImpl, INetURLObject::removeSegment(), SetError(), SetWritableForUserOnly(), ucbhelper::Content::transferContent(), and INetURLObject::WithCharset.
Referenced by CloseInStream_Impl(), CreateFileStream(), SfxObjectShell::GetDocumentSignatureInformation(), GetOutStream(), GetStorage(), SignContents_Impl(), SignDocumentContentUsingCertificate(), SwitchDocumentToFile(), SwitchDocumentToTempFile(), and SfxObjectShell::TemplateDisconnectionAfterLoad().
void SfxMedium::CreateTempFileNoCopy | ( | ) |
Definition at line 3995 of file docfile.cxx.
References CloseOutStream_Impl(), CloseStorage(), ERRCODE_IO_CANTWRITE, GetURLObject(), pImpl, and SetError().
Referenced by SfxObjectShell::DoSaveAs(), GetOutputStorage(), and SfxObjectShell::SaveTo_Impl().
SfxMedium::DECL_DLLPRIVATE_STATIC_LINK | ( | SfxMedium | , |
ShowReloadEditableDialog | , | ||
void * | , | ||
void | |||
) |
References Close, GetItemSet(), GetName(), and IsRemote().
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().
void SfxMedium::DisableUnlockWebDAV | ( | bool | bDisableUnlockWebDAV = true | ) |
Definition at line 3161 of file docfile.cxx.
References pImpl.
Referenced by SfxObjectShell::SaveTo_Impl().
void SfxMedium::DoBackup_Impl | ( | bool | bForceUsingBackupPath | ) |
Definition at line 2644 of file docfile.cxx.
References ucbhelper::Copy, ucbhelper::Content::create(), DoBackup_Impl(), ERRCODE_SFX_CANTCREATEBACKUP, SvtPathOptions::GetBackupPath(), INetURLObject::getExtension(), INetURLObject::GetMainURL(), INetURLObject::getName(), INetURLObject::GetPartBeforeLastName(), comphelper::getProcessComponentContext(), GetURLObject(), INetURLObject::hasExtension(), INetURLObject::insertName(), INetURLObject::LAST_SEGMENT, INetURLObject::NONE, pImpl, INetURLObject::setExtension(), ucbhelper::Content::transferContent(), and INetURLObject::WithCharset.
Referenced by DoBackup_Impl(), and SfxObjectShell::SaveTo_Impl().
bool SfxMedium::DocNeedsFileDateCheck | ( | ) | const |
Definition at line 560 of file docfile.cxx.
References GetURLObject(), and IsReadOnly().
Referenced by Commit(), SfxObjectShell::DoSaveCompleted(), LockOrigFileOnDemand(), and SfxObjectShell::SaveTo_Impl().
void SfxMedium::DoInternalBackup_Impl | ( | const ::ucbhelper::Content & | aOriginalContent | ) |
Definition at line 2608 of file docfile.cxx.
References DoInternalBackup_Impl(), SvtPathOptions::GetBackupPath(), INetURLObject::GetMainURL(), INetURLObject::getName(), comphelper::getProcessComponentContext(), GetURLObject(), INetURLObject::LAST_SEGMENT, INetURLObject::NONE, pImpl, and INetURLObject::removeSegment().
Referenced by DoInternalBackup_Impl(), StorageBackup_Impl(), and TransactedTransferForFS_Impl().
void SfxMedium::DoInternalBackup_Impl | ( | const ::ucbhelper::Content & | aOriginalContent, |
std::u16string_view | aPrefix, | ||
std::u16string_view | aExtension, | ||
const OUString & | aDestDir | ||
) |
Definition at line 2571 of file docfile.cxx.
References ucbhelper::Copy, ucbhelper::Content::create(), utl::TempFileNamed::EnableKillingFile(), Exception, INetURLObject::GetMainURL(), INetURLObject::getName(), comphelper::getProcessComponentContext(), utl::TempFileNamed::GetURL(), INetURLObject::LAST_SEGMENT, INetURLObject::NONE, pImpl, ucbhelper::Content::transferContent(), and INetURLObject::WithCharset.
Definition at line 2944 of file docfile.cxx.
References GetInStream(), Application::IsQuit(), Link< typename Arg, typename Ret >::IsSet(), pImpl, SetDoneLink(), and Application::Yield().
Referenced by SvxOpenGraphicDialog::Execute().
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().
OUString const & SfxMedium::GetBackup_Impl | ( | ) |
Definition at line 940 of file docfile.cxx.
References pImpl, and StorageBackup_Impl().
Referenced by SfxObjectShell::DisconnectStorage_Impl().
OUString SfxMedium::GetBaseURL | ( | bool | bForSaving = false | ) |
Definition at line 634 of file docfile.cxx.
References Any, GetContent(), GetItemSet(), INetURLObject::GetMainURL(), GetURLObject(), utl::ConfigManager::IsFuzzing(), IsRemote(), INetURLObject::NONE, and pImpl.
Referenced by SfxObjectShell::CreateShellID(), SfxObjectShell::DoLoad(), SfxObjectShell::ExportTo(), SfxObjectShell::getDocumentBaseURL(), and SfxObjectShell::ImportFrom().
SignatureState SfxMedium::GetCachedSignatureState_Impl | ( | ) | const |
Definition at line 4311 of file docfile.cxx.
References pImpl.
Referenced by SfxObjectShell::DoSaveCompleted().
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().
Reference< XContent > SfxMedium::GetContent | ( | ) | const |
Definition at line 590 of file docfile.cxx.
References aURL, ucbhelper::Content::create(), Exception, INetURLObject::GetMainURL(), comphelper::getProcessComponentContext(), GetURLObject(), SfxUnoAnyItem::GetValue(), INetURLObject::NONE, and pImpl.
Referenced by CloseInStream_Impl(), CreateTempFile(), GetBaseURL(), GetHeaderAttributes_Impl(), GetMedium_Impl(), and Transfer_Impl().
|
inline |
Definition at line 147 of file docfile.hxx.
References ErrCode::IgnoreWarning().
Referenced by Commit(), CompleteReOpen(), SfxObjectShell::DoLoad(), SfxObjectShell::DoSave_Impl(), SfxObjectShell::DoSaveCompleted(), GetInStream(), GetMedium_Impl(), GetOutputStorage(), GetStorage(), GetZipStorageToSign_Impl(), SfxBaseModel::load(), SfxApplication::LoadTemplate(), LockOrigFileOnDemand(), SfxObjectShell::PreDoSaveAs_Impl(), SfxObjectShell::SaveTo_Impl(), SignContents_Impl(), SignDocumentContentUsingCertificate(), StorageCommit_Impl(), sfx2::DocumentMetadataAccess::storeMetadataToMedium(), and TryDirectTransfer().
ErrCode SfxMedium::GetErrorCode | ( | ) | const |
Definition at line 512 of file docfile.cxx.
References pImpl.
Referenced by SfxObjectShell::DoSave_Impl(), SfxObjectShell::DoSaveAs(), SfxViewFrame::ExecReload_Impl(), SfxObjectShell::GetErrorCode(), SfxApplication::LoadTemplate(), SfxObjectShell::PreDoSaveAs_Impl(), and SfxObjectShell::SaveTo_Impl().
const std::shared_ptr< const SfxFilter > & SfxMedium::GetFilter | ( | ) | const |
Definition at line 3111 of file docfile.cxx.
References pImpl.
Referenced by SfxPickListImpl::AddDocumentToPickList(), SfxObjectShell::AddToRecentlyUsedList(), CheckPasswd_Impl(), SfxObjectShell::DoLoad(), SfxObjectShell::DoSave_Impl(), SfxObjectShell::DoSaveCompleted(), SfxViewShell::ExecPrint_Impl(), SfxViewFrame::ExecReload_Impl(), SfxObjectShell::ExportTo(), SfxObjectShell::GetDocumentSignatureInformation(), SfxBaseModel::GetMediumFilterName_Impl(), SfxObjectShell::HandleFilter(), IMPL_LINK_NOARG(), SfxBaseModel::impl_store(), SfxObjectShell::ImportFrom(), SfxObjectShell::IsHelpDocument(), SfxObjectShell::IsOwnStorageFormat(), SfxObjectShell::IsPackageStorageFormat_Impl(), SfxObjectShell::IsSignPDF(), SfxObjectShell::SaveAsOwnFormat(), SfxObjectShell::SaveTo_Impl(), SignContents_Impl(), SignDocumentContentUsingCertificate(), SfxBaseModel::storeToStorage(), SfxFrame::UpdateDescriptor(), and SfxObjectShell::UpdateFromTemplate_Impl().
SvKeyValueIterator * SfxMedium::GetHeaderAttributes_Impl | ( | ) |
Definition at line 3655 of file docfile.cxx.
References Any, GetContent(), and pImpl.
util::DateTime const & SfxMedium::GetInitFileDate | ( | bool | bIgnoreOldValue | ) |
Definition at line 566 of file docfile.cxx.
References utl::UCBContentHelper::getDefaultCommandEnvironment(), comphelper::getProcessComponentContext(), ucbhelper::Content::getPropertyValue(), GetURLObject(), INetURLObject::NONE, and pImpl.
Referenced by CheckFileDate(), Commit(), SfxObjectShell::DoSaveCompleted(), LockOrigFileOnDemand(), and SfxObjectShell::SaveTo_Impl().
css::uno::Reference< css::io::XInputStream > const & SfxMedium::GetInputStream | ( | ) |
Definition at line 3680 of file docfile.cxx.
References GetMedium_Impl(), and pImpl.
Referenced by SfxFilterMatcher::GuessFilterControlDefaultUI(), SfxObjectShell::HandleFilter(), and TryDirectTransfer().
SvStream * SfxMedium::GetInStream | ( | ) |
Definition at line 671 of file docfile.cxx.
References ERRCODE_IO_ACCESSDENIED, GetError(), GetMedium_Impl(), and pImpl.
Referenced by CreateFileStream(), SfxObjectShell::DoLoad(), SfxObjectShell::DoSaveCompleted(), Download(), SvxOpenGraphicDialog::Execute(), SfxObjectShell::ImportFrom(), IsStorage(), and SfxApplication::LoadTemplate().
css::uno::Reference< css::task::XInteractionHandler > SfxMedium::GetInteractionHandler | ( | bool | bGetAlways = false | ) |
Definition at line 3076 of file docfile.cxx.
References SfxUnoAnyItem::GetValue(), and pImpl.
Referenced by SfxObjectShell::AdjustMacroMode(), CheckFileDate(), CheckPasswd_Impl(), SfxObjectShell::CheckSecurityOnLoading_Impl(), SfxViewFrame::ExecReload_Impl(), SfxObjectShell::getInteractionHandler(), GetMedium_Impl(), SfxFilterMatcher::GuessFilterControlDefaultUI(), SfxObjectShell::HandleFilter(), SfxBaseModel::handleLoadError(), SfxObjectShell_Impl::hasTrustedScriptingSignature(), IMPL_STATIC_LINK(), SfxBaseModel::load(), LockOrigFileOnDemand(), SfxObjectShell::SaveTo_Impl(), Transfer_Impl(), and UnlockFile().
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().
ErrCode const & SfxMedium::GetLastStorageCreationState | ( | ) | const |
Definition at line 497 of file docfile.cxx.
References pImpl.
Referenced by SfxObjectShell::DoLoad().
SfxFrame * SfxMedium::GetLoadTargetFrame | ( | ) | const |
Definition at line 3624 of file docfile.cxx.
References pImpl.
void SfxMedium::GetLockingStream_Impl | ( | ) |
Definition at line 2741 of file docfile.cxx.
References utl::MediaDescriptor::addInputStreamOwnLock(), GetItemSet(), GetURLObject(), SfxUnoAnyItem::GetValue(), pImpl, utl::MediaDescriptor::PROP_INPUTSTREAM, utl::MediaDescriptor::PROP_STREAM, and TransformItems().
Referenced by LockOrigFileOnDemand().
const OUString & SfxMedium::GetLongName | ( | ) | const |
Definition at line 2934 of file docfile.cxx.
References pImpl.
Referenced by SfxObjectShell::DoSave_Impl().
void SfxMedium::GetMedium_Impl | ( | ) |
Definition at line 2780 of file docfile.cxx.
References utl::MediaDescriptor::addInputStream(), utl::MediaDescriptor::addInputStreamOwnLock(), Any, utl::UcbStreamHelper::CreateStream(), ERRCODE_IO_ACCESSDENIED, GetContent(), GetError(), GetInteractionHandler(), GetItemSet(), GetName(), GetURLObject(), SfxUnoAnyItem::GetValue(), pImpl, utl::MediaDescriptor::PROP_AUTHENTICATIONHANDLER, utl::MediaDescriptor::PROP_INPUTSTREAM, utl::MediaDescriptor::PROP_READONLY, utl::MediaDescriptor::PROP_STREAM, utl::MediaDescriptor::PROP_URL, SfxItemSet::Put(), SAL_WARN, SetError(), and TransformItems().
Referenced by CompleteReOpen(), SfxObjectShell::DoSaveCompleted(), GetInputStream(), GetInStream(), GetStorage(), GetZipStorageToSign_Impl(), LockOrigFileOnDemand(), ReOpen(), SignContents_Impl(), SignDocumentContentUsingCertificate(), SwitchDocumentToFile(), and SwitchDocumentToTempFile().
const OUString & SfxMedium::GetName | ( | ) | const |
Definition at line 3592 of file docfile.cxx.
References pImpl.
Referenced by SfxBaseModel::cancelCheckOut(), CheckCanGetLockfile(), SfxBaseModel::checkIn(), SfxBaseModel::checkOut(), SfxObjectShell::CommonSaveAs_Impl(), SfxBaseModel::connectController(), SfxObjectShell::DoLoad(), SfxObjectShell::DoSave_Impl(), SfxObjectShell::DoSaveCompleted(), SfxViewFrame::ExecReload_Impl(), SfxObjectShell::ExportTo(), SfxBaseModel::getAllVersions(), SfxBaseModel::getBoolPropertyValue(), SfxObjectShell_Impl::getDocumentLocation(), sfx2::LinkManager::GetGraphicFromAny(), GetMedium_Impl(), SfxBaseModel::getTitle(), SfxObjectShell::HandleFilter(), IMPL_LINK(), SfxDocumentPage::ImplUpdateSignatures(), SfxObjectShell::ImportFrom(), Init_Impl(), AutoReloadTimer_Impl::Invoke(), SfxBaseModel::loadCmisProperties(), SfxObjectShell::LoadOwnFormat(), SfxVersionDialog::Open_Impl(), sfx2::LinkManager::ReconnectDdeLink(), SfxObjectShell::SaveTo_Impl(), SetIsRemote_Impl(), SignContents_Impl(), SignDocumentContentUsingCertificate(), SfxObjectShell::TemplateDisconnectionAfterLoad(), SfxBaseModel::updateCmisProperties(), SfxObjectShell::UpdateFromTemplate_Impl(), and SfxViewFrame::UpdateTitle().
StreamMode SfxMedium::GetOpenMode | ( | ) | const |
Definition at line 1957 of file docfile.cxx.
References pImpl.
Referenced by SfxObjectShell::DoSave_Impl(), SfxObjectShell::DoSaveCompleted(), SfxObjectShell::FinishedLoading(), and IsReadOnly().
const OUString & SfxMedium::GetOrigURL | ( | ) | const |
Definition at line 3364 of file docfile.cxx.
References pImpl.
Referenced by SfxPickListImpl::AddDocumentToPickList(), SfxObjectShell::AddToRecentlyUsedList(), CheckPasswd_Impl(), SfxObjectShell::DoLoad(), SfxObjectShell::DoSaveCompleted(), SfxViewFrame::ExecReload_Impl(), SfxObjectShell::InitOwnModel_Impl(), and SfxPickListImpl::Notify().
uno::Reference< embed::XStorage > SfxMedium::GetOutputStorage | ( | ) |
Definition at line 949 of file docfile.cxx.
References CloseInStream(), CreateTempFileNoCopy(), DBG_ASSERT, GetError(), GetStorage(), and pImpl.
Referenced by SfxObjectShell::SaveTo_Impl(), and sfx2::DocumentMetadataAccess::storeMetadataToMedium().
SvStream * SfxMedium::GetOutStream | ( | ) |
Definition at line 741 of file docfile.cxx.
References CloseStorage(), utl::UcbStreamHelper::CreateStream(), CreateTempFile(), and pImpl.
Referenced by CreateTempFile(), SfxObjectShell::ExportTo(), and SfxObjectShell::SaveTo_Impl().
const OUString & SfxMedium::GetPhysicalName | ( | ) | const |
Definition at line 809 of file docfile.cxx.
References CreateFileStream(), and pImpl.
Referenced by SfxObjectShell::DoLoad(), SfxViewFrame::ExecReload_Impl(), and SfxObjectShell::InitOwnModel_Impl().
uno::Reference< embed::XStorage > SfxMedium::GetStorage | ( | bool | bCreateTempFile = true | ) |
Definition at line 1703 of file docfile.cxx.
References aProperties, SvFileStream::Close(), CloseStreams_Impl(), utl::UcbStreamHelper::CreateStream(), CreateTempFile(), DBG_ASSERT, ERRCODE_NONE, GetError(), SfxItemSet::GetItem(), GetItemSet(), GetMedium_Impl(), comphelper::OStorageHelper::GetStorageFactory(), comphelper::OStorageHelper::GetStorageFromURL(), SfxBoolItem::GetValue(), SfxInt16Item::GetValue(), SfxUnoAnyItem::GetValue(), GetVersionList(), comphelper::InitPropertySequence(), comphelper::makePropertyValue(), nVersion, pImpl, SfxItemSet::Put(), SetEncryptionDataToStorage_Impl(), SetPhysicalName_Impl(), SFX_STREAM_READONLY, and SFX_STREAM_READWRITE.
Referenced by AddVersion_Impl(), CheckPasswd_Impl(), SfxObjectShell::DisconnectStorage_Impl(), SfxObjectShell::DoLoad(), SfxObjectShell::DoSave(), SfxObjectShell::DoSaveCompleted(), SfxObjectShell::DoSaveObjectAs(), SfxViewFrame::ExecReload_Impl(), GetOutputStorage(), GetVersionList(), SfxDocumentPage::ImplUpdateSignatures(), SfxObjectShell::Load(), SfxObjectShell::LoadOwnFormat(), SfxApplication::LoadTemplate(), SfxObjectShell::PrepareForSigning(), SfxObjectShell::SaveAsChildren(), SfxObjectShell::SaveAsOwnFormat(), SfxObjectShell::SaveTo_Impl(), SaveVersionList_Impl(), SignContents_Impl(), SignDocumentContentUsingCertificate(), SfxObjectShell::SignDocumentContentUsingCertificate(), SwitchDocumentToFile(), SwitchDocumentToTempFile(), SfxObjectShell::UpdateFromTemplate_Impl(), and SfxObjectShell::~SfxObjectShell().
const INetURLObject & SfxMedium::GetURLObject | ( | ) | const |
Definition at line 3597 of file docfile.cxx.
Referenced by SfxObjectShell::CommonSaveAs_Impl(), CreateTempFile(), CreateTempFileNoCopy(), DoBackup_Impl(), DocNeedsFileDateCheck(), DoInternalBackup_Impl(), SfxViewFrame::ExecReload_Impl(), GetBaseURL(), GetContent(), GetInitFileDate(), GetLockingStream_Impl(), GetMedium_Impl(), SfxFilterMatcher::GuessFilterControlDefaultUI(), SfxFilterMatcher::GuessFilterIgnoringContent(), IMPL_STATIC_LINK(), Init_Impl(), SfxBaseModel::load(), LockOrigFileOnDemand(), StorageBackup_Impl(), StorageCommit_Impl(), Transfer_Impl(), UnlockFile(), and SfxObjectShell::~SfxObjectShell().
const uno::Sequence< util::RevisionTag > & SfxMedium::GetVersionList | ( | bool | _bNoReload = false | ) |
Definition at line 3687 of file docfile.cxx.
References comphelper::getProcessComponentContext(), GetStorage(), and pImpl.
Referenced by CheckPasswd_Impl(), GetStorage(), SfxVersionDialog::Init_Impl(), SfxObjectShell::SaveTo_Impl(), and sfx2::FileDialogHelper_Impl::updateVersions().
|
static |
ErrCode SfxMedium::GetWarningError | ( | ) | const |
Definition at line 492 of file docfile.cxx.
References pImpl.
ImplSVEvent * SfxMedium::GetWorkerReloadEvent | ( | ) | const |
Definition at line 4557 of file docfile.cxx.
References pImpl.
uno::Reference< embed::XStorage > const & SfxMedium::GetZipStorageToSign_Impl | ( | bool | bReadOnly = true | ) |
Definition at line 1878 of file docfile.cxx.
References bReadOnly, GetError(), GetMedium_Impl(), comphelper::OStorageHelper::GetStorageOfFormatFromInputStream(), comphelper::OStorageHelper::GetStorageOfFormatFromStream(), pImpl, ResetError(), SAL_WARN, and ZIP_STORAGE_FORMAT_STRING.
Referenced by SfxObjectShell::CheckIsReadonly(), SfxObjectShell_Impl::hasTrustedScriptingSignature(), SfxDocumentPage::ImplUpdateSignatures(), SfxObjectShell::SaveTo_Impl(), SignContents_Impl(), and SignDocumentContentUsingCertificate().
bool SfxMedium::HasStorage_Impl | ( | ) | const |
Definition at line 4327 of file docfile.cxx.
References pImpl.
Referenced by SfxObjectShell::DoSaveCompleted(), SfxViewFrame::ExecReload_Impl(), SfxObjectShell::FinishedLoading(), SfxObjectShell::ImportFromGeneratedStream_Impl(), SfxObjectShell::SaveTo_Impl(), SfxObjectShell::SetReadOnly(), and SfxObjectShell::~SfxObjectShell().
void SfxMedium::Init_Impl | ( | ) |
Definition at line 2956 of file docfile.cxx.
References DBG_ASSERT, GetItemSet(), INetURLObject::GetMainURL(), INetURLObject::GetMark(), GetName(), INetURLObject::GetProtocol(), INetURLObject::GetURLNoMark(), GetURLObject(), CntUnencodedStringItem::GetValue(), SfxUnoAnyItem::GetValue(), INetURLObject::HasMark(), INetURLObject::NONE, pImpl, SfxItemSet::Put(), SAL_WARN, and SetIsRemote_Impl().
Referenced by SetName(), SfxMedium(), and SfxObjectShell::TemplateDisconnectionAfterLoad().
bool SfxMedium::IsExpired | ( | ) | const |
Definition at line 3618 of file docfile.cxx.
References pImpl, and DateTime::SYSTEM.
Referenced by SfxViewFrame::ExecReload_Impl().
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().
bool SfxMedium::IsOpen | ( | ) | const |
Definition at line 4332 of file docfile.cxx.
References pImpl.
Referenced by SfxObjectShell::FinishedLoading(), SignContents_Impl(), and SignDocumentContentUsingCertificate().
bool SfxMedium::IsOriginallyLoadedReadOnly | ( | ) | const |
Definition at line 3829 of file docfile.cxx.
References pImpl.
Referenced by SfxPickListImpl::AddDocumentToPickList(), and SfxObjectShell::IsOriginallyLoadedReadOnlyMedium().
bool SfxMedium::IsOriginallyReadOnly | ( | ) | const |
Definition at line 3819 of file docfile.cxx.
References pImpl.
Referenced by SfxObjectShell::IsOriginallyReadOnlyMedium(), and SfxObjectShell::IsSignPDF().
bool SfxMedium::IsPreview_Impl | ( | ) | const |
Definition at line 896 of file docfile.cxx.
References SfxItemSet::GetItem(), GetItemSet(), CntUnencodedStringItem::GetValue(), and SfxBoolItem::GetValue().
bool SfxMedium::IsReadOnly | ( | ) | const |
Definition at line 3799 of file docfile.cxx.
References bReadOnly, SfxItemSet::GetItem(), GetItemSet(), GetOpenMode(), SfxBoolItem::GetValue(), and pImpl.
Referenced by DocNeedsFileDateCheck(), SfxBaseModel::getTitle(), SfxObjectShell::IsReadOnlyMedium(), and LockOrigFileOnDemand().
bool SfxMedium::IsRemote | ( | ) | const |
Definition at line 2914 of file docfile.cxx.
References pImpl.
Referenced by SfxViewFrame::ExecReload_Impl(), and GetBaseURL().
bool SfxMedium::IsSkipImages | ( | ) | const |
Definition at line 665 of file docfile.cxx.
References SfxItemSet::GetItem(), GetItemSet(), and CntUnencodedStringItem::GetValue().
bool SfxMedium::IsStorage | ( | ) |
Definition at line 865 of file docfile.cxx.
References aURL, GetInStream(), SotStorage::IsOLEStorage(), SotStorage::IsStorageFile(), pImpl, and SAL_WARN.
Referenced by CheckPasswd_Impl().
bool SfxMedium::IsUpdatePickList | ( | ) | const |
Definition at line 2924 of file docfile.cxx.
References pImpl.
Referenced by SfxPickListImpl::AddDocumentToPickList().
SfxMedium::LockFileResult SfxMedium::LockOrigFileOnDemand | ( | bool | bLoading, |
bool | bNoUI, | ||
bool | bTryIgnoreLockFile = false , |
||
LockFileEntry * | pLockData = nullptr |
||
) |
Definition at line 1293 of file docfile.cxx.
References aData, AddToCheckEditableWorkerList(), o3tl::enumarray< typename E, typename V >::begin(), svt::GenDocumentLockFile::CreateOwnLockFile(), DocNeedsFileDateCheck(), o3tl::enumarray< typename E, typename V >::end(), ERRCODE_IO_ACCESSDENIED, ERRCODE_NONE, Failed, FailedLockFile, svt::LockFileCommon::GenerateOwnEntry(), SvtFilterOptions::Get(), GetError(), GetInitFileDate(), GetInteractionHandler(), SfxItemSet::GetItem(), GetItemSet(), svt::GenDocumentLockFile::GetLockData(), GetLockingStream_Impl(), INetURLObject::GetMainURL(), GetMedium_Impl(), comphelper::getProcessComponentContext(), ucbhelper::Content::getPropertyValue(), INetURLObject::GetProtocol(), GetURLObject(), SfxBoolItem::GetValue(), INetURLObject::isAnyKnownWebDAVScheme(), comphelper::isFileUrl(), tools::IsMappedWebDAVPath(), SvtFilterOptions::IsMSOLockFileCreationIsEnabled(), svt::MSODocumentLockFile::IsMSOSupportedFileFormat(), IsReadOnly(), ucbhelper::Content::lock(), LockFileCorrupt, LockFileIgnore, NoLock, INetURLObject::NONE, svt::GenDocumentLockFile::OverwriteOwnLockFile(), pImpl, SfxItemSet::Put(), INetURLObject::removeSegment(), SetError(), ShowLockedDocumentDialog(), ShowLockFileProblemDialog(), Succeeded, TOOLS_WARN_EXCEPTION, and Try.
Referenced by SfxObjectShell::DoLoad(), SfxObjectShell::DoSaveCompleted(), SfxViewFrame::ExecReload_Impl(), SfxObjectShell::SaveTo_Impl(), SwitchDocumentToFile(), and SwitchDocumentToTempFile().
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().
void SfxMedium::ReOpen | ( | ) |
Definition at line 3385 of file docfile.cxx.
References GetMedium_Impl(), and pImpl.
Referenced by SfxObjectShell::DoSaveCompleted(), and SfxViewFrame::ExecReload_Impl().
void SfxMedium::ResetError | ( | ) |
Definition at line 483 of file docfile.cxx.
References ERRCODE_NONE, and pImpl.
Referenced by SfxObjectShell::DisconnectStorage_Impl(), SfxViewFrame::ExecReload_Impl(), GetZipStorageToSign_Impl(), SfxBaseModel::load(), SfxObjectShell::ResetError(), SfxObjectShell::SaveTo_Impl(), SignContents_Impl(), SignDocumentContentUsingCertificate(), and TryDirectTransfer().
void SfxMedium::SaveVersionList_Impl | ( | ) |
Definition at line 3780 of file docfile.cxx.
References comphelper::getProcessComponentContext(), GetStorage(), and pImpl.
Referenced by SfxObjectShell::SaveTo_Impl().
void SfxMedium::SetArgs | ( | const css::uno::Sequence< css::beans::PropertyValue > & | rArgs | ) |
Definition at line 3520 of file docfile.cxx.
References comphelper::SequenceAsHashMap::erase(), comphelper::SequenceAsHashMap::getAsConstPropertyValueList(), pImpl, sInputStream, sStream, and u.
Referenced by SfxObjectShell::PreDoSaveAs_Impl().
void SfxMedium::SetCachedSignatureState_Impl | ( | SignatureState | nState | ) |
Definition at line 4317 of file docfile.cxx.
Referenced by SfxObjectShell::DoSaveCompleted(), and SfxObjectShell::SaveTo_Impl().
void SfxMedium::SetDoneLink | ( | const Link< void *, void > & | rLink | ) |
|
private |
Definition at line 974 of file docfile.cxx.
References GetEncryptionData_Impl(), pImpl, SAL_WARN, and comphelper::OStorageHelper::SetCommonStorageEncryptionData().
Referenced by GetStorage().
void SfxMedium::SetError | ( | ErrCode | nError | ) |
Definition at line 502 of file docfile.cxx.
References pImpl.
Referenced by CheckFileDate(), CreateTempFile(), CreateTempFileNoCopy(), GetMedium_Impl(), LockOrigFileOnDemand(), StorageBackup_Impl(), StorageCommit_Impl(), and Transfer_Impl().
void SfxMedium::SetExpired_Impl | ( | const DateTime & | rDateTime | ) |
Definition at line 3612 of file docfile.cxx.
References pImpl.
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().
void SfxMedium::SetHasEmbeddedObjects | ( | bool | bHasEmbeddedObjects | ) |
Definition at line 4322 of file docfile.cxx.
References pImpl.
Referenced by SfxObjectShell::SaveTo_Impl().
void SfxMedium::SetInCheckIn | ( | bool | bInCheckIn | ) |
Definition at line 4534 of file docfile.cxx.
References pImpl.
Referenced by SfxObjectShell::DoSave_Impl().
|
private |
Definition at line 3324 of file docfile.cxx.
References GetName(), INetURLObject::GetProtocol(), and pImpl.
Referenced by Init_Impl().
void SfxMedium::SetLoadTargetFrame | ( | SfxFrame * | pFrame | ) |
Definition at line 3635 of file docfile.cxx.
References pImpl.
void SfxMedium::SetLongName | ( | const OUString & | rName | ) |
Definition at line 2929 of file docfile.cxx.
References pImpl.
Referenced by SfxObjectShell::DoSave_Impl().
void SfxMedium::SetName | ( | const OUString & | rName, |
bool | bSetOrigURL = false |
||
) |
Definition at line 3346 of file docfile.cxx.
References Init_Impl(), and pImpl.
Referenced by SwitchDocumentToFile(), SwitchDocumentToTempFile(), and SfxObjectShell::TemplateDisconnectionAfterLoad().
void SfxMedium::SetOpenMode | ( | StreamMode | nStorOpen, |
bool | bDontClose = false |
||
) |
Definition at line 1962 of file docfile.cxx.
References CloseStorage(), CloseStreams_Impl(), and pImpl.
Referenced by SfxViewFrame::ExecReload_Impl(), SfxObjectShell::SetReadOnly(), and SfxObjectShell::TemplateDisconnectionAfterLoad().
void SfxMedium::SetOriginallyReadOnly | ( | bool | val | ) |
void SfxMedium::SetPhysicalName_Impl | ( | const OUString & | rName | ) |
Definition at line 3370 of file docfile.cxx.
References pImpl.
Referenced by GetStorage(), SwitchDocumentToFile(), and SwitchDocumentToTempFile().
void SfxMedium::SetStorage_Impl | ( | const css::uno::Reference< css::embed::XStorage > & | xNewStorage | ) |
Definition at line 3641 of file docfile.cxx.
References pImpl.
Referenced by SfxObjectShell::ImportFromGeneratedStream_Impl(), and SfxObjectShell::TemplateDisconnectionAfterLoad().
void SfxMedium::setStreamToLoadFrom | ( | const css::uno::Reference< css::io::XInputStream > & | xInputStream, |
bool | bIsReadOnly | ||
) |
Definition at line 3629 of file docfile.cxx.
References pImpl.
void SfxMedium::SetUpdatePickList | ( | bool | bVal | ) |
Definition at line 2919 of file docfile.cxx.
References pImpl.
Referenced by SfxObjectShell::ExecFile_Impl().
void SfxMedium::SetWarningError | ( | ErrCode | nWarningError | ) |
Definition at line 507 of file docfile.cxx.
References pImpl.
Referenced by SfxBaseModel::handleLoadError().
void SfxMedium::SetWorkerReloadEvent | ( | ImplSVEvent * | pEvent | ) |
Definition at line 4551 of file docfile.cxx.
References pImpl.
|
static |
Definition at line 3834 of file docfile.cxx.
References aURL, and nAttributes.
Referenced by CreateTempFile().
|
private |
Referenced by LockOrigFileOnDemand().
|
private |
Referenced by LockOrigFileOnDemand().
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() |
||
) |
Definition at line 4140 of file docfile.cxx.
References CloseAndRelease(), Commit(), utl::UcbStreamHelper::CreateStream(), CreateTempFile(), GetError(), GetFilter(), GetMedium_Impl(), GetName(), comphelper::OStorageHelper::GetODFVersionFromStorage(), comphelper::getProcessComponentContext(), GetStorage(), comphelper::OStorageHelper::GetStorageOfFormatFromStream(), weld::Window::GetXWindow(), GetZipStorageToSign_Impl(), IsOpen(), pImpl, ResetError(), SAL_WARN, TOOLS_WARN_EXCEPTION, xStream, and ZIP_STORAGE_FORMAT_STRING.
Referenced by SfxObjectShell::SignDocumentContent(), SfxObjectShell::SignScriptingContent(), and SfxObjectShell::SignSignatureLine().
bool SfxMedium::SignDocumentContentUsingCertificate | ( | const css::uno::Reference< css::frame::XModel > & | xModel, |
bool | bHasValidDocumentSignature, | ||
const css::uno::Reference< css::security::XCertificate > & | xCertificate | ||
) |
Definition at line 4014 of file docfile.cxx.
References CloseAndRelease(), Commit(), utl::UcbStreamHelper::CreateStream(), CreateTempFile(), GetError(), GetFilter(), GetMedium_Impl(), GetName(), comphelper::OStorageHelper::GetODFVersionFromStorage(), comphelper::getProcessComponentContext(), GetStorage(), comphelper::OStorageHelper::GetStorageOfFormatFromStream(), GetZipStorageToSign_Impl(), IsOpen(), pImpl, ResetError(), SAL_WARN, TOOLS_WARN_EXCEPTION, xModel, xStream, and ZIP_STORAGE_FORMAT_STRING.
Referenced by SfxObjectShell::SignDocumentContentUsingCertificate().
void SfxMedium::StorageBackup_Impl | ( | ) |
Definition at line 918 of file docfile.cxx.
References ucbhelper::Content::create(), DoInternalBackup_Impl(), ERRCODE_SFX_CANTCREATEBACKUP, INetURLObject::GetMainURL(), comphelper::getProcessComponentContext(), INetURLObject::GetProtocol(), GetURLObject(), INetURLObject::NONE, pImpl, and SetError().
Referenced by GetBackup_Impl().
bool SfxMedium::StorageCommit_Impl | ( | ) |
Definition at line 2004 of file docfile.cxx.
References CloseAndReleaseStreams_Impl(), CloseZipStorage_Impl(), ucbhelper::Content::create(), ERRCODE_IO_GENERAL, GetError(), comphelper::getProcessComponentContext(), GetURLObject(), INetURLObject::NONE, pImpl, SetError(), and UseBackupToRestore_Impl().
Referenced by Commit(), and SfxObjectShell::SaveTo_Impl().
bool SfxMedium::SwitchDocumentToFile | ( | const OUString & | aURL | ) |
Definition at line 4483 of file docfile.cxx.
References aURL, CanDisposeStorage_Impl(), Close(), CreateTempFile(), GetMedium_Impl(), GetStorage(), LockOrigFileOnDemand(), pImpl, SetName(), and SetPhysicalName_Impl().
Referenced by SfxObjectShell::SaveTo_Impl(), and Transfer_Impl().
OUString SfxMedium::SwitchDocumentToTempFile | ( | ) |
Definition at line 4407 of file docfile.cxx.
References CanDisposeStorage_Impl(), SfxItemSet::ClearItem(), Close(), CreateTempFile(), GetItemSet(), GetMedium_Impl(), GetStorage(), SfxBoolItem::GetValue(), LockOrigFileOnDemand(), pImpl, SfxItemSet::Put(), SetName(), SetPhysicalName_Impl(), SFX_STREAM_READONLY, SFX_STREAM_READWRITE, and u.
void SfxMedium::TransactedTransferForFS_Impl | ( | const INetURLObject & | aSource, |
const INetURLObject & | aDest, | ||
const css::uno::Reference< css::ucb::XCommandEnvironment > & | xComEnv | ||
) |
Definition at line 2063 of file docfile.cxx.
References CloseStorage(), CloseStreams_Impl(), ucbhelper::Content::create(), DoInternalBackup_Impl(), ERRCODE_ABORT, ERRCODE_IO_ACCESSDENIED, ERRCODE_IO_ALREADYEXISTS, ERRCODE_IO_CANTREAD, ERRCODE_IO_GENERAL, ERRCODE_IO_NOTEXISTS, ERRCODE_IO_NOTEXISTSPATH, ERRCODE_SFX_CANTCREATEBACKUP, ex, SfxItemSet::GetItem(), GetItemSet(), INetURLObject::GetMainURL(), comphelper::getProcessComponentContext(), SfxBoolItem::GetValue(), nAttributes, INetURLObject::NONE, ucbhelper::Content::openStream(), pImpl, ucbhelper::Content::setPropertyValue(), UseBackupToRestore_Impl(), and ucbhelper::Content::writeStream().
Referenced by Transfer_Impl().
void SfxMedium::Transfer_Impl | ( | ) |
Definition at line 2272 of file docfile.cxx.
References aMimeType, Any, CloseStorage(), CloseStreams_Impl(), ucbhelper::Copy, ucbhelper::Content::create(), ERRCODE_ABORT, ERRCODE_IO_ACCESSDENIED, ERRCODE_IO_CANTREAD, ERRCODE_IO_GENERAL, ERRCODE_IO_NOTEXISTS, ERRCODE_IO_NOTEXISTSPATH, ex, Exception, ucbhelper::Content::get(), GetContent(), GetInteractionHandler(), SfxItemSet::GetItem(), GetItemSet(), INetURLObject::GetMainURL(), INetURLObject::getName(), comphelper::getProcessComponentContext(), ucbhelper::Content::getPropertyValue(), GetURLObject(), CntUnencodedStringItem::GetValue(), SfxBoolItem::GetValue(), SfxUnoAnyItem::GetValue(), INetURLObject::isAnyKnownWebDAVScheme(), comphelper::isFileUrl(), IsInCheckIn(), INetURLObject::LAST_SEGMENT, ucbhelper::Content::lock(), INetURLObject::NONE, ucbhelper::Content::openStream(), pImpl, INetURLObject::removeSegment(), SAL_INFO, SAL_WARN, SetError(), SwitchDocumentToFile(), TOOLS_WARN_EXCEPTION, TransactedTransferForFS_Impl(), ucbhelper::Content::transferContent(), and INetURLObject::WithCharset.
Referenced by Commit().
bool SfxMedium::TransferVersionList_Impl | ( | SfxMedium const & | rMedium | ) |
Definition at line 3769 of file docfile.cxx.
References pImpl.
Referenced by SfxObjectShell::DoSave_Impl(), SfxObjectShell::DoSaveAs(), and SfxObjectShell::PreDoSaveAs_Impl().
bool SfxMedium::TryDirectTransfer | ( | const OUString & | aURL, |
SfxItemSet const & | aTargetSet | ||
) |
Definition at line 2206 of file docfile.cxx.
References Any, aURL, ucbhelper::Content::executeCommand(), GetError(), GetInputStream(), SfxItemSet::GetItem(), GetItemSet(), comphelper::getProcessComponentContext(), CntUnencodedStringItem::GetValue(), SfxBoolItem::GetValue(), nPos, and ResetError().
Referenced by SfxObjectShell::CommonSaveAs_Impl().
void SfxMedium::UnlockFile | ( | bool | bReleaseLockStream | ) |
Definition at line 3171 of file docfile.cxx.
References GetInteractionHandler(), comphelper::getProcessComponentContext(), GetURLObject(), INetURLObject::isAnyKnownWebDAVScheme(), INetURLObject::NONE, pImpl, svt::GenDocumentLockFile::RemoveFile(), svt::MSODocumentLockFile::RemoveFile(), svt::GenDocumentLockFile::RemoveFileDirectly(), TOOLS_WARN_EXCEPTION, and ucbhelper::Content::unlock().
Referenced by Close(), CloseAndRelease(), and SfxObjectShell::SetReadOnly().
bool SfxMedium::UseBackupToRestore_Impl | ( | ::ucbhelper::Content & | aOriginalContent, |
const css::uno::Reference< css::ucb::XCommandEnvironment > & | xComEnv | ||
) |
Definition at line 1980 of file docfile.cxx.
References ERRCODE_IO_GENERAL, Exception, comphelper::getProcessComponentContext(), ucbhelper::Content::openStream(), pImpl, and ucbhelper::Content::writeStream().
Referenced by StorageCommit_Impl(), and TransactedTransferForFS_Impl().
void SfxMedium::UseInteractionHandler | ( | bool | bUse | ) |
Definition at line 3069 of file docfile.cxx.
References pImpl.
Referenced by SfxBaseModel::loadFromStorage(), and SfxApplication::LoadTemplate().
bool SfxMedium::WillDisposeStorageOnClose_Impl | ( | ) |
Definition at line 1952 of file docfile.cxx.
References pImpl.
Referenced by SfxObjectShell::SaveTo_Impl().
|
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().