sc/inc/Sparkline.hxx | 3 ++- sc/qa/unit/SparklineImportExportTest.cxx | 1 + sc/source/filter/excel/export/SparklineExt.cxx | 1 + sc/source/ui/view/output.cxx | 2 ++ 4 files changed, 6 insertions(+), 1 deletion(-)
New commits: commit ba72264d8f17d116186b797b12512b45e788e99f Author: Tomaž Vajngerl <[email protected]> AuthorDate: Thu Mar 10 14:05:41 2022 +0900 Commit: Tomaž Vajngerl <[email protected]> CommitDate: Mon Apr 11 01:59:54 2022 +0200 sc: use forward decl. instead of include for SparklineGroup Shouldn't trigger large rebuilding when SparklineGroup.hxx is changed. Change-Id: I9c5d265e94dd92d9f23e86e3fc75ca0644991339 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132250 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <[email protected]> (cherry picked from commit e60726891761ca29dcb72e27f075fef75a990c24) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132778 Tested-by: Jenkins CollaboraOffice <[email protected]> diff --git a/sc/inc/Sparkline.hxx b/sc/inc/Sparkline.hxx index 5ba9d397d083..9a6109e96e79 100644 --- a/sc/inc/Sparkline.hxx +++ b/sc/inc/Sparkline.hxx @@ -11,12 +11,13 @@ #pragma once #include "scdllapi.h" -#include "SparklineGroup.hxx" #include "rangelst.hxx" #include <memory> namespace sc { +class SparklineGroup; + /** Sparkline data, used for rendering the content of a cell * * Contains the input range of the data that is being drawn and a reference diff --git a/sc/qa/unit/SparklineImportExportTest.cxx b/sc/qa/unit/SparklineImportExportTest.cxx index f1af8f9d5eb1..fe15d783b58e 100644 --- a/sc/qa/unit/SparklineImportExportTest.cxx +++ b/sc/qa/unit/SparklineImportExportTest.cxx @@ -12,6 +12,7 @@ #include <com/sun/star/lang/XComponent.hpp> #include <docsh.hxx> #include <Sparkline.hxx> +#include <SparklineGroup.hxx> using namespace css; diff --git a/sc/source/filter/excel/export/SparklineExt.cxx b/sc/source/filter/excel/export/SparklineExt.cxx index f0f3cd9e1d98..9f41d9197b6a 100644 --- a/sc/source/filter/excel/export/SparklineExt.cxx +++ b/sc/source/filter/excel/export/SparklineExt.cxx @@ -12,6 +12,7 @@ #include <oox/export/utils.hxx> #include <oox/token/namespaces.hxx> #include <oox/token/tokens.hxx> +#include <SparklineGroup.hxx> using namespace oox; diff --git a/sc/source/ui/view/output.cxx b/sc/source/ui/view/output.cxx index bc7c00f265bf..29073a3aac81 100644 --- a/sc/source/ui/view/output.cxx +++ b/sc/source/ui/view/output.cxx @@ -64,6 +64,7 @@ #include <colorscale.hxx> #include <Sparkline.hxx> +#include <SparklineGroup.hxx> #include <math.h> #include <memory> commit 55d67ef2884724234f4eaf46f037d75153d86e06 Author: Tomaž Vajngerl <[email protected]> AuthorDate: Tue Mar 8 12:41:27 2022 +0900 Commit: Tomaž Vajngerl <[email protected]> CommitDate: Mon Apr 11 01:59:43 2022 +0200 sc: render Sparkline columns smaller - reducee by 70% of the width Change-Id: I265a8b87b521f873e0ddea7a1a5becc558483ed2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132249 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <[email protected]> (cherry picked from commit 70bedb257a79eac45d614a09808b2e18074fa174) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132777 Tested-by: Tomaž Vajngerl <[email protected]> diff --git a/sc/source/ui/view/output.cxx b/sc/source/ui/view/output.cxx index fc7711f5befe..bc7c00f265bf 100644 --- a/sc/source/ui/view/output.cxx +++ b/sc/source/ui/view/output.cxx @@ -2431,6 +2431,7 @@ void drawColumn(vcl::RenderContext& rRenderContext, tools::Rectangle const & rRe double nDelta = nMax - nMin; double nColumnSize = rRectangle.GetWidth() / numberOfSteps; + nColumnSize = nColumnSize - (nColumnSize * 0.3); double nZero = (0 - nMin) / nDelta; double nZeroPosition;
