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

#include <xcl97rec.hxx>

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

Public Member Functions

 XclObjAny (XclExpObjectManager &rObjMgr, const css::uno::Reference< css::drawing::XShape > &rShape, ScDocument *pDoc)
 
virtual ~XclObjAny () override
 
const css::uno::Reference< css::drawing::XShape > & GetShape () const
 
virtual void Save (XclExpStream &rStrm) override
 Writes the record header and calls WriteBody(). More...
 
virtual void SaveXml (XclExpXmlStream &rStrm) override
 
- Public Member Functions inherited from XclObj
virtual ~XclObj () override
 
sal_uInt16 GetObjType () const
 
void SetId (sal_uInt16 nId)
 
void SetTab (SCTAB nScTab)
 
SCTAB GetTab () const
 
void SetLocked (bool b)
 
void SetPrintable (bool b)
 
void SetAutoFill (bool b)
 
void SetAutoLine (bool b)
 
void SetGrBit (bool b, int f)
 
void SetEscherShapeType (sal_uInt16 nType)
 
void SetEscherShapeTypeGroup ()
 
bool IsOwnEscher () const
 If set to true, this object has created its own escher data. More...
 
void SetText (const XclExpRoot &rRoot, const SdrTextObj &rObj)
 actually writes ESCHER_ClientTextbox More...
 
virtual void Save (XclExpStream &rStrm) override
 Writes the record header and calls WriteBody(). More...
 
- 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 ()
 

Static Public Member Functions

static void WriteFromTo (XclExpXmlStream &rStrm, const XclObjAny &rObj)
 
static void WriteFromTo (XclExpXmlStream &rStrm, const css::uno::Reference< css::drawing::XShape > &rShape, SCTAB nTab)
 
- 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)
 

Protected Member Functions

virtual void WriteSubRecs (XclExpStream &rStrm) override
 
- Protected Member Functions inherited from XclObj
 XclObj (XclExpObjectManager &rObjMgr, sal_uInt16 nObjType, bool bOwnEscher=false)
 true = Escher part created on the fly. More...
 
void ImplWriteAnchor (const SdrObject *pSdrObj, const tools::Rectangle *pChildAnchor)
 
virtual void WriteBody (XclExpStream &rStrm) override
 Writes the body of the record (without record header). More...
 
virtual void WriteSubRecs (XclExpStream &rStrm)
 
void SaveTextRecs (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
 

Private Attributes

css::uno::Reference< css::drawing::XShape > mxShape
 
ScDocumentmpDoc
 

Additional Inherited Members

- Protected Attributes inherited from XclObj
XclEscherExmrEscherEx
 
XclExpMsoDrawingpMsodrawing
 
std::unique_ptr< XclExpMsoDrawingpClientTextbox
 
std::unique_ptr< XclTxopTxo
 
sal_uInt16 mnObjType
 
sal_uInt16 nObjId
 
sal_uInt16 nGrbit
 
SCTAB mnScTab
 
bool bFirstOnSheet
 
bool mbOwnEscher
 
- Protected Attributes inherited from salhelper::SimpleReferenceObject
oslInterlockedCount m_nCount
 

Detailed Description

Definition at line 254 of file xcl97rec.hxx.

Constructor & Destructor Documentation

◆ XclObjAny()

XclObjAny::XclObjAny ( XclExpObjectManager rObjMgr,
const css::uno::Reference< css::drawing::XShape > &  rShape,
ScDocument pDoc 
)

Definition at line 1083 of file xcl97rec.cxx.

References mxShape.

◆ ~XclObjAny()

XclObjAny::~XclObjAny ( )
overridevirtual

Definition at line 1090 of file xcl97rec.cxx.

Member Function Documentation

◆ GetShape()

const css::uno::Reference< css::drawing::XShape > & XclObjAny::GetShape ( ) const
inline

Definition at line 266 of file xcl97rec.hxx.

References mxShape.

Referenced by GetEditAs(), and WriteFromTo().

◆ Save()

void XclObjAny::Save ( XclExpStream rStrm)
overridevirtual

Writes the record header and calls WriteBody().

Reimplemented from XclObj.

Definition at line 1101 of file xcl97rec.cxx.

References XclExpRecord::AddRecSize(), EXC_OBJTYPE_GROUP, XclObj::mnObjType, rStrm, and XclObj::Save().

◆ SaveXml()

void XclObjAny::SaveXml ( XclExpXmlStream rStrm)
overridevirtual

◆ WriteFromTo() [1/2]

static void XclObjAny::WriteFromTo ( XclExpXmlStream rStrm,
const css::uno::Reference< css::drawing::XShape > &  rShape,
SCTAB  nTab 
)
static

◆ WriteFromTo() [2/2]

void XclObjAny::WriteFromTo ( XclExpXmlStream rStrm,
const XclObjAny rObj 
)
static

Definition at line 1184 of file xcl97rec.cxx.

References GetShape(), XclObj::GetTab(), rStrm, and WriteFromTo().

Referenced by SaveXml(), XclExpChartObj::SaveXml(), and WriteFromTo().

◆ WriteSubRecs()

void XclObjAny::WriteSubRecs ( XclExpStream rStrm)
overrideprotectedvirtual

Reimplemented from XclObj.

Reimplemented in XclExpShapeObj.

Definition at line 1094 of file xcl97rec.cxx.

References EXC_ID_OBJGMO, EXC_OBJTYPE_GROUP, XclObj::mnObjType, and rStrm.

Referenced by XclExpShapeObj::WriteSubRecs().

Member Data Documentation

◆ mpDoc

ScDocument* XclObjAny::mpDoc
private

Definition at line 276 of file xcl97rec.hxx.

Referenced by SaveXml().

◆ mxShape

css::uno::Reference< css::drawing::XShape > XclObjAny::mxShape
private

Definition at line 275 of file xcl97rec.hxx.

Referenced by GetShape(), and SaveXml().


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