Commit Graph

1155 Commits

Author SHA1 Message Date
f6c0803e99 itemdel.[ch]xx is only used in sfx2
Change-Id: I240f15f87e27ba8a52bab244f8c784d527bff179
2014-08-26 13:34:04 +02:00
fe9f8144c7 move method documentation to the header file
Change-Id: I7d4f77c50a8b6b2b0d7c0868c73b0cb13f952421
2014-08-26 13:34:03 +02:00
9970fb3cec remove whitespace and put comment before method
Change-Id: Ia3f22787a07628b1b531c61f21d345def5f6e99d
2014-08-26 13:34:03 +02:00
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
2ccfaafb3e warning C4245: '=' : conversion from 'int' to 'sal_uInt32'...
...signed/unsigned mismatch

Change-Id: I852ddf97dd1749e409baf74d9af72ec459f574ee
2014-08-13 10:10:48 +02:00
b866f86191 qsort and bsearch need different kinds of callback functions
Change-Id: I4a661434c3a51169ec14336bb39a1d2ceeb139ad
2014-08-08 17:43:01 +02:00
2568a0bb72 hidpi, startcenter: Don't set fixed font heigt in the startcenter.
Change-Id: I68efbd08d21b514ab1659cd6bddfc2c4788c4a74
2014-08-01 15:25:02 +02:00
3108a3dd38 sfx2: remove another DBG macro that arose from the grave
The callers in dispatch.cxx use methods that were removed by commit
a1ce4fb4f0dbc3c4141f510e5b2b732a24d862c8 - not sure if this warning is
useful or not.

Change-Id: I8bb654de8e26c054318dd2037055a85d013c8bfa
2014-07-24 14:11:40 +02:00
88a874fcb3 convert SfxItemState constants to a proper enum
and while we're at it
- use the enum type all over the place instead of passing around
sal_uInt16
- don't use bitwise logic on enum values
- use enum values instead of numeric constants

Change-Id: I7f24cb4d242e1c00703e7bbcf1a00c18ef1e9fd4
2014-07-23 13:26:19 +02:00
c1dd91a93c callcatcher: update unused code
Change-Id: I1dd1b40d807c7c9d9b145aca9f69a67d786ec5ff
2014-07-22 09:54:38 +01:00
8416a65af1 fix spelling structur -> structure
Change-Id: I7aa4a9bf72732db95a67cee368f3a83a0d71bb9c
2014-07-17 14:49:41 +02:00
50a402b3c2 coverity#708816 Unused pointer value
Change-Id: I2ea7d4a8b142d67afa43ce165b51d81f65d251de
2014-07-03 12:49:40 +01:00
430484932e Typo: beeing->being
Change-Id: I34937e400ac8576154d33e1e11b80690222f532c
2014-06-29 13:15:51 +02:00
d92aa2f445 remove SFX_APP() macro that was a mer wrapper for SfxGetApp()
Change-Id: I480a789c767dd671775c9d70d96bf71908f21f5b
2014-06-27 17:08:04 +02:00
0de1e3a015 remove spurious com::sun::chaos
Apparently some time before inital CVS import a global
search-and-replace went horribly wrong and added spurious namespace
prefixes everywhere.

Change-Id: I4009bc3ab4b1d4c80412f75ad0e4628a382f99f0
2014-06-25 15:04:46 +02:00
3e82897353 improve the inlinesimplememberfunctions clang plugin
Change-Id: I6d5a952901648e01904ef5c37f953c517304d31e
2014-06-17 10:55:17 +02:00
7c2f000085 loplugin:staticcall
Change-Id: Ie5e9e21f4c592c58094afc954f1de54512719fd5
2014-06-13 17:54:32 +02:00
184a00b962 loplugin: inlinesimplememberfunctions
Change-Id: I42119f656ca528286fb25d2d36c0af54b7d04a6b
2014-06-09 10:10:13 +02:00
2484cda486 coverity#1000658 Missing break in switch, assuming its intentional
Change-Id: Id208942e98c8b8fc685aa77c3c11468ed2af832d
2014-06-05 13:35:53 +01:00
cc93bcf751 coverity#982646 Missing break in switch
Change-Id: I83cdafe9a27f026e2b6c8e9153de9e8270304686
2014-06-04 12:34:16 +01:00
da6df38b41 Related: fdo#79392 std::out_or_range -> terminate
Change-Id: I0aada90e9ea4e9fc92fd9c365aa9c7171cb10a55
2014-05-29 11:02:46 +01: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
435c1b15dc fdo#78782 startcenter: open document on enter key
Change-Id: I501dbd6a0f4e5323a003afbb19707aad67897cd0
2014-05-17 21:56:17 +03:00
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
0c53ccd11f Fix warning
Change-Id: I90187024bc599f66bb99295ed342e106080adeb7
2014-05-14 22:58:16 +03:00
ed1d0f0c45 fix build
Change-Id: I40b7f9388388e05ab5b034ac81861aa34a23d2a8
2014-05-14 22:46:33 +03:00
f22d651487 startcenter: another attempt to fix mouse up issues
see commits
1a2a961c1e7cdef648c28e211433e8de6e8a831b
4a902e0c59b0dd01e6459c226268bdee4f15489a

Change-Id: I94b90dfc5db779317d4dda1171aeceeac6373548
2014-05-14 22:32:19 +03:00
4a902e0c59 Revert "startcenter: react on mouse down instead"
This reverts commit 1a2a961c1e7cdef648c28e211433e8de6e8a831b.

As suggested by Kendy, opening with a single click
by mouse up is more natural. We need to find a better
solution for the bug mentioned in the above commit.
2014-05-14 16:30:49 +03:00
248145f99e Find places where uno::Sequence is passed by value.
Implement a clang plugin to find them, and clean up existing code
to pass them by reference.

Change-Id: If642d87407c73346d9c0164b9fc77c5c3c4354b8
Reviewed-on: https://gerrit.libreoffice.org/9351
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-05-14 08:10:22 +00:00
21010f3ea7 Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part4
Change-Id: I8e52c2fd66f8f3291434ee82a745431e11b12caf
2014-05-06 23:25:42 +02:00
db3b1dd86e Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part3
Change-Id: Ibabd6d2d5e84fe007364bd1a4182a01ea2352b7a
2014-05-06 22:51:42 +02:00
f69e74d1a0 Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part2 + fix some errors
Change-Id: I9c889d718a9c91eb4c2bde2389a21dd754cbef36
2014-05-06 21:33:28 +02:00
5e80dd672f Move a few more headers that are included only in sfx2 to sfx2
Change-Id: I8bd81a45f5ef1b76fce1563b06e05a4eefcff0ec
2014-05-06 15:01:31 +03:00
1567853a82 Remove C11ism
Change-Id: Id5ae0cf42aa8d6ed464eb1149ebdd172a284a75f
2014-05-06 07:35:44 +02:00
ebd4986c34 Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part2
Change-Id: Ibca921eff3647507ffb7e9011a84aeefbec58d7a
2014-05-05 23:24:49 +02:00
fb0ca7eff0 fdo#76261 Get rid of unneeded and malfunctioning maItemListRect.
maItemListRect serves as a sort of bounding box for what items /could/
be visible on screen, however it is only used for determining the id
of an item we have just clicked on -- given that we already know that
we are clicking inside the visible area this is an unnecessary check.

In fact this check is erronous as we no longer limit ourselves to "whole"
rows as of 806919adf9c9bafbaba92c2d2ab35d2e2f9863f8 -- i.e. the previous
assumption was that a view large enough for n rows will show precisely
n (whole) rows, whereas we might be showing (n-1) complete rows, and a
fraction of a row at the top and bottom of the screen, i.e. a total of
n+1 rows, where maItemRect only encloses the top n rows, meaning we
were erronously ignoring clicks on the (partly visible) lowest n+1 row.

Change-Id: Ia52ed2e0d217a9f077cef86ee9c1847252844995
2014-05-05 20:52:21 +01:00
1a2a961c1e startcenter: react on mouse down instead
There is a good reason for that: File lists of
some file pickers handle double click event on
mouse down. So if a start center thumbnail is
exactly behind the file on which the user double-
clicked, it will receive the mouse up event, and
will also open.

Change-Id: I9fc9ceff0874d0486d5b568c9b35143c8d8aabf8
2014-05-05 22:22:39 +03:00
7b3ff3882d Fix one more ambiguity error
Change-Id: I123f536b4dcfd34932d639ebe287ef993b90fddb
2014-04-27 13:07:25 +02:00
2b4f2541e7 Fix ambiguity error
Change-Id: I228393b1e41d5f7d6dc0e24e0bbc21a46952287d
2014-04-27 12:52:34 +02:00
60cd850d67 startcenter: Add possibility to selectively remove recent documents.
Change-Id: Id0c20de6dc3375e64dd3dbef34dcd6eb77f02340
2014-04-27 01:30:51 +02:00
b6e6e1fa66 More consistent whitespace here.
Change-Id: I74f98f675ff0e1cdfdecd28833ad91cb008232a0
2014-04-27 01:24:19 +02: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
29d5ce2d88 sfx2: Move InitInterface_Impl() out of SFX_DECL_INTERFACE too.
Change-Id: Ib737e0d1b5888986b308aa60d4140f65e4e90243
2014-04-18 22:51:06 +02:00
12c0d40f82 coverity#1202784 Division or modulo by zero
Change-Id: I982b72abd92584b9ed97de593c17f2cf0b8b3667
2014-04-18 12:21:43 +01:00
717aa1ac75 fdo#72287 Scroll automatically to show selected item when keyboard used.
806919adf9c9bafbaba92c2d2ab35d2e2f9863f8 added finer-grained scrolling using
the scrollbar / scrollwheel, but inadvertently prevents the display from scrolling
when an item is selected that is currently offscreen (e.g. by using the down-arrow
button on the keyboard).

Change-Id: Iaa3a7dc6d214741d37cf4ec78c00ed0034ed1e42
2014-04-15 19:55:57 +01:00
8fbbd1bd98 fix hacked bool in SfxDispatcher::SetSlotFilter
The bEnable flag was being passed an extra value.
Make this explicit now using an enum.

Change-Id: I292aca44e8592c9f3c1497c24c41140c8c3b5452
2014-04-15 09:02:32 +02:00
4e0129e799 coverity#708157 Uninitialized scalar field
Change-Id: I9d798c8b6472241dc7d16e3d7b52653ad0d76654
2014-04-11 11:21:12 +01:00
39ae696f1e unused bInAppBASIC member
Change-Id: If7adfb573e4a7605953a2561fd280a5bc22b02fd
2014-04-11 11:21:12 +01:00
578cd010f5 Use valid UNOIDL identifiers in css.frame.Status.ItemState
These are present since OOo 2.0, but are unpublished and appear to be rarely
used, so changing them is hopefully OK.

Change-Id: I144eceb074cfdd91777f4c940cbfbc0dd73d4347
2014-04-11 08:41:09 +02:00
1d25e1de0b Clean up function declarations and some unused functions
Change-Id: I9d6e9df0b686c61597aaa0e194ab321445671a20
2014-04-10 09:31:46 +02:00