15#include <document.hxx>
21#include <rtl/ustrbuf.hxx>
38 OUStringBuffer aStringBuffer;
57 OUString sAddressString;
65 OUString sDataRangeString;
108 return u"individual";
121 OUString
sType = convertSparklineType(rAttributes.
getType());
131 OUString sDisplayEmptyCellsAs
134 sDisplayEmptyCellsAs);
145 OUString sMinAxisType = convertAxisType(rAttributes.
getMinAxisType());
148 OUString sMaxAxisType = convertAxisType(rAttributes.
getMaxAxisType());
172 std::shared_ptr<SparklineGroup>
const& pSparklineGroup,
173 std::vector<std::shared_ptr<Sparkline>>
const& rSparklines)
175 auto const& rAttributes = pSparklineGroup->getAttributes();
177 OUString sID = pSparklineGroup->getID().getOUString();
188 for (
auto const& rSparkline : rSparklines)
201 auto const& aSparklineGroups = pSparklineList->getSparklineGroups();
202 if (!aSparklineGroups.empty())
207 for (
auto const& pSparklineGroup : aSparklineGroups)
209 auto const& aSparklines = pSparklineList->getSparklinesFor(pSparklineGroup);
static void GetStringFromRangeList(OUString &rString, const ScRangeList *pRangeList, const ScDocument *pDocument, formula::FormulaGrammar::AddressConvention eConv, sal_Unicode cSeparator=' ')
static void GetStringFromAddress(OUString &rString, const ScAddress &rAddress, const ScDocument *pDocument, formula::FormulaGrammar::AddressConvention eConv, sal_Unicode cSeparator=' ', bool bAppendStr=false, ScRefFlags nFormatFlags=ScRefFlags::VALID|ScRefFlags::TAB_3D)
Range to String core.
ScDocument * GetDocument()
void AddAttribute(sal_uInt16 nPrefix, const OUString &rName, const OUString &rValue)
static bool convertColor(sal_Int32 &rColor, std::u16string_view rValue)
Common properties for a group of sparklines.
DisplayEmptyCellsAs getDisplayEmptyCellsAs() const
std::optional< double > getManualMax() const
bool shouldDisplayXAxis() const
bool shouldDisplayHidden() const
Color getColorHigh() const
SparklineType getType() const
Color getColorAxis() const
Color getColorNegative() const
bool isRightToLeft() const
Color getColorMarkers() const
AxisType getMaxAxisType() const
Color getColorFirst() const
AxisType getMinAxisType() const
std::optional< double > getManualMin() const
Color getColorLast() const
double getLineWeight() const
Line weight or width in points.
Color getColorSeries() const
Color getColorLow() const
void addSparklineGroupAttributes(sc::SparklineAttributes const &rAttributes)
SparklineGroupsExport(ScXMLExport &rExport, SCTAB nTable)
void addSparklineAttributes(Sparkline const &rSparkline)
void insertBool(bool bValue, xmloff::token::XMLTokenEnum eToken)
void insertColor(Color aColor, xmloff::token::XMLTokenEnum eToken)
void addSparklineGroup(std::shared_ptr< SparklineGroup > const &pSparklineGroup, std::vector< std::shared_ptr< Sparkline > > const &rSparklines)
Tracks and gathers all created sparklines and sparkline groups.
Sparkline data, used for rendering the content of a cell.
ScRangeList const & getInputRange() const
constexpr ::Color COL_TRANSPARENT(ColorTransparency, 0xFF, 0xFF, 0xFF, 0xFF)
CAUTION! The following defines must be in the same namespace as the respective type.
SparklineType
Supported sparkline types.
DisplayEmptyCellsAs
Determines how to display the empty cells.
AxisType
The method of calculating the axis min or max value.
XML_DISPLAY_EMPTY_CELLS_AS
constexpr sal_uInt16 XML_NAMESPACE_CALC_EXT