|
LibreOffice Module sfx2 (master) 1
|
#include <config_features.h>#include <sys/stat.h>#include <sfx2/docfile.hxx>#include <sfx2/signaturestate.hxx>#include <com/sun/star/task/InteractionHandler.hpp>#include <com/sun/star/task/XStatusIndicator.hpp>#include <com/sun/star/uno/Reference.h>#include <com/sun/star/ucb/XContent.hpp>#include <com/sun/star/container/XChild.hpp>#include <com/sun/star/document/XDocumentRevisionListPersistence.hpp>#include <com/sun/star/document/LockedDocumentRequest.hpp>#include <com/sun/star/document/LockedOnSavingRequest.hpp>#include <com/sun/star/document/OwnLockOnDocumentRequest.hpp>#include <com/sun/star/document/LockFileIgnoreRequest.hpp>#include <com/sun/star/document/LockFileCorruptRequest.hpp>#include <com/sun/star/document/ChangedByOthersRequest.hpp>#include <com/sun/star/document/ReloadEditableRequest.hpp>#include <com/sun/star/embed/XTransactedObject.hpp>#include <com/sun/star/embed/ElementModes.hpp>#include <com/sun/star/embed/UseBackupException.hpp>#include <com/sun/star/embed/XOptimizedStorage.hpp>#include <com/sun/star/frame/Desktop.hpp>#include <com/sun/star/frame/XModel.hpp>#include <com/sun/star/frame/XTerminateListener.hpp>#include <com/sun/star/graphic/XGraphic.hpp>#include <com/sun/star/ucb/ContentCreationException.hpp>#include <com/sun/star/ucb/InteractiveIOException.hpp>#include <com/sun/star/ucb/CommandFailedException.hpp>#include <com/sun/star/ucb/CommandAbortedException.hpp>#include <com/sun/star/ucb/InteractiveLockingLockedException.hpp>#include <com/sun/star/ucb/InteractiveNetworkReadException.hpp>#include <com/sun/star/ucb/InteractiveNetworkWriteException.hpp>#include <com/sun/star/ucb/Lock.hpp>#include <com/sun/star/ucb/NameClashException.hpp>#include <com/sun/star/ucb/XCommandEnvironment.hpp>#include <com/sun/star/ucb/XProgressHandler.hpp>#include <com/sun/star/io/XOutputStream.hpp>#include <com/sun/star/io/XInputStream.hpp>#include <com/sun/star/io/XTruncate.hpp>#include <com/sun/star/io/XSeekable.hpp>#include <com/sun/star/lang/XSingleServiceFactory.hpp>#include <com/sun/star/ucb/InsertCommandArgument.hpp>#include <com/sun/star/ucb/NameClash.hpp>#include <com/sun/star/beans/NamedValue.hpp>#include <com/sun/star/beans/PropertyValue.hpp>#include <com/sun/star/security/DocumentDigitalSignatures.hpp>#include <com/sun/star/security/XCertificate.hpp>#include <tools/urlobj.hxx>#include <tools/fileutil.hxx>#include <unotools/configmgr.hxx>#include <unotools/tempfile.hxx>#include <comphelper/fileurl.hxx>#include <comphelper/processfactory.hxx>#include <comphelper/propertyvalue.hxx>#include <comphelper/interaction.hxx>#include <comphelper/sequence.hxx>#include <comphelper/simplefileaccessinteraction.hxx>#include <comphelper/string.hxx>#include <framework/interaction.hxx>#include <utility>#include <svl/stritem.hxx>#include <svl/eitem.hxx>#include <svtools/sfxecode.hxx>#include <svl/itemset.hxx>#include <svl/intitem.hxx>#include <svtools/svparser.hxx>#include <sal/log.hxx>#include <unotools/streamwrap.hxx>#include <osl/file.hxx>#include <comphelper/storagehelper.hxx>#include <unotools/mediadescriptor.hxx>#include <comphelper/docpasswordhelper.hxx>#include <tools/datetime.hxx>#include <unotools/pathoptions.hxx>#include <svtools/asynclink.hxx>#include <ucbhelper/commandenvironment.hxx>#include <unotools/ucbstreamhelper.hxx>#include <unotools/ucbhelper.hxx>#include <unotools/progresshandlerwrap.hxx>#include <ucbhelper/content.hxx>#include <ucbhelper/interactionrequest.hxx>#include <sot/storage.hxx>#include <svl/documentlockfile.hxx>#include <svl/msodocumentlockfile.hxx>#include <com/sun/star/document/DocumentRevisionListPersistence.hpp>#include <sfx2/app.hxx>#include <sfx2/frame.hxx>#include <sfx2/dispatch.hxx>#include <sfx2/fcontnr.hxx>#include <sfx2/docfilt.hxx>#include <sfx2/sfxsids.hrc>#include <sfx2/sfxuno.hxx>#include <openflag.hxx>#include <officecfg/Office/Common.hxx>#include <comphelper/propertysequence.hxx>#include <vcl/weld.hxx>#include <vcl/svapp.hxx>#include <comphelper/diagnose_ex.hxx>#include <unotools/fltrcfg.hxx>#include <sfx2/digitalsignatures.hxx>#include <sfx2/viewfrm.hxx>#include <comphelper/threadpool.hxx>#include <o3tl/string_view.hxx>#include <condition_variable>#include <com/sun/star/io/WrongFormatException.hpp>#include <memory>Go to the source code of this file.
Classes | |
| class | SfxMedium_Impl |
Functions | |
| IMPL_STATIC_LINK (SfxMedium, ShowReloadEditableDialog, void *, p, void) | |
| callback function, which is triggered by worker thread after successfully checking if the file is editable. More... | |
Variables | |
| static std::mutex | g_chkReadOnlyGlobalMutex |
| static bool | g_bChkReadOnlyTaskRunning = false |
| static std::unordered_map< SfxMedium *, std::shared_ptr< ReadOnlyMediumEntry > > | g_newReadOnlyDocs |
| static std::unordered_map< SfxMedium *, std::shared_ptr< ReadOnlyMediumEntry > > | g_existingReadOnlyDocs |
callback function, which is triggered by worker thread after successfully checking if the file is editable.
Sent from <Application::PostUserEvent(..)> Note: This method has to be run in the main thread.
Definition at line 4641 of file docfile.cxx.
References SfxMedium::CancelCheckEditableEntry(), SfxViewFrame::GetFirst(), SfxMedium::GetInteractionHandler(), INetURLObject::GetLastName(), SfxViewFrame::GetNext(), SfxMedium::GetURLObject(), p, SfxMedium::SetOriginallyReadOnly(), and INetURLObject::WithCharset.
|
static |
Definition at line 164 of file docfile.cxx.
Referenced by SfxMedium::AddToCheckEditableWorkerList().
|
static |
Definition at line 163 of file docfile.cxx.
Referenced by SfxMedium::AddToCheckEditableWorkerList().
|
static |
Definition at line 166 of file docfile.cxx.
|
static |
Definition at line 165 of file docfile.cxx.
Referenced by SfxMedium::AddToCheckEditableWorkerList().