LibreOffice Module sc (master) 1
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Attributes | List of all members
XclExpChTrAction Class Referenceabstract

#include <XclExpChangeTrack.hxx>

Inheritance diagram for XclExpChTrAction:
[legend]
Collaboration diagram for XclExpChTrAction:
[legend]

Public Member Functions

 XclExpChTrAction (const ScChangeAction &rAction, const XclExpRoot &rRoot, const XclExpChTrTabIdBuffer &rTabIdBuffer, sal_uInt16 nNewOpCode=EXC_CHTR_OP_UNKNOWN)
 
virtual ~XclExpChTrAction () override
 
const OUString & GetUsername () const
 
const DateTimeGetDateTime () const
 
const XclExpChTrTabIdBufferGetTabIdBuffer () const
 
bool ForceInfoRecord () const
 
void SetIndex (sal_uInt32 &rIndex)
 
virtual void Save (XclExpStream &rStrm) override
 Writes the record header and calls WriteBody(). More...
 
virtual std::size_t GetLen () const override
 
XclExpChTrActionGetAddAction ()
 
sal_uInt32 GetActionNumber () const
 
- Public Member Functions inherited from ExcRecord
virtual void Save (XclExpStream &rStrm) override
 Writes the record header and calls WriteBody(). More...
 
virtual void SaveXml (XclExpXmlStream &rStrm) override
 
virtual sal_uInt16 GetNum () const =0
 
virtual std::size_t GetLen () const =0
 
- Public Member Functions inherited from XclExpRecord
 XclExpRecord (sal_uInt16 nRecId=EXC_ID_UNKNOWN, std::size_t nRecSize=0)
 
 XclExpRecord (XclExpRecord const &)=default
 
virtual ~XclExpRecord () override
 
sal_uInt16 GetRecId () const
 Returns the current record ID. More...
 
std::size_t GetRecSize () const
 Returns the current record size prediction. More...
 
void SetRecId (sal_uInt16 nRecId)
 Sets a new record ID. More...
 
void SetRecSize (std::size_t nRecSize)
 Sets a new record size prediction. More...
 
void AddRecSize (std::size_t nRecSize)
 Adds a size value to the record size prediction. More...
 
void SetRecHeader (sal_uInt16 nRecId, std::size_t nRecSize)
 Sets record ID and size with one call. More...
 
virtual void Save (XclExpStream &rStrm) override
 Writes the record header and calls WriteBody(). More...
 
- Public Member Functions inherited from XclExpRecordBase
 XclExpRecordBase ()
 
 XclExpRecordBase (XclExpRecordBase const &)
 
 XclExpRecordBase (XclExpRecordBase &&)
 
XclExpRecordBaseoperator= (XclExpRecordBase const &)
 
XclExpRecordBaseoperator= (XclExpRecordBase &&) noexcept
 
virtual ~XclExpRecordBase ()
 
virtual void Save (XclExpStream &rStrm)
 Overwrite this method to do any operation while saving the record. More...
 
virtual void SaveXml (XclExpXmlStream &rStrm)
 
- Public Member Functions inherited from salhelper::SimpleReferenceObject
 SimpleReferenceObject ()
 
void acquire ()
 
void release ()
 

Protected Member Functions

 XclExpChTrAction (const XclExpChTrAction &rCopy)
 
void SetAddAction (XclExpChTrAction *pAction)
 
void AddDependentContents (const ScChangeAction &rAction, const XclExpRoot &rRoot, const ScChangeTrack &rChangeTrack)
 
sal_uInt16 GetTabId (SCTAB nTabId) const
 
void WriteTabId (XclExpStream &rStrm, SCTAB nTabId) const
 
virtual void SaveCont (XclExpStream &rStrm) override
 
virtual void SaveActionData (XclExpStream &rStrm) const =0
 
virtual std::size_t GetActionByteCount () const =0
 
virtual void PrepareSaveAction (XclExpStream &rStrm) const
 
virtual void CompleteSaveAction (XclExpStream &rStrm) const
 
bool GetAccepted () const
 
virtual void SaveCont (XclExpStream &rStrm)
 
virtual void WriteBody (XclExpStream &rStrm)
 Writes the body of the record (without record header). More...
 
- Protected Member Functions inherited from salhelper::SimpleReferenceObject
virtual ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE
 

Static Protected Member Functions

static void Write2DAddress (XclExpStream &rStrm, const ScAddress &rAddress)
 
static void Write2DRange (XclExpStream &rStrm, const ScRange &rRange)
 
static std::size_t GetHeaderByteCount ()
 

Protected Attributes

const XclExpTabInforTabInfo
 
const XclExpChTrTabIdBufferrIdBuffer
 
sal_uInt32 nLength
 
sal_uInt16 nOpCode
 
bool bForceInfo
 
- Protected Attributes inherited from salhelper::SimpleReferenceObject
oslInterlockedCount m_nCount
 

Private Attributes

OUString sUsername
 
DateTime aDateTime
 
sal_uInt32 nIndex
 
std::unique_ptr< XclExpChTrActionpAddAction
 
bool bAccepted
 

Additional Inherited Members

- Static Public Member Functions inherited from salhelper::SimpleReferenceObject
static void * operator new (std::size_t nSize)
 
static void * operator new (std::size_t nSize, std::nothrow_t const &rNothrow)
 
static void operator delete (void *pPtr)
 
static void operator delete (void *pPtr, std::nothrow_t const &rNothrow)
 

Detailed Description

Definition at line 340 of file XclExpChangeTrack.hxx.

Constructor & Destructor Documentation

◆ XclExpChTrAction() [1/2]

XclExpChTrAction::XclExpChTrAction ( const XclExpChTrAction rCopy)
protected

Definition at line 636 of file XclExpChangeTrack.cxx.

References nIndex, and nLength.

◆ XclExpChTrAction() [2/2]

XclExpChTrAction::XclExpChTrAction ( const ScChangeAction rAction,
const XclExpRoot rRoot,
const XclExpChTrTabIdBuffer rTabIdBuffer,
sal_uInt16  nNewOpCode = EXC_CHTR_OP_UNKNOWN 
)

◆ ~XclExpChTrAction()

XclExpChTrAction::~XclExpChTrAction ( )
overridevirtual

Definition at line 669 of file XclExpChangeTrack.cxx.

Member Function Documentation

◆ AddDependentContents()

void XclExpChTrAction::AddDependentContents ( const ScChangeAction rAction,
const XclExpRoot rRoot,
const ScChangeTrack rChangeTrack 
)
protected

◆ CompleteSaveAction()

void XclExpChTrAction::CompleteSaveAction ( XclExpStream rStrm) const
protectedvirtual

Reimplemented in XclExpChTrInsert, and XclExpChTrMoveRange.

Definition at line 714 of file XclExpChangeTrack.cxx.

Referenced by Save().

◆ ForceInfoRecord()

bool XclExpChTrAction::ForceInfoRecord ( ) const
inline

Definition at line 397 of file XclExpChangeTrack.hxx.

References bForceInfo.

Referenced by XclExpChangeTrack::XclExpChangeTrack().

◆ GetAccepted()

bool XclExpChTrAction::GetAccepted ( ) const
inlineprotected

◆ GetActionByteCount()

virtual std::size_t XclExpChTrAction::GetActionByteCount ( ) const
protectedpure virtual

◆ GetActionNumber()

sal_uInt32 XclExpChTrAction::GetActionNumber ( ) const
inline

◆ GetAddAction()

XclExpChTrAction * XclExpChTrAction::GetAddAction ( )
inline

Definition at line 406 of file XclExpChangeTrack.hxx.

References pAddAction.

Referenced by XclExpChTrInsert::SaveXml(), and XclExpChTrMoveRange::SaveXml().

◆ GetDateTime()

const DateTime & XclExpChTrAction::GetDateTime ( ) const
inline

◆ GetHeaderByteCount()

static std::size_t XclExpChTrAction::GetHeaderByteCount ( )
inlinestaticprotected

Definition at line 372 of file XclExpChangeTrack.hxx.

Referenced by GetLen().

◆ GetLen()

std::size_t XclExpChTrAction::GetLen ( ) const
overridevirtual

Implements ExcRecord.

Definition at line 727 of file XclExpChangeTrack.cxx.

References GetActionByteCount(), and GetHeaderByteCount().

◆ GetTabId()

sal_uInt16 XclExpChTrAction::GetTabId ( SCTAB  nTabId) const
inlineprotected

◆ GetTabIdBuffer()

const XclExpChTrTabIdBuffer & XclExpChTrAction::GetTabIdBuffer ( ) const
inline

Definition at line 396 of file XclExpChangeTrack.hxx.

References rIdBuffer.

Referenced by XclExpChangeTrack::XclExpChangeTrack().

◆ GetUsername()

const OUString & XclExpChTrAction::GetUsername ( ) const
inline

Definition at line 394 of file XclExpChangeTrack.hxx.

References sUsername.

Referenced by XclExpChangeTrack::XclExpChangeTrack().

◆ PrepareSaveAction()

void XclExpChTrAction::PrepareSaveAction ( XclExpStream rStrm) const
protectedvirtual

Reimplemented in XclExpChTrInsert, and XclExpChTrMoveRange.

Definition at line 710 of file XclExpChangeTrack.cxx.

Referenced by Save().

◆ Save()

void XclExpChTrAction::Save ( XclExpStream rStrm)
overridevirtual

Writes the record header and calls WriteBody().

Reimplemented from ExcRecord.

Definition at line 718 of file XclExpChangeTrack.cxx.

References CompleteSaveAction(), pAddAction, PrepareSaveAction(), rStrm, and ExcRecord::Save().

◆ SaveActionData()

virtual void XclExpChTrAction::SaveActionData ( XclExpStream rStrm) const
protectedpure virtual

◆ SaveCont()

void XclExpChTrAction::SaveCont ( XclExpStream rStrm)
overrideprotectedvirtual

◆ SetAddAction()

void XclExpChTrAction::SetAddAction ( XclExpChTrAction pAction)
protected

Definition at line 673 of file XclExpChangeTrack.cxx.

References pAddAction.

Referenced by AddDependentContents(), and XclExpChTrInsert::XclExpChTrInsert().

◆ SetIndex()

void XclExpChTrAction::SetIndex ( sal_uInt32 &  rIndex)

Definition at line 695 of file XclExpChangeTrack.cxx.

References nIndex.

Referenced by XclExpChangeTrack::XclExpChangeTrack().

◆ Write2DAddress()

void XclExpChTrAction::Write2DAddress ( XclExpStream rStrm,
const ScAddress rAddress 
)
inlinestaticprotected

Definition at line 410 of file XclExpChangeTrack.hxx.

References ScAddress::Col(), and ScAddress::Row().

Referenced by XclExpChTrCellContent::SaveActionData().

◆ Write2DRange()

void XclExpChTrAction::Write2DRange ( XclExpStream rStrm,
const ScRange rRange 
)
inlinestaticprotected

◆ WriteTabId()

void XclExpChTrAction::WriteTabId ( XclExpStream rStrm,
SCTAB  nTabId 
) const
inlineprotected

Member Data Documentation

◆ aDateTime

DateTime XclExpChTrAction::aDateTime
private

Definition at line 344 of file XclExpChangeTrack.hxx.

Referenced by GetDateTime(), and XclExpChTrAction().

◆ bAccepted

bool XclExpChTrAction::bAccepted
private

Definition at line 348 of file XclExpChangeTrack.hxx.

Referenced by GetAccepted(), and SaveCont().

◆ bForceInfo

bool XclExpChTrAction::bForceInfo
protected

◆ nIndex

sal_uInt32 XclExpChTrAction::nIndex
private

Definition at line 345 of file XclExpChangeTrack.hxx.

Referenced by GetActionNumber(), SaveCont(), and SetIndex().

◆ nLength

sal_uInt32 XclExpChTrAction::nLength
protected

◆ nOpCode

sal_uInt16 XclExpChTrAction::nOpCode
protected

◆ pAddAction

std::unique_ptr<XclExpChTrAction> XclExpChTrAction::pAddAction
private

Definition at line 347 of file XclExpChangeTrack.hxx.

Referenced by GetAddAction(), Save(), and SetAddAction().

◆ rIdBuffer

const XclExpChTrTabIdBuffer& XclExpChTrAction::rIdBuffer
protected

◆ rTabInfo

const XclExpTabInfo& XclExpChTrAction::rTabInfo
protected

Definition at line 351 of file XclExpChangeTrack.hxx.

Referenced by GetTabId().

◆ sUsername

OUString XclExpChTrAction::sUsername
private

Definition at line 343 of file XclExpChangeTrack.hxx.

Referenced by GetUsername().


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