diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2017-01-16 21:25:25 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2017-01-19 07:01:43 +0000 |
commit | a2ad27a2be429c6d17ef28c28ac5aee66ad8545d (patch) | |
tree | 64ee5565d4bcfcf90d227c811c4ec23c2a70012a /include | |
parent | 70b05273c91cfec0cd7a9a54ff993c5b7f808d4f (diff) |
tdf#104718: Prompt user to continue on SAXException
Change-Id: Ib0f9a89c670f8d513ebee206a6a1487802f901ff
Reviewed-on: https://gerrit.libreoffice.org/33181
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/sfx2/objsh.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sfx2/objsh.hxx b/include/sfx2/objsh.hxx index bf69c21d58c4..7a2e133c83fa 100644 --- a/include/sfx2/objsh.hxx +++ b/include/sfx2/objsh.hxx @@ -213,6 +213,9 @@ private: bool bIsInGenerateThumbnail; //optimize thumbnail generate and store procedure to improve odt saving performance, i120030 bool mbAvoidRecentDocs; ///< Avoid adding to the recent documents list, if not necessary. + enum TriState {undefined, yes, no}; + TriState mbContinueImportOnFilterExceptions = undefined; // try to import as much as possible + bool CloseInternal(); SAL_DLLPRIVATE void UpdateTime_Impl(const css::uno::Reference< @@ -458,6 +461,9 @@ public: /// Don't add to the recent documents - it's an expensive operation, sometimes it is not wanted. void AvoidRecentDocs(bool bAvoid) { mbAvoidRecentDocs = bAvoid; } + /// On first error ask user if import should continue; return saved answer. + bool IsContinueImportOnFilterExceptions(const OUString& aErrMessage); + // Transfer IFace bool IsAbortingImport() const; void FinishedLoading( SfxLoadedFlags nWhich = SfxLoadedFlags::ALL ); |