summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorMatt K <mattkse@gmail.com>2021-11-14 15:33:43 -0600
committerAdolfo Jayme Barrientos <fitojb@ubuntu.com>2021-11-18 10:37:57 +0100
commit63cb67f9e7a1920b43510df8f222c88a56fdf82d (patch)
tree7c46629e96f03175659f469469cd50ef63426bde /framework
parentf0e816412c386de976228b2232c23c31fd7f2d2c (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> Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125398 Tested-by: Jenkins Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.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 3719e00dc3ec..b6f3495fff09 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>
@@ -78,7 +77,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 )
{
@@ -111,19 +109,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();
}