summaryrefslogtreecommitdiff
path: root/chart2
AgeCommit message (Collapse)AuthorFilesLines
2016-06-09only init the OpenGL context if we need itMarkus Mohrhard2-1/+5
Change-Id: I8634589bc0c8ef317089eb08c07974ed81d98982 Reviewed-on: https://gerrit.libreoffice.org/26050 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-05-27Typo fixTor Lillqvist1-1/+1
Change-Id: Ibf279e723c11a4a5f62ce082938e723a46e40f6d Reviewed-on: https://gerrit.libreoffice.org/25541 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com>
2016-05-18tdf#35957 check for preconditions earlierDavid Tardon2-4/+16
This cuts the number of calls of chart::VSeriesPlotter::calculateYMinAndMaxForCategory from ~10 billion to 1760 and load time from a minute to a second... Change-Id: I8ec07d82aa0e915659ce4cbdf6cd1bdd381d6245 (cherry picked from commit 07794b4c221dceb06da4d4b3fd7e3678457663af) Reviewed-on: https://gerrit.libreoffice.org/24977 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-05-13Missing break in switchStephan Bergmann1-0/+1
First 749a0845500d69f99bf1901bab82361f67b5e4f6 "don't show area and line panel in pie chart Chart selection, tdf#94320" added the case OBJECTTYPE_DIAGRAM falling through to the default break case. Then 14237c1678167da725fee079532c4669264d697f "use trendline context for trendlines, tdf#94931, tdf#94934" added the case OBJECTTYPE_DATA_CURVE, OBJECTTYPE_DATA_AVERAGE_LINE block in between. Change-Id: I9d06b5054128c4a31381e33620f4a2b898e0e969 (cherry picked from commit ca6c108caaeca5c8176164fcad70ae7a77865892) Reviewed-on: https://gerrit.libreoffice.org/24918 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-04-12tdf#99069: lock the solar mutex before updating sidebarMarkus Mohrhard1-0/+2
Change-Id: I55808b72bcebab95ead3e140c9da94596826c27d Reviewed-on: https://gerrit.libreoffice.org/23811 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Reviewed-on: https://gerrit.libreoffice.org/23813 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2016-03-15vcl: move graph.[hx]xx to graphic.[hc]xxChris Sherlock7-7/+7
It's IMO a bit confusing to see a "graph" header that doesn't strictly deal with graphs, but graphics. Backporting to 5.1 series to allow for easier backporting of other potential hotfixes. Change-Id: Ic37c6cd78e23d05939486f98667144c4453bb0a3 Reviewed-on: https://gerrit.libreoffice.org/22949 Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2016-03-14Resolves: tdf#98390 ChartAreaPanel throw during ctorCaolán McNamara1-46/+71
after a ChartSidebarModifyListener pointing to it has been created and added to the model, so ChartSidebarModifyListeners exist which point to a dead ChartAreaPanel which has never even completed its ctor workaround this by checking that properties it querys for exist before accessing them and triggering the IllegalProperty throw Change-Id: I0c251360714592c78132c0867903216f3866489a (cherry picked from commit 9048e7f58763cf87460a25cba374741352ceb98b) Reviewed-on: https://gerrit.libreoffice.org/23148 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2016-02-18Fix missing iterator include on MSVC 14.0David Ostrovsky2-0/+2
Change-Id: I55de612aef52038fd9979426950d4ae4131ca586 Reviewed-on: https://gerrit.libreoffice.org/22448 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Ostrovsky <david@ostrovsky.org> (cherry picked from commit a3c70e760fa4203b7e6692f82d1d8a14214af3da) Signed-off-by: Michael Stahl <mstahl@redhat.com>
2016-01-12tdf#96807 Reset min/max of auto scaleLaurent Balland-Poirier2-2/+13
Y minimum for auto scale was accidentaly set to 0. This avoided correct calculation of Y auto log scale (tdf#96807) But also set linear Y auto scale from 0 (tdf#85690) This fix detects if both min and max are equal to 0, and reset them (+-inf) Change-Id: Ifaf306831f3b5a18a86483c88e807f478b447c77 Reviewed-on: https://gerrit.libreoffice.org/21055 Reviewed-by: jan iversen <jani@documentfoundation.org> Tested-by: jan iversen <jani@documentfoundation.org> Tested-by: Jenkins <ci@libreoffice.org> (cherry picked from commit 5553d6a9314fd778b9a124d8a2c7e9dd1d7a58a3) Reviewed-on: https://gerrit.libreoffice.org/21278 Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2015-12-15chart2: add DocumentBaseURL in ChartFrameLoader::load()Michael Stahl1-0/+5
... as seen in JunitTest_chart2_unoapi Change-Id: Ibe0cd210b8f2ddf730483705292e9027654b6fd4 (cherry picked from commit 07004a7e9cd8b44f8cb4ff8f30180b06d9c325c3)
2015-12-15chart2: fix obvious mis-use of wrong member in XMLFilter::impl_Import()Michael Stahl1-1/+2
... so we get a BaseURI set. Change-Id: I01176a8a0b0a1f4386f4d58bdf36bd5cb29cf3e5 (cherry picked from commit 45300b43fe44bb01494fecbaa290d846d476cdb0)
2015-11-28Resolves: tdf#96072 export Chart format codes in Excel notationEike Rathke1-1/+1
As for the change in chart2/qa/extras/chart2export.cxx Chart2ExportTest::testAxisNumberFormatXLSX() unit test: also Excel writes string parts of format codes quoted, including minus sign in negative subformat. Change-Id: I201bb012df818129cbc65de0eee8eca59e57d829 (cherry picked from commit 509cfa40691cf544519872a63335cff4a4d94006)
2015-11-23VirtualDevices either match another device depth, or are 1 bitCaolán McNamara2-2/+2
cairo can therefore always render to a svp virtual device with need for a fallback Change-Id: I5d03ae541820389e26f7448444444be009fb28a4
2015-11-23establish that Virtual Devices either match Physical Device depth or ...Caolán McNamara2-2/+4
are 1 or (rarely) 8 bit and lock that down. Change-Id: I3d946ebef34ffb71c5adea7aa420af50e9584e05
2015-11-20Remove last redundant toolbar:style propertiesSamuel Mehrbrodt2-7/+7
Change-Id: I42fa834464fd4cd7f0c1f11e310c1145fb1f071b
2015-11-20loplugin:unusedfields in chart2Noel Grandin11-29/+14
Change-Id: I7da22cc193d9fadf9a3b5dc1453f5574d2357c31
2015-11-20add mapKeysToSequence/mapValuesToSequence methods to comphelperNoel Grandin4-57/+5
and use them Change-Id: If4dc9df63db37185228aeaaab2979498d61304ec Reviewed-on: https://gerrit.libreoffice.org/20055 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-19Remove redundant toolbar:style attributesSamuel Mehrbrodt1-1/+1
These have been defined in the widgets Change-Id: If46a6862872286a454804846128bd8658f60af9b
2015-11-19use comphelper::containerToSequenceNoel Grandin61-110/+101
in chart2, we remove a local equivalent of the method Change-Id: I25129a3d1ea1dd724eb9cd38a57be37a78b3d100
2015-11-18remove unused typedefs and inline use-once typedefsNoel Grandin1-1/+0
and improve the script a little Change-Id: I2792ea4dd5df3a50736fbe209225c3f16fb86b84 Reviewed-on: https://gerrit.libreoffice.org/20033 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-17loplugin:unnecessaryvirtualNoel Grandin1-1/+1
update the plugin with lessons learned from the mergeclasses plugin and re-run it Change-Id: I9d622eb3d05fceaf8fa764c533c8fa5dfb4c7711 Reviewed-on: https://gerrit.libreoffice.org/20015 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-15Fast PCH generator and optimized PCH filesAshod Nakashian3-516/+583
Ported update_pch.sh to Python with improved performance and features. The new script is invoked from the same update_pch.sh which calls it for each library in parallel, although it can be invoked directly. The ported script (update_pch) updates all PCH files in ~15 seconds where the old script took ~4500 seconds. In addition, the new script supports 3-tiered headers (system, module, and local) and is very flexible to support other improvement. It has a per-library optimal configuration settings that can be updated using another new scripts (update_pch_autotune.sh) which finds optimal per-PCH settings. PCH files have been generated using the new scripts which builds significantly faster (2-3x, depending on module and configuration) and the intermediate binaries are noticably smaller (by several GBs). The new script stamps each generated PCH file with the command that generated it to make it trivial for users to update them, and also adds the command to invoke another script (update_pch_bisect) that helps find missing headers or conflicting headers that may break the build after updating the PCH. Finally update_pch has built-in unit-tests for makefile parsing and other core functionality. Change-Id: Ib933b50e50374d7e2e7e3e95ba8799b0cc8a27fa Reviewed-on: https://gerrit.libreoffice.org/19965 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-11-15use initialiser for Sequence<OUString>Noel Grandin12-24/+12
using variations of: git grep -lP 'Sequence.*OUString.*\(\s*1\s*\)' | xargs perl -0777 -pi -e "s/Sequence<OUString> (\w+)\(1\)\; \s*OUString\* pArray.*; .*\[0\]\s*=\s*(\S+)\;/Sequence<OUString> \1 { \2 };/g" Change-Id: I03c64334ff30ee14dce0d17b67f5122a3893bbe3 Reviewed-on: https://gerrit.libreoffice.org/19971 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-15use initialiser for Sequence<OUString>Noel Grandin2-4/+2
replaced using: git grep -lP 'Sequence.*OUString.*\(\s*1\s*\)' | xargs perl -0777 -pi -e "s/Sequence<\s*OUString\s*> (\w+)\(\s*1\s*\); .*\[0\] = (\S+);/Sequence<OUString> \1 { \2 };/g" Change-Id: I20ad0489da887a9712982531c3b127339bb8b3b9 Reviewed-on: https://gerrit.libreoffice.org/19969 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-15use initialiser for Sequence<OUString>Noel Grandin2-4/+2
performed using: git grep -lP 'Sequence.*OUString.*\(1\)' | xargs perl -0777 -pi -e "s/Sequence<OUString> (\w+)\(1\); .*\[0\] = (\S+);/Sequence<OUString> \1 { \2 };/g" Change-Id: I4da56c80fa09bfc1e8f868794001e9921431e09f Reviewed-on: https://gerrit.libreoffice.org/19968 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-15use initialiser syntax for Sequence<OUString>Noel Grandin4-14/+7
replaced using the script: git grep -lP 'Sequence.*OUString.*\(1\)' | xargs perl -0777 -pi -e "s/Sequence< OUString > (\w+)\(1\); .*\[0\] = (\S+);/Sequence< OUString > \1 { \2 };/g" Change-Id: I23688a91562051a8eed11fc2a85599545c285c34 Reviewed-on: https://gerrit.libreoffice.org/19967 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-12Bin mesa_headers completelyTor Lillqvist2-2/+0
We don't need them in a MSVC or OS X compilation either. Change-Id: I00181fe0a047df09bbdfcce34c07eb2ebc45a2da
2015-11-12Avoid mesa_headers on X11, also link with -lGL only where necesssaryTor Lillqvist2-2/+2
The GLEW headers are enough, and what we actually use in these places. In addition to handling GL extension things in its dynamic fashion, GLEW headers also have declarations for standard, non-extension, OpenGL API, including xgl and wgl ones. Most likely we don't need mesa_headers on Windows or OS X either, and can drop them completely. Change-Id: Ic0d8d6238c862f8fe4a74e99e95344dcbf540980
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann173-720/+720
Change-Id: I71de514405bb9bcc746c1ab9633e7fe659888943
2015-11-10fix build, std::make_unique is C++14, use o3tl::make_uniqueNoel Grandin2-14/+16
after my recent boost::ptr_vector->std::vector<std::unique_ptr> conversions Change-Id: I5ebea198365bb2fddf43851c70ebea3f3e19d61b
2015-11-10fix buildNoel Grandin1-0/+1
after my boost::ptr_vector->vector<unique_ptr> conversions Change-Id: I1141e8ad614a650a274bf41bf3ebad9143c561c0
2015-11-10chart2: replace boost::ptr_vector with std::vector<unique_ptr>Noel Grandin2-43/+27
Change-Id: I5c374afcfa2760ebf21e461f38fe392692054dfe
2015-11-10chart2: replace boost::ptr_vector with std::vector<unique_ptr>Noel Grandin4-22/+18
Change-Id: Ia5c35cbd54045a79e896832adf2dbe68c5facf1f
2015-11-10chart2: replace boost::ptr_vector with std::vector<unique_ptr>Noel Grandin2-12/+11
Change-Id: I8bc458c2bcbcb72791ba93a6fe15c83e05d8fae1
2015-11-10chart2: replace boost::ptr_vector with std::vector<unique_ptr>Noel Grandin2-21/+20
Change-Id: I706b730ebbe6a7637a3f1a9cea80a1604f005a53
2015-11-09new loplugin: oncevarNoel Grandin5-20/+10
Change-Id: If57390510dde4d166be3141b9f658a7453755d3f Reviewed-on: https://gerrit.libreoffice.org/19815 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-06coverity#1338265 Uncaught exceptionCaolán McNamara2-2/+2
Change-Id: I5fd48ccaa9dc5c0477cb1d7da307c8403d92e3f7
2015-11-06coverity#1338253 Uncaught exceptionCaolán McNamara2-2/+2
Change-Id: Ia4235060dc2e8943a91e9115111bac9fe9a3fc66
2015-11-06loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)Stephan Bergmann1-1/+1
Change-Id: I5accc3f27b545c1dca6281201151729e3717fb0f
2015-11-05Reduce scope of #include <tools/poly.hxx>Matteo Casalin1-1/+0
Change-Id: I0d64393c029d27c8e6f3b6d360d2509dad16d860
2015-11-04Proper fix for coverity#1326893Stephan Bergmann1-16/+3
FindBugs' FE.FE_FLOATING_POINT_EQUALITY is about double value inaccuracies, not about NaN or negative zero (which is the topic of java.lang.Double.equals vs. ==). Reuse existing qa.TestCaseOldAPI.approxEqual method, moved to util.utils. Change-Id: I65f7bb1faf921e1c4035bb96aeff1eaf2cfb3153
2015-11-04yyyyyNoel Grandin3-5/+4
Change-Id: I9a947beefd2dfe21da8239e841ea3fb416bd1548
2015-11-02tdf#94269: Replace "n" prefix for bool variables with "b"Benjamin Ni4-21/+21
Change-Id: I178545792c7354a362658ac7ef8b1d4cf0865797 Signed-off-by: Michael Stahl <mstahl@redhat.com>
2015-10-30use uno::Reference::set method instead of assignmentNoel Grandin24-50/+44
Change-Id: I58410209f32f988f258a588364e0b037c2790211
2015-10-27loplugin:unusedmethodsNoel Grandin1-1/+1
Change-Id: I161cd52606c11b6008f5d8b1d8ee391692f91861 Reviewed-on: https://gerrit.libreoffice.org/19231 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-27Replace boost::bind by lambdas in chart2 tree.Mario J. Rugiero2-5/+2
Change-Id: Ida56649f15b58b3b11b3d43c5017fd5ebd9a2cf1 Reviewed-on: https://gerrit.libreoffice.org/19606 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-27tdf#91063 Move border to Gtkbox in Data Series content panelYousuf Philips1-1/+1
Change-Id: I33dd8f0688df09e57d565f0f5fb2883297e0497f Reviewed-on: https://gerrit.libreoffice.org/19607 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Yousuf Philips <philipz85@hotmail.com>
2015-10-24tdf#91063 Change show legend label to tooltip in chart sidebarYousuf Philips1-1/+2
Change-Id: I3d4cd44527bd9687df002543055286daf6e24a65 Reviewed-on: https://gerrit.libreoffice.org/19370 Reviewed-by: Yousuf Philips <philipz85@hotmail.com> Tested-by: Yousuf Philips <philipz85@hotmail.com>
2015-10-23implement text rotation for chart axis sidebar panel, tdf#94970Markus Mohrhard2-2/+45
Change-Id: Ifce97c437238bd1520a2122aa4027a1bcbba1e5d
2015-10-22make it harder to use the API wrongly, tdf#95056Markus Mohrhard1-8/+14
Change-Id: I07129285ac7f00513802a60c31d5de27f6f4a5d6