Commit Graph

752 Commits

Author SHA1 Message Date
00cb825ab3 fdo#75538 R^2 calculation for trendline similar to LINEST function
Modify for forced intercept of trendline, calculation of R^2 in the same
way as LINEST function does calculation

Change-Id: Ic943b1ca1bbe30b1a4b88e2a338eb9dc34d848b6
Reviewed-on: https://gerrit.libreoffice.org/8402
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2014-03-03 11:15:05 -06:00
f2cdf8848c Remove visual noise from chart2
Change-Id: Ic8dc71c2815df265e1935e629e0220396a50aaac
Reviewed-on: https://gerrit.libreoffice.org/8239
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2014-02-27 00:44:41 -06:00
5e21a413c7 cppuhelper: retrofit std::exception into overriding exception specs
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-26 18:22:20 +01:00
0ce0c369aa Remove unneccessary comments
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>
2014-02-23 03:38:49 +00:00
a18a1a4545 Remove vcl/settings.hxx from vcl/svapp.hxx and vcl/outdev.hxx
Added vcl/settings.hxx to all cxx files which require it.
This helps to speed up compilation after changes to the settings.

Conflicts:
	sc/source/ui/dbgui/pvlaydlg.cxx

Change-Id: I211a0735c47f72d6879f6f15339355abfe0e3cf4
Reviewed-on: https://gerrit.libreoffice.org/7933
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-20 16:22:17 +00:00
9e67015be6 fdo#73374 Trendline: correct R^2 for forced intercept
In case of forced intercept, R^2 must be calculated in a different way.
This patch calculates R^2 of trend line in the same way as LINEST
function.

Change-Id: I3ac361f014569261f05d513acb3428de5c7641ab
Reviewed-on: https://gerrit.libreoffice.org/7326
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2014-02-07 12:01:10 +00:00
f3612719e0 coverity#1019405-04 : Uninitialized scalar field
Change-Id: Ic784f3f1e581583b79cc26aa399f7b99dfb16481
2014-01-29 23:36:52 -06:00
750b46025c give up with the nice solutions and enjoy the ugly hack
I was always hitting a corner case so it seems that this need some
drastic measures.

Change-Id: I3fdd278b9c3fed178513d653ef24ad8adf20cbd2
2014-01-29 08:09:30 +01:00
55656ee2e8 some improvements for the time based charting
The updating seems to work. It just does not update the references yet.

Change-Id: I0a971dbe2beb113c1c3e9ef103d77d5d8c7174a0
2014-01-29 08:09:30 +01:00
d5d2e280bd bool improvements
Change-Id: I4fb554a0b703b29cb2dc70fc11111a4f2fa9af8e
2014-01-28 20:26:30 +01:00
21e8b11070 Fix odd bSimple = ThreeDLookScheme_Simple arguments
...where ThreeDLookScheme_Simple == 0, so actually passing bSimple = false, but
ultimately this argument gets ignored anyway in the implementations of those two
getDefault*LightColor calls that each pass in a null xChartType.

Change-Id: I7940321562254a2b58064c160f9c18ecc129f2d5
2014-01-28 20:24:37 +01:00
74c876e615 fdo#54938 Convert chart2 to cppu::supportsService
Change-Id: I26e993a6b0dfc54637651b1a093d896faf5b42d3
Reviewed-on: https://gerrit.libreoffice.org/7644
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Marcos Souza <marcos.souza.org@gmail.com>
Tested-by: Marcos Souza <marcos.souza.org@gmail.com>
2014-01-25 14:43:34 +00:00
336b25e622 fdo#63154 Removed unused solar.h reference in chart2
Change-Id: I4a16cd5492ced3c067fb037f31cb74a6d8068de1
Reviewed-on: https://gerrit.libreoffice.org/7603
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-01-24 16:10:03 +00:00
7f0fe5444f bool improvements
Change-Id: I8e83eb52a8873e6c7372091c697158053da82488
2014-01-22 08:22:35 +01:00
a14b4d2dfd cppcheck: fix some redundantAssignment
Change-Id: I9ea73bada743b195d778b17038137e9089d03404
2014-01-12 22:26:20 +01:00
a62c2a5fa5 Don't hold css::uno::Type instances by pointer
...in comphelper::PropertyMapEntry and SfxItemPropertyMapEntry.  And as the
arrays of such need to be initialized dynamically anyway, also change their name
members to proper OUStrings while at it.  Plus some const clean-up.

Change-Id: I67d4d7b5773fb020605f369daf39528bec930606
2013-12-12 08:26:40 +01:00
123e2c3e93 Revert "Don't hold css::uno::Type instances by pointer"
This reverts commit 90f91088d238469b4a2262c91de3117ba40f5bde for now:
Ach, old GCC doesn't like plain string literals to initialize members
of OUString type...

Change-Id: I50563a00406259bb5d41831e2a2796762450d097
2013-12-11 15:38:30 +01:00
90f91088d2 Don't hold css::uno::Type instances by pointer
...in comphelper::PropertyMapEntry and SfxItemPropertyMapEntry.  And as the
arrays of such need to be initialized dynamically anyway, also change their name
members to proper OUStrings while at it.  Plus some const clean-up.

Change-Id: I67d4d7b5773fb020605f369daf39528bec930606
2013-12-11 15:16:51 +01:00
67db0ef92f fdo#40315 Improve text for moving average trendline
Change text in status bar for moving average trendline:
no equation, no R²

Change-Id: I0e18a72ff1f1d78e3bb28cab4d5f215c096898dc
Reviewed-on: https://gerrit.libreoffice.org/7015
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2013-12-10 16:30:02 +00:00
b0e66c05af More clearly name the trendline in chart's element selection box.
Change-Id: I5f787eb064524a3b2399d591866a5b8cbdee6294
2013-12-09 23:05:13 +01:00
ee545ea38e Display correct equation with multiple trendlines in chart.
When there were multiple trendlines for one data series and one
was selected, always the equation and R^2 of the first trendline
was displayed in status bar.

Change-Id: I320261e129c51bbdd1228173ca2f1d8447fdcb89
2013-12-09 23:05:12 +01:00
6f62f3f0af Custom name for a trend line (shown in legend).
Previously, a trendline name was fixed to a combination of the
trendline type and the name of the series. With this it is possible
to add a custom name for the trendline, which is shown in the
legend.

Change-Id: I61eaaf14e6df45088abdf1f3e9c24877d26ae8a7
2013-11-24 19:43:16 +01:00
89633c6da1 remove unnecessary use of OUString::createFromAscii
Convert code like this:
    OUString aStrSpacing(OUString::createFromAscii("spacing"));
to:
    OUString aStrSpacing("spacing");

Change-Id: Ia2b7d6b42f35d33cfe587a0d6668030f3537fa6d
2013-11-21 13:29:29 +02:00
52bbd9cc00 remove unnecessary RTL_CONSTASCII_STRINGPARAM in appendAscii calls
Convert code like:
    aStrBuf.appendAscii( RTL_CONSTASCII_STRINGPARAM( "ln(x)" ));
to:
    aStrBuf.append( "ln(x)" );
which compiles down to the same code.

Change-Id: I24c7cb45ceb32fd7cd6ec7ed203c2a5d746f1c5c
2013-11-20 10:07:32 +02:00
7dab0e8667 fix tests
Change-Id: Ib090d9a6a007a738a0603d1d0a38d5b274feadcc
2013-11-19 13:47:41 +01:00
78fb95eeb9 dbgutil build fix
Change-Id: I54abcc2a9fbe7d30bdf64d194df1a435d21f24ac
2013-11-19 13:47:39 +01:00
401f01caf5 use ChartModel instead of XModel in a few places
This allows us easier implementation of some advanced features. Mainly
the 4D chartting will now be able to work without several ugly layers of
UNO.

Change-Id: I74d07229eaef921c508f3bab8fae6d6075ad737a
2013-11-19 13:47:36 +01:00
610b2b94b3 remove unnecessary use of OUString constructor when assigning
change code like
   aStr = OUString("xxxx");
to
   aStr = "xxxx";

Change-Id: Ib981a5cc735677ec5dba76ef9279a107d22e99d4
2013-11-19 10:29:31 +02:00
ab5d1fbfb4 SAL_WARN_UNUSED com::sun::uno::Any
Change-Id: I9058044d13f696e07667dce706f6c311af6dbea0
2013-11-14 21:02:40 +01:00
d366c9b20e remove unnecessary sal_Unicode casts in various places
Change-Id: Ibf04062ca86ed866202d748c3b62a210d30ed6ec
2013-11-14 08:17:32 +02:00
75b7ce9c66 fixincludeguards.sh: chart2
Change-Id: I166e054926fb975949b3021cbc43b25a222f6198
2013-10-23 23:22:34 +02:00
30e72a9a36 cppcheck: some cleanings
Change-Id: Ie41b33c09d79b40116cc10f7557987860acb55e8
2013-09-29 22:49:49 +02:00
98de5b40c8 Related: fdo#38838 remove UniString::EqualsIgnoreCaseAscii
Change-Id: Ib5c3a2daa4a48bc286b14fa2cebb3306ea0012bc
2013-09-25 19:24:23 +02:00
955ff84440 commited PolynomialRegressionCurveCalculator2 by accident
Change-Id: Icd41c465a96e357dca4e50993c899f9365239d8b
2013-08-24 23:35:56 +02:00
230524a373 Forgotten one SAL_CALL in AgileDocumentHandler
Change-Id: I28ad4fe77c9c8474f4f650e9ea5ab309be307fb5
2013-08-24 23:34:19 +02:00
64b993e046 finish deprecation of O(U)String::valueOf()
Compiler plugin to replace with matching number(), boolean() or OUString ctor,
ran it, few manual tweaks, mark as really deprecated.

Change-Id: I4a79bdbcf4c460d21e73b635d2bd3725c22876b2
2013-08-21 15:10:35 +02:00
bd9c1714ed Fix deprecated: use rtl::isAsciiDigit/isAsciiAlpha instead
Change-Id: I74238c164e661f0090e78e5c6107b974834a685b
2013-08-19 19:49:59 +02:00
f0772f616b Reduce scope
Change-Id: I1a0e8f92056c24740505e488a318aabd12a4df05
2013-08-11 23:16:30 +02:00
3aea6c121d Mark as const
Change-Id: I7ad2a1bd29afbf4813b1ad984081935ca84ec98a
2013-08-02 10:34:43 +09:00
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
bddd4d4598 Mark as const
Change-Id: I2746b92b1360c3c181879a81f653c44ef609f351
2013-07-22 21:03:55 +09:00
22b0b27cbc pow is ambiguous
Change-Id: Ib63bf0a67f18cf8e2f3705ae8b096c5bdf06edaf
2013-07-14 22:36:08 +02:00
bdb0619d6f Remove gauss.hxx from MovingAverageRegressionCurveCalculator.
Change-Id: Ib1a781b7bf848a092dd000d5999fef00a409d92d
2013-07-14 22:25:20 +02:00
c06ddaa0d7 Use QR decomposition instead of gauss elimination for polynomial reg.
Gauss elimination is not a stable algorithm so use QR decomposition
(with other methods). Also use horner's method to evaluate a polynomial
which is the prefered and more stable method of polynomial evaluation.
Still this is not quite enough as you still have to multiply very large
number with very small and you lose percision on high-degree polynomials
or big X values. Some methods evaluate the polynomial in barycentric form
but how to get the polynomial into the barycentric form is now the
question.

Change-Id: If0d93bc1f08253f015e814e187b5a2cb7f78ec49
2013-07-14 22:25:19 +02:00
358d1a9948 use static LanguageTag::convertTo...() for standalone conversions
If no LanguageTag instance is at hand use the static methods to convert
between BCP 47 string, Locale and MS-LangID instead of creating
temporary instances.

Change-Id: I9597f768078eb81c840e84a5db5617f26bb7dc09
2013-07-13 11:55:16 +02:00
2cca46d548 PCH for more libraries
Change-Id: I6f9a1969605e0016b11157ddb5754ac77fd3966b
2013-07-12 20:57:58 +02:00
009851223b module svl: all String and some bool and related clean-up
Change-Id: I36eb559fa58dbe75384b7119c788af0048813aed
Reviewed-on: https://gerrit.libreoffice.org/4733
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2013-07-07 20:00:16 +00:00
d1472c78b6 Clear values before calculation of moving average curve.
Change-Id: Ic645195c0fc50a55bb0842fc378a3f329ea2d210
2013-07-04 20:21:47 +02:00
e14e818ac3 Polynomial curve equation: show "x^1" as "x"
Change-Id: I86ff9b5cc2f3fa60533794ed9ecd1175924c1d25
2013-07-03 23:02:58 +02:00
27a4d5597c Fixes to compiler errors, setRegressionProperties description.
Change-Id: I40ef93746e5f2a43ce58f0080db0b643e22404a1
2013-07-03 22:44:22 +02:00