LibreOffice Module sc (master) 1
|
#include <XclExpChangeTrack.hxx>
Public Member Functions | |
XclExpChTrInsert (const ScChangeAction &rAction, const XclExpRoot &rRoot, const XclExpChTrTabIdBuffer &rTabIdBuffer, const ScChangeTrack &rChangeTrack) | |
virtual | ~XclExpChTrInsert () override |
virtual sal_uInt16 | GetNum () const override |
virtual std::size_t | GetActionByteCount () const override |
virtual void | SaveXml (XclExpXmlStream &rStrm) override |
Public Member Functions inherited from XclExpChTrAction | |
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 DateTime & | GetDateTime () const |
const XclExpChTrTabIdBuffer & | GetTabIdBuffer () 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 |
XclExpChTrAction * | GetAddAction () |
sal_uInt32 | GetActionNumber () const |
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 &&) | |
XclExpRecordBase & | operator= (XclExpRecordBase const &) |
XclExpRecordBase & | operator= (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 | |
XclExpChTrInsert (const XclExpChTrInsert &rCopy) | |
virtual bool | UsesDeletedTab () const override |
virtual void | SaveActionData (XclExpStream &rStrm) const override |
virtual void | PrepareSaveAction (XclExpStream &rStrm) const override |
virtual void | CompleteSaveAction (XclExpStream &rStrm) const override |
Protected Member Functions inherited from XclExpChTrAction | |
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 |
bool | IsDeletedTab (SCTAB nTab) 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 bool | UsesDeletedTab () 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 |
Protected Attributes | |
ScRange | aRange |
Protected Attributes inherited from XclExpChTrAction | |
const XclExpTabInfo & | rTabInfo |
const XclExpChTrTabIdBuffer & | rIdBuffer |
sal_uInt32 | nLength |
sal_uInt16 | nOpCode |
bool | bForceInfo |
Protected Attributes inherited from salhelper::SimpleReferenceObject | |
oslInterlockedCount | m_nCount |
Private Attributes | |
bool | mbEndOfList |
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) |
Static Protected Member Functions inherited from XclExpChTrAction | |
static void | Write2DAddress (XclExpStream &rStrm, const ScAddress &rAddress) |
static void | Write2DRange (XclExpStream &rStrm, const ScRange &rRange) |
static std::size_t | GetHeaderByteCount () |
Definition at line 507 of file XclExpChangeTrack.hxx.
|
protected |
Definition at line 1111 of file XclExpChangeTrack.cxx.
XclExpChTrInsert::XclExpChTrInsert | ( | const ScChangeAction & | rAction, |
const XclExpRoot & | rRoot, | ||
const XclExpChTrTabIdBuffer & | rTabIdBuffer, | ||
const ScChangeTrack & | rChangeTrack | ||
) |
Definition at line 1116 of file XclExpChangeTrack.cxx.
References XclExpChTrAction::AddDependentContents(), ScRange::aEnd, aRange, ScRange::aStart, ScAddress::Col(), EXC_CHTR_OP_COLFLAG, EXC_CHTR_OP_DELCOL, EXC_CHTR_OP_DELFLAG, EXC_CHTR_OP_DELROW, EXC_CHTR_OP_INSCOL, EXC_CHTR_OP_INSROW, ScChangeAction::GetType(), XclRoot::GetXclMaxPos(), ScChangeActionIns::IsEndOfList(), mbEndOfList, XclExpChTrAction::nLength, XclExpChTrAction::nOpCode, ScAddress::Row(), SC_CAT_DELETE_COLS, SC_CAT_DELETE_ROWS, SC_CAT_INSERT_COLS, SC_CAT_INSERT_ROWS, XclExpChTrAction::SetAddAction(), ScAddress::SetCol(), and ScAddress::SetRow().
|
overridevirtual |
Definition at line 1160 of file XclExpChangeTrack.cxx.
|
overrideprotectedvirtual |
Reimplemented from XclExpChTrAction.
Definition at line 1184 of file XclExpChangeTrack.cxx.
References EXC_CHTR_OP_DELCOL, EXC_CHTR_OP_DELROW, XclExpChTrAction::nOpCode, rStrm, and ExcRecord::Save().
|
overridevirtual |
Implements XclExpChTrAction.
Reimplemented in XclExpChTr0x014A.
Definition at line 1195 of file XclExpChangeTrack.cxx.
|
overridevirtual |
Implements ExcRecord.
Reimplemented in XclExpChTr0x014A.
Definition at line 1190 of file XclExpChangeTrack.cxx.
|
overrideprotectedvirtual |
Reimplemented from XclExpChTrAction.
Definition at line 1178 of file XclExpChangeTrack.cxx.
References EXC_CHTR_OP_DELCOL, EXC_CHTR_OP_DELROW, XclExpChTrAction::nOpCode, rStrm, and ExcRecord::Save().
|
overrideprotectedvirtual |
Implements XclExpChTrAction.
Reimplemented in XclExpChTr0x014A.
Definition at line 1169 of file XclExpChangeTrack.cxx.
References aRange, ScRange::aStart, mbEndOfList, rStrm, ScAddress::Tab(), XclExpChTrAction::Write2DRange(), and XclExpChTrAction::WriteTabId().
|
overridevirtual |
Reimplemented from ExcRecord.
Reimplemented in XclExpChTr0x014A.
Definition at line 1212 of file XclExpChangeTrack.cxx.
References aRange, ScRange::aStart, XclExpChTrAction::GetAccepted(), XclExpChTrAction::GetActionNumber(), XclExpChTrAction::GetAddAction(), XclExpXmlStream::GetCurrentStream(), XclRoot::GetDoc(), XclExpXmlStream::GetRoot(), XclExpChTrAction::GetTabId(), XclExpChTrAction::IsDeletedTab(), lcl_GetAction(), mbEndOfList, XclExpChTrAction::nOpCode, SAL_WARN, ExcRecord::SaveXml(), ScAddress::Tab(), and XclXmlUtils::ToOString().
|
overrideprotectedvirtual |
Implements XclExpChTrAction.
Definition at line 1164 of file XclExpChangeTrack.cxx.
References aRange, ScRange::aStart, XclExpChTrAction::IsDeletedTab(), and ScAddress::Tab().
|
protected |
Definition at line 512 of file XclExpChangeTrack.hxx.
Referenced by SaveActionData(), XclExpChTr0x014A::SaveActionData(), SaveXml(), XclExpChTr0x014A::SaveXml(), UsesDeletedTab(), and XclExpChTrInsert().
|
private |
Definition at line 509 of file XclExpChangeTrack.hxx.
Referenced by SaveActionData(), SaveXml(), and XclExpChTrInsert().