diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2017-11-03 21:57:18 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2017-11-04 02:49:36 +0100 |
commit | 40918d0321f9e9a958fa80f309213e199cf21bce (patch) | |
tree | dbb18d1a99abc825111b1898446f5f66e97fe3b2 /sd | |
parent | 8f1f4d5a6f4b376975e9e2f318e8c92d4bade90a (diff) |
TSCP: add a full text. value of the header/footer as doc. property
Change-Id: I4742066c34802017790c1c21ec04a7760d4fe1f7
Reviewed-on: https://gerrit.libreoffice.org/44279
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/view/drviews2.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sd/source/ui/view/drviews2.cxx b/sd/source/ui/view/drviews2.cxx index d01957dcf10c..8a0c20a41889 100644 --- a/sd/source/ui/view/drviews2.cxx +++ b/sd/source/ui/view/drviews2.cxx @@ -59,6 +59,7 @@ #include <svx/SpellDialogChildWindow.hxx> #include <svx/compressgraphicdialog.hxx> #include <svx/ClassificationDialog.hxx> +#include <svx/ClassificationCommon.hxx> #include <svx/dialogs.hrc> #include <svx/bmpmask.hxx> #include <svx/colrctrl.hxx> @@ -473,8 +474,13 @@ public: aHelper.SetBACName(rResult.msName, SfxClassificationHelper::getPolicyType()); } + // Initialize key creator sfx::ClassificationKeyCreator aKeyCreator(SfxClassificationHelper::getPolicyType()); + // Insert full text as document property + svx::classification::insertFullTextualRepresentationAsDocumentProperty(xPropertyContainer, aKeyCreator, rResults); + + // Insert Object into master page Outliner* pOutliner = m_rDrawViewShell.GetDoc()->GetInternalOutliner(); OutlinerMode eOutlinerMode = pOutliner->GetMode(); pOutliner->Init(OutlinerMode::TextObject); |