Kaydet (Commit) b84dca7c authored tarafından Miklos Vajna's avatar Miklos Vajna

sfx2 classification: add interface to set category name

Change-Id: I289b46f5f57ef000de5f482b5c8ed7bcaa89ddab
üst 02a32077
......@@ -34,6 +34,8 @@ public:
SfxClassificationHelper(SfxObjectShell& rObjectShell);
~SfxClassificationHelper();
OUString GetBACName();
/// Setting this sets all the other properties, based on the policy.
void SetBACName(const OUString& rName);
/// If GetImpactLevelColor() will return something meaningful.
bool HasImpactLevel();
basegfx::BColor GetImpactLevelColor();
......
......@@ -150,4 +150,8 @@ OUString SfxClassificationHelper::GetDocumentWatermark()
return OUString();
}
void SfxClassificationHelper::SetBACName(const OUString& /*rName*/)
{
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -19,6 +19,7 @@
#include <hintids.hxx>
#include <editeng/formatbreakitem.hxx>
#include <sfx2/classificationhelper.hxx>
#include <editsh.hxx>
#include <doc.hxx>
#include <IDocumentUndoRedo.hxx>
......@@ -31,6 +32,7 @@
#include <numrule.hxx>
#include <swundo.hxx>
#include <docary.hxx>
#include <docsh.hxx>
SwTextFormatColl& SwEditShell::GetDfltTextFormatColl() const
{
......@@ -47,9 +49,14 @@ SwTextFormatColl& SwEditShell::GetTextFormatColl( sal_uInt16 nFormatColl) const
return *((*(GetDoc()->GetTextFormatColls()))[nFormatColl]);
}
void SwEditShell::SetClassification(const OUString& /*rName*/)
void SwEditShell::SetClassification(const OUString& rName)
{
(void)this;//TODO
SwDocShell* pDocShell = GetDoc()->GetDocShell();
if (!pDocShell)
return;
SfxClassificationHelper aHelper(*pDocShell);
aHelper.SetBACName(rName);
}
// #i62675#
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment