summaryrefslogtreecommitdiff
path: root/chart2/source/model/main/DataPointProperties.cxx
AgeCommit message (Collapse)AuthorFilesLines
2024-01-30tdf#146756 pie chart2 import: use manualLayout Width for pie chart labelsJustin Luth1-0/+6
... and use a compatible 1/5 width if not specified. This patch depends on the previous oox patch (commit 301e27cbebf7d6e4c9b82290d7cd555c43f0c999) which actually reads the width into the model. Fixes a 7.2 regression from commit b0068342398786ca50304260434a18880dddf74d author Tünde Tóth on Wed Dec 16 18:26:26 2020 +0100 tdf#138777 pie chart: improve long data label width and is basically a re-write of 7.1's commit 20da1a5dd37c7edac620566c992d5a53b23a5f12 author Tünde Tóth <toth.tunde@nisz.hu> on Fri Oct 09 09:24:18 2020 +0200 tdf#134978 Chart OOXML Import: fix pie chart label custom position This is very risky, but then ANYTHING changing chart2 is risky. There were a lot of changes made in 7.1, and they all invited regressions. However, our chart implementation is not in a good state, and certainly is not very interoperable, so it is worth taking the risk. Anything dealing with manualLayout at this point should have originated as a pptx, so forcing a compatible max width should be fairly safe. It probably isn't actually all that risky after all. largely copied code from commit 4223ff2be69f03e571464b0b09ad0d278918631b Author: Balazs Varga on Wed Jan 15 16:31:35 2020 +0100 tdf#48436 Chart: add CustomLabelPosition UNO API property Fortunately this all goes away after a round-trip since custom label placement is lost on export to OOXML, and that really helps to reduce the risk. make CppunitTest_chart2_import CPPUNIT_TEST_NAME=testTdf146487 Change-Id: I9722fc6c759c15ac3924780e6fc124f02fba07e1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162590 Tested-by: Jenkins Reviewed-by: Justin Luth <jluth@mail.com> Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2023-04-20Add a bit of consistencyMike Kaganski1-20/+22
Change-Id: Ib201a8cec7c7a4a0a5cbd3d7e7d6156f8e8e59a1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150717 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2021-02-08tdf#94235 Add support for series name in data series labelsSamuel Mehrbrodt1-1/+2
including ODF/OOXML import/export (and test) Change-Id: Id5a5194630a67476f7c5390294400a00ea3ad42d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110338 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
2020-09-02tdf#136061 Chart ODF/OOXML: fix missing custom labelsBalazs Varga1-1/+2
by UNO extensions ShowCustomLabel in DataPointLabel.idl and CUSTOM in ChartDataCaption.idl, fixing OOXML/ODF import/export. We should display custom data label even if DataPointLabel is disabled (e.g. category name and/or value fields are not displayed). Note: import of the embedded chart of the DOCX unit test document uses also ODF format in the background, testing also the extension of the native file format. Change-Id: I73e21f1e69fddec9f3b4163c46b6582cd1c74b5d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101640 Tested-by: Jenkins Tested-by: László Németh <nemeth@numbertext.org> Reviewed-by: László Németh <nemeth@numbertext.org>
2020-08-06tdf#135184 add linecaps in chartsRegina Henschel1-0/+8
Chart is currently not able to interpret property linecap. But in case of linecap 'round' or 'square', line dashes lengths are adapted so that they look same as in MS Office (tdf#134053). This does not work, if the corresponding linecap property is not interpreted. Dashed border of data labels is not fixed because of bug tdf#135366. In addition I have fixed errors in prstDash detection, which I have noticed while creating unit tests. The unit tests cover file text, not visual appearence. Change-Id: I8cf2d2b2fc0923c2882f8148b4550bc363270480 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99562 Tested-by: Jenkins Reviewed-by: Regina Henschel <rb.henschel@t-online.de>
2020-06-30Related: tdf#131175 OOXML chart: import data label fill patternGülşah Köse1-0/+12
Change-Id: I2db64489c86e4381167eb13af4ab5118113960d5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93715 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2020-05-04tdf#131175 Import data label solid fill and color.Gülşah Köse1-0/+13
Change-Id: I8a3ef6e60d4f2a13310bb9a8fc4eb873df3f9b4f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93407 Tested-by: Jenkins Reviewed-by: Gülşah Köse <gulsah.kose@collabora.com>
2020-01-30tdf#48436 Chart: add CustomLabelPosition UNO API propertyBalazs Varga1-0/+7
and CUSTOM DataLabelPlacement to support custom data label positions, and its initial implementation: only UI support with OOXML import (tdf#130030), yet. Change-Id: I01d986071d78ae3e2a5f43d5711e9f60b8410c21 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86859 Tested-by: Jenkins Reviewed-by: László Németh <nemeth@numbertext.org> Tested-by: László Németh <nemeth@numbertext.org>
2018-10-08tdf#42949 Fix IWYU warnings in chart2/source/model/*cxxGabor Kelemen1-2/+0
Found with bin/find-unneeded-includes Only removal proposals are dealt with here. Change-Id: Ic4fdbad7469d506d7cf308cb96f069b781dd1f58 Reviewed-on: https://gerrit.libreoffice.org/61488 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-01-29tdf#114821 import complex data labels in bar chartSzymon Kłos1-1/+10
* import static text & fields: VALUE, SERIESNAME, COLUMNNAME * text is formatted * DataPointCustomLabelField with field type (DataPointCustomLabelFieldType) was introduced. * text can have many portions & multiple lines * unit tests for import data labels with formatting Not implemented: CELLREF field support which needs importing some additional data from extLst Shows custom text as a label for data points. Change-Id: Iba8fd508eb16356b05586b93d7b8da32240d2b91 Reviewed-on: https://gerrit.libreoffice.org/48243 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
2018-01-15More loplugin:cstylecast: chart2Stephan Bergmann1-1/+1
Change-Id: Id704acc62a62554a81673c512e84a71a71798013
2017-11-03inline ASSERT_EXCEPTION macro in chart2Noel Grandin1-1/+0
Change-Id: I6bdcde5fd416531e2cdd3c9ec160833f1022247c Reviewed-on: https://gerrit.libreoffice.org/44246 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-10-23loplugin:includeform: chart2Stephan Bergmann1-3/+3
Change-Id: I5b455c684e7cd689d5160135246f3400363c7d40
2017-09-11clang-tidy modernize-use-emplace in c*Noel Grandin1-171/+114
Change-Id: I419d1f67ba301050d05981db2a3d6178878684a9 Reviewed-on: https://gerrit.libreoffice.org/42110 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-03-31use actual UNO enums in chart2Noel Grandin1-1/+1
Change-Id: I05d4eed55f5deba4b1802389d1ba94582d30550f Reviewed-on: https://gerrit.libreoffice.org/35917 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-02-15Drop :: prefix from std in c*/Tor Lillqvist1-1/+1
Change-Id: If078cda95fa6ccd37270a5e9d81cfa0b84e71155 Reviewed-on: https://gerrit.libreoffice.org/34324 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tor Lillqvist <tml@collabora.com>
2016-04-20loplugin:salbool: Automatic rewrite of sal_False/TrueStephan Bergmann1-4/+4
Change-Id: I1230a1785c61b8ef5dab97176e7c06600ac95a5b
2015-10-18tdf#94960, Revert "it is insane to not map line and ..."Markus Mohrhard1-3/+3
This reverts commit 84254268bf5902d2405815970218e1893a7a673e. Change-Id: Id99bc1f44a4e23daaf2f12585981c0be66cbeda5
2015-09-09tdf#90839: support for wrapped text in data labels and for centered data valueMarco Cecchetti1-0/+8
Now in a pie chart the text of a label can be wrapped, the wrapping is automatic and the maximum text width is fixed to almost half the pie radius. This feature is used to import correctly the relative text wrapping property provided by MSO. Moreover the data value and percent value of a label are now centered horizontally, respect with the label text. Conflicts: chart2/qa/extras/xshape/chart2xshape.cxx Change-Id: Ie10d6184365436f763cd9693a5bbefcfa9b3862b Reviewed-on: https://gerrit.libreoffice.org/17193 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Andras Timar <andras.timar@collabora.com>
2015-08-20make sure that LineColor is supported for data seriesMarkus Mohrhard1-0/+9
Change-Id: I1ae96c7b6adf5a90f96d7dddc20d7fb241e78445
2015-07-30it is insane to not map line and border properties to the same idMarkus Mohrhard1-3/+3
Change-Id: I6f4eb2509dc731cb281350b2bb0cce94b66a8ad6
2015-07-30provide also LineTransparence for DataPointPropertiesMarkus Mohrhard1-0/+14
Change-Id: I9c3e547831d3d876c228c8b9b566f17a4d95ce5b
2015-07-28use common fill property names in chart2Markus Mohrhard1-0/+47
Change-Id: I9445344efc70d872fdb9c9a8cc49838210861a7b
2015-04-01Replace remaining getCppuType et al with cppu::UnoTypeStephan Bergmann1-4/+4
Change-Id: I5bc47d62afa9cf43f4f1978e082bba43920eb10d
2014-07-26bnc#885825: Support borders around data labels.Kohei Yoshida1-23/+70
Change-Id: Ib141413e523cbf73746876f727e9f80dda9f5f7c
2014-07-22Wrong indent.Kohei Yoshida1-1/+1
Change-Id: I0aab6cc1d7a39928e9e8ffd6ae23fcfad42ceae3
2014-07-21Compiler macro in lieu of literal "Label" to make it easier to track it.Kohei Yoshida1-1/+1
Change-Id: I6bc694fcc8f97b308747c097c4fa977d20524377
2014-06-26Track all uses of ErrorBarX and ErrorBarY UNO property names.Kohei Yoshida1-2/+2
Change-Id: I994424c98d977c3a8f9138cccc17348de813a9d7
2014-06-19fdo#71076, fdo#71767: Preserve number formats when charts are copied.Kohei Yoshida1-1/+10
Change-Id: If5ae8852152012483237e7602e56a0c46ea8748a
2014-06-19Use define constant to keep track of all NumberFormat property usage.Kohei Yoshida1-1/+2
Change-Id: I2a544922e03ec8253290ac8bf5a89c9cdd72d8dd
2014-05-18Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part16Julien Nabet1-38/+38
Change-Id: I78b3a0151397d4e69521e6b2451e93ea6e463376
2014-02-23Remove unneccessary commentsAlexander Wilms1-1/+1
Change-Id: I939160ae72fecbe3d4a60ce755730bd4c38497fb Reviewed-on: https://gerrit.libreoffice.org/8182 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-07-29fdo#62475 removed pointless commentsJelle van der Waa1-5/+0
Change-Id: I3f5e86dba2df950aeb12c895f52d99274c0959aa Reviewed-on: https://gerrit.libreoffice.org/5148 Reviewed-by: Luboš Luňák <l.lunak@suse.cz> Tested-by: Luboš Luňák <l.lunak@suse.cz>
2013-04-22fix the remaining issues with the changed handling of ErrorBar propsMarkus Mohrhard1-9/+9
Change-Id: I75c839cbfccbe84e7aa98aef6959bcd0c5390ab6
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák1-8/+8
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk have kept them, in order not to break external API (the automatic using declaration is LO-internal). Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2013-01-30Removed several useless macros: A2OU, A2S, C2U, C2S, OUSTR, OUSTRINGJean-Noël Rouvignac1-42/+42
Change-Id: Ie859cb2dfdc7103c379fce56be88eef8fe390afd Reviewed-on: https://gerrit.libreoffice.org/1924 Tested-by: Luboš Luňák <l.lunak@suse.cz> Reviewed-by: Luboš Luňák <l.lunak@suse.cz>
2012-06-22re-base on ALv2 code.Michael Meeks1-23/+14
Change-Id: I8018d9b5fa01d1720c0392dc5fdc4a0656f25a35
2011-11-27remove include of pch header in chart2Norbert Thiebaud1-2/+0
2010-10-13Add vim/emacs modelines to all source filesSebastian Spaeth1-0/+3
Fixes #fdo30794 Based on bin/add-modelines script (originally posted in mail 1286706307.1871.1399280959@webmail.messagingengine.com) Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2010-10-04Remove redundant #include directives & commentsJ. Graeme Lingard1-9/+0
2010-02-12changefileheader2: #i109125#: change source file copyright notice from Sun ↵Jens-Heiner Rechtien1-4/+1
Microsystems to Oracle; remove CVS style keywords (RCSfile, Revision)
2009-06-04CWS-TOOLING: integrate CWS chart37Kurt Zenker1-0/+9
2009-05-22 09:10:36 +0200 iha r272170 : #i102130# color of pies is not loaded correctly 2009-04-27 17:16:20 +0200 iha r271294 : #i24203# compiler problem 2009-04-27 16:43:21 +0200 iha r271292 : #i101281# missing API documentation for secondary axis title properties 2009-04-27 15:26:05 +0200 hde r271276 : #i100987 2009-04-27 15:24:42 +0200 hde r271273 : #i100987 2009-04-24 15:08:33 +0200 iha r271214 : #i100995# crash with some logarithmic scalings 2009-04-22 18:50:56 +0200 dr r271134 : #i82177# write out deleted point labels 2009-04-22 18:40:48 +0200 iha r271133 : #i101281# missing API documentation for secondary axis title properties 2009-04-22 16:39:42 +0200 dr r271128 : #i82177# extensions for bubble charts 2009-04-22 14:37:00 +0200 dr r271114 : #i82177# import/export data label type and separator 2009-04-22 14:36:24 +0200 dr r271113 : #i82177# import/export data label type and separator 2009-04-21 15:25:26 +0200 dr r271038 : #i82177# import data label type and separator from BIFF8 CHFR records 2009-04-21 14:37:16 +0200 dr r271037 : #i82177# dump BIFF8 chart future records 2009-04-20 17:44:27 +0200 iha r271002 : #i96898# reduce library exports 2009-04-20 13:01:13 +0200 iha r270975 : #i24203# rotate data labels - help ids 2009-04-20 11:40:33 +0200 dr r270969 : #i96600# export of axis scaling/positioning properties 2009-04-16 16:02:31 +0200 dr r270892 : #i69599# keep Y axis left in 3d charts 2009-04-15 18:16:46 +0200 dr r270859 : #i69599# import of axis position settings 2009-04-15 18:16:01 +0200 dr r270858 : #i69599# correct handling of logarithmic crossing axes 2009-04-14 16:27:48 +0200 dr r270794 : #i96599# handle auto axis position on logarithmic axes 2009-04-09 19:59:51 +0200 dr r270722 : #i96599# import axis crossing settings, fix import of logarithmic scaling settings 2009-04-09 18:26:00 +0200 iha r270720 : #i96898# reduce library exports 2009-04-09 15:17:04 +0200 iha r270710 : #i96898# reduce library exports 2009-04-09 10:50:14 +0200 dr r270682 : #i24203# import/export of data label rotation, fixed some other broken stuff too 2009-04-08 16:54:54 +0200 dr r270657 : #i24203# import rotation for data point labels 2009-04-06 18:19:17 +0200 iha r270571 : #i100876# Axis scaling settings dialog wrong after API usage (anys different from double type) 2009-04-06 15:57:05 +0200 iha r270567 : #i100105# #i58585# leftover -> 2009-04-06 15:55:48 +0200 iha r270564 : #i58585# leftover -> 2009-04-02 16:41:07 +0200 iha r270422 : #i99721# remove unused code 2009-04-02 14:29:03 +0200 iha r270407 : #i99721# remove unused code 2009-03-26 10:58:23 +0100 iha r270059 : #i96898# reduce library exports 2009-03-26 10:13:49 +0100 iha r270055 : #i96898# reduce library exports 2009-03-25 09:39:13 +0100 iha r269998 : CWS-TOOLING: rebase CWS chart37 to trunk@269781 (milestone: DEV300:m44) 2009-03-24 17:56:56 +0100 iha r269986 : #i96898# reduce library exports 2009-03-24 16:56:44 +0100 iha r269974 : #i99721# remove unused code 2009-03-24 16:48:48 +0100 iha r269970 : #i89731# remove unused string 2009-03-24 15:44:04 +0100 iha r269961 : remove unused code 2009-03-24 15:22:45 +0100 iha r269959 : remove unused code 2009-03-24 15:17:17 +0100 iha r269957 : remove unused code 2009-03-24 11:14:53 +0100 iha r269923 : #i24203# rotate data labels 2009-03-09 12:10:25 +0100 hde r269076 : #i99300# 2009-03-06 15:56:26 +0100 iha r269011 : #i93953# Source Format for secondary axis without data 2009-02-17 15:59:05 +0100 iha r268177 : avoid warning during build 2009-02-17 15:01:59 +0100 iha r268173 : avoid warning during build 2009-02-13 09:39:03 +0100 ufi r267693 : i96999 2009-02-11 15:12:35 +0100 iha r267604 : removed unused string 2009-02-11 14:00:29 +0100 iha r267600 : #i96999# Corrected wording from 'correlation coefficient' to 'coefficient of determination' 2009-02-11 10:56:45 +0100 iha r267584 : #i89731# typo in resource string 2009-02-11 10:01:29 +0100 iha r267582 : #i89031# compile error on asian windows systems 2009-02-10 16:15:16 +0100 iha r267552 : #i24203# rotate data labels 2009-02-04 18:00:33 +0100 iha r267395 : #i98893# don't export defaults to file 2009-02-04 15:48:15 +0100 iha r267390 : #i92128# asian typography for chart elements 2009-02-04 15:17:41 +0100 iha r267386 : #i92128# asian typography for chart elements 2009-01-30 14:41:10 +0100 iha r267197 : CWS-TOOLING: rebase CWS chart37 to trunk@267171 (milestone: DEV300:m41)
2008-10-01CWS-TOOLING: integrate CWS chart30Vladimir Glazounov1-2/+2
2008-07-02INTEGRATION: CWS chart27 (1.17.30); FILE MERGEDVladimir Glazounov1-3/+2
2008/06/20 14:22:24 iha 1.17.30.1: #i90931# removed wrong default for GradientStepCount
2008-04-10INTEGRATION: CWS changefileheader (1.16.60); FILE MERGEDRüdiger Timm1-45/+18
2008/04/01 10:50:32 thb 1.16.60.2: #i85898# Stripping all external header guards 2008/03/28 16:44:06 rt 1.16.60.1: #i87441# Change license header to LPGL v3.
2007-11-23INTEGRATION: CWS chart17 (1.15.2); FILE MERGEDIvo Hinkelmann1-2/+9
2007/11/05 13:59:08 iha 1.15.2.1: #i63857#, #i4039# more flexible placement of data point labels, best fit for pie labels
2007-10-22INTEGRATION: CWS chart14 (1.13.26); FILE MERGEDVladimir Glazounov1-4/+20
2007/09/28 10:22:54 iha 1.13.26.3: #i82051# Allow to display each part of a data label in a separate line 2007/09/24 11:53:19 bm 1.13.26.2: RESYNC: (1.13-1.14); FILE MERGED 2007/08/10 22:29:06 iha 1.13.26.1: #i37792# number format for data labels
2007-09-18INTEGRATION: CWS chart11 (1.13.14); FILE MERGEDVladimir Glazounov1-125/+52
2007/08/15 15:26:06 bm 1.13.14.3: cppu-type of bool should be queried with getBooleanCppuType 2007/08/15 14:59:49 bm 1.13.14.2: cppu-type of bool should be queried with getBooleanCppuType 2007/07/31 12:56:45 bm 1.13.14.1: #i80084# avoid usage of map operator[] with enums as keys, simplify initialization of default property values
2007-07-03INTEGRATION: CWS chart06 (1.12.8); FILE MERGEDRüdiger Timm1-3/+3
2007/06/11 09:35:14 iha 1.12.8.1: #i67754# right-angled-axes, create new 3D charts with this and simple look
2007-05-22INTEGRATION: CWS chart2mst3 (1.9.4); FILE MERGEDVladimir Glazounov1-92/+218
2006/10/20 20:28:55 iha 1.9.4.27: implement gradient step count 2006/10/18 17:10:05 bm 1.9.4.26: RESYNC: (1.10-1.11); FILE MERGED 2006/08/02 16:37:04 bm 1.9.4.25: #i68041# reduce symbol default size to 0.25 cm 2006/07/07 16:59:39 iha 1.9.4.24: correct font sizes - don't guess a default reference size, as a guess could to be wrong 2006/06/23 19:29:17 iha 1.9.4.23: rounded edges on per default 2006/05/17 14:18:07 bm 1.9.4.22: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/03/12 01:04:30 iha 1.9.4.21: offer LineDash property 2006/01/20 16:56:13 bm 1.9.4.20: better default for guessed ReferenceDiagramSize 2005/12/21 14:10:57 dr 1.9.4.19: border color for symbols 2005/12/20 14:13:06 dr 1.9.4.18: API struct member names without prefixes 2005/11/24 18:32:43 bm 1.9.4.17: transparency gradients enabled 2005/11/08 11:54:06 bm 1.9.4.16: smaller default symbol size, todo: resize symbols on diagram resize 2005/11/03 11:59:15 bm 1.9.4.15: fire modify events on property change 2005/10/07 11:52:39 bm 1.9.4.14: RESYNC: (1.9-1.10); FILE MERGED 2005/09/02 12:00:52 bm 1.9.4.13: default for FillBackground added 2005/07/22 12:54:42 bm 1.9.4.12: #124485# property FillBackground added 2005/07/14 13:00:22 iha 1.9.4.11: remove unused parameter 'bIncludeStyleProperties' from series and point properties 2005/07/14 11:34:41 iha 1.9.4.10: use identical fast-property-IDs for lineproperties everywhere 2005/07/12 12:57:08 bm 1.9.4.9: use named properties for gradients etc. in chart model 2005/07/07 16:28:21 bm 1.9.4.8: make border style solid default (correct import of old barchart files) 2005/06/22 11:24:14 iha 1.9.4.7: add error bar properties to default map 2005/06/08 11:31:57 iha 1.9.4.6: use number format key at API instead of string 2005/04/14 11:16:15 bm 1.9.4.5: changed default color from blue7 to blue 8 2004/06/08 14:31:11 iha 1.9.4.4: added property RoundedEdges 2004/05/26 16:40:55 bm 1.9.4.3: default font sizes adapted 2004/03/08 18:59:20 iha 1.9.4.2: added Geometry3D to DataPointPoperties 2004/02/13 16:51:28 bm 1.9.4.1: join from changes on branch bm_post_chart01