19#ifndef INCLUDED_SW_INC_REDLINE_HXX
20#define INCLUDED_SW_INC_REDLINE_HXX
23#include <tools/datetime.hxx>
24#include <rtl/ustring.hxx>
48 virtual void Reject(
SwPaM& rPam )
const;
60 const SfxItemSet* pSet =
nullptr,
bool bFormatAll =
true );
63 virtual void Reject(
SwPaM& rPam )
const override;
133 return m_aStamp.
GetYear() == 1970 &&
157 void SetSeqNo( sal_uInt16 nNo ) { m_nSeqNo = nNo; }
171 void MoveToSection();
172 void CopyToSection();
173 void DelCopyOfSection(
size_t nMyPos);
174 void MoveFromSection(
size_t nMyPos);
186 m_nId( s_nLastId++ ), m_bDelLastPara( bDelLP ), m_bIsVisible( true )
188 GetBound().SetRedline(
this);
189 GetBound(
false).SetRedline(
this);
194 sal_uInt32
GetId()
const {
return m_nId; }
198 void ClearContentIdx();
207 bool HasValidRange()
const;
209 const SwRedlineData& GetRedlineData(sal_uInt16 nPos = 0)
const;
211 {
return *m_pRedlineData != rCmp; }
215 sal_uInt16 GetStackCount()
const;
216 std::size_t GetAuthor( sal_uInt16 nPos = 0)
const;
217 OUString
const & GetAuthorString( sal_uInt16 nPos = 0 )
const;
218 const DateTime& GetTimeStamp( sal_uInt16 nPos = 0)
const;
222 bool IsAnnotation()
const;
223 const OUString& GetComment( sal_uInt16 nPos = 0 )
const;
244 void CallDisplayFunc(
size_t nMyPos);
245 void Show(sal_uInt16 nLoop ,
size_t nMyPos,
bool bForced =
false);
246 void Hide(sal_uInt16 nLoop ,
size_t nMyPos,
bool bForced =
false);
247 void ShowOriginal(sal_uInt16 nLoop,
size_t nMyPos,
bool bForced =
false);
250 void CalcStartEnd(
SwNodeOffset nNdIdx, sal_Int32& rStart, sal_Int32& rEnd)
const;
254 void InvalidateRange(Invalidation);
257 {
return GetAuthor() == rRedl.
GetAuthor(); }
260 void PushData(
const SwRangeRedline& rRedl,
bool bOwnAsNext =
true );
274 OUString GetDescr(
bool bSimplified =
false);
279 void MaybeNotifyRedlinePositionModification(
tools::Long nTop);
314 {
return m_rTableLine; }
316 {
return m_aRedlineData; }
335 {
return m_rTableBox; }
337 {
return m_aRedlineData; }
347std::vector<std::unique_ptr<SwRangeRedline>>
GetAllValidRanges(std::unique_ptr<SwRangeRedline> p);
sal_Int16 GetYear() const
sal_uInt16 GetDay() const
sal_uInt16 GetMonth() const
Marks a node in the document model.
PaM is Point and Mark: a selection of the document model.
void SetExtraData(const SwRedlineExtraData *pData)
ExtraData gets copied, the pointer is therefore not taken over by the RedLineObject.
bool IsAutoFormat() const
void SetSeqNo(sal_uInt16 nNo)
static sal_uInt32 s_nLastId
std::size_t GetAuthor(sal_uInt16 nPos=0) const
const SwNodeIndex * GetContentIdx() const
SwRangeRedline(SwRedlineData *pData, const SwPosition &rPos, bool bDelLP)
bool operator!=(const SwRedlineData &rCmp) const
std::optional< SwNodeIndex > m_oContentSect
bool IsOwnRedline(const SwRangeRedline &rRedl) const
const SwRedlineExtraData * GetExtraData() const
OUString GetDescr(bool bSimplified=false)
Returns textual description of a redline data element of this redline.
std::optional< tools::Long > m_oLOKLastNodeTop
void SetComment(const OUString &rS)
SwRedlineData * m_pRedlineData
bool IsDelLastPara() const
bool CanCombine(const SwRangeRedline &rRedl) const
sal_uInt16 GetSeqNo() const
bool IsAutoFormat() const
sal_uInt16 GetSeqNo() const
SwRedlineExtraData * m_pExtraData
bool operator==(const SwRedlineData &rCmp) const
std::size_t GetAuthor() const
bool operator!=(const SwRedlineData &rCmp) const
const SwRedlineExtraData * GetExtraData() const
const SwRedlineData * Next() const
void SetTimeStamp(const DateTime &rDT)
void SetSeqNo(sal_uInt16 nNo)
void SetComment(const OUString &rS)
bool IsAnonymized() const
const OUString & GetComment() const
void SetExtraData(const SwRedlineExtraData *pData)
ExtraData is copied.
const DateTime & GetTimeStamp() const
RedlineType GetType() const
SwTableBox is one table cell in the document model.
Redline that holds information about a table-cell that had some change.
void SetExtraData(const SwRedlineExtraData *pData)
ExtraData gets copied, the pointer is therefore not taken over by the RedLineObject.
SwRedlineData m_aRedlineData
const SwTableBox & m_rTableBox
const SwTableBox & GetTableBox() const
const SwRedlineData & GetRedlineData() const
SwTableLine is one table row in the document model.
Redline that holds information about a table-row that had some change.
const SwTableLine & m_rTableLine
const SwTableLine & GetTableLine() const
const SwRedlineData & GetRedlineData() const
SwRedlineData m_aRedlineData
void SetExtraData(const SwRedlineExtraData *pData)
ExtraData gets copied, the pointer is therefore not taken over by the RedLineObject.
struct _xmlTextWriter * xmlTextWriterPtr
const EnumerationType m_eType
std::unique_ptr< sal_Int32[]> pData
Dialog to specify the properties of date form field.
std::vector< std::unique_ptr< SwRangeRedline > > GetAllValidRanges(std::unique_ptr< SwRangeRedline > p)
void MaybeNotifyRedlineModification(SwRangeRedline &rRedline, SwDoc &rDoc)
Marks a position in the document model.
bool operator<(const wwFont &r1, const wwFont &r2)
bool operator==(const XclFontData &rLeft, const XclFontData &rRight)