LibreOffice Module sw (master)  1
Macros | Functions
edfcol.cxx File Reference
#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 <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 <tools/diagnose_ex.h>
#include <IDocumentRedlineAccess.hxx>
Include dependency graph for edfcol.cxx:

Go to the source code of this file.

Macros

#define WATERMARK_NAME   "PowerPlusWaterMarkObject"
 
#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 (OUString const &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 uno::Reference< text::XTextContent > &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 uno::Reference< text::XTextContent > &xParagraph)
 
static OUString lcl_GetHighestClassificationParagraphClass (SwPaM *pCursor)
 

Macro Definition Documentation

#define WATERMARK_AUTO_SIZE   sal_uInt32(1)

Definition at line 96 of file edfcol.cxx.

Referenced by lcl_placeWatermarkInHeader().

#define WATERMARK_NAME   "PowerPlusWaterMarkObject"

Definition at line 95 of file edfcol.cxx.

Referenced by lcl_placeWatermarkInHeader().

Function Documentation

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

Definition at line 752 of file edfcol.cxx.

References getNumberOfParagraphs(), and svx::PARAGRAPH.

Referenced by SwEditShell::ApplyAdvancedClassification().

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

Definition at line 739 of file edfcol.cxx.

Referenced by equaliseNumberOfParagraph().

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 695 of file edfcol.cxx.

References UNO_NAME_NAME.

Referenced by SwEditShell::ApplyAdvancedClassification().

static void lcl_ApplyParagraphClassification ( SwDoc pDoc,
const uno::Reference< frame::XModel > &  xModel,
const uno::Reference< text::XTextContent > &  xParent,
const css::uno::Reference< css::rdf::XResource > &  xNodeSubject,
std::vector< svx::ClassificationResult aResults 
)
static
static std::vector<svx::ClassificationResult> lcl_CollectParagraphClassification ( const uno::Reference< frame::XModel > &  xModel,
const uno::Reference< text::XTextContent > &  xParagraph 
)
static
static sal_Int16 lcl_GetAngle ( const drawing::HomogenMatrix3 &  rMatrix)
static
static OUString lcl_GetHighestClassificationParagraphClass ( SwPaM pCursor)
static
static OUString lcl_GetParagraphClassification ( SfxClassificationHelper rHelper,
sfx::ClassificationKeyCreator const &  rKeyCreator,
const uno::Reference< frame::XModel > &  xModel,
const uno::Reference< text::XTextContent > &  xParagraph 
)
static
static uno::Reference<text::XTextField> lcl_GetParagraphMetadataFieldAtIndex ( const SwDocShell pDocSh,
SwTextNode const *  pNode,
const sal_uLong  index 
)
static
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
static void removeAllClassificationFields ( OUString const &  rPolicy,
uno::Reference< text::XText > const &  rxText 
)
static