LibreOffice Module sc (master) 1
|
#include <xechart.hxx>
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 &&) | |
XclExpRecordBase & | operator= (XclExpRecordBase const &) |
XclExpRecordBase & | operator= (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 |
Definition at line 222 of file xechart.hxx.
|
explicit |
Definition at line 492 of file xechart.cxx.
void XclExpChLineFormat::Convert | ( | const XclExpChRoot & | rRoot, |
const ScfPropertySet & | rPropSet, | ||
XclChObjectType | eObjType | ||
) |
Converts line formatting properties from the passed property set.
Definition at line 514 of file xechart.cxx.
References XclExpChRoot::ConvertLineFormat(), EXC_CHLINEFORMAT_AUTO, EXC_CHLINEFORMAT_SOLID, EXC_CHOBJTYPE_LINEARSERIES, EXC_COLOR_CHARTLINE, EXC_COLOR_CHWINDOWTEXT, XclExpPalette::GetColorIdFromIndex(), XclExpChRoot::GetFormatInfo(), XclExpRoot::GetPalette(), HasLine(), XclExpPalette::InsertColor(), XclExpChRoot::IsSystemColor(), XclChLineFormat::maColor, maData, XclChFormatInfo::mePropMode, XclChFormatInfo::mnAutoLineColorIdx, XclChFormatInfo::mnAutoLineWeight, mnColorId, XclChLineFormat::mnFlags, XclChLineFormat::mnPattern, XclChLineFormat::mnWeight, set_flag(), and XclExpChRoot::SetSystemColor().
|
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().
|
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().
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().
|
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().
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().
|
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().
|
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.
|
private |
Definition at line 249 of file xechart.hxx.
Referenced by Convert(), HasLine(), IsAuto(), SetAuto(), SetDefault(), SetShowAxis(), and WriteBody().
|
private |
Contents of the CHLINEFORMAT record.
Definition at line 250 of file xechart.hxx.
Referenced by Convert(), and WriteBody().