summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorMatt K <mattkse@gmail.com>2021-11-14 15:33:43 -0600
committerMike Kaganski <mike.kaganski@collabora.com>2021-11-17 10:51:00 +0100
commitf9ab31366dbe466ef739015734bb5b6a1a0deca4 (patch)
tree64fd9aeb48ce1e656ce47d41447ab0294541ec99 /framework
parent8dec2a98ce29251936cd45ebf864a89ff767ee50 (diff)
tdf#143971 Removes pop-up dialog for read-only documents
No longer does the user get a pop-up dialog when opening documents that are read-only, asking whether they want to be notified when the document becomes editable. The change removes some of the functionality introduced in commit 95eb088802562b75f8b299908160145c7e88d763 "tdf#47065 Add new file open UI options and implement a new thread". Change-Id: Ic25e8e293e7224fb5086249a9d4814914fa961d1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125340 Tested-by: Mike Kaganski <mike.kaganski@collabora.com> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'framework')
-rw-r--r--framework/source/interaction/quietinteraction.cxx15
1 files changed, 0 insertions, 15 deletions
diff --git a/framework/source/interaction/quietinteraction.cxx b/framework/source/interaction/quietinteraction.cxx
index feeecf7c6568..e9dc218576e0 100644
--- a/framework/source/interaction/quietinteraction.cxx
+++ b/framework/source/interaction/quietinteraction.cxx
@@ -24,7 +24,6 @@
#include <com/sun/star/document/XInteractionFilterSelect.hpp>
#include <com/sun/star/document/XInteractionFilterOptions.hpp>
#include <com/sun/star/document/FilterOptionsRequest.hpp>
-#include <com/sun/star/document/ReadOnlyOpenRequest.hpp>
#include <com/sun/star/task/ErrorCodeRequest.hpp>
#include <com/sun/star/document/LockedDocumentRequest.hpp>
@@ -77,7 +76,6 @@ void SAL_CALL QuietInteraction::handle( const css::uno::Reference< css::task::XI
css::task::ErrorCodeRequest aErrorCodeRequest;
css::document::LockedDocumentRequest aLockedDocumentRequest;
css::document::FilterOptionsRequest aFilterOptionsRequest;
- css::document::ReadOnlyOpenRequest aReadOnlyOpenRequest;
if( aRequest >>= aErrorCodeRequest )
{
@@ -110,19 +108,6 @@ void SAL_CALL QuietInteraction::handle( const css::uno::Reference< css::task::XI
}
}
else
- if (aRequest >>= aReadOnlyOpenRequest)
- {
- // allow unit tests to run on read-only SRCDIR
- if (xApprove.is())
- {
- xApprove->select();
- }
- else if (xAbort.is())
- {
- xAbort->select();
- }
- }
- else
if (xAbort.is())
xAbort->select();
}