24#include <tools/datetime.hxx>
26#include <document.hxx>
37 virtual std::size_t
GetLen()
const override;
38 virtual sal_uInt16
GetNum()
const override;
57 virtual sal_uInt16
GetNum()
const override;
58 virtual std::size_t
GetLen()
const override;
93 virtual sal_uInt16
GetNum()
const override;
94 virtual std::size_t
GetLen()
const override;
105 virtual sal_uInt16
GetNum()
const override;
106 virtual std::size_t
GetLen()
const override;
117 virtual sal_uInt16
GetNum()
const override;
118 virtual std::size_t
GetLen()
const override;
129 virtual sal_uInt16
GetNum()
const override;
130 virtual std::size_t
GetLen()
const override;
141 virtual sal_uInt16
GetNum()
const override;
142 virtual std::size_t
GetLen()
const override;
153 virtual sal_uInt16
GetNum()
const override;
154 virtual std::size_t
GetLen()
const override;
168 virtual sal_uInt16
GetNum()
const override;
169 virtual std::size_t
GetLen()
const override;
182 virtual sal_uInt16
GetNum()
const override;
183 virtual std::size_t
GetLen()
const override;
200 virtual sal_uInt16
GetNum()
const override;
201 virtual std::size_t
GetLen()
const override;
205 sUsername( rChangeTrack.GetUser() ),
206 aDateTime( rChangeTrack.GetFixDateTime() )
227 virtual sal_uInt16
GetNum()
const override;
228 virtual std::size_t
GetLen()
const override;
255 std::vector<std::unique_ptr<XclExpChTrAction>>
maActions;
264 void AppendAction( std::unique_ptr<XclExpChTrAction> pAction );
284 virtual sal_uInt16
GetNum()
const override;
285 virtual std::size_t
GetLen()
const override;
293 std::unique_ptr<sal_uInt16[]>
307 sal_uInt16
GetId( sal_uInt16 nIndex )
const;
308 bool HasId( sal_uInt16 nIndex )
const;
312 {
return static_cast< sal_uInt16
>( (
pLast -
pBuffer.get()) + 1 ); }
336 virtual sal_uInt16
GetNum()
const override;
337 virtual std::size_t
GetLen()
const override;
348 std::unique_ptr<XclExpChTrAction>
407 void SetIndex( sal_uInt32& rIndex );
410 virtual std::size_t
GetLen()
const override;
418 rStrm << static_cast<sal_uInt16>(rAddress.
Row())
419 <<
static_cast<sal_uInt16
>(rAddress.
Col());
424 rStrm << static_cast<sal_uInt16>(rRange.
aStart.
Row())
425 <<
static_cast<sal_uInt16
>(rRange.
aEnd.
Row())
426 <<
static_cast<sal_uInt16
>(rRange.
aStart.
Col())
427 <<
static_cast<sal_uInt16
>(rRange.
aEnd.
Col());
486 sal_uInt32& rXclLength1, sal_uInt16& rXclLength2 );
499 virtual sal_uInt16
GetNum()
const override;
530 virtual sal_uInt16
GetNum()
const override;
556 virtual sal_uInt16
GetNum()
const override;
583 virtual sal_uInt16
GetNum()
const override;
600 virtual sal_uInt16
GetNum()
const override;
614 std::vector<std::unique_ptr<XclExpChTrTabIdBuffer>>
virtual sal_uInt16 GetNum() const override
virtual void Save(XclExpStream &rStrm) override
Writes the record header and calls WriteBody().
virtual std::size_t GetLen() const override
virtual ~XclExpChTr0x014A() override
virtual void SaveActionData(XclExpStream &rStrm) const override
virtual std::size_t GetActionByteCount() const override
XclExpChTr0x014A(const XclExpChTrInsert &rAction)
virtual void SaveXml(XclExpXmlStream &rStrm) override
virtual sal_uInt16 GetNum() const override
virtual sal_uInt16 GetNum() const override
virtual void SaveCont(XclExpStream &rStrm) override
virtual std::size_t GetLen() const override
virtual sal_uInt16 GetNum() const override
virtual void SaveCont(XclExpStream &rStrm) override
virtual std::size_t GetLen() const override
virtual std::size_t GetLen() const override
XclExpChTr0x0194(const ScChangeTrack &rChangeTrack)
virtual ~XclExpChTr0x0194() override
virtual sal_uInt16 GetNum() const override
virtual void SaveCont(XclExpStream &rStrm) override
virtual std::size_t GetLen() const override
virtual void SaveCont(XclExpStream &rStrm) override
virtual ~XclExpChTr0x0195() override
virtual sal_uInt16 GetNum() const override
virtual void SaveCont(XclExpStream &rStrm) override
virtual sal_uInt16 GetNum() const override
virtual std::size_t GetLen() const override
virtual void SaveCont(XclExpStream &rStrm) override
virtual std::size_t GetLen() const override
virtual sal_uInt16 GetNum() const override
virtual void PrepareSaveAction(XclExpStream &rStrm) const
bool ForceInfoRecord() const
virtual ~XclExpChTrAction() override
const OUString & GetUsername() const
void SetIndex(sal_uInt32 &rIndex)
const XclExpChTrTabIdBuffer & GetTabIdBuffer() const
std::unique_ptr< XclExpChTrAction > pAddAction
void WriteTabId(XclExpStream &rStrm, SCTAB nTabId) const
sal_uInt16 GetTabId(SCTAB nTabId) const
virtual void SaveActionData(XclExpStream &rStrm) const =0
const XclExpTabInfo & rTabInfo
virtual std::size_t GetActionByteCount() const =0
void AddDependentContents(const ScChangeAction &rAction, const XclExpRoot &rRoot, const ScChangeTrack &rChangeTrack)
virtual bool UsesDeletedTab() const =0
virtual std::size_t GetLen() const override
static std::size_t GetHeaderByteCount()
void SetAddAction(XclExpChTrAction *pAction)
XclExpChTrAction(const XclExpChTrAction &rCopy)
virtual void CompleteSaveAction(XclExpStream &rStrm) const
const XclExpChTrTabIdBuffer & rIdBuffer
virtual void SaveCont(XclExpStream &rStrm) override
static void Write2DRange(XclExpStream &rStrm, const ScRange &rRange)
sal_uInt32 GetActionNumber() const
bool IsDeletedTab(SCTAB nTab) const
const DateTime & GetDateTime() const
virtual void Save(XclExpStream &rStrm) override
Writes the record header and calls WriteBody().
static void Write2DAddress(XclExpStream &rStrm, const ScAddress &rAddress)
XclExpChTrAction * GetAddAction()
void GetCellData(const XclExpRoot &rRoot, const ScCellValue &rScCell, std::unique_ptr< XclExpChTrData > &rpData, sal_uInt32 &rXclLength1, sal_uInt16 &rXclLength2)
std::unique_ptr< XclExpChTrData > pOldData
virtual ~XclExpChTrCellContent() override
virtual std::size_t GetActionByteCount() const override
virtual sal_uInt16 GetNum() const override
virtual void SaveActionData(XclExpStream &rStrm) const override
static void MakeEmptyChTrData(std::unique_ptr< XclExpChTrData > &rpData)
std::unique_ptr< XclExpChTrData > pNewData
XclExpChTrCellContent(const ScChangeActionContent &rAction, const XclExpRoot &rRoot, const XclExpChTrTabIdBuffer &rTabIdBuffer)
virtual bool UsesDeletedTab() const override
virtual void SaveXml(XclExpXmlStream &rStrm) override
virtual sal_uInt16 GetNum() const override
virtual std::size_t GetLen() const override
XclExpChTrEmpty(sal_uInt16 nNum)
virtual ~XclExpChTrEmpty() override
virtual std::size_t GetLen() const override
virtual sal_uInt16 GetNum() const override
XclExpChTrInfo(const OUString &rUsername, const DateTime &rDateTime, const sal_uInt8 *pGUID)
virtual ~XclExpChTrInfo() override
virtual void SaveCont(XclExpStream &rStrm) override
virtual bool UsesDeletedTab() const override
virtual void SaveActionData(XclExpStream &rStrm) const override
virtual ~XclExpChTrInsertTab() override
virtual sal_uInt16 GetNum() const override
virtual std::size_t GetActionByteCount() const override
virtual void SaveXml(XclExpXmlStream &rStrm) override
XclExpChTrInsertTab(const ScChangeAction &rAction, const XclExpRoot &rRoot, const XclExpChTrTabIdBuffer &rTabIdBuffer)
virtual void SaveActionData(XclExpStream &rStrm) const override
virtual void SaveXml(XclExpXmlStream &rStrm) override
virtual bool UsesDeletedTab() const override
XclExpChTrInsert(const XclExpChTrInsert &rCopy)
virtual ~XclExpChTrInsert() override
virtual sal_uInt16 GetNum() const override
virtual void CompleteSaveAction(XclExpStream &rStrm) const override
virtual void PrepareSaveAction(XclExpStream &rStrm) const override
virtual std::size_t GetActionByteCount() const override
virtual std::size_t GetActionByteCount() const override
virtual sal_uInt16 GetNum() const override
virtual void PrepareSaveAction(XclExpStream &rStrm) const override
XclExpChTrMoveRange(const ScChangeActionMove &rAction, const XclExpRoot &rRoot, const XclExpChTrTabIdBuffer &rTabIdBuffer, const ScChangeTrack &rChangeTrack)
virtual void CompleteSaveAction(XclExpStream &rStrm) const override
virtual void SaveActionData(XclExpStream &rStrm) const override
virtual bool UsesDeletedTab() const override
virtual void SaveXml(XclExpXmlStream &rStrm) override
virtual ~XclExpChTrMoveRange() override
XclExpChTrTabIdBuffer(sal_uInt16 nCount)
bool HasId(sal_uInt16 nIndex) const
sal_uInt16 GetBufferCount() const
void InitFill(sal_uInt16 nIndex)
void GetBufferCopy(sal_uInt16 *pDest) const
sal_uInt16 GetId(sal_uInt16 nIndex) const
std::unique_ptr< sal_uInt16[]> pBuffer
virtual void SaveCont(XclExpStream &rStrm) override
virtual ~XclExpChTrTabId() override
virtual sal_uInt16 GetNum() const override
virtual std::size_t GetLen() const override
void Copy(const XclExpChTrTabIdBuffer &rBuffer)
std::unique_ptr< sal_uInt16[]> pBuffer
XclExpChTrTabId(sal_uInt16 nCount)
void PushActionRecord(const ScChangeAction &rAction)
XclExpChTrTabIdBuffer * pTabIdBuffer
virtual ~XclExpChangeTrack() override
std::stack< XclExpChTrAction * > aActionStack
void WriteXml(XclExpXmlStream &rStrm)
XclExpChangeTrack(const XclExpRoot &rRoot)
ScDocumentUniquePtr xTempDoc
std::vector< std::unique_ptr< XclExpChTrTabIdBuffer > > maBuffers
bool WriteUserNamesStream()
ScChangeTrack * CreateTempChangeTrack()
std::vector< std::unique_ptr< ExcRecord > > RecListType
Access to global data from other classes.
This class is used to export Excel record streams.
This class stores an unformatted or formatted string for Excel export.
Stores the correct Excel sheet index for each Calc sheet.
sal_uInt16 GetXclTab(SCTAB nScTab) const
Returns the Excel sheet index for a given Calc sheet.
virtual ~XclExpUserBViewList() override
XclExpUserBViewList(const ScChangeTrack &rChangeTrack)
virtual void Save(XclExpStream &rStrm) override
Writes the record header and calls WriteBody().
std::vector< XclExpUserBView >::const_iterator const_iterator
std::vector< XclExpUserBView > aViews
const sal_uInt8 * GetGUID() const
XclExpUserBView(const OUString &rUsername, const sal_uInt8 *pGUID)
virtual std::size_t GetLen() const override
virtual sal_uInt16 GetNum() const override
virtual void SaveCont(XclExpStream &rStrm) override
XclExpUsersViewBegin(const sal_uInt8 *pGUID, sal_uInt32 nTab)
virtual void SaveCont(XclExpStream &rStrm) override
virtual sal_uInt16 GetNum() const override
virtual std::size_t GetLen() const override
virtual void SaveCont(XclExpStream &rStrm) override
virtual sal_uInt16 GetNum() const override
virtual std::size_t GetLen() const override
std::unique_ptr< ScDocument, o3tl::default_delete< ScDocument > > ScDocumentUniquePtr
#define EXC_CHTR_OP_UNKNOWN
Store arbitrary cell value of any kind.
XclTokenArrayRef mxTokArr
XclExpStringRef mpFormattedString
bool UsesDeletedTab(const XclExpChTrTabIdBuffer &rTabIdBuffer) const
void Write(XclExpStream &rStrm, const XclExpChTrTabIdBuffer &rTabIdBuffer)
std::unique_ptr< XclExpString > pString
void WriteFormula(XclExpStream &rStrm, const XclExpChTrTabIdBuffer &rTabIdBuffer)
const ScFormulaCell * mpFormulaCell
std::shared_ptr< XclExpString > XclExpStringRef
const sal_uInt16 EXC_TAB_DELETED
Special sheet index for external links.