LibreOffice Module sc (master) 1
|
The CHMARKERFORMAT record containing data point marker formatting data. More...
#include <xechart.hxx>
Public Member Functions | |
XclExpChMarkerFormat (const XclExpChRoot &rRoot) | |
void | Convert (const XclExpChRoot &rRoot, const ScfPropertySet &rPropSet, sal_uInt16 nFormatIdx) |
Converts symbol properties from the passed property set. More... | |
void | ConvertStockSymbol (const XclExpChRoot &rRoot, const ScfPropertySet &rPropSet, bool bCloseSymbol) |
Converts symbol properties for stock charts from the passed property set. More... | |
bool | HasMarker () const |
Returns true, if markers are enabled. More... | |
bool | HasLineColor () const |
Returns true, if border line of markers is visible. More... | |
bool | HasFillColor () const |
Returns true, if fill area of markers is visible. 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 | |
void | RegisterColors (const XclExpChRoot &rRoot) |
Registers marker colors in palette and stores color identifiers. More... | |
virtual void | WriteBody (XclExpStream &rStrm) override |
Writes the body of the record (without record header). More... | |
Private Attributes | |
XclChMarkerFormat | maData |
sal_uInt32 | mnLineColorId |
Contents of the CHMARKERFORMAT record. More... | |
sal_uInt32 | mnFillColorId |
Border line color identifier. 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 |
The CHMARKERFORMAT record containing data point marker formatting data.
Definition at line 540 of file xechart.hxx.
|
explicit |
Definition at line 1426 of file xechart.cxx.
void XclExpChMarkerFormat::Convert | ( | const XclExpChRoot & | rRoot, |
const ScfPropertySet & | rPropSet, | ||
sal_uInt16 | nFormatIdx | ||
) |
Converts symbol properties from the passed property set.
Definition at line 1433 of file xechart.cxx.
References EXC_CHPROP_COLOR, ScfPropertySet::GetColorProperty(), maData, XclChMarkerFormat::maFillColor, XclChMarkerFormat::maLineColor, XclChPropSetHelper::ReadMarkerProperties(), and RegisterColors().
void XclExpChMarkerFormat::ConvertStockSymbol | ( | const XclExpChRoot & | rRoot, |
const ScfPropertySet & | rPropSet, | ||
bool | bCloseSymbol | ||
) |
Converts symbol properties for stock charts from the passed property set.
Definition at line 1446 of file xechart.cxx.
References EXC_CHMARKERFORMAT_AUTO, EXC_CHMARKERFORMAT_DOUBLESIZE, EXC_CHMARKERFORMAT_DOWJ, EXC_CHMARKERFORMAT_NOSYMBOL, EXC_CHPROP_COLOR, ScfPropertySet::GetColorProperty(), maData, XclChMarkerFormat::maFillColor, XclChMarkerFormat::maLineColor, XclChMarkerFormat::mnFlags, XclChMarkerFormat::mnMarkerSize, XclChMarkerFormat::mnMarkerType, RegisterColors(), and set_flag().
|
inline |
Returns true, if fill area of markers is visible.
Definition at line 557 of file xechart.hxx.
References EXC_CHMARKERFORMAT_NOFILL, get_flag(), maData, and XclChMarkerFormat::mnFlags.
Referenced by RegisterColors().
|
inline |
Returns true, if border line of markers is visible.
Definition at line 555 of file xechart.hxx.
References EXC_CHMARKERFORMAT_NOLINE, get_flag(), maData, and XclChMarkerFormat::mnFlags.
Referenced by RegisterColors().
|
inline |
Returns true, if markers are enabled.
Definition at line 553 of file xechart.hxx.
References EXC_CHMARKERFORMAT_NOSYMBOL, maData, and XclChMarkerFormat::mnMarkerType.
Referenced by RegisterColors().
|
private |
Registers marker colors in palette and stores color identifiers.
Definition at line 1472 of file xechart.cxx.
References EXC_COLOR_CHARTAREA, EXC_COLOR_CHARTLINE, XclExpRoot::GetPalette(), HasFillColor(), HasLineColor(), HasMarker(), XclExpPalette::InsertColor(), maData, XclChMarkerFormat::maFillColor, XclChMarkerFormat::maLineColor, mnFillColorId, and mnLineColorId.
Referenced by Convert(), and ConvertStockSymbol().
|
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 1483 of file xechart.cxx.
References EXC_BIFF8, XclExpPalette::GetColorIndex(), maData, XclChMarkerFormat::maFillColor, XclChMarkerFormat::maLineColor, mnFillColorId, XclChMarkerFormat::mnFlags, mnLineColorId, XclChMarkerFormat::mnMarkerSize, XclChMarkerFormat::mnMarkerType, and rStrm.
|
private |
Definition at line 566 of file xechart.hxx.
Referenced by Convert(), ConvertStockSymbol(), HasFillColor(), HasLineColor(), HasMarker(), RegisterColors(), and WriteBody().
|
private |
Border line color identifier.
Definition at line 568 of file xechart.hxx.
Referenced by RegisterColors(), and WriteBody().
|
private |
Contents of the CHMARKERFORMAT record.
Definition at line 567 of file xechart.hxx.
Referenced by RegisterColors(), and WriteBody().