LibreOffice Module sw (master) 1
|
#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) |
SwRedlineData * | ConvertRedline (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::XPropertySet > | m_xModelPropertySet |
css::uno::Reference< css::beans::XPropertySet > | m_xImportInfoPropertySet |
bool | m_bShowChanges |
bool | m_bRecordChanges |
css::uno::Sequence< sal_Int8 > | m_aProtectionKey |
Definition at line 43 of file XMLRedlineImportHelper.hxx.
XMLRedlineImportHelper::XMLRedlineImportHelper | ( | SvXMLImport & | rImport, |
bool | bIgnoreRedlines, | ||
const css::uno::Reference< css::beans::XPropertySet > & | rModel, | ||
const css::uno::Reference< css::beans::XPropertySet > & | rImportInfoSet | ||
) |
Definition at line 230 of file XMLRedlineImportHelper.cxx.
References Any, g_sRecordChanges, g_sRedlineProtectionKey, g_sShowChanges, getPropertyValue(), GetXMLToken(), m_aProtectionKey, m_bRecordChanges, m_bShowChanges, m_rImport, m_xImportInfoPropertySet, m_xModelPropertySet, XML_DELETION, XML_FORMAT_CHANGE, and XML_INSERTION.
XMLRedlineImportHelper::~XMLRedlineImportHelper | ( | ) |
Definition at line 278 of file XMLRedlineImportHelper.cxx.
References Any, RedlineInfo::bNeedsAdjustment, g_sRecordChanges, g_sRedlineProtectionKey, g_sShowChanges, SwDoc::GetDocumentRedlineManager(), InsertIntoDocument(), IsReady(), m_aProtectionKey, m_aRedlineMap, m_bRecordChanges, m_bShowChanges, m_rImport, m_xImportInfoPropertySet, m_xModelPropertySet, SAL_WARN, and sw::DocumentRedlineManager::SetHideRedlines().
void XMLRedlineImportHelper::Add | ( | std::u16string_view | rType, |
const OUString & | rId, | ||
const OUString & | rAuthor, | ||
const OUString & | rComment, | ||
const css::util::DateTime & | rDateTime, | ||
bool | bMergeLastParagraph | ||
) |
Definition at line 366 of file XMLRedlineImportHelper.cxx.
References RedlineInfo::aDateTime, RedlineInfo::bMergeLastParagraph, eType, RedlineInfo::eType, m_aRedlineMap, m_sDeletion, m_sFormatChange, m_sInsertion, RedlineInfo::pNextRedline, RedlineInfo::sAuthor, and RedlineInfo::sComment.
Referenced by SwXMLTextImportHelper::RedlineAdd().
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().
|
private |
Definition at line 775 of file XMLRedlineImportHelper.cxx.
References RedlineInfo::aDateTime, ConvertRedline(), DateTime::EMPTY, RedlineInfo::eType, SwDoc::getIDocumentRedlineAccess(), IDocumentRedlineAccess::InsertRedlineAuthor(), pData, RedlineInfo::pNextRedline, RedlineInfo::sAuthor, RedlineInfo::sComment, Date::SetDay(), tools::Time::SetHour(), tools::Time::SetMin(), Date::SetMonth(), tools::Time::SetNanoSec(), tools::Time::SetSec(), and Date::SetYear().
Referenced by ConvertRedline(), and InsertIntoDocument().
Reference< XTextCursor > XMLRedlineImportHelper::CreateRedlineTextSection | ( | css::uno::Reference< css::text::XTextCursor > const & | xOldCursor, |
const OUString & | rId | ||
) |
Definition at line 430 of file XMLRedlineImportHelper.cxx.
References aIndex, fnMoveForward, SwNodes::GetEndOfRedlines(), SwDoc::getIDocumentStylePoolAccess(), SwDoc::GetNodes(), IDocumentStylePoolAccess::GetTextCollFromPool(), GoInNode(), lcl_GetDocViaTunnel(), m_aRedlineMap, SwNodes::MakeTextSection(), Redline, RES_POOLCOLL_STANDARD, SAL_WARN, and SwNormalStartNode.
Referenced by SwXMLTextImportHelper::RedlineCreateText().
|
private |
Definition at line 632 of file XMLRedlineImportHelper.cxx.
References RedlineInfo::aAnchorEnd, RedlineInfo::aAnchorStart, IDocumentRedlineAccess::AppendRedline(), SwPosition::Assign(), RedlineInfo::bMergeLastParagraph, CheckNodesRange(), ConvertRedline(), SwPaM::DeleteMark(), IDocumentContentOperations::DeleteRange(), IDocumentContentOperations::DeleteSection(), SwNode::EndOfSectionIndex(), SwNode::EndOfSectionNode(), RedlineInfo::eType, SwNode::GetAnchoredFlys(), SwNodes::GetEndOfContent(), SwDoc::getIDocumentContentOperations(), SwDoc::getIDocumentRedlineAccess(), SwNodeIndex::GetIndex(), SwPaM::GetMark(), SwNodeIndex::GetNode(), SwPosition::GetNode(), SwPosition::GetNodeIndex(), SwDoc::GetNodes(), SwPaM::GetPoint(), SwTextNode::GetpSwpHints(), IDocumentRedlineAccess::GetRedline(), IDocumentRedlineAccess::GetRedlineTable(), SwNode::GetStartNode(), SwTextNode::GetText(), SwPaM::HasMark(), i, IsReady(), m_bIgnoreRedlines, n, NONE, On, RedlineInfo::pContentIndex, RecursiveContains(), SwRedlineTable::Remove(), SAL_WARN, SwRangeRedline::SetContentIdx(), SwPaM::SetMark(), IDocumentRedlineAccess::SetRedlineFlags_intern(), and SwPaM::Start().
Referenced by AdjustStartNodeCursor(), SetCursor(), and ~XMLRedlineImportHelper().
|
inlinestaticprivate |
Definition at line 556 of file XMLRedlineImportHelper.cxx.
References RedlineInfo::aAnchorEnd, RedlineInfo::aAnchorStart, and RedlineInfo::bNeedsAdjustment.
Referenced by AdjustStartNodeCursor(), InsertIntoDocument(), SetCursor(), and ~XMLRedlineImportHelper().
void XMLRedlineImportHelper::SetCursor | ( | const OUString & | rId, |
bool | bStart, | ||
css::uno::Reference< css::text::XTextRange > const & | rRange, | ||
bool | bIsOutsideOfParagraph | ||
) |
Definition at line 480 of file XMLRedlineImportHelper.cxx.
References RedlineInfo::aAnchorEnd, RedlineInfo::aAnchorStart, RedlineInfo::bNeedsAdjustment, InsertIntoDocument(), IsReady(), and m_aRedlineMap.
Referenced by SwXMLTextImportHelper::RedlineSetCursor().
void XMLRedlineImportHelper::SetProtectionKey | ( | const css::uno::Sequence< sal_Int8 > & | rKey | ) |
Definition at line 823 of file XMLRedlineImportHelper.cxx.
References m_aProtectionKey.
Referenced by SwXMLTextImportHelper::SetChangesProtectionKey().
void XMLRedlineImportHelper::SetRecordChanges | ( | bool | bRecordChanges | ) |
Definition at line 818 of file XMLRedlineImportHelper.cxx.
References m_bRecordChanges.
Referenced by SwXMLTextImportHelper::SetRecordChanges().
void XMLRedlineImportHelper::SetShowChanges | ( | bool | bShowChanges | ) |
Definition at line 813 of file XMLRedlineImportHelper.cxx.
References m_bShowChanges.
Referenced by SwXMLTextImportHelper::SetShowChanges().
|
private |
Definition at line 62 of file XMLRedlineImportHelper.hxx.
Referenced by SetProtectionKey(), XMLRedlineImportHelper(), and ~XMLRedlineImportHelper().
|
private |
Definition at line 51 of file XMLRedlineImportHelper.hxx.
Referenced by Add(), AdjustStartNodeCursor(), CreateRedlineTextSection(), SetCursor(), and ~XMLRedlineImportHelper().
|
private |
Definition at line 55 of file XMLRedlineImportHelper.hxx.
Referenced by InsertIntoDocument().
|
private |
Definition at line 61 of file XMLRedlineImportHelper.hxx.
Referenced by SetRecordChanges(), XMLRedlineImportHelper(), and ~XMLRedlineImportHelper().
|
private |
Definition at line 60 of file XMLRedlineImportHelper.hxx.
Referenced by SetShowChanges(), XMLRedlineImportHelper(), and ~XMLRedlineImportHelper().
|
private |
Definition at line 45 of file XMLRedlineImportHelper.hxx.
Referenced by ~XMLRedlineImportHelper().
|
private |
Definition at line 48 of file XMLRedlineImportHelper.hxx.
Referenced by Add().
|
private |
Definition at line 49 of file XMLRedlineImportHelper.hxx.
Referenced by Add().
|
private |
Definition at line 47 of file XMLRedlineImportHelper.hxx.
Referenced by Add().
|
private |
Definition at line 59 of file XMLRedlineImportHelper.hxx.
Referenced by XMLRedlineImportHelper(), and ~XMLRedlineImportHelper().
|
private |
Definition at line 58 of file XMLRedlineImportHelper.hxx.
Referenced by XMLRedlineImportHelper(), and ~XMLRedlineImportHelper().