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:
[legend]

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 bIsOusideOfParagraph)
 
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

SvXMLImportm_rImport
 
const OUString m_sInsertion
 
const OUString m_sDeletion
 
const OUString m_sFormatChange
 
RedlineMapType m_aRedlineMap
 
bool const 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 537 of file XMLRedlineImportHelper.cxx.

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

Referenced by SwXMLTextImportHelper::RedlineAdjustStartNodeCursor().

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

Definition at line 732 of file XMLRedlineImportHelper.cxx.

References m_bRecordChanges.

Referenced by SwXMLTextImportHelper::SetRecordChanges().

void XMLRedlineImportHelper::SetShowChanges ( bool  bShowChanges)

Definition at line 727 of file XMLRedlineImportHelper.cxx.

References m_bShowChanges.

Referenced by SwXMLTextImportHelper::SetShowChanges().

Member Data Documentation

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

Definition at line 54 of file XMLRedlineImportHelper.hxx.

Referenced by InsertIntoDocument().

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

Definition at line 44 of file XMLRedlineImportHelper.hxx.

Referenced by ~XMLRedlineImportHelper().

const OUString XMLRedlineImportHelper::m_sDeletion
private

Definition at line 47 of file XMLRedlineImportHelper.hxx.

Referenced by Add().

const OUString XMLRedlineImportHelper::m_sFormatChange
private

Definition at line 48 of file XMLRedlineImportHelper.hxx.

Referenced by Add().

const OUString XMLRedlineImportHelper::m_sInsertion
private

Definition at line 46 of file XMLRedlineImportHelper.hxx.

Referenced by Add().

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

Definition at line 58 of file XMLRedlineImportHelper.hxx.

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

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

Definition at line 57 of file XMLRedlineImportHelper.hxx.

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


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