summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2022-06-30 23:43:52 +0200
committerTomaž Vajngerl <quikee@gmail.com>2022-08-20 23:23:39 +0200
commitbc34850512ed08e51156524d371f63007bb9522b (patch)
treec95a60a756215bb76ec1d09756e57c19066e86da
parentf40143cae28e99426414f484929e25d28ec2c9d2 (diff)
chart2: add some data table default properties
Change-Id: I4fac46ac2a119275bcdaa6ebc8b7382ad6fb5684 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138249 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> (cherry picked from commit cc54063b915a58db9133c919c151ec7e6209f4cd) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138525 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
-rw-r--r--chart2/source/model/main/DataTable.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/chart2/source/model/main/DataTable.cxx b/chart2/source/model/main/DataTable.cxx
index 18c61d305eb3..f9c8f36fac10 100644
--- a/chart2/source/model/main/DataTable.cxx
+++ b/chart2/source/model/main/DataTable.cxx
@@ -71,6 +71,17 @@ private:
true);
::chart::PropertyHelper::setPropertyValueDefault(aMap, DataTableProperty_Outilne, true);
::chart::PropertyHelper::setPropertyValueDefault(aMap, DataTableProperty_Keys, false);
+
+ ::chart::PropertyHelper::setPropertyValue(
+ aMap, ::chart::LinePropertiesHelper::PROP_LINE_WIDTH, uno::Any(sal_Int32(1)));
+
+ float fDefaultCharHeight = 10.0;
+ ::chart::PropertyHelper::setPropertyValue(
+ aMap, ::chart::CharacterProperties::PROP_CHAR_CHAR_HEIGHT, fDefaultCharHeight);
+ ::chart::PropertyHelper::setPropertyValue(
+ aMap, ::chart::CharacterProperties::PROP_CHAR_ASIAN_CHAR_HEIGHT, fDefaultCharHeight);
+ ::chart::PropertyHelper::setPropertyValue(
+ aMap, ::chart::CharacterProperties::PROP_CHAR_COMPLEX_CHAR_HEIGHT, fDefaultCharHeight);
}
};