Commit Graph
43 Commits
Author SHA1 Message Date
Szymon Kłos 35d062f787 tdf#116163: Limit label height in chart if needed
Change-Id: Ia84fd0c3b76886bc6124dc3b59035465aa31b020
Reviewed-on: https://gerrit.libreoffice.org/50700
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
2018-03-04 12:11:09 +01:00
Julien Nabet e108a31a8f Modernize a bit chart2
mainly by using for range loops
+ by using empty() instead of comparing begin and iterator
or use size to test that a container has at least 2 elements

Change-Id: I81f168d8c36a8b4195fbb0c1aee4983dab25d22c
Reviewed-on: https://gerrit.libreoffice.org/50705
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2018-03-04 00:38:16 +01:00
Noel Grandin c4abbb6e10 inline ASSERT_EXCEPTION macro in chart2
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-11-03 13:03:13 +01:00
Stephan Bergmann d63b706dad loplugin:includeform: chart2
Change-Id: I5b455c684e7cd689d5160135246f3400363c7d40
2017-10-23 22:46:12 +02:00
Noel Grandin 3dcf6dfcee remove unnecessary use of 'this->'
Change-Id: I5c115389af7d24c18ddaf5fbec8c00f35017a5b4
Reviewed-on: https://gerrit.libreoffice.org/40671
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-08-02 13:45:36 +02:00
Noel Grandin a63e17c6c4 loplugin:checkunusedparams more part3
Change-Id: I621fcf7ceb27238ca86d2299dfb2b8ed03c270fd
Reviewed-on: https://gerrit.libreoffice.org/40509
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-07-28 10:46:26 +02:00
Noel Grandin 0b2f1292b3 loplugin:comparisonwithconstant in chart2
Change-Id: I95787007b26cdcf0d5d1617ecd0e55d377b551d7
Reviewed-on: https://gerrit.libreoffice.org/37941
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-05-23 11:22:08 +02:00
Stephan Bergmann e57ca02849 Remove dynamic exception specifications
...(for now, from LIBO_INTERNAL_CODE only).  See the mail thread starting at
<https://lists.freedesktop.org/archives/libreoffice/2017-January/076665.html>
"Dynamic Exception Specifications" for details.

Most changes have been done automatically by the rewriting loplugin:dynexcspec
(after enabling the rewriting mode, to be committed shortly).  The way it only
removes exception specs from declarations if it also sees a definition, it
identified some dead declarations-w/o-definitions (that have been removed
manually) and some cases where a definition appeared in multiple include files
(which have also been cleaned up manually).  There's also been cases of macro
paramters (that were used to abstract over exception specs) that have become
unused now (and been removed).

Furthermore, some code needed to be cleaned up manually
(avmedia/source/quicktime/ and connectivity/source/drivers/kab/), as I had no
configurations available that would actually build that code.  Missing @throws
documentation has not been applied in such manual clean-up.

Change-Id: I3408691256c9b0c12bc5332de976743626e13960
Reviewed-on: https://gerrit.libreoffice.org/33574
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-01-26 12:54:43 +00:00
Stephan Bergmann 705af606f7 loplugin:unnecessaryoverride (dtors) in chart2
Change-Id: I013fd81467b353262e8de554a06a0b24e4deca6d
2016-11-23 18:37:35 +01:00
Stephan Bergmann 91dd2db17b loplugin:override: No more need for the "MSVC dtor override" workaround
The issue of 362d4f0cd4 "Explicitly mark
overriding destructors as 'virtual'" appears to no longer be a problem with
MSVC 2013.

(The little change in the rewriting code of compilerplugins/clang/override.cxx
was necessary to prevent an endless loop when adding "override" to

  OOO_DLLPUBLIC_CHARTTOOLS    virtual ~CloseableLifeTimeManager();

in chart2/source/inc/LifeTime.hxx, getting stuck in the leading
OOO_DLLPUBLIC_CHARTTOOLS macro.  Can't remember what that
isAtEndOfImmediateMacroExpansion thing was originally necessary for, anyway.)

Change-Id: I534c634504d7216b9bb632c2775c04eaf27e927e
2016-09-13 13:19:22 +02:00
Noel Grandin 8353667d35 com::sun::star->css in chart2
Change-Id: I04320d32d6d5c54e461cfabef58645f8b772bc69
2016-03-14 13:43:38 +02:00
Stephan Bergmann b36963c0a6 Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY code
Change-Id: I2ea407acd763ef2d7dae2d3b8f32525523ac8274
2015-10-12 17:52:29 +02:00
Caolán McNamara 33cddeea13 boost->std
Change-Id: Iff14f69c200217c5d868978e8ffc06962b99ac09
Reviewed-on: https://gerrit.libreoffice.org/18568
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-09-14 19:32:42 +00:00
Takeshi Abe 5c420fcdf9 tdf#88206 replace cppu::WeakImplHelper* etc.
with the variadic variants, in chart2.

Change-Id: Ib145860cf757d932fd5710f92c7f9ce33904b619
2015-07-17 09:39:04 +02:00
Caolán McNamara 0f71828a95 cppcheck: noExplicitConstructor
Change-Id: I8b03c27188b02c3c4a9a9fbbe0df1fb1ae1c5caf
2015-06-08 11:14:38 +01:00
Noel Grandin 7ab8b08b6c loplugin:staticmethods
Change-Id: Iab2f10b000ef41fb090e0034785d4ed0bda4cf43
2015-04-23 13:08:48 +02:00
Caolán McNamara 76617eea54 coverity#1249460 Unchecked dynamic_cast
Change-Id: I21f85d0e18ab8a30320f3db294efa9fbdd4dd55d
2014-10-25 16:56:12 +01:00
Michael Stahl 908d1b6e63 chart2: fix memory leak due to cyclic reference in VAxisBase
The VAxisBase::m_xNumberFormatsSupplier refers to the ChartModel itself,
and apparently that is a cyclic reference.  Naively using the
ChartModel's m_xNumberFormatsSupplier in
ChartView::impl_createDiagramAndContent() because it will later be passed
to AxisHelper::getExplicitNumberFormatKeyForAxis(), which expects to be
able to convert it to a ChartModel.

Since passing around the ChartModel as an XNumberFormattingSupplier is
sort of un-intuitive anyway, refactor some methods to use XChartDocument
instead, and only create the VPolarAxis / VCartesianAxis with the
ChartModel's m_xNumberFormatsSupplier.

The drawback is that if ChartModel::attachNumberFormatsSupplier()
is called after ChartView::update() has created the axes, it may not
have an effect on them; not sure if that is a real or hypothetical
problem.

Change-Id: Ib5f0d5882b85adaf44f80e086f19178b3e64882f
2014-10-20 17:14:26 +02:00
Kohei Yoshida 276a046d52 Annotate code.
Change-Id: If26d21593f36a39de3bc5b81717e5000795c97ae
2014-10-07 20:22:17 -04:00
Stephan Bergmann 567ef6d578 Second batch of adding SAL_OVERRIDE to overriding function declarations
...mostly done with a rewriting Clang plugin, with just some manual tweaking
necessary to fix poor macro usage.

Change-Id: Ie656f9d653fc716f72ac175925272696d509038f
2014-03-27 18:12:18 +01:00
Stephan Bergmann 5e21a413c7 cppuhelper: retrofit std::exception into overriding exception specs
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-26 18:22:20 +01:00
Markus Mohrhard d3affcac9a remove unused include
Change-Id: I5d2c9bbb45c3a1f058cf3ec0e5a2a255ce83cefe
2013-09-29 20:26:06 +02:00
Jelle van der Waa dd9c97d587 fdo#62475 removed pointless comments
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-07-29 11:34:33 +00:00
Luboš Luňák 1946794ae0 mass removal of rtl:: prefixes for O(U)String*
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-04-07 14:23:11 +02:00
Michael Meeks b9042fad7c re-base on ALv2 code.
Change-Id: I6c145e984c885c7e06caa1c27bfb354ea49ad9ce
2012-06-21 15:00:05 +01:00
Norbert Thiebaud 6da8379e14 remove include of pch header in chart2 2011-11-27 12:59:19 -06:00
Kohei Yoshida 12343c1556 Merge commit 'ooo/DEV300_m101' into integration/dev300_m101 2011-03-10 20:21:13 -05:00
Alfonso Eusebio b83d973a49 emoved lines of code that were commented out. 2011-01-25 15:04:20 +00:00
Ingrid Halama [iha] edaa216847 chart46: #i25706# implement date axis 2010-11-30 01:45:03 +01:00
Sebastian Spaeth 63bb42ab7d Add vim/emacs modelines to all source files
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-13 10:57:18 +02:00
Ingrid Halama eb94da5c50 chart43: merge with DEV300_m72 2010-02-26 14:38:16 +01:00
Jens-Heiner Rechtien 4573ccfffd changefileheader2: #i109125#: change source file copyright notice from Sun Microsystems to Oracle; remove CVS style keywords (RCSfile, Revision) 2010-02-12 15:01:35 +01:00
Ingrid Halama 91f22fc22a chartmultiline: #i82971# complex categories (part2 - hierarchical axis label display) 2009-12-15 16:30:15 +01:00
Rüdiger Timm 8f03095fa0 CWS-TOOLING: integrate CWS rtlchart02 2008-12-12 12:17:17 +00:00
Vladimir Glazounov 8f7c283f31 INTEGRATION: CWS chart26_DEV300 (1.7.130); FILE MERGED
2008/04/23 19:24:20 iha 1.7.130.1: #i72994# good automatic placement of walls, grid lines and axes labels dependent on 3D rotation
2008-05-15 07:04:38 +00:00
Rüdiger Timm 867d53034b INTEGRATION: CWS changefileheader (1.7.126); FILE MERGED
2008/03/28 16:44:34 rt 1.7.126.1: #i87441# Change license header to LPGL v3.
2008-04-10 21:27:49 +00:00
Vladimir Glazounov ecc8b624d6 INTEGRATION: CWS chart2mst3 (1.3.4); FILE MERGED
2006/10/18 17:20:48 bm 1.3.4.20: RESYNC: (1.5-1.6); FILE MERGED
2006/09/24 09:12:56 iha 1.3.4.19: #i61970# correct implementation of axis at
2006/08/25 17:16:47 iha 1.3.4.18: text- and diagram-size dependent auto main step width
2006/08/23 17:07:26 iha 1.3.4.17: enable axis to estimate the maximum automatic MainIncrementCount, reduce count to 2 for net charts
2006/08/10 15:53:58 iha 1.3.4.16: Axis Label Layout - Font&Diagram Size
2006/04/10 15:03:37 iha 1.3.4.15: api restructure axis, grids, scales and increments
2006/04/10 12:25:17 iha 1.3.4.14: api restructure axis, grids, scales and increments
2006/03/23 15:31:52 iha 1.3.4.13: cleanup category handling
2005/12/21 21:29:31 iha 1.3.4.12: remove identifiers from model objects and create an index based CID protocol instead for selection purposes
2005/11/25 16:32:06 iha 1.3.4.11: correct labels at z axis for deep stacking
2005/10/24 11:06:58 iha 1.3.4.10: coordinate system restructure
2005/10/13 17:39:10 iha 1.3.4.9: renamed BoundedCoordinateSystem to CoordinateSystem
2005/10/07 12:17:03 bm 1.3.4.8: RESYNC: (1.4-1.5); FILE MERGED
2005/06/07 16:03:25 iha 1.3.4.7: use numberformatter from model
2004/04/01 12:22:15 iha 1.3.4.6: make shape creation more fail save
2004/03/24 12:31:32 bm 1.3.4.5: RESYNC: (1.3-1.4); FILE MERGED
2004/03/22 19:35:58 iha 1.3.4.4: transport information bSwapXAndYAxis over method setScales not constructor; used new method getPropertySwapXAndYAxis
2004/03/22 17:35:12 iha 1.3.4.3: added parameter SwapXAndYAxis also to grid
2004/03/22 15:45:53 iha 1.3.4.2: read property SwapXAndYAxis from CoordinateSystem model and feed AxisProperties
2004/03/12 15:36:43 iha 1.3.4.1: get axis position from model
2007-05-22 18:10:58 +00:00
Oliver Bolte 73961fd230 INTEGRATION: CWS pchfix02 (1.5.80); FILE MERGED
2006/09/01 17:18:57 kaib 1.5.80.1: #i68856# Added header markers and pch files
2006-09-17 12:31:30 +00:00
Rüdiger Timm bd9fb076f4 INTEGRATION: CWS ooo19126 (1.4.106); FILE MERGED
2005/09/05 18:43:39 rt 1.4.106.1: #i54170# Change license header: remove SISSL
2005-09-08 00:38:30 +00:00
Dan Williams feca796601 Correct variable scoping in 'for' statements to be ISO C++ compliant. You
technically cannot declare a variable like 'for ( int i=0; ...; ...) {} i = 1'
and then use it later outside of the for() statement.
2004-03-08 15:03:51 +00:00
Björn Milcke 3fe1d17a07 drafts namespace of API removed
public API moved to offapi
Calc as DataEditor - first integration
2004-01-26 08:13:31 +00:00
Ingrid Halama 2283e0e694 restructure of cartesian axis, integrate polar axis 2004-01-22 18:20:40 +00:00
Ingrid Halama b064ca8aa9 introduced polarcoordinate system + axis + grids + some cleanup 2004-01-17 12:10:08 +00:00