53 class XCoordinateSystem;
58 class XFormattedString;
59 class XRegressionCurve;
63 class XLabeledDataSequence;
93 css::uno::Reference< css::chart2::XChartDocument >
const &
106 void InitConversion( css::uno::Reference< css::chart2::XChartDocument >
const & xChartDoc,
114 void SetSystemColor(
Color& rColor, sal_uInt32& rnColorId, sal_uInt16 nSysColorIdx )
const;
143 sal_Int16 nScript )
const;
171 sal_uInt16 nRecId, std::size_t nRecSize = 0 );
184 sal_uInt16 nFrValue1 = 0, sal_uInt16 nFrValue2 = 0 );
396 sal_uInt16
ConvertDataSequence( css::uno::Reference< css::chart2::data::XDataSequence >
const & xDataSeq,
397 bool bSplitToColumns, sal_uInt16 nDefCount = 0 );
399 sal_uInt16
ConvertStringSequence(
const css::uno::Sequence< css::uno::Reference< css::chart2::XFormattedString > >& rStringSeq );
457 bool bShowCateg,
bool bShowValue,
458 bool bShowPercent,
bool bShowBubble );
501 virtual void SetRotation( sal_uInt16 nRotation )
override;
504 void ConvertTitle( css::uno::Reference< css::chart2::XTitle >
const & xTitle, sal_uInt16 nTarget,
const OUString* pSubTitle );
658 bool Convert( css::uno::Reference< css::chart2::XRegressionCurve >
const & xRegCurve,
659 sal_uInt16 nSeriesIdx );
708 css::uno::Reference< css::chart2::XDiagram >
const & xDiagram,
709 css::uno::Reference< css::chart2::XDataSeries >
const & xDataSeries,
711 sal_uInt16 nGroupIdx, sal_uInt16 nFormatIdx );
714 css::uno::Reference< css::chart2::XDataSeries >
const & xDataSeries,
715 std::u16string_view rValueRole,
716 sal_uInt16 nGroupIdx, sal_uInt16 nFormatIdx,
bool bCloseSymbol );
719 css::uno::Reference< css::chart2::XRegressionCurve >
const & xRegCurve );
723 void ConvertCategSequence( css::uno::Reference< css::chart2::data::XLabeledDataSequence >
const & xCategSeq );
732 void CreateTrendLines( css::uno::Reference< css::chart2::XDataSeries >
const & xDataSeries );
735 const OUString& rBarPropName,
739 const OUString& rShowPropName,
sal_uInt8 nBarId );
772 void Convert( css::uno::Reference< css::chart2::XDiagram >
const & xDiagram,
773 css::uno::Reference< css::chart2::XChartType >
const & xChartType,
774 sal_Int32 nApiAxesSetIdx,
bool bSwappedAxesSet,
bool bHasXLabels );
880 void ConvertType( css::uno::Reference< css::chart2::XDiagram >
const & xDiagram,
881 css::uno::Reference< css::chart2::XChartType >
const & xChartType,
882 sal_Int32 nApiAxesSetIdx,
bool b3dChart,
bool bSwappedAxesSet,
bool bHasXLabels );
884 void ConvertSeries( css::uno::Reference< css::chart2::XDiagram >
const & xDiagram,
885 css::uno::Reference< css::chart2::XChartType >
const & xChartType,
886 sal_Int32 nGroupAxesSetIdx,
bool bPercent,
bool bConnectorLines );
888 void ConvertCategSequence( css::uno::Reference< css::chart2::data::XLabeledDataSequence >
const & xCategSeq );
914 void CreateDataSeries( css::uno::Reference< css::chart2::XDiagram >
const & xDiagram,
915 css::uno::Reference< css::chart2::XDataSeries >
const & xDataSeries );
918 css::uno::Reference< css::chart2::XDataSeries >
const & xDataSeries );
920 bool CreateStockSeries( css::uno::Reference< css::chart2::XDataSeries >
const & xDataSeries,
921 std::u16string_view rValueRole,
bool bCloseSymbol );
936 std::map<sal_uInt16, std::unique_ptr<XclExpChLineFormat>>
950 void Convert(
const css::chart2::ScaleData& rScaleData,
975 void Convert(
const css::chart2::ScaleData& rScaleData );
1025 virtual void SetRotation( sal_uInt16 nRotation )
override;
1028 void Convert( css::uno::Reference< css::chart2::XAxis >
const & xAxis,
1029 css::uno::Reference< css::chart2::XAxis >
const & xCrossingAxis,
1030 css::uno::Reference< css::chart::XAxis >
const & xChart1Axis,
1033 void ConvertWall( css::uno::Reference< css::chart2::XDiagram >
const & xDiagram );
1074 sal_uInt16
Convert( css::uno::Reference< css::chart2::XDiagram >
const & xDiagram,
1075 sal_uInt16 nFirstGroupIdx );
1098 css::uno::Reference< css::chart2::XCoordinateSystem >
const & xCoordSystem,
1100 sal_Int32 nCrossingAxisDim );
1132 css::uno::Reference< css::chart2::XChartDocument >
const & xChartDoc,
1172 const css::uno::Reference< css::frame::XModel >& rxModel,
1173 const Size& rChartSize );
1188 css::uno::Reference< css::frame::XModel >
const &
xModel,
A wrapper for a UNO property set.
The CHATTACHEDLABEL record that contains the type of a data point label.
XclExpChAttachedLabel(sal_uInt16 nFlags)
Represents the CHAXESSET record group describing an axes set (X/Y/Z axes).
bool IsValidAxesSet() const
Returns true, if this axes set exists (returns false if this is a dummy object).
XclExpChTextRef mxYAxisTitle
The X axis title (CHTEXT group).
bool Is3dChart() const
Returns true, if the chart is three-dimensional.
XclExpChAxesSet(const XclExpChRoot &rRoot, sal_uInt16 nAxesSetId)
XclExpChTextRef mxXAxisTitle
The Z axis (CHAXIS group).
XclExpChTypeGroupRef GetFirstTypeGroup() const
Returns first inserted chart type group.
XclExpChAxisRef mxZAxis
The Y axis (CHAXIS group).
XclExpChAxisRef mxYAxis
The X axis (CHAXIS group).
virtual void WriteSubRecords(XclExpStream &rStrm) override
Writes all embedded records.
XclExpChFrameRef mxPlotFrame
The Z axis title (CHTEXT group).
XclExpChFramePosRef mxFramePos
Contents of the CHAXESSET record.
XclExpChAxisRef mxXAxis
Outer plot area position (CHFRAMEPOS record).
XclExpChTypeGroupRef GetLastTypeGroup() const
Returns last inserted chart type group.
sal_Int32 GetApiAxesSetIndex() const
Returns the axes set index used by the chart API.
void ConvertAxis(XclExpChAxisRef &rxChAxis, sal_uInt16 nAxisType, XclExpChTextRef &rxChAxisTitle, sal_uInt16 nTitleTarget, css::uno::Reference< css::chart2::XCoordinateSystem > const &xCoordSystem, const XclChExtTypeInfo &rTypeInfo, sal_Int32 nCrossingAxisDim)
Converts a complete axis object including axis title.
sal_uInt16 GetAxesSetId() const
Returns the index of the axes set (primary/secondary).
XclExpChTextRef mxZAxisTitle
The Y axis title (CHTEXT group).
XclExpRecordList< XclExpChTypeGroup > maTypeGroups
Plot area (CHPLOTFRAME group).
sal_uInt16 Convert(css::uno::Reference< css::chart2::XDiagram > const &xDiagram, sal_uInt16 nFirstGroupIdx)
Converts the passed diagram to chart record data.
virtual void WriteBody(XclExpStream &rStrm) override
Writes the body of the record (without record header).
Represents the CHAXIS record group describing an entire chart axis.
sal_Int32 GetApiAxisDimension() const
Returns the axis dimension index used by the chart API.
virtual void WriteBody(XclExpStream &rStrm) override
Writes the body of the record (without record header).
XclExpChLabelRangeRef mxLabelRange
Contents of the CHAXIS record.
XclExpChLineFormatRef mxMinorGrid
Major grid line format (CHLINEFORMAT record).
XclExpChFrameRef mxWallFrame
Minor grid line format (CHLINEFORMAT record).
XclExpChLineFormatRef mxAxisLine
Index into font buffer (CHFONT record).
void ConvertWall(css::uno::Reference< css::chart2::XDiagram > const &xDiagram)
Converts and writes 3D wall/floor properties from the passed diagram.
XclExpChFontRef mxFont
Axis ticks (CHTICK record).
XclExpChValueRangeRef mxValueRange
Category scaling (CHLABELRANGE record).
sal_uInt16 mnNumFmtIdx
Wall/floor format (sub records of CHFRAME group).
XclExpChLineFormatRef mxMajorGrid
Axis line format (CHLINEFORMAT record).
virtual void SetFont(XclExpChFontRef xFont, model::ComplexColor const &rComplexColor, sal_uInt32 nColorId) override
Sets font color and color identifier to internal data structures.
virtual void SetRotation(sal_uInt16 nRotation) override
Sets text rotation to internal data structures.
XclExpChTickRef mxTick
Value scaling (CHVALUERANGE record).
XclExpChAxis(const XclExpChRoot &rRoot, sal_uInt16 nAxisType)
sal_uInt16 GetAxisType() const
Returns the type of this axis.
void Convert(css::uno::Reference< css::chart2::XAxis > const &xAxis, css::uno::Reference< css::chart2::XAxis > const &xCrossingAxis, css::uno::Reference< css::chart::XAxis > const &xChart1Axis, const XclChExtTypeInfo &rTypeInfo)
Converts formatting and scaling settings from the passed axis.
virtual void WriteSubRecords(XclExpStream &rStrm) override
Writes all embedded records.
Represents the CHCHART3D record that contains 3D view settings.
virtual void WriteBody(XclExpStream &rStrm) override
Writes the body of the record (without record header).
void SetClustered()
Sets flag that the data points are clustered on the X axis.
bool IsClustered() const
Returns true, if the data points are clustered on the X axis.
void Convert(const ScfPropertySet &rPropSet, bool b3dWallChart)
Converts 3d settings for the passed chart type.
Represents the CHCHART record group describing the chart contents.
XclExpRecordList< XclExpChText > maLabels
Chart title (CHTEXT group).
void RemoveLastSeries()
Removes the last created data series object from the series list.
virtual void WriteSubRecords(XclExpStream &rStrm) override
Writes all embedded records.
void SetManualPlotArea()
Sets the plot area position and size to manual mode.
XclExpChAxesSetRef mxSecnAxesSet
Primary axes set (CHAXESSET group).
XclExpChChart(const XclExpRoot &rRoot, css::uno::Reference< css::chart2::XChartDocument > const &xChartDoc, const tools::Rectangle &rChartRect)
XclExpRecordList< XclExpChSeries > XclExpChSeriesList
XclExpChFrameRef mxFrame
List of series data (CHSERIES groups).
XclChProperties maProps
Chart frame format (CHFRAME group).
XclExpChTextRef mxTitle
Secondary axes set (CHAXESSET group).
XclExpChSeriesRef CreateSeries()
Creates, registers and returns a new data series object.
XclExpChAxesSetRef mxPrimAxesSet
Chart properties (CHPROPERTIES record).
XclExpChSeriesList maSeries
Position of the chart on the sheet (CHCHART record).
virtual void WriteBody(XclExpStream &rStrm) override
Writes the body of the record (without record header).
void SetDataLabel(XclExpChTextRef const &xText)
Stores a CHTEXT group that describes a data point label.
Represents the CHDROPBAR record group describing pos/neg bars in line charts.
void Convert(const ScfPropertySet &rPropSet)
Converts and writes the contained frame data to the passed property set.
virtual void WriteBody(XclExpStream &rStrm) override
Writes the body of the record (without record header).
XclChObjectType meObjType
XclExpChDropBar(const XclExpChRoot &rRoot, XclChObjectType eObjType)
virtual void WriteSubRecords(XclExpStream &rStrm) override
Writes all embedded records.
Base class for objects with font settings.
void ConvertRotationBase(const ScfPropertySet &rPropSet, bool bSupportsStacked)
Converts rotation settings, calls virtual function SetRotation().
void ConvertFontBase(const XclExpChRoot &rRoot, sal_uInt16 nFontIdx)
Creates a CHFONT record from the passed font index, calls virtual function SetFont().
virtual ~XclExpChFontBase()
virtual void SetRotation(sal_uInt16 nRotation)=0
Derived classes set text rotation to internal data structures.
virtual void SetFont(XclExpChFontRef xFont, const model::ComplexColor &rComplexColor, sal_uInt32 nColorId)=0
Derived classes set font color and color identifier to internal data structures.
The CHFONT record containing a font index for text objects.
XclExpChFont(sal_uInt16 nFontIdx)
Additional data label settings in the future record CHFRLABELPROPS.
virtual void WriteBody(XclExpStream &rStrm) override
Writes the body of the record (without record header).
void Convert(const ScfPropertySet &rPropSet, bool bShowCateg, bool bShowValue, bool bShowPercent, bool bShowBubble)
Converts separator and the passed data label flags.
XclExpChFrLabelProps(const XclExpChRoot &rRoot)
Base class for record groups containing frame formatting.
XclExpChEscherFormatRef mxEscherFmt
Area format (CHAREAFORMAT record).
void WriteFrameRecords(XclExpStream &rStrm)
Writes all contained frame records to the passed stream.
XclExpChLineFormatRef mxLineFmt
XclExpChAreaFormatRef mxAreaFmt
Line format (CHLINEFORMAT record).
void ConvertFrameBase(const XclExpChRoot &rRoot, const ScfPropertySet &rPropSet, XclChObjectType eObjType)
Converts frame formatting properties from the passed property set.
virtual ~XclExpChFrameBase()
bool IsDefaultFrameBase(XclChFrameType eDefFrameType) const
Returns true, if the frame contains default formatting (as if the frame is missing).
void SetDefaultFrameBase(const XclExpChRoot &rRoot, XclChFrameType eDefFrameType, bool bIsFrame)
Sets the frame formatting to the specified default type.
XclExpChFramePos(sal_uInt16 nTLMode)
XclChFramePos & GetFramePosData()
Returns read/write access to the frame position data.
virtual void WriteBody(XclExpStream &rStrm) override
Writes the body of the record (without record header).
Represents the CHFRAME record group containing object frame properties.
bool IsDefault() const
Returns true, if the frame object contains default formats.
virtual void Save(XclExpStream &rStrm) override
Writes the entire record group.
XclChObjectType meObjType
Contents of the CHFRAME record.
bool IsDeleteable() const
Returns true, if the frame object can be deleted because it contains default formats.
void SetAutoFlags(bool bAutoPos, bool bAutoSize)
Sets the specified automatic flags.
virtual void WriteSubRecords(XclExpStream &rStrm) override
Writes all embedded records.
void Convert(const ScfPropertySet &rPropSet)
Converts frame formatting properties from the passed property set.
virtual void WriteBody(XclExpStream &rStrm) override
Writes the body of the record (without record header).
XclExpChFrame(const XclExpChRoot &rRoot, XclChObjectType eObjType)
Base class for chart future records.
XclExpChFutureRecordBase(const XclExpChRoot &rRoot, XclFutureRecType eRecType, sal_uInt16 nRecId, std::size_t nRecSize)
virtual void Save(XclExpStream &rStrm) override
Writes missing CHFRBLOCKBEGIN records and this record.
Base class for chart record groups.
virtual ~XclExpChGroupBase() override
virtual void Save(XclExpStream &rStrm) override
Saves the header record.
virtual bool HasSubRecords() const
Derived classes return whether there are any records embedded in this group.
void SetFutureRecordContext(sal_uInt16 nFrContext, sal_uInt16 nFrValue1=0, sal_uInt16 nFrValue2=0)
Sets context information for future record blocks.
XclExpChGroupBase(const XclExpChRoot &rRoot, sal_uInt16 nFrType, sal_uInt16 nRecId, std::size_t nRecSize=0)
virtual void WriteSubRecords(XclExpStream &rStrm)=0
Derived classes implement writing any records embedded in this group.
XclExpChLabelRange(const XclExpChRoot &rRoot)
void Convert(const css::chart2::ScaleData &rScaleData, const ScfPropertySet &rChart1Axis, bool bMirrorOrient)
Converts category axis scaling settings.
void SetTicksBetweenCateg(bool bTicksBetween)
Sets flag for tickmark position between categories or on categories.
XclChDateRange maDateData
Contents of the CHLABELRANGE record.
virtual void Save(XclExpStream &rStrm) override
Writes the record header and calls WriteBody().
virtual void WriteBody(XclExpStream &rStrm) override
Writes the body of the record (without record header).
XclChLabelRange maLabelData
void ConvertAxisPosition(const ScfPropertySet &rPropSet)
Converts position settings of a crossing axis at this axis.
Represents the CHLEGEND record group describing the chart legend.
virtual void WriteBody(XclExpStream &rStrm) override
Writes the body of the record (without record header).
virtual void WriteSubRecords(XclExpStream &rStrm) override
Writes all embedded records.
XclExpChTextRef mxText
Legend frame position (CHFRAMEPOS record).
void Convert(const ScfPropertySet &rPropSet)
Converts all legend settings from the passed property set.
XclExpChFrameRef mxFrame
Legend text format (CHTEXT group).
XclExpChLegend(const XclExpChRoot &rRoot)
XclExpChFramePosRef mxFramePos
Contents of the CHLEGEND record.
The CHOBJECTLINK record linking a text object to a specific chart object.
XclExpChObjectLink(sal_uInt16 nLinkTarget, const XclChDataPointPos &rPointPos)
virtual void WriteBody(XclExpStream &rStrm) override
Writes the body of the record (without record header).
Base class for complex chart classes, provides access to other components of the chart.
void FinalizeFutureRecBlock(XclExpStream &rStrm)
Called from XclExpChGroupBase::Save, finalizes the current future record level.
sal_Int32 CalcChartXFromHmm(sal_Int32 nPosX) const
Converts the passed horizontal coordinate from 1/100 mm to Excel chart units.
XclExpChChart & GetChartData() const
Returns a reference to the parent chart data object.
void FinishConversion() const
Finishes the API chart document conversion.
void ConvertLineFormat(XclChLineFormat &rLineFmt, const ScfPropertySet &rPropSet, XclChPropertyMode ePropMode) const
Reads all line properties from the passed property set.
static sal_uInt16 ConvertPieRotation(const ScfPropertySet &rPropSet)
Reads the pie rotation property and returns the converted angle.
void ConvertEscherFormat(XclChEscherFormat &rEscherFmt, XclChPicFormat &rPicFmt, const ScfPropertySet &rPropSet, XclChPropertyMode ePropMode) const
Reads gradient or bitmap area properties from the passed property set.
XclExpChRoot & operator=(XclExpChRoot const &)=delete
XclChRectangle CalcChartRectFromHmm(const css::awt::Rectangle &rRect) const
Converts the passed rectangle from 1/100 mm to Excel chart units.
void SetSystemColor(Color &rColor, sal_uInt32 &rnColorId, sal_uInt16 nSysColorIdx) const
Sets a system color and the respective color identifier.
void InitializeFutureRecBlock(XclExpStream &rStrm)
Called from XclExpChFutureRecordBase::Save, Initializes the current future record level.
XclExpChRoot(XclExpChRoot &&)=default
const XclChFormatInfo & GetFormatInfo(XclChObjectType eObjType) const
Returns an info struct about auto formatting for the passed object type.
XclExpChRootDataRef mxChData
sal_Int32 CalcChartYFromHmm(sal_Int32 nPosY) const
Converts the passed vertical coordinate from 1/100 mm to Excel chart units.
const XclChTypeInfo & GetChartTypeInfo(XclChTypeId eType) const
Returns chart type info for a unique chart type identifier.
sal_uInt16 ConvertFont(const ScfPropertySet &rPropSet, sal_Int16 nScript) const
Reads font properties from the passed property set.
XclExpChRoot(XclExpChRoot const &)=default
const XclExpChRoot & GetChRoot() const
Returns this root instance - for code readability in derived classes.
void InitConversion(css::uno::Reference< css::chart2::XChartDocument > const &xChartDoc, const tools::Rectangle &rChartRect) const
Starts the API chart document conversion.
std::shared_ptr< XclExpChRootData > XclExpChRootDataRef
virtual ~XclExpChRoot() override
void RegisterFutureRecBlock(const XclChFrBlock &rFrBlock)
Called from XclExpChGroupBase::Save, registers a new future record level.
bool ConvertAreaFormat(XclChAreaFormat &rAreaFmt, const ScfPropertySet &rPropSet, XclChPropertyMode ePropMode) const
Reads solid area properties from the passed property set.
bool IsSystemColor(const Color &rColor, sal_uInt16 nSysColorIdx) const
Returns true, if the passed color equals to the specified system color.
XclExpChRoot(const XclExpRoot &rRoot, XclExpChChart &rChartData)
css::uno::Reference< css::chart2::XChartDocument > const & GetChartDocument() const
Returns the API Chart document model.
Represents the CHSERERRORBAR record containing settings for error bars.
XclExpChSerErrorBar(const XclExpChRoot &rRoot, sal_uInt8 nBarType)
virtual void WriteBody(XclExpStream &rStrm) override
Writes the body of the record (without record header).
bool Convert(XclExpChSourceLink &rValueLink, sal_uInt16 &rnValueCount, const ScfPropertySet &rPropSet)
Converts the passed error bar settings, returns true if error bar type is supported.
Represents the CHSERTRENDLINE record containing settings for a trend line.
XclExpChDataFormatRef mxDataFmt
Contents of the CHSERTRENDLINE record.
bool Convert(css::uno::Reference< css::chart2::XRegressionCurve > const &xRegCurve, sal_uInt16 nSeriesIdx)
Converts the passed trend line, returns true if trend line type is supported.
const XclExpChTextRef & GetDataLabel() const
Returns formatting of the equation text box, created in Convert().
const XclExpChDataFormatRef & GetDataFormat() const
Returns formatting information of the trend line, created in Convert().
XclExpChSerTrendLine(const XclExpChRoot &rRoot)
virtual void WriteBody(XclExpStream &rStrm) override
Writes the body of the record (without record header).
XclExpChTextRef mxLabel
Formatting settings of the trend line.
Represents the CHSERIES record group describing a data series in a chart.
bool ConvertErrorBar(const XclExpChSeries &rParent, const ScfPropertySet &rPropSet, sal_uInt8 nBarId)
Converts the passed error bar settings (called at error bar child series).
void CreateErrorBar(const ScfPropertySet &rPropSet, const OUString &rShowPropName, sal_uInt8 nBarId)
Tries to create an error bar series object (called at parent series).
XclExpChSeries(const XclExpChRoot &rRoot, sal_uInt16 nSeriesIdx)
XclExpChSerTrendLineRef mxTrendLine
CHDATAFORMAT groups for data point formats.
void InitFromParent(const XclExpChSeries &rParent)
Initializes members of this series to represent a child of the passed series.
XclExpChSerErrorBarRef mxErrorBar
Trend line settings (CHSERTRENDLINE record).
void ConvertCategSequence(css::uno::Reference< css::chart2::data::XLabeledDataSequence > const &xCategSeq)
Converts and inserts category ranges for all inserted series.
XclExpChSourceLinkRef mxTitleLink
Contents of the CHSERIES record.
sal_uInt16 mnGroupIdx
Error bar settings (CHSERERRORBAR record).
void CreateTrendLines(css::uno::Reference< css::chart2::XDataSeries > const &xDataSeries)
Tries to create trend line series objects (called at parent series).
XclExpChSourceLinkRef mxValueLink
Link data for series title.
sal_uInt16 mnParentIdx
0-based series index.
XclExpRecordList< XclExpChDataFormat > maPointFmts
CHDATAFORMAT group for series format.
XclExpChDataFormatRef mxSeriesFmt
Link data for series bubble sizes.
XclExpChSourceLinkRef mxBubbleLink
Link data for series category names.
bool ConvertTrendLine(const XclExpChSeries &rParent, css::uno::Reference< css::chart2::XRegressionCurve > const &xRegCurve)
Converts the passed error bar settings (called at trend line child series).
sal_uInt16 mnSeriesIdx
Chart type group (CHTYPEGROUP group) this series is assigned to.
virtual void WriteBody(XclExpStream &rStrm) override
Writes the body of the record (without record header).
XclExpChSourceLinkRef mxCategLink
Link data for series values.
bool ConvertDataSeries(css::uno::Reference< css::chart2::XDiagram > const &xDiagram, css::uno::Reference< css::chart2::XDataSeries > const &xDataSeries, const XclChExtTypeInfo &rTypeInfo, sal_uInt16 nGroupIdx, sal_uInt16 nFormatIdx)
Converts the passed data series (source links and formatting).
virtual void WriteSubRecords(XclExpStream &rStrm) override
Writes all embedded records.
bool ConvertStockSeries(css::uno::Reference< css::chart2::XDataSeries > const &xDataSeries, std::u16string_view rValueRole, sal_uInt16 nGroupIdx, sal_uInt16 nFormatIdx, bool bCloseSymbol)
Converts the passed data series for stock charts.
void CreateErrorBars(const ScfPropertySet &rPropSet, const OUString &rBarPropName, sal_uInt8 nPosBarId, sal_uInt8 nNegBarId)
Tries to create positive and negative error bar series objects (called at parent series).
sal_uInt16 ConvertDataSequence(css::uno::Reference< css::chart2::data::XDataSequence > const &xDataSeq, bool bSplitToColumns, sal_uInt16 nDefCount=0)
Converts the passed source link, returns the number of linked values.
bool HasString() const
Returns true, if this source link contains explicit string data.
void AppendString(std::u16string_view rStr)
sal_uInt16 ConvertStringSequence(const css::uno::Sequence< css::uno::Reference< css::chart2::XFormattedString > > &rStringSeq)
Converts the passed sequence of formatted string objects, returns leading font index.
void ConvertString(const OUString &aString)
virtual void Save(XclExpStream &rStrm) override
Writes the CHSOURCELINK record and optionally a CHSTRING record with explicit string data.
void ConvertNumFmt(const ScfPropertySet &rPropSet, bool bPercent)
Converts the number format from the passed property set.
XclExpStringRef mxString
Formula with link to source data.
XclTokenArrayRef mxLinkFmla
Contents of the CHSOURCELINK record.
XclExpChSourceLink(const XclExpChRoot &rRoot, sal_uInt8 nDestType)
virtual void WriteBody(XclExpStream &rStrm) override
Writes the body of the record (without record header).
Represents the CHTEXT record group containing text object properties.
virtual void WriteSubRecords(XclExpStream &rStrm) override
Writes all embedded records.
void ConvertTitle(css::uno::Reference< css::chart2::XTitle > const &xTitle, sal_uInt16 nTarget, const OUString *pSubTitle)
Converts all text settings of the passed title text object.
XclExpChText(const XclExpChRoot &rRoot)
virtual void SetRotation(sal_uInt16 nRotation) override
Sets text rotation to internal data structures.
XclExpChFrLabelPropsRef mxLabelProps
Link target for this text object.
XclExpChFontRef mxFont
Text object frame properties (CHFRAME group).
void ConvertTrendLineEquation(const ScfPropertySet &rPropSet, const XclChDataPointPos &rPointPos)
Converts all settings of the passed trend line equation box.
void ConvertLegend(const ScfPropertySet &rPropSet)
Converts all text settings of the passed legend.
XclExpChSourceLinkRef mxSrcLink
Relative text frame position (CHFRAMEPOS record).
XclExpChFrameRef mxFrame
Linked data (CHSOURCELINK with CHSTRING record).
sal_uInt32 mnTextColorId
Extended data label properties (CHFRLABELPROPS record).
XclExpChFramePosRef mxFramePos
Contents of the CHTEXT record.
bool HasString() const
Returns true, if the string object does not contain any text data.
XclExpChObjectLinkRef mxObjLink
Index into font buffer (CHFONT record).
virtual void WriteBody(XclExpStream &rStrm) override
Writes the body of the record (without record header).
sal_uInt16 GetAttLabelFlags() const
Returns the flags needed for the CHATTACHEDLABEL record.
virtual void SetFont(XclExpChFontRef xFont, model::ComplexColor const &rComplexColor, sal_uInt32 nColorId) override
Sets font color and color identifier to internal data structures.
bool ConvertDataLabel(const ScfPropertySet &rPropSet, const XclChTypeInfo &rTypeInfo, const XclChDataPointPos &rPointPos)
Converts all settings of the passed data point caption text object.
void Convert(const ScfPropertySet &rPropSet, const XclChExtTypeInfo &rTypeInfo, sal_uInt16 nAxisType)
Converts axis tick mark settings.
void SetRotation(sal_uInt16 nRotation)
Sets text rotation to internal data structures.
sal_uInt32 mnTextColorId
Contents of the CHTICK record.
XclExpChTick(const XclExpChRoot &rRoot)
virtual void WriteBody(XclExpStream &rStrm) override
Writes the body of the record (without record header).
void SetFontColor(model::ComplexColor const &rComplexColor, sal_uInt32 nColorId)
Sets font color and color identifier to internal data structures.
Represents the CHTYPEGROUP record group describing a group of series.
XclExpChType maType
Contents of the CHTYPEGROUP record.
void ConvertType(css::uno::Reference< css::chart2::XDiagram > const &xDiagram, css::uno::Reference< css::chart2::XChartType > const &xChartType, sal_Int32 nApiAxesSetIdx, bool b3dChart, bool bSwappedAxesSet, bool bHasXLabels)
Converts the passed chart type to Excel type settings.
void CreateDataSeries(css::uno::Reference< css::chart2::XDiagram > const &xDiagram, css::uno::Reference< css::chart2::XDataSeries > const &xDataSeries)
Creates all data series of any chart type except stock charts.
bool Is3dDeepChart() const
Returns true, if the series in this chart type group are ordered on the Z axis.
virtual void WriteBody(XclExpStream &rStrm) override
Writes the body of the record (without record header).
XclExpChLegendRef mxLegend
3D settings (CHCHART3D record).
XclExpRecordList< XclExpChSeries > XclExpChSeriesList
bool CreateStockSeries(css::uno::Reference< css::chart2::XDataSeries > const &xDataSeries, std::u16string_view rValueRole, bool bCloseSymbol)
Creates a single data series of a stock chart.
sal_uInt16 GetFreeFormatIdx() const
Returns an unused format index to be used for the next created series.
virtual void WriteSubRecords(XclExpStream &rStrm) override
Writes all embedded records.
XclExpChDropBarRef mxDownBar
White dropbars (CHDROPBAR group).
void ConvertCategSequence(css::uno::Reference< css::chart2::data::XLabeledDataSequence > const &xCategSeq)
Converts and inserts category ranges for all inserted series.
XclExpChDropBarRef mxUpBar
Chart legend (CHLEGEND group).
const XclChExtTypeInfo & GetTypeInfo() const
Returns the chart type info struct for the contained chart type.
bool IsCombinable2d() const
Returns true, if this chart type can be combined with other types.
XclExpChSeriesList maSeries
Extended chart type info.
void ConvertLegend(const ScfPropertySet &rPropSet)
Creates a legend object and converts all legend settings.
sal_uInt16 GetGroupIdx() const
Returns the index of this chart type group format.
XclExpChTypeGroup(const XclExpChRoot &rRoot, sal_uInt16 nGroupIdx)
void ConvertSeries(css::uno::Reference< css::chart2::XDiagram > const &xDiagram, css::uno::Reference< css::chart2::XChartType > const &xChartType, sal_Int32 nGroupAxesSetIdx, bool bPercent, bool bConnectorLines)
Converts and inserts all series from the passed chart type.
XclChExtTypeInfo maTypeInfo
Chart type (e.g. CHBAR, CHLINE, ...).
void CreateAllStockSeries(css::uno::Reference< css::chart2::XChartType > const &xChartType, css::uno::Reference< css::chart2::XDataSeries > const &xDataSeries)
Creates all data series of a stock chart.
XclExpChChart3dRef mxChart3d
List of series data (CHSERIES groups).
std::map< sal_uInt16, std::unique_ptr< XclExpChLineFormat > > m_ChartLines
Black dropbars (CHDROPBAR group).
bool Is3dWallChart() const
Returns true, if chart type supports wall and floor format.
bool IsValidGroup() const
Returns true, if this chart type group contains at least one valid series.
bool Is3dChart() const
Returns true, if the chart is three-dimensional.
Represents the chart type record for all supported chart types.
const XclChTypeInfo & GetTypeInfo() const
Returns the chart type info struct for the contained chart type.
void SetStacked(bool bPercent)
Sets stacking mode (standard or percent) for the series in this chart type group.
bool IsValidType() const
Returns true, if this is object represents a valid chart type.
void Convert(css::uno::Reference< css::chart2::XDiagram > const &xDiagram, css::uno::Reference< css::chart2::XChartType > const &xChartType, sal_Int32 nApiAxesSetIdx, bool bSwappedAxesSet, bool bHasXLabels)
Converts the passed chart type and the contained data series.
virtual void WriteBody(XclExpStream &rStrm) override
Writes the body of the record (without record header).
XclChTypeInfo maTypeInfo
Contents of the chart type record.
XclExpChType(const XclExpChRoot &rRoot)
XclExpChValueRange(const XclExpChRoot &rRoot)
virtual void WriteBody(XclExpStream &rStrm) override
Writes the body of the record (without record header).
void ConvertAxisPosition(const ScfPropertySet &rPropSet)
Converts position settings of a crossing axis at this axis.
void Convert(const css::chart2::ScaleData &rScaleData)
Converts value axis scaling settings.
Represents the group of DFF and OBJ records containing all drawing shapes embedded in the chart objec...
virtual void Save(XclExpStream &rStrm) override
Overwrite this method to do any operation while saving the record.
std::shared_ptr< XclExpObjectManager > mxObjMgr
virtual ~XclExpChartDrawing() override
XclExpChartDrawing(const XclExpRoot &rRoot, const css::uno::Reference< css::frame::XModel > &rxModel, const Size &rChartSize)
rtl::Reference< XclExpRecordBase > mxObjRecs
Represents the entire chart substream (all records in BOF/EOF block).
XclExpChart(const XclExpRoot &rRoot, css::uno::Reference< css::frame::XModel > const &xModel, const tools::Rectangle &rChartRect)
Base class for all Excel records.
Base class for single records with any content.
Access to global data from other classes.
This class is used to export Excel record streams.
Represents a complete substream of records enclosed into a pair of BOF/EOF records.
A record with a single value of type Type.
sal_Int32 GetApiAxesSetIndex() const
Returns the axes set index used by the chart API.
sal_uInt16 mnAxesSetId
Position of the axes set (inner plot area).
sal_Int32 GetApiAxisDimension() const
Returns the axis dimension index used by the chart API.
sal_uInt16 mnFlags
Space between series.
Specifies the position of a data series or data point.
sal_uInt16 mnPointIdx
Series index of series or a data point.
Extended chart type information and access functions.
Contains the type and context of a block of future records which are guarded by CHFRBLOCKBEGIN and CH...
sal_uInt16 mnFlags
Frequency of ticks.
sal_uInt16 mnGroupIdx
Additional flags.
Contains information for a chart type.
bool mbCombinable2d
Default data label position (API constant).
XclChTypeCateg meTypeCateg
Unique chart type identifier.
Stores global data needed in various classes of the Chart export filter.
Reference< XModel > xModel
rtl::Reference< XclExpChObjectLink > XclExpChObjectLinkRef
rtl::Reference< XclExpChLegend > XclExpChLegendRef
rtl::Reference< XclExpChEscherFormat > XclExpChEscherFormatRef
rtl::Reference< XclExpChText > XclExpChTextRef
rtl::Reference< XclExpChTypeGroup > XclExpChTypeGroupRef
rtl::Reference< XclExpChValueRange > XclExpChValueRangeRef
rtl::Reference< XclExpChPieFormat > XclExpChPieFormatRef
rtl::Reference< XclExpChFrame > XclExpChFrameRef
rtl::Reference< XclExpCh3dDataFormat > XclExpCh3dDataFormatRef
rtl::Reference< XclExpChMarkerFormat > XclExpChMarkerFormatRef
rtl::Reference< XclExpChSourceLink > XclExpChSourceLinkRef
rtl::Reference< XclExpChLineFormat > XclExpChLineFormatRef
rtl::Reference< XclExpChDropBar > XclExpChDropBarRef
rtl::Reference< XclExpChFrLabelProps > XclExpChFrLabelPropsRef
rtl::Reference< XclExpChFramePos > XclExpChFramePosRef
std::shared_ptr< XclExpChAxesSet > XclExpChAxesSetRef
rtl::Reference< XclExpChAxis > XclExpChAxisRef
rtl::Reference< XclExpChAttachedLabel > XclExpChAttLabelRef
rtl::Reference< XclExpChTick > XclExpChTickRef
rtl::Reference< XclExpChSerTrendLine > XclExpChSerTrendLineRef
rtl::Reference< XclExpChChart3d > XclExpChChart3dRef
rtl::Reference< XclExpChSeries > XclExpChSeriesRef
rtl::Reference< XclExpChDataFormat > XclExpChDataFormatRef
rtl::Reference< XclExpChFont > XclExpChFontRef
rtl::Reference< XclExpChAreaFormat > XclExpChAreaFormatRef
rtl::Reference< XclExpChLabelRange > XclExpChLabelRangeRef
rtl::Reference< XclExpChSerErrorBar > XclExpChSerErrorBarRef
std::shared_ptr< XclExpString > XclExpStringRef
@ EXC_CHTYPECATEG_PIE
Radar charts (linear or filled).
const sal_uInt16 EXC_CHCHART3D_CLUSTER
true = real 3d perspective.
const sal_uInt16 EXC_CHLINEFORMAT_NONE
const sal_uInt16 EXC_CHMARKERFORMAT_NOFILL
XclChPropertyMode
Specifies the type of a formatting.
const sal_uInt16 EXC_CHAREAFORMAT_AUTO
const sal_uInt16 EXC_CHDATAFORMAT_ALLPOINTS
As point index: unknown format, don't use.
XclChObjectType
Enumerates different object types for specific automatic formatting behaviour.
const sal_uInt16 EXC_CHLABELRANGE_BETWEEN
const sal_uInt16 EXC_CHLINEFORMAT_AUTO
XclChTypeId
Enumerates all kinds of different chart types.
@ EXC_CHTYPEID_UNKNOWN
Surface chart.
const sal_uInt16 EXC_CHMARKERFORMAT_NOLINE
const sal_uInt16 EXC_CHMARKERFORMAT_NOSYMBOL
const sal_uInt16 EXC_CHLINEFORMAT_SHOWAXIS
XclChFrameType
Enumerates different types to handle missing frame objects.
XclFutureRecType
Enumerates different header types of future records.
const sal_uInt8 EXC_PATT_NONE