LibreOffice Module sw (master) 1
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
XMLRedlineImportHelper Class Referencefinal

#include <XMLRedlineImportHelper.hxx>

Public Member Functions

 XMLRedlineImportHelper (SvXMLImport &rImport, bool bIgnoreRedlines, const css::uno::Reference< css::beans::XPropertySet > &rModel, const css::uno::Reference< css::beans::XPropertySet > &rImportInfoSet)
 ~XMLRedlineImportHelper ()
void Add (std::u16string_view rType, const OUString &rId, const OUString &rAuthor, const OUString &rComment, const css::util::DateTime &rDateTime, bool bMergeLastParagraph)
css::uno::Reference< css::text::XTextCursor > CreateRedlineTextSection (css::uno::Reference< css::text::XTextCursor > const &xOldCursor, const OUString &rId)
void SetCursor (const OUString &rId, bool bStart, css::uno::Reference< css::text::XTextRange > const &rRange, bool bIsOutsideOfParagraph)
void AdjustStartNodeCursor (const OUString &rId)
 Adjust the start (end) position for a redline that begins in a start node. More...
void SetShowChanges (bool bShowChanges)
void SetRecordChanges (bool bRecordChanges)
void SetProtectionKey (const css::uno::Sequence< sal_Int8 > &rKey)

Private Member Functions

void InsertIntoDocument (RedlineInfo *pRedline)
SwRedlineDataConvertRedline (RedlineInfo *pRedline, SwDoc *pDoc)

Static Private Member Functions

static bool IsReady (const RedlineInfo *pRedline)

Private Attributes

SvXMLImport & m_rImport
const OUString m_sInsertion
const OUString m_sDeletion
const OUString m_sFormatChange
RedlineMapType m_aRedlineMap
bool m_bIgnoreRedlines
css::uno::Reference< css::beans::XPropertySetm_xModelPropertySet
css::uno::Reference< css::beans::XPropertySetm_xImportInfoPropertySet
bool m_bShowChanges
bool m_bRecordChanges
css::uno::Sequence< sal_Int8m_aProtectionKey

Detailed Description

Definition at line 43 of file XMLRedlineImportHelper.hxx.

Constructor & Destructor Documentation

◆ XMLRedlineImportHelper()

XMLRedlineImportHelper::XMLRedlineImportHelper ( SvXMLImport &  rImport,
bool  bIgnoreRedlines,
const css::uno::Reference< css::beans::XPropertySet > &  rModel,
const css::uno::Reference< css::beans::XPropertySet > &  rImportInfoSet 

◆ ~XMLRedlineImportHelper()

XMLRedlineImportHelper::~XMLRedlineImportHelper ( )

Member Function Documentation

◆ Add()

void XMLRedlineImportHelper::Add ( std::u16string_view  rType,
const OUString &  rId,
const OUString &  rAuthor,
const OUString &  rComment,
const css::util::DateTime &  rDateTime,
bool  bMergeLastParagraph 

◆ AdjustStartNodeCursor()

void XMLRedlineImportHelper::AdjustStartNodeCursor ( const OUString &  rId)

Adjust the start (end) position for a redline that begins in a start node.

ID used in RedlineAdd() call.

It takes the cursor positions inside the redlined element (e.g. section or table).

Definition at line 528 of file XMLRedlineImportHelper.cxx.

References RedlineInfo::bNeedsAdjustment, InsertIntoDocument(), IsReady(), and m_aRedlineMap.

Referenced by SwXMLTextImportHelper::RedlineAdjustStartNodeCursor().

◆ ConvertRedline()

SwRedlineData * XMLRedlineImportHelper::ConvertRedline ( RedlineInfo pRedline,
SwDoc pDoc 

◆ CreateRedlineTextSection()

Reference< XTextCursor > XMLRedlineImportHelper::CreateRedlineTextSection ( css::uno::Reference< css::text::XTextCursor > const &  xOldCursor,
const OUString &  rId 

◆ InsertIntoDocument()

void XMLRedlineImportHelper::InsertIntoDocument ( RedlineInfo pRedline)

◆ IsReady()

bool XMLRedlineImportHelper::IsReady ( const RedlineInfo pRedline)

◆ SetCursor()

void XMLRedlineImportHelper::SetCursor ( const OUString &  rId,
bool  bStart,
css::uno::Reference< css::text::XTextRange > const &  rRange,
bool  bIsOutsideOfParagraph 

◆ SetProtectionKey()

void XMLRedlineImportHelper::SetProtectionKey ( const css::uno::Sequence< sal_Int8 > &  rKey)

◆ SetRecordChanges()

void XMLRedlineImportHelper::SetRecordChanges ( bool  bRecordChanges)

Definition at line 818 of file XMLRedlineImportHelper.cxx.

References m_bRecordChanges.

Referenced by SwXMLTextImportHelper::SetRecordChanges().

◆ SetShowChanges()

void XMLRedlineImportHelper::SetShowChanges ( bool  bShowChanges)

Definition at line 813 of file XMLRedlineImportHelper.cxx.

References m_bShowChanges.

Referenced by SwXMLTextImportHelper::SetShowChanges().

Member Data Documentation

◆ m_aProtectionKey

css::uno::Sequence<sal_Int8> XMLRedlineImportHelper::m_aProtectionKey

◆ m_aRedlineMap

RedlineMapType XMLRedlineImportHelper::m_aRedlineMap

◆ m_bIgnoreRedlines

bool XMLRedlineImportHelper::m_bIgnoreRedlines

Definition at line 55 of file XMLRedlineImportHelper.hxx.

Referenced by InsertIntoDocument().

◆ m_bRecordChanges

bool XMLRedlineImportHelper::m_bRecordChanges

◆ m_bShowChanges

bool XMLRedlineImportHelper::m_bShowChanges

◆ m_rImport

SvXMLImport& XMLRedlineImportHelper::m_rImport

Definition at line 45 of file XMLRedlineImportHelper.hxx.

Referenced by ~XMLRedlineImportHelper().

◆ m_sDeletion

const OUString XMLRedlineImportHelper::m_sDeletion

Definition at line 48 of file XMLRedlineImportHelper.hxx.

Referenced by Add().

◆ m_sFormatChange

const OUString XMLRedlineImportHelper::m_sFormatChange

Definition at line 49 of file XMLRedlineImportHelper.hxx.

Referenced by Add().

◆ m_sInsertion

const OUString XMLRedlineImportHelper::m_sInsertion

Definition at line 47 of file XMLRedlineImportHelper.hxx.

Referenced by Add().

◆ m_xImportInfoPropertySet

css::uno::Reference<css::beans::XPropertySet> XMLRedlineImportHelper::m_xImportInfoPropertySet

Definition at line 59 of file XMLRedlineImportHelper.hxx.

Referenced by XMLRedlineImportHelper(), and ~XMLRedlineImportHelper().

◆ m_xModelPropertySet

css::uno::Reference<css::beans::XPropertySet> XMLRedlineImportHelper::m_xModelPropertySet

Definition at line 58 of file XMLRedlineImportHelper.hxx.

Referenced by XMLRedlineImportHelper(), and ~XMLRedlineImportHelper().

The documentation for this class was generated from the following files: