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>

Collaboration diagram for XMLRedlineImportHelper:

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 (const OUString &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

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 42 of file XMLRedlineImportHelper.hxx.

Constructor & Destructor Documentation

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

Member Function Documentation

void XMLRedlineImportHelper::Add ( const OUString &  rType,
const OUString &  rId,
const OUString &  rAuthor,
const OUString &  rComment,
const css::util::DateTime &  rDateTime,
bool  bMergeLastParagraph 
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 538 of file XMLRedlineImportHelper.cxx.

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

Referenced by SwXMLTextImportHelper::RedlineAdjustStartNodeCursor().

SwRedlineData * XMLRedlineImportHelper::ConvertRedline ( RedlineInfo pRedline,
SwDoc pDoc 
Reference< XTextCursor > XMLRedlineImportHelper::CreateRedlineTextSection ( css::uno::Reference< css::text::XTextCursor > const &  xOldCursor,
const OUString &  rId 
void XMLRedlineImportHelper::InsertIntoDocument ( RedlineInfo pRedline)
bool XMLRedlineImportHelper::IsReady ( const RedlineInfo pRedline)
void XMLRedlineImportHelper::SetCursor ( const OUString &  rId,
bool  bStart,
css::uno::Reference< css::text::XTextRange > const &  rRange,
bool  bIsOutsideOfParagraph 
void XMLRedlineImportHelper::SetProtectionKey ( const css::uno::Sequence< sal_Int8 > &  rKey)
void XMLRedlineImportHelper::SetRecordChanges ( bool  bRecordChanges)

Definition at line 733 of file XMLRedlineImportHelper.cxx.

References m_bRecordChanges.

Referenced by SwXMLTextImportHelper::SetRecordChanges().

void XMLRedlineImportHelper::SetShowChanges ( bool  bShowChanges)

Definition at line 728 of file XMLRedlineImportHelper.cxx.

References m_bShowChanges.

Referenced by SwXMLTextImportHelper::SetShowChanges().

Member Data Documentation

css::uno::Sequence<sal_Int8> XMLRedlineImportHelper::m_aProtectionKey
RedlineMapType XMLRedlineImportHelper::m_aRedlineMap
bool XMLRedlineImportHelper::m_bIgnoreRedlines

Definition at line 54 of file XMLRedlineImportHelper.hxx.

Referenced by InsertIntoDocument().

bool XMLRedlineImportHelper::m_bRecordChanges
bool XMLRedlineImportHelper::m_bShowChanges
SvXMLImport& XMLRedlineImportHelper::m_rImport

Definition at line 44 of file XMLRedlineImportHelper.hxx.

Referenced by ~XMLRedlineImportHelper().

const OUString XMLRedlineImportHelper::m_sDeletion

Definition at line 47 of file XMLRedlineImportHelper.hxx.

Referenced by Add().

const OUString XMLRedlineImportHelper::m_sFormatChange

Definition at line 48 of file XMLRedlineImportHelper.hxx.

Referenced by Add().

const OUString XMLRedlineImportHelper::m_sInsertion

Definition at line 46 of file XMLRedlineImportHelper.hxx.

Referenced by Add().

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

Definition at line 58 of file XMLRedlineImportHelper.hxx.

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

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

Definition at line 57 of file XMLRedlineImportHelper.hxx.

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

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