Commit Graph

766 Commits

Author SHA1 Message Date
30ae83c268 fdo#82577: Handle KeyCode
Put the VCL KeyCode class in the vcl namespace. Avoids clash with the X11
KeyCode typedef.

Change-Id: I624c9d937f7c5f5986d313b6c5f060bd8bb7e028
2014-08-23 22:33:30 +03:00
4b339818bb add a VclViewport
like GtkViewport so that the scrolled region will be clipped,
which also has the side-effect of stopping glade clobbering
the non view-port scrolled .ui files on editing

Change-Id: Ic64174b3a35b77f068e0085cdc7721aeb33f1d82
2014-08-20 14:00:58 +01:00
47e2fd0dc8 Consistently use size_t and SAL_MAX_SIZE
Change-Id: Ibab89984ec94556ec368653b6db50c6c2e380dec
2014-08-16 21:52:32 +02:00
384cb5ff7b Consistently use size_t and SAL_MAX_SIZE
Instead of a mix of sal_uIntPtr, sal_uLong, int, and so on.
Also change CONTAINER_ENTRY_NOTFOUND=ULONG_MAX to SAL_MAX_SIZE as
return value in case of failure and in the related tests.

Change-Id: Ie778a849253b4be84fbcdab9557b7c4240233927
2014-08-16 21:52:28 +02:00
2bdefe6d83 warning C4706: assignment within conditional expression
Change-Id: I4295cf0a26a79848988d93df589e6e8e7d699989
2014-08-13 10:10:53 +02:00
1c5c0e48a3 remove unused resources
Change-Id: Ifdb5ab9f2a0a59d3ca31ca1fa5112449e1a6aa11
2014-08-09 18:12:14 +02:00
d916726456 CondFormat.hrc: remove unused resources
Change-Id: I1a1c099a9da38038e52673ad0f8e899a4b54eb59
2014-08-09 18:12:12 +02:00
151fbebf8c Consistency around SdrOnOffItem in svx/sdtagitm.hxx
...similar to what has been done for svx/sdtmfitm.hxx in
6a2ea81ca1622d2c2ad55bea8ddc28167fcc2794 "Remove unused ctors" and
68969cc61adecac481ae9656978ef952f435b310 "Consistency around SdrMetricItem."

Change-Id: I6d8b3709d6d55bd6958d38f262141c43779dfdcc
2014-08-04 19:22:55 +02:00
20f6cf0377 Massive 'Dialogdiet fail' and similar to 'Dialog creation failed'
Change-Id: I6ca6914e80c186699df42253de46a3690c5130f2
2014-07-26 14:25:33 +02:00
6a873638fa Renamed brdcst.[hc]xx to SfxBroadcaster.[hc]xx
- Remove includes from files where they are not needed.
- Update pch files

Change-Id: I0188e3934ef429008c1ef495ab1d5b27f38664d5
Reviewed-on: https://gerrit.libreoffice.org/10342
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-07-17 08:47:58 +00:00
aa9aff1483 -Werror,-Wunused-private-field
Change-Id: I9d540c2a404600bba038853d73d0cce63f162ea2
2014-07-09 08:14:30 +02:00
65f12c0e16 hook up scrolling
Change-Id: Iaf30a41dcc74e4542d3df60ca26354876badc81f
2014-07-08 16:14:46 +01:00
554a613172 Convert RID_CONDFORMAT to .ui
Change-Id: I23ac6a7328a43c2fb63f2f804f6718f64e73eb8e
2014-07-08 16:14:45 +01:00
4228f08d60 use assert when followed by deref
Change-Id: I8405e4d8f9fa1de3ef6ee474321b4ac2b4ce1624
2014-07-03 12:49:38 +01:00
28177b61a8 error: direct base 'boost::noncopyable' inaccessible due to ambiguity
Change-Id: I3d2d530ebdb3341956e9b7a3c1f22b621a52deff
2014-06-30 20:36:46 +02:00
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
1d38cb3655 fdo#71076, fdo#71767: Preserve number formats when charts are copied.
Change-Id: If5ae8852152012483237e7602e56a0c46ea8748a
2014-06-19 14:46:56 -04:00
94546ae88d rtl::Reference fits just fine here
Change-Id: I354b546654e665607d9be0d65f6327fabb5694de
2014-06-18 11:26:34 +02:00
3e82897353 improve the inlinesimplememberfunctions clang plugin
Change-Id: I6d5a952901648e01904ef5c37f953c517304d31e
2014-06-17 10:55:17 +02:00
365fea447d loplugin:staticcall
Change-Id: I0d254902727f6d9c874aaeed7c22096f282422d0
2014-06-13 17:54:30 +02:00
0dc13e9c06 tweak things to allow switching between small and large toolbar icons
Change-Id: Ife4da4c6f4acc3b3f9fde18cdfc09635cf9b6776
2014-06-10 13:23:35 +01:00
184a00b962 loplugin: inlinesimplememberfunctions
Change-Id: I42119f656ca528286fb25d2d36c0af54b7d04a6b
2014-06-09 10:10:13 +02:00
0e507ae031 various: remove SAL_THROW macro
Change-Id: I9464179a736b91f5bc32eb5e5e89b3b4e3da3494
2014-06-05 08:17:52 +02:00
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
8ce3c6f7c3 coverity#704659 Unchecked dynamic_cast
Change-Id: I773351290293b1e54f6e983852baf6ffd2fc3e05
2014-05-26 15:52:00 +01:00
16ba360f2a reportdesign: Update shape buttons with sub toolbar selection
Change-Id: Ie39f1005182da118475fdf9c4e463bfb902d4446
2014-05-25 10:42:44 +03:00
ac76cc7e60 Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part20
Change-Id: If87cdfb2c605254f6d69baa4ca5aec09091caa68
2014-05-23 22:11:52 +02:00
787d41c26d coverity#1215313 Uncaught exception
Change-Id: I22cd98a35c6c638e3476d54b742762d8a2dfa7fa
2014-05-23 08:54:37 +01: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
c12998c9d3 update_pch: add reportdesign
3m44s reduced to 53s...

Change-Id: I9a7601e4cb23430b850fe4303e7da877ab1d63e2
2014-05-14 22:35:50 +02:00
4185015225 fix-includes.pl: reportdesign
Change-Id: I01ad1f4c3a8e0ee8173ceb147ce20945b7d5433d
2014-05-14 22:35:50 +02:00
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
a4d30abf39 Fix previous commit (reportdesign part, following)
Change-Id: Ib55bdc21fa6081c55777465115538905c1cab5e0
2014-05-11 11:47:08 +02:00
bd59628620 Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part10
Change-Id: I67acda35fa127547dcea0cd18c9dc16db7c00294
2014-05-11 10:16:42 +02:00
fa51b55680 Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part9
Change-Id: I82ed4a4868cb22566706ca0f4b1321e0d45016cf
2014-05-10 23:54:07 +02:00
dcee245d88 typos
Change-Id: I2e7676ddec446dfdb72018a1039d6271f963376c
2014-05-08 18:29:23 +02:00
2d54aa1d22 reportdesign: sal_Bool->bool
Change-Id: Ib3e7a51a8b01165d4706857f7b347d622c2e624a
2014-05-08 11:48:12 +02:00
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
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
e76dfa6381 remove uncompiled source files
Change-Id: I0c581bb48f101a84d0f0c4ceb7b064cff0d509d6
2014-05-06 21:55:10 +02:00
e23c98d713 reportdesign: sal_Bool->bool
Change-Id: I7a269dbf163f4c839b6c553c7b096185fe2f8a01
2014-05-02 08:49:23 +02:00
2472da5ef6 coverity#1210196 Uninitialized pointer field
Change-Id: Ib6add605efa2588ac357185687b22c2a6b8863ca
2014-04-29 11:39:30 +01:00
9b8fd6df0e coverity#1210201 Uninitialized pointer field
Change-Id: I94c4853524eea306dd53a7a747f94735e0be0752
2014-04-29 11:39:29 +01:00
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
40064f479b clean up hrc files
and remove some unused stuff

Change-Id: Iea6177c3d2f9d0668187e66155b62688ae2ecb04
2014-04-22 13:03:17 +02:00
436f9d16c4 fixincludeguards.sh: reportdesign 2014-04-19 11:10:09 +02:00
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
6bb7fa8df5 fdo#76294: Fix the build.
Change-Id: I123751e9f08faaccc06649c2f8b29a9a33548312
2014-04-14 18:57:06 -04:00
a640be7e2d Clean up function declarations and some unused functions
Change-Id: I367acc372d6b5996430a2c560e776a469b7e0007
2014-04-14 14:21:50 +02:00
b8239ac2f9 typo: noone -> no one 2014-04-14 12:32:54 +02:00