LibreOffice Module sw (master) 1
Macros | Functions | Variables
edfcol.cxx File Reference
#include <sal/config.h>
#include <string_view>
#include <editsh.hxx>
#include <com/sun/star/container/XEnumerationAccess.hpp>
#include <com/sun/star/container/XContentEnumerationAccess.hpp>
#include <com/sun/star/document/XActionLockable.hpp>
#include <com/sun/star/document/XDocumentProperties.hpp>
#include <com/sun/star/drawing/FillStyle.hpp>
#include <com/sun/star/drawing/HomogenMatrix3.hpp>
#include <com/sun/star/drawing/LineStyle.hpp>
#include <com/sun/star/drawing/XShape.hpp>
#include <com/sun/star/drawing/XEnhancedCustomShapeDefaulter.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/style/XStyleFamiliesSupplier.hpp>
#include <com/sun/star/text/RelOrientation.hpp>
#include <com/sun/star/text/TextContentAnchorType.hpp>
#include <com/sun/star/text/VertOrientation.hpp>
#include <com/sun/star/text/WrapTextMode.hpp>
#include <com/sun/star/text/XTextContent.hpp>
#include <com/sun/star/text/XTextDocument.hpp>
#include <com/sun/star/text/XTextField.hpp>
#include <com/sun/star/text/XTextRange.hpp>
#include <com/sun/star/text/XParagraphAppend.hpp>
#include <com/sun/star/text/XParagraphCursor.hpp>
#include <com/sun/star/awt/FontWeight.hpp>
#include <com/sun/star/rdf/XMetadatable.hpp>
#include <com/sun/star/security/DocumentDigitalSignatures.hpp>
#include <com/sun/star/security/XCertificate.hpp>
#include <basegfx/matrix/b2dhommatrix.hxx>
#include <comphelper/propertysequence.hxx>
#include <comphelper/propertyvalue.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/sequence.hxx>
#include <comphelper/scopeguard.hxx>
#include <comphelper/string.hxx>
#include <editeng/unoprnms.hxx>
#include <sfx2/classificationhelper.hxx>
#include <svx/ClassificationCommon.hxx>
#include <svx/ClassificationField.hxx>
#include <svl/cryptosign.hxx>
#include <svl/sigstruct.hxx>
#include <utility>
#include <vcl/svapp.hxx>
#include <vcl/weld.hxx>
#include <vcl/virdev.hxx>
#include <redline.hxx>
#include <poolfmt.hxx>
#include <hintids.hxx>
#include <doc.hxx>
#include <IDocumentUndoRedo.hxx>
#include <ndtxt.hxx>
#include <paratr.hxx>
#include <viewopt.hxx>
#include <SwRewriter.hxx>
#include <numrule.hxx>
#include <swundo.hxx>
#include <docary.hxx>
#include <docsh.hxx>
#include <unoprnms.hxx>
#include <rootfrm.hxx>
#include <pagefrm.hxx>
#include <txtfrm.hxx>
#include <rdfhelper.hxx>
#include <sfx2/watermarkitem.hxx>
#include <unoparagraph.hxx>
#include <strings.hrc>
#include <undobj.hxx>
#include <UndoParagraphSignature.hxx>
#include <txtatr.hxx>
#include <fmtmeta.hxx>
#include <unotxdoc.hxx>
#include <unotextbodyhf.hxx>
#include <unoport.hxx>
#include <comphelper/diagnose_ex.hxx>
#include <IDocumentRedlineAccess.hxx>
Include dependency graph for edfcol.cxx:

Go to the source code of this file.

Macros

#define WATERMARK_AUTO_SIZE   sal_uInt32(1)
 

Functions

static void insertFieldToDocument (uno::Reference< lang::XMultiServiceFactory > const &rxMultiServiceFactory, uno::Reference< text::XText > const &rxText, uno::Reference< text::XParagraphCursor > const &rxParagraphCursor, OUString const &rsKey)
 
static void removeAllClassificationFields (std::u16string_view rPolicy, uno::Reference< text::XText > const &rxText)
 
static sal_Int32 getNumberOfParagraphs (uno::Reference< text::XText > const &xText)
 
static void equaliseNumberOfParagraph (std::vector< svx::ClassificationResult > const &rResults, uno::Reference< text::XText > const &xText)
 
static void lcl_ApplyParagraphClassification (SwDoc *pDoc, const uno::Reference< frame::XModel > &xModel, const rtl::Reference< SwXParagraph > &xParent, const css::uno::Reference< css::rdf::XResource > &xNodeSubject, std::vector< svx::ClassificationResult > aResults)
 
static std::vector< svx::ClassificationResultlcl_CollectParagraphClassification (const uno::Reference< frame::XModel > &xModel, const uno::Reference< text::XTextContent > &xParagraph)
 
static sal_Int16 lcl_GetAngle (const drawing::HomogenMatrix3 &rMatrix)
 
static void lcl_placeWatermarkInHeader (const SfxWatermarkItem &rWatermark, const uno::Reference< frame::XModel > &xModel, const uno::Reference< beans::XPropertySet > &xPageStyle, const uno::Reference< text::XText > &xHeaderText)
 
static uno::Reference< text::XTextField > lcl_GetParagraphMetadataFieldAtIndex (const SwDocShell *pDocSh, SwTextNode const *pNode, const sal_uLong index)
 
static OUString lcl_GetParagraphClassification (SfxClassificationHelper &rHelper, sfx::ClassificationKeyCreator const &rKeyCreator, const uno::Reference< frame::XModel > &xModel, const rtl::Reference< SwXParagraph > &xParagraph)
 
static OUString lcl_GetHighestClassificationParagraphClass (SwPaM *pCursor)
 

Variables

constexpr OUStringLiteral WATERMARK_NAME = u"PowerPlusWaterMarkObject"
 

Macro Definition Documentation

◆ WATERMARK_AUTO_SIZE

#define WATERMARK_AUTO_SIZE   sal_uInt32(1)

Definition at line 105 of file edfcol.cxx.

Function Documentation

◆ equaliseNumberOfParagraph()

static void equaliseNumberOfParagraph ( std::vector< svx::ClassificationResult > const &  rResults,
uno::Reference< text::XText > const &  xText 
)
static

Definition at line 761 of file edfcol.cxx.

References getNumberOfParagraphs(), and svx::PARAGRAPH.

Referenced by SwEditShell::ApplyAdvancedClassification().

◆ getNumberOfParagraphs()

static sal_Int32 getNumberOfParagraphs ( uno::Reference< text::XText > const &  xText)
static

Definition at line 748 of file edfcol.cxx.

Referenced by equaliseNumberOfParagraph().

◆ insertFieldToDocument()

static void insertFieldToDocument ( uno::Reference< lang::XMultiServiceFactory > const &  rxMultiServiceFactory,
uno::Reference< text::XText > const &  rxText,
uno::Reference< text::XParagraphCursor > const &  rxParagraphCursor,
OUString const &  rsKey 
)
static

Definition at line 704 of file edfcol.cxx.

References UNO_NAME_NAME.

Referenced by SwEditShell::ApplyAdvancedClassification().

◆ lcl_ApplyParagraphClassification()

static void lcl_ApplyParagraphClassification ( SwDoc pDoc,
const uno::Reference< frame::XModel > &  xModel,
const rtl::Reference< SwXParagraph > &  xParent,
const css::uno::Reference< css::rdf::XResource > &  xNodeSubject,
std::vector< svx::ClassificationResult aResults 
)
static

◆ lcl_CollectParagraphClassification()

static std::vector< svx::ClassificationResult > lcl_CollectParagraphClassification ( const uno::Reference< frame::XModel > &  xModel,
const uno::Reference< text::XTextContent > &  xParagraph 
)
static

◆ lcl_GetAngle()

static sal_Int16 lcl_GetAngle ( const drawing::HomogenMatrix3 &  rMatrix)
static

◆ lcl_GetHighestClassificationParagraphClass()

static OUString lcl_GetHighestClassificationParagraphClass ( SwPaM pCursor)
static

◆ lcl_GetParagraphClassification()

static OUString lcl_GetParagraphClassification ( SfxClassificationHelper rHelper,
sfx::ClassificationKeyCreator const &  rKeyCreator,
const uno::Reference< frame::XModel > &  xModel,
const rtl::Reference< SwXParagraph > &  xParagraph 
)
static

◆ lcl_GetParagraphMetadataFieldAtIndex()

static uno::Reference< text::XTextField > lcl_GetParagraphMetadataFieldAtIndex ( const SwDocShell pDocSh,
SwTextNode const *  pNode,
const sal_uLong  index 
)
static

◆ lcl_placeWatermarkInHeader()

static void lcl_placeWatermarkInHeader ( const SfxWatermarkItem rWatermark,
const uno::Reference< frame::XModel > &  xModel,
const uno::Reference< beans::XPropertySet > &  xPageStyle,
const uno::Reference< text::XText > &  xHeaderText 
)
static

◆ removeAllClassificationFields()

static void removeAllClassificationFields ( std::u16string_view  rPolicy,
uno::Reference< text::XText > const &  rxText 
)
static

Variable Documentation

◆ WATERMARK_NAME

constexpr OUStringLiteral WATERMARK_NAME = u"PowerPlusWaterMarkObject"
constexpr

Definition at line 104 of file edfcol.cxx.

Referenced by lcl_placeWatermarkInHeader().