diff options
Diffstat (limited to 'sw')
-rw-r--r-- | sw/inc/strings.hrc | 6 | ||||
-rw-r--r-- | sw/source/core/edit/edfcol.cxx | 7 |
2 files changed, 13 insertions, 0 deletions
diff --git a/sw/inc/strings.hrc b/sw/inc/strings.hrc index 75f64148a4e5..76388ee520ca 100644 --- a/sw/inc/strings.hrc +++ b/sw/inc/strings.hrc @@ -1338,6 +1338,12 @@ #define STR_MENU_DOWN NC_("STR_MENU_DOWN", "Do~wnwards") /*-------------------------------------------------------------------- + Description: Classification strings + --------------------------------------------------------------------*/ + +#define STR_CLASSIFICATION_LEVEL_CHANGED NC_("STR_CLASSIFICATION_LEVEL_CHANGED", "Document classification has changed because a paragraph classification level is higher") + +/*-------------------------------------------------------------------- Description: Paragraph Signature --------------------------------------------------------------------*/ #define STR_VALID NC_("STR_VALID", " Valid ") diff --git a/sw/source/core/edit/edfcol.cxx b/sw/source/core/edit/edfcol.cxx index cccf2ab539a2..d76ab5a2120e 100644 --- a/sw/source/core/edit/edfcol.cxx +++ b/sw/source/core/edit/edfcol.cxx @@ -57,6 +57,7 @@ #include <svx/ClassificationCommon.hxx> #include <svl/cryptosign.hxx> #include <vcl/svapp.hxx> +#include <vcl/msgbox.hxx> #include <hintids.hxx> #include <doc.hxx> @@ -2105,6 +2106,12 @@ void SwEditShell::ClassifyDocPerHighestParagraphClass() sHighestClass = aHelper.GetHigherClass(sHighestClass, aClassificationCategory); } + if (aClassificationCategory != sHighestClass) + { + ScopedVclPtrInstance<QueryBox> aQueryBox(nullptr, MessBoxStyle::Ok, SwResId(STR_CLASSIFICATION_LEVEL_CHANGED)); + aQueryBox->Execute(); + } + const SfxClassificationPolicyType eHighestClassType = SfxClassificationHelper::stringToPolicyType(sHighestClass); // Check the origin, if "manual" (created via advanced classification dialog), |