Commit Graph

729 Commits

Author SHA1 Message Date
396534403b Mark as const / static
Change-Id: I9bcf02b270200fd146d2bfee6f15ff1f9ad8888b
2013-09-10 02:50:04 +09:00
ccf7b15c0a -Werror=unused-but-set-variable second try
Change-Id: Ia8a9f60831d089ec04127213bb9ded31aa754bf7
2013-08-30 21:02:26 +02:00
47924a4656 Revert "-Werror=unused-but-set-variable bCategoriesApplied"
This reverts commit 72e019c4e301ef93bd1be985edd037d1e2b10e28.
2013-08-30 20:58:07 +02:00
72e019c4e3 -Werror=unused-but-set-variable bCategoriesApplied
Change-Id: I43c1f866847e2029bc1547dff3be3c1ed454d281
2013-08-30 20:47:27 +02:00
b090cbdf82 fdo#68663 don't blindly force categories when there are none
Change-Id: If52ea471ee3ca10e2f69d2fcd7b3ae0d5772bfc3
2013-08-30 18:36:55 +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
7c02faf535 Properly hide implementation details.
If we are to hide, let's hide all.

Change-Id: Ic68926ee099ac80d2d477d68e3769a7203dfea6c
2013-08-16 21:31:44 -04:00
4f360266cd fdo#62475 removed pointless comments
Change-Id: I176886fbc9f3d9e2b8ad2308ac2b127d9c68d9a6
Reviewed-on: https://gerrit.libreoffice.org/5331
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2013-08-10 14:55:06 +00:00
30eb11ea79 cppcheck: Prefer prefix ++/-- operators for non-primitive types
Change-Id: If1bd91f28a96bd0eb53e4057e51db900f8b2c52b
2013-07-29 22:04:52 +02:00
15dc66c81a fdo#63690 - replace RTL_CONTEXT_ macros with SAL_INFO
Change-Id: I377902007445b0bce91491060f05fb8a9dbe3cd0
Reviewed-on: https://gerrit.libreoffice.org/5133
Reviewed-by: Luboš Luňák <l.lunak@suse.cz>
Tested-by: Luboš Luňák <l.lunak@suse.cz>
2013-07-29 12:53:11 +00:00
c9321851a4 Remove unused getRegressionCurve
Change-Id: I141182634e446745be6180702c703a85dac26552
2013-07-21 15:45:58 +02:00
a2e599f16b Mark as static and/or const
Change-Id: I45a890bb793a6d92546c05bd75738d4dd753a01e
2013-07-18 22:18:25 +09:00
20cbf5bd30 i#108348: support DateTimeWithTimezone in user defined Document Properties
- fix interface of sax::Converter to allow passing time zones
  (rename the parsing methods while at it to reduce pointless overloading)
- SfxDocumentMetaData supports DateWithTimezone and DateTimeWithTimezone
  in user-defined properties
- add some ugly hacks to SfxCustomPropertiesPage to preserve existing
  time zones (which are not displayed in UI currently)

Change-Id: Ice94112b9d79c285f80b5beda15f0ace91db97f3
2013-07-15 15:23:25 +02:00
652ccbdf31 i#108348 API CHANGE: add IsUTC to css.util.DateTime etc.
Add IsUTC member to:

com.sun.star.util.DateTime
com.sun.star.util.DateTimeRange
com.sun.star.util.Time

Add new stucts with explicit time zones:

com.sun.star.util.DateTimeWithTimezone
com.sun.star.util.DateWithTimezone
com.sun.star.util.TimeWithTimezone

Adapt the sax::Converter to read/write timezones, and fix the unit test.

Everything else just uses default (no time zone), this commit is just
to fix the API.

STRUCT: /UCR/com/sun/star/util/DateTime
    nFields1 = 7  !=  nFields2 = 8
    Registry2 contains 1 more fields
STRUCT: /UCR/com/sun/star/util/DateTimeRange
    nFields1 = 14  !=  nFields2 = 15
    Registry2 contains 1 more fields
STRUCT: /UCR/com/sun/star/util/Time
    nFields1 = 4  !=  nFields2 = 5
    Registry2 contains 1 more fields

Conflicts:
	sc/source/filter/oox/unitconverter.cxx

Change-Id: I01f7a6d082a6b090c8efe71d2de137474c495c18
Reviewed-on: https://gerrit.libreoffice.org/4833
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2013-07-15 11:46:41 +00:00
27a4d5597c Fixes to compiler errors, setRegressionProperties description.
Change-Id: I40ef93746e5f2a43ce58f0080db0b643e22404a1
2013-07-03 22:44:22 +02:00
dd5c0b2db4 Added new regression curve properties as ODT 1.2 extended.
Added:
- regression-extrapolate-forward
- regression-extrapolate-backward
- regression-max-degree
- regression-min-degree
- regression-moving-type
- regression-period
- regression-force-intercept
- regression-intercept-value

Not all of these are yet filled as they are not yet implemented.

Change-Id: I7ac39c0df5b8b7fb7be6b32d301e33a7f49f2960
2013-07-03 21:46:42 +02:00
2ca5e7b46f Little cleanup in ODT regression lines import/export
Change-Id: Ie6cdfec1295e08cd5141056eeac39f248ee97766
2013-07-03 21:46:42 +02:00
4b50558fec ODT regression curves export refactored to use chart2 API
Additionally fix import when regression-type is defined on series style.

Conflicts:
	xmloff/source/chart/SchXMLExport.cxx

Change-Id: I194780619dc7b8a2b428867d4b5906180ee1fac1
2013-07-03 21:46:42 +02:00
d070003bc4 Refactor regression curve handling in xmloff import to use chart2.
Additionally support more regression curves per one series and
add polynomial an moving average tokens.

Conflicts:
	xmloff/source/chart/SchXMLPlotAreaContext.cxx

Change-Id: I9dfebb1f47942c88ab0ccff48ec7632136fb1bc9
2013-07-03 21:46:41 +02:00
ae4e42c87f remove unnecessary comments
Change-Id: Iff6c1c59d0300f868972c2abf88fee5cf7e5372a
2013-07-02 03:08:32 +02:00
2c3b138a80 fix indentation
Change-Id: I1bdd8980109b340765c0600f897ff14e75fb0bae
2013-07-02 03:08:30 +02:00
1ca3beae12 remove all my debug code
This should never have been pushed.

Change-Id: Ida67b0716a916cb7c3b9af7430abc51800414f18
2013-06-30 04:01:36 +02:00
14fa5488a8 transpose "data in rows" ranges for internal data provider, fdo#62057
This is an ugly hack but it at least works. This regression has been
introduced by the merge from the AOO code. The order of calls during
import is totally screwed and I have no idea how to properly fix all
these problems without introducing new regressions.

The best solution would be to move the import/export code into chart2
where we could manipulate tese properties directly and would not need to
transform the same information N times until it is written into the
chart code.

Change-Id: Id53c49441c683b19a973a48884135a3f4e89de03
2013-06-30 04:01:36 +02:00
ba0a57702c remove OUString wrap for string literals
For some functions and all kinds of Exceptions.

CannotConvertException
CloseVetoException
DisposedException
EmptyUndoStackException
ErrorCodeIOException
Exception
GridInvalidDataException
GridInvalidModelException
IOException
IllegalAccessException
IllegalArgumentException
IllegalTypeException
IndexOutOfBoundsException
NoMasterException
NoSuchElementException
NoSupportException
PropertyVetoException
RuntimeException
SAXException
ScannerException
StorageWrappedTargetException
UnsupportedFlavorException
VetoException
WrappedTargetException
ZipIOException
throwGenericSQLException
throwIllegallArgumentException

createInstance
createInstanceWithContext
forName
getByName
getPackageManager
getPropertyValue
getUnpackedValueOrDefault
getValueByName
hasPropertyByName
openKey
setName
setPropertyValue
supportsService

bash command:

for i in `cat list`; do git grep "$i\s*(\s*OUString(\s*\"" -- '*.[hc]xx'
	| cut -d ':' -f1 | sort -u
	| xargs sed -i
		-e "s/\(\<$i\s*(\)\s*OUString(\s*\(\"[^\")\\]*\"\)\s*)\s*/\1\2/g"
		-e "s/\($i.*\)\"+ /\1\" + /g";
done

Change-Id: Iaf8e641b0abf28c082906014f87a183517630535
Reviewed-on: https://gerrit.libreoffice.org/4624
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-06-29 21:52:54 +00:00
04c8425e2f add option to debug chart odf internal data provider import
Change-Id: Ife9a2d7d5f6e47a16b0572b43f20d3010d60f277
2013-06-29 00:08:16 +02:00
ad09b2f7ef fdo#43460 xmloff: use isEmpty()
Change-Id: I298767cc0ec03c22d3ae687939f0f9d5ce1963c1
Reviewed-on: https://gerrit.libreoffice.org/4348
Reviewed-by: Noel Power <noel.power@suse.com>
Tested-by: Noel Power <noel.power@suse.com>
2013-06-19 10:10:39 +00:00
de8a82d9ac use the implicit conversion
Change-Id: I1d4739721c297e6d5605d93b6e86e114ea12db85
2013-06-16 15:38:04 +02:00
52fcfa0707 remove method without definition
Change-Id: Ia41f28ed31fc254a6785c6444a78822eb969f2f9
2013-06-13 09:26:29 +02:00
bae42fd6da fdo#46808, Convert chart2::RegressionEquation service to new style
The service already existed, it just needed an IDL file

Change-Id: I56b7079b098a7615dfb24598d15fe7d57691f317
2013-05-15 08:25:37 +02:00
aee01f809e x error bars are also defined in ODF 1.2
I suppose they were deactivated in ODF 1.2 because of the invalid ODF
files produced by the old code

Change-Id: I42624a3e0f57405b38110bef86a0aa533f491c6c
2013-04-24 12:32:11 +02:00
b3bf16a5c4 fix a problem with error bar weight
Change-Id: I812bbcdc346bffd2f0c968077a3fe86a241cf231
2013-04-24 12:17:48 +02:00
c5cca8e48f fix mismerge in PropertyMap.hxx
Change-Id: Ic8a0b81a9a44d8494ef1634e23b25fcb9423e7ff
2013-04-22 13:57:32 +02:00
13861b853f get the handling of error bar ranges correct in xmloff
We finally produce valid files again for error bars export. Additionally
we don't export unnecessary attributes anymore.

Change-Id: Idc4b4259c47a945e3679dac1a9810cd9f1f05bac
2013-04-22 13:57:32 +02:00
4475e4f3d9 more work on getting the error bar export produce valid docs
Change-Id: I19189e6be83dde58b4b3b7b55f40b701818eceed
2013-04-22 13:57:31 +02:00
f6bf4933e1 bring some sense into the error bar mappings for styles export
There were several properties that were duplicated for the X error bars
but where effectively not used by the code as these properties did not
work.

We now specify only one used entry from the chart2 API and remove the
entries from the old chart API. As soon as the old chart API is unused
in the import/export filter we can deprecate it.

Change-Id: Ib0487b41ea044136714037c27418ce049a5b92b7
2013-04-22 13:57:31 +02:00
63f7b9d1a3 little formatting clean-up
Change-Id: I3f30e2b69933f740a9938ac1ed93e7f7727b78bc
2013-04-22 13:57:31 +02:00
671b73789b fdo#43157 - Clean up OSL_ASSERT, DBG_ASSERT
- replaced osl_trace with sal_info
 - replaced dbg_* with sal_*

Change-Id: I4db4a2db0f4f2e9913826f428ba129099b1ac8a8
Reviewed-on: https://gerrit.libreoffice.org/3526
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-04-22 08:16:49 +00:00
8546c324ff Remove pass-through header file sot/inc/sot/clsids.hxx
Change-Id: I122669d4ffaf72fb1d5f6fccc98e8a648f31aa23
Reviewed-on: https://gerrit.libreoffice.org/3490
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
2013-04-20 14:55:56 +00:00
6a0f56b09d Fix typos: HEIGTH -> HEIGHT and WEIGTH -> WEIGHT
Change-Id: Ie5dc62bf535360cde8a5ccd6f8be3965ff48739c
Reviewed-on: https://gerrit.libreoffice.org/3435
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-04-18 09:07:07 +00:00
d461088eb4 fdo#43157 - Clean up OSL_ASSERT, DBG_ASSERT
- replaced osl_trace with sal_info
 - replaced dbg_* with sal_*

Change-Id: Ie5d3ae7d2c5dbaaed30d0b39740748845c9f1641
Reviewed-on: https://gerrit.libreoffice.org/3423
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-04-17 20:29:37 +00:00
c32b6be06b fdo#60724 correct spelling
Change-Id: Ieb653adbd0cb4371ec5db57e70bcc551872f647f
2013-04-15 05:32:37 +02:00
435f5e30c9 fdo#60724 correct spelling
Change-Id: I7318a9f4f3410edf4dbe67bf08f31682fcb4edc7
2013-04-15 05:10:29 +02:00
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
25e5d697bc Prefer prefix ++/-- operators for non-primitive types
Change-Id: If5950affaff1537362b1e5c2e3791d04c5371306
2013-04-01 20:22:02 +02:00
630ccf5b3b remove duplicate copy of SchXMLSeriesHelper: take 2
This allows oox to be added to Library_merged

Change-Id: I62b437ca99f1b9df9662eb3a8b9e301ed704f850
2013-03-21 19:41:57 -04:00
ccf8f9427e Revert "remove duplicate copy of SchXMLSeriesHelper"
This reverts commit 13d935d01e61fa821a5ef5893181190c90ae8e0e.

Appears to be broken.
2013-03-21 17:52:09 -04:00
13d935d01e remove duplicate copy of SchXMLSeriesHelper
This allows oox to be added to Library_merged

Change-Id: I62b437ca99f1b9df9662eb3a8b9e301ed704f850
2013-03-21 17:27:01 -04:00
b2f8318dbd simplify OUString assignments
Change-Id: Ieffd80aa84c9a041785bb81b3a904a32d00cb2bb
Reviewed-on: https://gerrit.libreoffice.org/2863
Reviewed-by: Noel Power <noel.power@suse.com>
Tested-by: Noel Power <noel.power@suse.com>
2013-03-20 10:28:58 +00:00
3991eaf556 reduce whitespaces between include and filename
Change-Id: I15f6ad0a760a28cbac53f99ba4d14ff5c24ce005
2013-03-19 01:26:45 +01:00
7e18e657c1 let us keep the gnumeric value handling in xmloff
Change-Id: I51c7ca53ec8b023dc06b43ec9cb1052d135d14d5
2013-03-19 02:36:46 +01:00