1804 Commits

Author SHA1 Message Date
Caolán McNamara
1b6cefaf68 coverity#706608 Uncaught exception
Change-Id: I26cf7c33089ddfcbb7faf81295b9a9776c6a9065
2014-07-01 10:56:15 +01:00
Miklos Vajna
28177b61a8 error: direct base 'boost::noncopyable' inaccessible due to ambiguity
Change-Id: I3d2d530ebdb3341956e9b7a3c1f22b621a52deff
2014-06-30 20:36:46 +02:00
Caolán McNamara
7af733d9ef tweak assert so comment appears in abort message
Change-Id: Ibf78e5cd1620f0b61cae030e3870be4a6f87e71d
2014-06-27 08:55:56 +01:00
Noel Grandin
e2080e70fe new compilerplugin returnbyref
Find places where we are returning a pointer to something, where we can
be returning a reference.
e.g.
   class A {
     struct X x;
     public X* getX() { return &x; }
   }
which can be:
     public X& getX() { return x; }

Change-Id: I796fd23fd36a18aedf6e36bc28f8fab4f518c6c7
2014-06-24 11:34:21 +02:00
Kohei Yoshida
1d38cb3655 fdo#71076, fdo#71767: Preserve number formats when charts are copied.
Change-Id: If5ae8852152012483237e7602e56a0c46ea8748a
2014-06-19 14:46:56 -04:00
Stephan Bergmann
8e67a7796f Suppress implicit OObjectBase copy ctor
(that would choke on incomplete OPropertyMediator type used in rtl::Reference)

Change-Id: I61dec2847d9ff387dca247d2d554c8f8f3147379
2014-06-18 11:52:30 +02:00
Stephan Bergmann
94546ae88d rtl::Reference fits just fine here
Change-Id: I354b546654e665607d9be0d65f6327fabb5694de
2014-06-18 11:26:34 +02:00
Noel Grandin
3e82897353 improve the inlinesimplememberfunctions clang plugin
Change-Id: I6d5a952901648e01904ef5c37f953c517304d31e
2014-06-17 10:55:17 +02:00
Stephan Bergmann
365fea447d loplugin:staticcall
Change-Id: I0d254902727f6d9c874aaeed7c22096f282422d0
2014-06-13 17:54:30 +02:00
Caolán McNamara
0dc13e9c06 tweak things to allow switching between small and large toolbar icons
Change-Id: Ife4da4c6f4acc3b3f9fde18cdfc09635cf9b6776
2014-06-10 13:23:35 +01:00
Noel Grandin
184a00b962 loplugin: inlinesimplememberfunctions
Change-Id: I42119f656ca528286fb25d2d36c0af54b7d04a6b
2014-06-09 10:10:13 +02:00
Noel Grandin
0e507ae031 various: remove SAL_THROW macro
Change-Id: I9464179a736b91f5bc32eb5e5e89b3b4e3da3494
2014-06-05 08:17:52 +02:00
Stephan Bergmann
89d982ab83 ...and avoid SolarMutex deadlock when joining FactoryLoader threads
Change-Id: I6ae206d18dc03f99739ea20c72853db9662924d2
2014-06-04 23:43:47 +02:00
Stephan Bergmann
faf40b99aa Missing launch of FactoryLoader threads
...regression introduced with 06a09dd0ad1e8afcf69e877501036e068d477438 "Join
FactoryLoader threads."  (Also, hopefully, the original use of
osl::Thread::setPriority was just cargo cult, as salhelper::Thread does not make
that feature available to clients, so it had been dropped in
06a09dd0ad1e8afcf69e877501036e068d477438.)

Change-Id: I055c8fb20f3bbf13ba823436be24167d3446ed05
2014-06-04 23:34:33 +02:00
Stephan Bergmann
10ec4a7cb2 Left over "SAL_CALL"
Change-Id: I02cf4b4a145e29dc1bc529f0c0fbfbc4a6cdc47e
2014-06-04 14:16:59 +02:00
Stephan Bergmann
06a09dd0ad Join FactoryLoader threads
Change-Id: I22b313a895057edebc8bee715813de908826763a
2014-06-04 11:25:27 +02:00
Caolán McNamara
abe5aaa726 coverity#706505 Uncaught exception
Change-Id: Ia00361fb1d86223a7ed65f0be295b291183e3ad6
2014-05-28 13:49:51 +01:00
Maxim Monastirsky
426033250d reportdesign: Fix applying the last used color
The last used color is stored inside
SvxColorToolBoxControl, so we must call its Select method
to do that. (This also fixes using the last shape, See
commit ce842113ae728e8995c7c5398204a20d0707e843 for a
fix of exactly the same problem in chart2.)

For the font color, there was also another problem:
The SID used for that button is SID_ATTR_CHAR_COLOR2.
The problem is that SvxColorToolBoxControl::Select
actually calls for that SID the ".uno:CharColorExt"
command instead of ".uno:FontColor" (which activates
in writer the format paintbrush mode). Given that since
commit 584b415924bba22db23a4258062e54973de0ed7c this
command also receives the last used color as argument,
the easiest solution is to register ".uno:CharColorExt"
here as well.

Change-Id: I2db25a7fb537ce10dfec7b1c2d049dd77d9f8f6b
2014-05-27 17:23:36 +03:00
Lionel Elie Mamane
7b8e9ea4f9 fdo#67937 "print on group change" defaults to TRUE
Thus it needs to be saved when it is *false*.

Change-Id: I01bae547afe71ede12fb852c1a9040b7e45bf7b9
Reviewed-on: https://gerrit.libreoffice.org/9502
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
Tested-by: Lionel Elie Mamane <lionel@mamane.lu>
2014-05-27 05:46:51 -05:00
Lionel Elie Mamane
3a99c2f91e OXMLSubDocument: copy PrintWhenGroupChange, too
Change-Id: If6a5d9a50f5d600b96faebc51b9798a8e63eec49
Reviewed-on: https://gerrit.libreoffice.org/9501
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
Tested-by: Lionel Elie Mamane <lionel@mamane.lu>
2014-05-27 05:45:39 -05:00
Noel Grandin
9b791f9c31 remove unnecessary use of OUString constructor when throwing
Change-Id: I4a3f3f911dcfbf88696053215a2fb7a94678244c
2014-05-27 08:20:11 +02:00
Caolán McNamara
8ce3c6f7c3 coverity#704659 Unchecked dynamic_cast
Change-Id: I773351290293b1e54f6e983852baf6ffd2fc3e05
2014-05-26 15:52:00 +01:00
Maxim Monastirsky
16ba360f2a reportdesign: Update shape buttons with sub toolbar selection
Change-Id: Ie39f1005182da118475fdf9c4e463bfb902d4446
2014-05-25 10:42:44 +03:00
Julien Nabet
ac76cc7e60 Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part20
Change-Id: If87cdfb2c605254f6d69baa4ca5aec09091caa68
2014-05-23 22:11:52 +02:00
Caolán McNamara
787d41c26d coverity#1215313 Uncaught exception
Change-Id: I22cd98a35c6c638e3476d54b742762d8a2dfa7fa
2014-05-23 08:54:37 +01:00
Thomas Arnhold
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
Chris Laplante
3c1e30b77d Correct common misspellings, and remove some ASCII art along the way.
Change-Id: I42787db31769e8bde984c5f4f0aa90335e889b1c
Reviewed-on: https://gerrit.libreoffice.org/9356
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
2014-05-17 12:38:38 +00:00
Julien Nabet
f62de9113a Comment why it's not a copy paste error
See http://nabble.documentfoundation.org/Question-unoType-for-getXmlToken-dbaccess-reportdesign-module-td4109071.html
Thank you Lionel!

Change-Id: I999bad0d6de0327bea7ba04a6c61a497d45f53a0
2014-05-17 09:37:35 +02:00
Julien Nabet
c288b17cc5 Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part12
Change-Id: I7c514b7a1d86f52d77672b826b1f08b825fd7aa7
2014-05-14 23:18:57 +02:00
Thomas Arnhold
c12998c9d3 update_pch: add reportdesign
3m44s reduced to 53s...

Change-Id: I9a7601e4cb23430b850fe4303e7da877ab1d63e2
2014-05-14 22:35:50 +02:00
Thomas Arnhold
4185015225 fix-includes.pl: reportdesign
Change-Id: I01ad1f4c3a8e0ee8173ceb147ce20945b7d5433d
2014-05-14 22:35:50 +02:00
Maxim Monastirsky
584b415924 Keep only one class for toolbox color controls
instead of 5 (mostly identical) classes.

Also the following bugs were fixed:

* All pickers now use split buttons. (fdo#45671)
* Color palette now indicates the current color. (fdo#73891)
  (Previous changes related to that bug are reverted as part
  of this commit.)
* Selecting a color from a float panel now updates the
  button. (fdo#77683)
* For Font color/background color in Writer, the color
  that is shown on the button, is always the one that's
  actually used. (Can be a different color after hiding
  the toolbar.)
* For Font color/background color in Writer, the button
  now indicates when we're in the format paintbrush mode.
  (Removed in 085e8a07e61ef2d3a82e11094d8773ab17cfdb3c
  for some reason.)

Change-Id: Idb4829552240c52fb0882aca627c8177bbe2f839
2014-05-14 12:39:42 +03:00
Julien Nabet
036a660a86 Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part11
Change-Id: Ibe0a1006aba2b6cbd87c0bd6ca3acbf9ba7b0fbe
2014-05-13 23:20:26 +02:00
Julien Nabet
a4d30abf39 Fix previous commit (reportdesign part, following)
Change-Id: Ib55bdc21fa6081c55777465115538905c1cab5e0
2014-05-11 11:47:08 +02:00
Julien Nabet
7347a8ed38 Fix previous commit (reportdesign part)
Change-Id: I490326abccac237bd70209d2a3dd623ebd5c59a2
2014-05-11 11:42:01 +02:00
Julien Nabet
bd59628620 Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part10
Change-Id: I67acda35fa127547dcea0cd18c9dc16db7c00294
2014-05-11 10:16:42 +02:00
Julien Nabet
fa51b55680 Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part9
Change-Id: I82ed4a4868cb22566706ca0f4b1321e0d45016cf
2014-05-10 23:54:07 +02:00
Thomas Arnhold
dcee245d88 typos
Change-Id: I2e7676ddec446dfdb72018a1039d6271f963376c
2014-05-08 18:29:23 +02:00
Noel Grandin
2d54aa1d22 reportdesign: sal_Bool->bool
Change-Id: Ib3e7a51a8b01165d4706857f7b347d622c2e624a
2014-05-08 11:48:12 +02:00
Noel Grandin
ff1a7a5943 RFC: add IsValueChangedFromSaved to VCL button and listbox
Add a method
   bool IsValueChangedFromSaved()
to the various Button and Listbox classes.
Use it to simplify code like
   if ( maBoldAppFont.GetSavedValue() !=
        TriState(maBoldAppFont.IsChecked()) )
to
   if ( maBoldAppFont.IsValueChangedFromSaved() )

Change-Id: I26b291d0980237497063ee301d63a49c7d2bc227
Reviewed-on: https://gerrit.libreoffice.org/9250
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-05-08 09:19:25 +00:00
Stephan Bergmann
93f5d5a919 The opaque PostUserEvent IDs are actually pointers
...so declare them as such.  This avoids the recurring mistake of storing such
IDs as sal_uInt32, truncating in 64 bit environments, causing RemoveUserEvent to
potentially not remove the event, it thus firing "too late" and probably causing
a crash.

While at it, consolidate the trivially unnecessary overloads of both
Application::PostUserEvent and Window::PostUserEvent.  And in each of them, it
looks like deleting the mpLink member was missing from the failure branch.

Change-Id: Iab13afbb06e12ac15dec6a6b5b85a7e402a3c654
2014-05-07 11:49:46 +02:00
Thomas Arnhold
e76dfa6381 remove uncompiled source files
Change-Id: I0c581bb48f101a84d0f0c4ceb7b064cff0d509d6
2014-05-06 21:55:10 +02:00
Noel Grandin
e23c98d713 reportdesign: sal_Bool->bool
Change-Id: I7a269dbf163f4c839b6c553c7b096185fe2f8a01
2014-05-02 08:49:23 +02:00
Caolán McNamara
2472da5ef6 coverity#1210196 Uninitialized pointer field
Change-Id: Ib6add605efa2588ac357185687b22c2a6b8863ca
2014-04-29 11:39:30 +01:00
Caolán McNamara
9b8fd6df0e coverity#1210201 Uninitialized pointer field
Change-Id: I94c4853524eea306dd53a7a747f94735e0be0752
2014-04-29 11:39:29 +01:00
Thomas Arnhold
702f9c5176 huge hrc and src file cleanup
* mostly fallout from ui conversion
* some completely unused defines from src files
* lots of unused HID ids

Change-Id: I976561205798db3d06ee139de6223f638e58f47a
Reviewed-on: https://gerrit.libreoffice.org/9142
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
2014-04-23 22:49:57 +00:00
Thomas Arnhold
40064f479b clean up hrc files
and remove some unused stuff

Change-Id: Iea6177c3d2f9d0668187e66155b62688ae2ecb04
2014-04-22 13:03:17 +02:00
Thomas Arnhold
97a5ba4a71 remove comments why a file gets included
also remove some commented out code

Change-Id: Ia80c5c57d8d2a74418032de50eee95642cc0969d
2014-04-21 18:08:28 +02:00
Thomas Arnhold
436f9d16c4 fixincludeguards.sh: reportdesign 2014-04-19 11:10:09 +02:00
Chris Sherlock
52f296ac1a Remove gcc3 workaround for bug long since fixed in gcc
Change-Id: Ieb1c41481a79ab8713663caee3d5373640ff0ec8
Reviewed-on: https://gerrit.libreoffice.org/9102
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2014-04-19 05:39:01 +00:00