19#ifndef INCLUDED_SW_SOURCE_FILTER_XML_XMLREDLINEIMPORTHELPER_HXX
20#define INCLUDED_SW_SOURCE_FILTER_XML_XMLREDLINEIMPORTHELPER_HXX
22#include <rtl/ustring.hxx>
23#include <com/sun/star/beans/XPropertySet.hpp>
24#include <com/sun/star/uno/Reference.h>
25#include <com/sun/star/uno/Sequence.h>
26#include <com/sun/star/util/DateTime.hpp>
36 namespace text {
class XTextCursor; }
37 namespace text {
class XTextRange; }
38 namespace frame {
class XModel; }
67 SvXMLImport & rImport,
71 const css::uno::Reference<css::beans::XPropertySet> & rModel,
72 const css::uno::Reference<css::beans::XPropertySet> & rImportInfoSet );
79 std::u16string_view rType,
81 const OUString& rAuthor,
82 const OUString& rComment,
83 const css::util::DateTime& rDateTime,
84 bool bMergeLastParagraph);
89 css::uno::Reference<css::text::XTextCursor>
const & xOldCursor,
97 css::uno::Reference<css::text::XTextRange>
const & rRange,
100 bool bIsOutsideOfParagraph);
108 const OUString& rId);
std::map< OUString, RedlineInfo * > RedlineMapType
css::uno::Sequence< sal_Int8 > m_aProtectionKey
~XMLRedlineImportHelper()
void SetProtectionKey(const css::uno::Sequence< sal_Int8 > &rKey)
SwRedlineData * ConvertRedline(RedlineInfo *pRedline, SwDoc *pDoc)
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 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::beans::XPropertySet > m_xModelPropertySet
static bool IsReady(const RedlineInfo *pRedline)
const OUString m_sFormatChange
const OUString m_sDeletion
css::uno::Reference< css::beans::XPropertySet > m_xImportInfoPropertySet
void AdjustStartNodeCursor(const OUString &rId)
Adjust the start (end) position for a redline that begins in a start node.
void InsertIntoDocument(RedlineInfo *pRedline)
const OUString m_sInsertion
void SetShowChanges(bool bShowChanges)
void SetRecordChanges(bool bRecordChanges)
XMLRedlineImportHelper(SvXMLImport &rImport, bool bIgnoreRedlines, const css::uno::Reference< css::beans::XPropertySet > &rModel, const css::uno::Reference< css::beans::XPropertySet > &rImportInfoSet)
RedlineMapType m_aRedlineMap