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

#include <xcl97rec.hxx>

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

Public Member Functions

 XclObjComment (XclExpObjectManager &rObjMgr, const tools::Rectangle &rRect, const EditTextObject &rEditObj, SdrCaptionObj *pCaption, bool bVisible, const ScAddress &rAddress, const tools::Rectangle &rFrom, const tools::Rectangle &To)
 
virtual ~XclObjComment () override
 
void ProcessEscherObj (const XclExpRoot &rRoot, const tools::Rectangle &rRect, SdrObject *pCaption, bool bVisible)
 c'tor process for formatted text objects above . More...
 
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...
 
- 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...
 
- Public Member Functions inherited from XclExpRecordBase
 XclExpRecordBase ()
 
 XclExpRecordBase (XclExpRecordBase const &)
 
 XclExpRecordBase (XclExpRecordBase &&)
 
XclExpRecordBaseoperator= (XclExpRecordBase const &)
 
XclExpRecordBaseoperator= (XclExpRecordBase &&) noexcept
 
virtual ~XclExpRecordBase ()
 
- Public Member Functions inherited from salhelper::SimpleReferenceObject
 SimpleReferenceObject ()
 
void acquire ()
 
void release ()
 

Private Attributes

ScAddress maScPos
 
SdrCaptionObjmpCaption
 
bool mbVisible
 
tools::Rectangle maFrom
 
tools::Rectangle maTo
 

Additional Inherited Members

- Static Public Member Functions inherited from salhelper::SimpleReferenceObject
static voidoperator new (std::size_t nSize)
 
static voidoperator 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 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)
 
- Protected Member Functions inherited from salhelper::SimpleReferenceObject
virtual ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE
 
- 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 173 of file xcl97rec.hxx.

Constructor & Destructor Documentation

XclObjComment::XclObjComment ( XclExpObjectManager rObjMgr,
const tools::Rectangle rRect,
const EditTextObject rEditObj,
SdrCaptionObj pCaption,
bool  bVisible,
const ScAddress rAddress,
const tools::Rectangle rFrom,
const tools::Rectangle To 
)
XclObjComment::~XclObjComment ( )
overridevirtual

Definition at line 624 of file xcl97rec.cxx.

References mpCaption, and setSuppressGetBitmapFromXclObjComment().

Member Function Documentation

void XclObjComment::ProcessEscherObj ( const XclExpRoot rRoot,
const tools::Rectangle rRect,
SdrObject pCaption,
bool  bVisible 
)

c'tor process for formatted text objects above .

used to construct the MSODRAWING Escher object properties.

Be sure to construct the MSODRAWING ClientTextbox record after the base OBJ's MSODRAWING record Escher data is completed.

Definition at line 600 of file xcl97rec.cxx.

References EscherEx::AddAtom(), EscherEx::AddShape(), EscherEx::CloseContainer(), EscherPropertyContainer::Commit(), ESCHER_ClientData, ESCHER_ClientTextbox, ESCHER_ShpInst_TextBox, ESCHER_SpContainer, EscherEx::GetStream(), lcl_FillProps(), XclObj::mrEscherEx, XclObj::nGrbit, EscherEx::OpenContainer(), XclObj::pClientTextbox, XclEscherEx::UpdateDffFragmentEnd(), and XclExpDffAnchorBase::WriteDffData().

Referenced by XclObjComment().

void XclObjComment::Save ( XclExpStream rStrm)
overridevirtual

Writes the record header and calls WriteBody().

Reimplemented from XclObj.

Definition at line 630 of file xcl97rec.cxx.

References XclObj::Save().

void XclObjComment::SaveXml ( XclExpXmlStream rStrm)
overridevirtual

Reimplemented from XclExpRecordBase.

Definition at line 758 of file xcl97rec.cxx.

References XclExpXmlStream::GetCurrentStream(), maFrom, maScPos, maTo, mbVisible, and mpCaption.

Member Data Documentation

tools::Rectangle XclObjComment::maFrom
private

Definition at line 181 of file xcl97rec.hxx.

Referenced by SaveXml().

ScAddress XclObjComment::maScPos
private

Definition at line 175 of file xcl97rec.hxx.

Referenced by SaveXml().

tools::Rectangle XclObjComment::maTo
private

Definition at line 182 of file xcl97rec.hxx.

Referenced by SaveXml().

bool XclObjComment::mbVisible
private

Definition at line 180 of file xcl97rec.hxx.

Referenced by SaveXml().

SdrCaptionObj* XclObjComment::mpCaption
private

Definition at line 178 of file xcl97rec.hxx.

Referenced by SaveXml(), XclObjComment(), and ~XclObjComment().


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