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 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 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 salhelper::SimpleReferenceObject
virtual ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE
 
- Protected Attributes inherited from salhelper::SimpleReferenceObject
oslInterlockedCount m_nCount
 

Detailed Description

Definition at line 223 of file xechart.hxx.

Constructor & Destructor Documentation

XclExpChLineFormat::XclExpChLineFormat ( const XclExpChRoot rRoot)
explicit

Definition at line 493 of file xechart.cxx.

Member Function Documentation

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

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

Definition at line 242 of file xechart.hxx.

References EXC_CHLINEFORMAT_NONE, maData, and XclChLineFormat::mnPattern.

Referenced by Convert(), and IsDefault().

bool XclExpChLineFormat::IsAuto ( ) const
inline

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

Definition at line 240 of file xechart.hxx.

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

Referenced by IsDefault().

bool XclExpChLineFormat::IsDefault ( XclChFrameType  eDefFrameType) const

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

Definition at line 544 of file xechart.cxx.

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

void XclExpChLineFormat::SetAuto ( bool  bAuto)
inline

Sets or clears the automatic flag.

Definition at line 232 of file xechart.hxx.

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

Referenced by SetDefault().

void XclExpChLineFormat::SetDefault ( XclChFrameType  eDefFrameType)

Sets the line format to the specified default type.

Definition at line 499 of file xechart.cxx.

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

void XclExpChLineFormat::SetShowAxis ( bool  bShowAxis)
inline

Sets flag to show or hide an axis.

Definition at line 234 of file xechart.hxx.

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

void XclExpChLineFormat::WriteBody ( XclExpStream rStrm)
overrideprivatevirtual

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

Usually this method will be overwritten by derived classes.

Reimplemented from XclExpRecord.

Definition at line 551 of file xechart.cxx.

References EXC_BIFF8, XclRoot::GetBiff(), XclExpPalette::GetColorIndex(), XclExpRoot::GetPalette(), XclExpStream::GetRoot(), XclChLineFormat::maColor, maData, mnColorId, XclChLineFormat::mnFlags, XclChLineFormat::mnPattern, and XclChLineFormat::mnWeight.

Member Data Documentation

XclChLineFormat XclExpChLineFormat::maData
private

Definition at line 250 of file xechart.hxx.

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

sal_uInt32 XclExpChLineFormat::mnColorId
private

Contents of the CHLINEFORMAT record.

Definition at line 251 of file xechart.hxx.

Referenced by Convert(), and WriteBody().


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