summaryrefslogtreecommitdiff
path: root/chart2
AgeCommit message (Collapse)AuthorFilesLines
2016-02-06Fix typosAndrea Gelmini2-2/+2
Change-Id: I28cfc629dc3d6ef54128615452667ccce86c1072 Reviewed-on: https://gerrit.libreoffice.org/16297 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com> (cherry picked from commit 01532b1ab8f34ac0a87c17efaa2e6c7e9ac29b3b)
2016-02-06remove unnecessary check for null when calling deleteNoel Grandin2-4/+2
Idea originally from caolan. Found using the following command: find . -name *.cxx | xargs /opt/local/bin/grep -zlP '(?m)if\s*\(\s*\w+\s*\)\s*delete\s+\w+\;' Change-Id: I3338f4e22193a6dfd6219c8c75835224a3392763 (cherry picked from commit 4729774b244db7a175077ed0c70aa48be62bc60e)
2016-02-06cppcheck:unreadVariableNoel Grandin1-1/+0
Change-Id: I03981ceba67280e8ed98a9add7f24b3bd958d522 (cherry picked from commit dcf6abfcdf3f4b7aec5796c9f6c806889328135f)
2016-02-06cppcheck:redundantAssignmentNoel Grandin2-5/+3
(cherry picked from commit 4ea281a3ccb5bd21e1808d8cb127a91a1bb72691) Change-Id: I1167d0ce6b6f6e48309d0551c1d2a283d79546a7
2016-02-06convert expressions like 'size() == 0' to 'empty()'Noel Grandin2-2/+2
(cherry picked from commit 776a3f14f2d987312b926ebc1ad09321a3a87f0d) Change-Id: Ia5c8c0f38a347f398d587970a22e03f29ffd37af
2016-02-06convert 'it.begin() == it.end()' to 'it.empty()'Noel Grandin5-5/+5
Change-Id: I244a9eb6bce6b1c649653ec38ebb9a39f8b4c145 Reviewed-on: https://gerrit.libreoffice.org/16212 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com> (cherry picked from commit d203948fdb780c7af5777fcc26ad88bac1bd714e)
2016-02-05\<the the\> -> theJan Holesovsky1-2/+2
(cherry picked from commit 9535d5d1fdbd1a529e4d7a6b5e3df6c551465364) Change-Id: I9d820446411eb7dfca37bb3baf5e994f4ba6f421
2016-02-05convert INVALIDATE constants to scoped enumNoel Grandin2-6/+6
fixing a bug in Window::ImplMoveAllInvalidateRegions, and improving the IDL docs for XWindowPeer Change-Id: Idb774ac913945db2ac7c492c11cf86c370624c3d (cherry picked from commit bb7ce3137dbe12d67f393b95a437b18e3a63f8e7)
2016-02-05loplugin:constantfunctionNoel Grandin2-8/+0
Change-Id: I7cb5b0c2cf9ade557173ca596ea5d42d853ff448 (cherry picked from commit 24600dcf3118cb01d57c31518d36be870f73e79c)
2015-12-06Resolves: tdf#96072 export Chart format codes in Excel notationEike Rathke1-1/+1
This is a combination of 4 commits. Omitted are 2246f478e2505388ab253d08a1d86b897251223b and 7340872a3450e38a7f820945585a9ee60b2a9d41 that replace the Calc code with calling the new SvNumberFormatter functions. introduce SvNumberFormatter::FillKeywordTableForExcel() ... to conflate the places that do this on their own. (cherry picked from commit b55548043e969a6aa4c211217cfc3fb85d50d2da) use proper case "General" keyword ... Excel doesn't seem to care though. (cherry picked from commit ea1db935b085507f11d05f8606a680d521db4838) introduce SvNumberFormatter::GetFormatStringForExcel() Taking implementation from sc/source/filter/excel/xestyle.cxx GetNumberFormatCode(), slightly modified to ensure valid conversion and force en-US locale data. Also don't unnecessarily convert if format is for system locale and system locale is en-US. (cherry picked from commit 2011b5412c4daa47bc5624a2efc996960e19c2a9) Resolves: tdf#96072 export Chart format codes in Excel notation 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. (cherry picked from commit 509cfa40691cf544519872a63335cff4a4d94006) 3697a808d8fee2417f0b0e03dba2b94ceea133dd 9223eaa655132b4106a35c94cb0005559d7575b1 201bb012df818129cbc65de0eee8eca59e57d829 Change-Id: Idde2173780e0515ad982b4be46fc4df23a7577ad Reviewed-on: https://gerrit.libreoffice.org/20249 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com> (cherry picked from commit 446a3a06098ef75c034ae00e6671255973e7e5a0)
2015-08-20tdf#76649 Skip NaN initial values for min and maxLaurent Balland-Poirier1-2/+6
min and max were initiated as aValuesX[0] which could be NaN test i before evaluating aValuesX[i] Change-Id: I0246913dcf427e59fd354321eeffa7c08c41c08d Reviewed-on: https://gerrit.libreoffice.org/17772 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-08-20tdf#92997 obtain a date/time edit format according to field valueEike Rathke4-15/+66
Bloody workaround hack for the fact that Chart does not handle category/x-axis times internally and is not able to pass its own axis numberformat to its own databrowser editor. Change-Id: I016695ad0104366c0bb636b449a2014ade31aca3 (cherry picked from commit 711b34d590e659ed754f7c57b3b5eb12acfbbd78) Reviewed-on: https://gerrit.libreoffice.org/17627 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2015-08-06API CHANGE: remove update() from X3DChartWindowProviderMichael Stahl2-2/+9
Revert the API change from e41c33b376d8b5776e400979eb8544db596c5bbe and use the existing css::util::XUpdatable instead. Change-Id: I3eba4c7def98c8765a970d54a7fe84a320d4313e Reviewed-on: https://gerrit.libreoffice.org/17382 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com> (cherry picked from commit 41d1b01a906ed5872cc8f0b70439c6891a874f60)
2015-08-06tdf#91725: Use lighter default colour for minor grid linesKatarina Behrens3-0/+20
Change-Id: I4be2adac1004ad4ace474c9a271cf8e21986da07 Reviewed-on: https://gerrit.libreoffice.org/16819 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com> (cherry picked from commit 701e21b25dda87a3f1feca1137c6ceab8a5363ab) Signed-off-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2015-08-06Some missing SolarMutexGuard around VclPtr acquire/releaseStephan Bergmann1-0/+2
At least OutputDevice::acquire/release use a plain unguarded int and ++, --, so apparently rely on the SolarMutex being locked whenever they are called. Fixed those places that caused "make check" to fail for me when temporarily adding DBG_TESTSOLARMUTEX() to OutputDevice::acquire/release. (A recurring pattern is that a class fails to ensure the SolarMutex is locked around the destruction of non-null VclPtr members.) Change-Id: I77cba6f3908f2de1b516ce28f1c3c43b3f57a9c5 (cherry picked from commit 8e1ad966262932516b3368d9b5c44becb29524d4) Signed-off-by: Michael Stahl <mstahl@redhat.com>
2015-08-06tdf#91702 - fix stack-based MessBox allocation.Michael Meeks3-6/+6
Change-Id: I62dd164e281911d9db3de453789a5badc7cd5fd7 Reviewed-on: https://gerrit.libreoffice.org/15954 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
2015-08-06GL3D Bar chart -> experimentalAndras Timar1-1/+4
Change-Id: I2d5948651e5c31a6ce3cadcc9ff09683a60d49bd Reviewed-on: https://gerrit.libreoffice.org/16022 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Andras Timar <andras.timar@collabora.com> (cherry picked from commit 20bb2e707481135440b2c905fb234c5ba54d5041) Reviewed-on: https://gerrit.libreoffice.org/16026 Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2015-08-06Time based charting -> experimentalAndras Timar2-0/+21
Change-Id: I1c190be0ef226d1f14d083f292cf2ea15a6d1645 Reviewed-on: https://gerrit.libreoffice.org/16023 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Andras Timar <andras.timar@collabora.com> (cherry picked from commit 7e5c1101cb200f95128ad7dc7d2a5e6bb4489306) Reviewed-on: https://gerrit.libreoffice.org/16025 Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2015-05-29convert WINDOW_POSSIZE constants to scoped enumNoel Grandin1-1/+1
Change-Id: Id85137ffc7309a66b04132d588d289db136117b9 Signed-off-by: Jan Holesovsky <kendy@collabora.com>
2015-05-29convert POINTER constants to scoped enumNoel Grandin2-29/+29
Change-Id: Iea29ce5fd6c620535197d3ca8538335078430e19 Reviewed-on: https://gerrit.libreoffice.org/15825 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com> Signed-off-by: Jan Holesovsky <kendy@collabora.com>
2015-05-28tdf#91633 - dispose chart data-table entries correctly.Michael Meeks1-2/+9
Change-Id: Ia26df029888f47a0395ea3c8bd7e0e51a1706c2a
2015-05-20bin/rename-sw-abbreviations.shlibreoffice-5-0-branch-pointChristian Lohmaier1-2/+2
renames the most annoying abbreviations in Writer (and partially in the shared code too). Change-Id: I9a62759138126c1537cc5c985ba05cf54d6132d9
2015-05-20convert DEFAULTCONSTANT constant to scoped enumNoel Grandin1-3/+3
Change-Id: I5ebd77edfa29d6c6c7acea37e826ef1d625916c3
2015-05-20convert ANTIALIASING constants to scoped enumNoel Grandin1-1/+1
Change-Id: I175b8ea4e8bc01c3cdd3dd90506eba01b35e0085
2015-05-20convert DRAWMODE constants to scoped enumNoel Grandin1-4/+4
Change-Id: I36cbe8057d09226f8b302963bdd94dc5600b686f
2015-05-19fix old GCC buildNoel Grandin5-5/+5
after my commit 10749bbf8247f0b17201b33f95a090dfc4fc3211 "remove the last of the OUString #defines in header files" Change-Id: I592e918f7b718ddff99a8eaff04b11064fad65d9
2015-05-19fix old GCC buildNoel Grandin3-3/+3
after my commit 10749bbf8247f0b17201b33f95a090dfc4fc3211 "remove the last of the OUString #defines in header files" Change-Id: I7666cfb28d8a28d541c9d7a51f014ebe53c50551
2015-05-19remove the last of the OUString #defines in header filesNoel Grandin2-9/+9
Change-Id: Id9e8ce7987e055e83b52c7024413570f262e6e8d
2015-05-18Remove include stdio (part2)Julien Nabet2-2/+0
Change-Id: Iae58d107d8df1c543a165086fb2b7c288e7121dd Reviewed-on: https://gerrit.libreoffice.org/15775 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
2015-05-15tdf#62475: partial handmade fixesAndrea Gelmini3-6/+0
Change-Id: Ib9af202c43b916b9af4b4e18db35d470a8692fe4 Reviewed-on: https://gerrit.libreoffice.org/15712 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2015-05-14refactor chart2 classes to use RenderContextTomaž Vajngerl3-29/+29
Change-Id: I245af77126739bb219f6a085a47cee2efac2c351
2015-05-13perform a proper boundary check, just in caseTakeshi Abe1-1/+1
Change-Id: I4713b88a2130658513fd64793129c855169f0187 Reviewed-on: https://gerrit.libreoffice.org/15720 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2015-05-13add PostPaint and change PrePaint to include RenderContext param.Tomaž Vajngerl2-5/+5
Change-Id: I26e03159fa6115025c6cf376e6ce71443bc98cec
2015-05-13add test for primary and secondary axis positionMarkus Mohrhard1-0/+2
Change-Id: I8e790153c45c8ec2a4a94d629fbc0e36e60617d8
2015-05-12add test to make sure only one x axis is non-deleted in exported docMarkus Mohrhard1-0/+1
Change-Id: I8172015668cc43b4383276f2cd20cce4b0704277
2015-05-12Switch VclBuilder constructors to use VclPtr.Michael Meeks1-1/+1
Change-Id: Id35a86eb52bbde6ca09a5e61a0b1a79b23be8faf
2015-05-11Revert "Switch VclBuilder constructors to use VclPtr."Michael Meeks1-1/+1
Behaves oddly; not ready yet. This reverts commit 9f016bd69422bdfb4cf7c4f5e57356eb98db2d8c. Change-Id: I30d746eac29d1dbe78d3072b10d2e22c051e3f4e
2015-05-11Switch VclBuilder constructors to use VclPtr.Michael Meeks1-1/+1
Change-Id: Id35a86eb52bbde6ca09a5e61a0b1a79b23be8faf
2015-05-11convert COMMAND_ constants to scoped enumNoel Grandin1-5/+5
Change-Id: I88e67f89dbbab0646e8f106dfeb32c6ee1bb0b95 Reviewed-on: https://gerrit.libreoffice.org/15671 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-05-11add test for tdf#84347Markus Mohrhard2-0/+14
Change-Id: I437801a752e2ae2fa762f46f566b761fdc02acb8
2015-05-11fix regression from 1c4025babd7037a3292aa530c7d45ab8d6ef6dcbMarkus Mohrhard1-1/+1
Change-Id: I28543128b75315be1eda1a82f6e856778c38a33e
2015-05-10Use IMPL_LINK_NOARG[_TYPED] where applicableStephan Bergmann1-1/+1
Change-Id: I70598072c1d492e360ef46dd7b5ef5a2fa4be495
2015-05-10NOINSTANCE is implied now in IMPL_STATIC_LINK...Stephan Bergmann2-2/+2
Change-Id: Ifb032457d6c1b279c4183282ef2b271c706dd71a
2015-05-09tdf#91052 - use macros to standardize 'make' constructors for VclBuilder.Michael Meeks3-10/+6
When complete - should ease the switch to VclPtr<>::Create. Change-Id: Idf876e2eeb830b36dd86e84317277cc88e1dc013
2015-05-08lopluign:staticmethods: Handle DECL_LINKStephan Bergmann4-4/+5
Change-Id: Ib27854a8470f3ff5b208cb949a7bd02f2a86c969
2015-05-08add test for xlsx rotated axis title importMarkus Mohrhard2-0/+34
Change-Id: Ibfcf7cffe661efc1ce2063e87d38c45d943df69d
2015-05-08also add test for secondary axis, related tdf#75316Markus Mohrhard2-0/+19
Change-Id: I88f46f7724296e1c58cf7604a0c514de91b5ae2a
2015-05-08add test for tdf#75316Markus Mohrhard2-0/+20
Change-Id: Ic9f20c90e54f53484d67c1c38530dbac9638cbfe
2015-05-08GLEW_EXT_texture_array is of type GLboolean alreadyStephan Bergmann1-1/+1
Change-Id: I8348a5e5c13a6628ad543652e50bac0432b2b7be
2015-05-07tdf#91050: fix typo TabePage->TabPageAndrea Gelmini3-10/+10
Change-Id: I21d04451aa747f6d8d9560533674f1c0aa590e65 Reviewed-on: https://gerrit.libreoffice.org/15664 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>