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

#include <xechart.hxx>

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

Public Member Functions

 XclExpChLineFormat (const XclExpChRoot &rRoot)
 
void Convert (const XclExpChRoot &rRoot, const ScfPropertySet &rPropSet, XclChObjectType eObjType)
 Converts line formatting properties from the passed property set. More...
 
void SetAuto (bool bAuto)
 Sets or clears the automatic flag. More...
 
void SetShowAxis (bool bShowAxis)
 Sets flag to show or hide an axis. More...
 
void SetDefault (XclChFrameType eDefFrameType)
 Sets the line format to the specified default type. More...
 
bool IsAuto () const
 Returns true, if the line format is set to automatic. More...
 
bool HasLine () const
 Returns true, if the line style is set to something visible. More...
 
bool IsDefault (XclChFrameType eDefFrameType) const
 Returns true, if the line contains default formatting according to the passed frame type. 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 ()
 

Private Member Functions

virtual void WriteBody (XclExpStream &rStrm) override
 Writes the body of the record (without record header). More...
 

Private Attributes

XclChLineFormat maData
 
sal_uInt32 mnColorId
 Contents of the CHLINEFORMAT record. More...
 

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)
 
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 inherited from salhelper::SimpleReferenceObject
oslInterlockedCount m_nCount
 

Detailed Description

Definition at line 222 of file xechart.hxx.

Constructor & Destructor Documentation

◆ XclExpChLineFormat()

XclExpChLineFormat::XclExpChLineFormat ( const XclExpChRoot rRoot)
explicit

Definition at line 492 of file xechart.cxx.

Member Function Documentation

◆ Convert()

void XclExpChLineFormat::Convert ( const XclExpChRoot rRoot,
const ScfPropertySet rPropSet,
XclChObjectType  eObjType 
)

◆ HasLine()

bool XclExpChLineFormat::HasLine ( ) const
inline

Returns true, if the line style is set to something visible.

Definition at line 241 of file xechart.hxx.

References EXC_CHLINEFORMAT_NONE, maData, and XclChLineFormat::mnPattern.

Referenced by Convert(), and IsDefault().

◆ IsAuto()

bool XclExpChLineFormat::IsAuto ( ) const
inline

Returns true, if the line format is set to automatic.

Definition at line 239 of file xechart.hxx.

References EXC_CHLINEFORMAT_AUTO, get_flag(), maData, and XclChLineFormat::mnFlags.

Referenced by IsDefault().

◆ IsDefault()

bool XclExpChLineFormat::IsDefault ( XclChFrameType  eDefFrameType) const

Returns true, if the line contains default formatting according to the passed frame type.

Definition at line 543 of file xechart.cxx.

References EXC_CHFRAMETYPE_AUTO, EXC_CHFRAMETYPE_INVISIBLE, HasLine(), and IsAuto().

◆ SetAuto()

void XclExpChLineFormat::SetAuto ( bool  bAuto)
inline

Sets or clears the automatic flag.

Definition at line 231 of file xechart.hxx.

References EXC_CHLINEFORMAT_AUTO, maData, XclChLineFormat::mnFlags, and set_flag().

Referenced by SetDefault().

◆ SetDefault()

void XclExpChLineFormat::SetDefault ( XclChFrameType  eDefFrameType)

Sets the line format to the specified default type.

Definition at line 498 of file xechart.cxx.

References EXC_CHFRAMETYPE_AUTO, EXC_CHFRAMETYPE_INVISIBLE, EXC_CHLINEFORMAT_NONE, maData, XclChLineFormat::mnPattern, and SetAuto().

◆ SetShowAxis()

void XclExpChLineFormat::SetShowAxis ( bool  bShowAxis)
inline

Sets flag to show or hide an axis.

Definition at line 233 of file xechart.hxx.

References EXC_CHLINEFORMAT_SHOWAXIS, maData, XclChLineFormat::mnFlags, and set_flag().

◆ WriteBody()

void XclExpChLineFormat::WriteBody ( XclExpStream rStrm)
overrideprivatevirtual

Writes the body of the record (without record header).

@descr Usually this method will be overwritten by derived classes.

Reimplemented from XclExpRecord.

Definition at line 550 of file xechart.cxx.

References EXC_BIFF8, XclChLineFormat::maColor, maData, mnColorId, XclChLineFormat::mnFlags, XclChLineFormat::mnPattern, XclChLineFormat::mnWeight, and rStrm.

Member Data Documentation

◆ maData

XclChLineFormat XclExpChLineFormat::maData
private

Definition at line 249 of file xechart.hxx.

Referenced by Convert(), HasLine(), IsAuto(), SetAuto(), SetDefault(), SetShowAxis(), and WriteBody().

◆ mnColorId

sal_uInt32 XclExpChLineFormat::mnColorId
private

Contents of the CHLINEFORMAT record.

Definition at line 250 of file xechart.hxx.

Referenced by Convert(), and WriteBody().


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