Commit Graph

2220 Commits

Author SHA1 Message Date
c6da184295 Track all uses of ErrorBarX and ErrorBarY UNO property names.
Change-Id: I994424c98d977c3a8f9138cccc17348de813a9d7
2014-06-26 19:36:46 -04:00
2daceb87b9 clang: Uninitialized argument value
Change-Id: Id65c5815185cf022171e3523c6ad92545830104c
2014-06-26 16:29:13 +01:00
8192df3887 Clarify the code a little more.
Change-Id: Idc0ff4913695ade9543cd30511aff61d24e7c495
2014-06-26 11:26:15 -04:00
60e94d8982 Move the category level removal code into its own method.
Change-Id: I4f0cfb4b15bc145b7a5c3491a7acbff13999bf5d
2014-06-26 11:26:15 -04:00
a532e2bba1 Remove these pesky ::com::sun::star ....
Change-Id: I5c8e1418cc7e01426b67233e48289497a92868d3
2014-06-25 20:24:09 -04:00
94c56f6a76 Tuck this anonymous namespace inside chart namespace.
This way we can eliminate those explicit '::chart' qualifications.

Change-Id: I764e0ca57c8e10f7eac47f48a4cabf28d0562113
2014-06-25 20:12:46 -04:00
9af5c13851 Re-use DataSeriesHelper::getRole().
Change-Id: Ia880bc03400d4cbf4c3033e01affafccc0a384fb
2014-06-24 22:05:20 -04:00
3f9275bd26 Annotate the code a little more, to make it easier to follow.
Change-Id: Iefc61fdc132a18e73b0136f0248d69ab9e07a5e8
2014-06-24 21:07:43 -04:00
1e0c38bb54 Unwind this logic a bit.
Change-Id: I320b28fb319b42eeae7cada31b6f27f9e342db15
2014-06-24 21:07:38 -04:00
3a7f55924b Reduce indentation levels.
Change-Id: I5de3dea88a1e6f36c995697ba648ce6b82f4e8ae
2014-06-24 19:03:14 -04:00
bdd87b2acd XY chart needs to set the X value property
Change-Id: Ib17b564c187dfec8abb7a17b2602f814362dd34f
2014-06-23 02:32:31 +02:00
c97424f82a remove now unused dialog
Change-Id: I42c340a6aee016e37ee558d46a8eab101837e9c5
2014-06-22 05:05:00 +02:00
77cec206e3 show the property mapping sequences by default
Change-Id: I32417ed53e491a66f700e77ae0fff2154fa5441c
2014-06-22 05:05:00 +02:00
086d93f130 extract common code
Change-Id: I9327f232f1edb9ef052eb7868ac60774f3b6e4cf
2014-06-22 05:05:00 +02:00
fb06300b73 fix windows build
Change-Id: I0de216a8c6259ba6ec825f85f52e2f48b97510d7
2014-06-21 04:46:14 +02:00
00272efc1c I don't see a good reason for marking private methods with SAL_CALL
Change-Id: I9b73b6b6073b3249317f4e1124d840930cbe558f
2014-06-21 04:21:41 +02:00
374160d659 volatile does not make any sense here
Change-Id: I337d845e05007efb29f1c1fa39cdcc046b156281
2014-06-21 04:21:41 +02:00
7fd1fd1dea remove unneeded code for 3D charts in controller
Change-Id: I5c1f624cc05a90878f717abc8ffb0b2220ce94d5
2014-06-21 04:21:41 +02:00
1d38cb3655 fdo#71076, fdo#71767: Preserve number formats when charts are copied.
Change-Id: If5ae8852152012483237e7602e56a0c46ea8748a
2014-06-19 14:46:56 -04:00
2538e30ccc Use define constant to keep track of all NumberFormat property usage.
Change-Id: I2a544922e03ec8253290ac8bf5a89c9cdd72d8dd
2014-06-19 14:46:56 -04:00
d5a0926c23 fix range input in chart data source dialog
Change-Id: I9c139c6298d25c7a7072d0d0538f1945518d36f2
2014-06-19 15:37:04 +02:00
b67f325a26 rtl::Reference fits just fine here
Change-Id: I65499ac299fb474e581245c5237a0b184f1f2b60
2014-06-18 11:26:33 +02:00
3e82897353 improve the inlinesimplememberfunctions clang plugin
Change-Id: I6d5a952901648e01904ef5c37f953c517304d31e
2014-06-17 10:55:17 +02:00
b8979cae28 fdo#79028: ungroup widgets and Show() them correctly
Showing the whole box (m_pBxMain) shows all children widgets, but
that's not what we want as different widgets must be exposed in
case of date vs. non-date axis.

m_pMt_MainDateStep was then visible at all times, thus bWasDateAxis
was always true and m_pFmtFldStepMain value got unintentionally reset

Change-Id: I4be0b18f181a45fe6bd3cac0594d6a34d875293e
2014-06-13 23:55:52 +02:00
ad82e0d25e loplugin:staticcall
Change-Id: I3f3adebc0916c96b50e15c68b627e655166e2551
2014-06-13 17:54:23 +02:00
bb761be472 Change SfxTabPage ctor SfxItemSet param from ref to pointer
...and also corresponding param of CreateTabPage function type and corresponding
Craete functions.  There were some call sites that passed undefined "null
pointer references" and SfxTabPage internally uses a pointer member pSet that is
checked for null anyway.

Change-Id: I4eb3636155eac46c9c9d26e6e6e842e85d7e95af
2014-06-11 14:39:04 +02:00
a92e973b6d Change SfxTabPage::Reset param from ref to pointer
...there was a call site that passed undefined "null pointer reference"
(apparently in a case where the passed argument was actually unused)

Change-Id: I663d4264b7a84f44ca69c732f3bc502f614b2b2a
2014-06-11 10:39:03 +02:00
4dbeadb9c1 Change SfxTabPage::FillItemSet param from ref to pointer
...there were a number of call sites that passed undefined "null pointer
references" (apparently in cases where the passed argument was actually unused)

Change-Id: I19799e90f0cd8e98367782441a5ea9df27b59830
2014-06-10 17:25:23 +02:00
ef68800d96 coverity#1158100 Unchecked dynamic_cast
Change-Id: I3040703b7182d186ac9e27c33295e929b8dc9ffe
2014-06-10 16:08:08 +01:00
0ededb3430 coverity#1158114 Unchecked dynamic_cast
Change-Id: I779e1cae1039886b2d43a025930cc50d7aaac95a
2014-06-10 16:08:08 +01:00
23f6f4fd1f coverity#1158115 Unchecked dynamic_cast
Change-Id: Ic37180d32f1308a5065f547584046e31dae88ea0
2014-06-10 16:08:08 +01:00
5cbd7b68b9 coverity#1158117 Unchecked dynamic_cast
Change-Id: I0d78af6a9aa1f206ceaf0cc9942c2a1e450ea980
2014-06-10 16:08:07 +01:00
6d166057c9 coverity#1158118 Unchecked dynamic_cast
Change-Id: I25cb0dd2d6850565aff8a08e4d3955a497415d93
2014-06-10 16:08:07 +01:00
e2de37687c coverity#1158119 Unchecked dynamic_cast
Change-Id: Iebe5c7349c2eb33b307b52031e6c1337113785c1
2014-06-10 16:08:07 +01:00
0452160624 coverity#1158120 Unchecked dynamic_cast
Change-Id: I1f23edb102a77acac1e32f6f0c3ca918de2bb16f
2014-06-10 16:08:06 +01:00
d2d00424c3 coverity#1158151 Unchecked dynamic_cast
Change-Id: I951694fddb12ebf04316063ef1b06c6f2dcb45e9
2014-06-10 16:08:06 +01:00
184a00b962 loplugin: inlinesimplememberfunctions
Change-Id: I42119f656ca528286fb25d2d36c0af54b7d04a6b
2014-06-09 10:10:13 +02:00
c4ac853409 fdo#78860: Swap the logic here: Disable -> Enable.
Because the UNO property logic had been swapped earlier.

Change-Id: I35af3e8cee3c4cbc8da43d7bc478f506048887b0
2014-06-06 11:25:31 -04:00
c4415f16fb coverity#706260 Uncaught exception
Change-Id: Ieef198f6aab05928bf3b77097466eb7ac728481f
2014-05-28 13:49:50 +01:00
209eea5457 chart2: Fix using the last shape
Clicking a shape button works only for the default shape,
not for the last used one.

Steps to reproduce:
1) Click on the drop-down arrow of one of the shape buttons,
   and select a shape. Notice that the button icon updates
   with the last selected shape.
2) Click on another button.
3) Click on the first button, and try to draw something.
   The button doesn't work anymore. Only opening the sub
   toolbar and selecting the shape there will work.

The problem is in ToolboxController::execute that requires
the command to be in the listener map, but we didn't
register sub commands (like .uno:SymbolShapes.sun).
Instead of doing that, we'll try some generic solution.
(Note that calling the corresponding method from
SvxTbxCtlCustomShapes like we do in other methods here
won't work, because ChartController::queryDispatch checks
for the "_self" target, but SfxToolBoxControl::Dispatch
doesn't provide it.)

Change-Id: I5be3dfd3ee3ca9ab9d8080929173dbe5984f61a0
2014-05-27 17:23:35 +03:00
3b24dcc8a8 Remove unnecessary semicolons
A simplified version of the semantic match that finds this problem is
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@r1@
statement S;
position p,p1;
@@
S@p1;@p

@script:python r2@
p << r1.p;
p1 << r1.p1;
@@
if p[0].line != p1[0].line_end:
    cocci.include_match(False)
@@
position r1.p;
@@
-;@p
// </smpl>

Change-Id: Ib9708d37fbb4c6060f88d5dae3814a2d37b2091e
Reviewed-on: https://gerrit.libreoffice.org/9493
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-05-27 01:19:00 -05:00
b09b5f8f7c Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part19
Change-Id: Iab50c52a132c90389992ef68c2d31df95a193ab9
2014-05-22 23:21:18 +02:00
227af32d8c Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part18
Change-Id: Ibf958dbfbf7cdbe6ad31d390138be8d4d468c225
2014-05-20 23:29:53 +02:00
3db8d606d5 hrc and src files: squeeze multiple newlines
for i in `find . -name *.src -or -name *.hrc`; do FILE=$(cat -s "$i"); echo "$FILE" > "$i"; done

Change-Id: I2bac5ad3e1eb3c566e5c867ccf45893a19e1561e
2014-05-19 20:04:22 +02:00
0d8908b359 Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part16
Change-Id: I78b3a0151397d4e69521e6b2451e93ea6e463376
2014-05-18 00:36:10 +02:00
2bd7767d01 Resolves fdo#70681: fixincludeguards.pl: all that's left
Change-Id: I3e51a62710bb46c8255fd228d41d9300c90a1fb5
Reviewed-on: https://gerrit.libreoffice.org/9360
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-05-15 12:50:46 +00:00
36122c2753 Replace auto_ptr with boost::scoped_ptr.
Change-Id: Ibc6d532eff59146d8fbe7dcc7f9155ce6119f474
2014-05-12 19:59:57 -04:00
d1516d488c WaE: private field 'm_bOwnershipIsWellKnown' is not used
Change-Id: Ic4b784cb26f9127fe549f3866cbe53f0d0be0a78
2014-05-12 12:14:03 +03:00
4cbfbf4597 m_bOwnershipIsWellKnown is unused
Change-Id: I4dee9c4ce674249fca590e1c6d86685ed86da885
2014-05-12 09:46:36 +01:00
bd59628620 Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part10
Change-Id: I67acda35fa127547dcea0cd18c9dc16db7c00294
2014-05-11 10:16:42 +02:00