Commit Graph

5767 Commits

Author SHA1 Message Date
f630f9598f tdf#90258 Toggle Thousand Separator with Engineering Notation
If scientific format is selected, "Thousands separator" option is almost
useless. It could be replaced by "Engineering Notation".

Rebase of https://gerrit.libreoffice.org/15152
Update with more robust tests.

Change-Id: Ie2b88b1f149fce26c32a43ace623cf1f45f38e6e
Reviewed-on: https://gerrit.libreoffice.org/15606
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2015-05-06 10:45:50 +00:00
27d94c482e color bar doesn't fill tool item
since

commit b8f21298288890d52c06fef6c84441634c56c986
Author: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>
Date:   Mon Mar 2 20:57:32 2015 +0900

the color bar is always drawn under the icon and doesn't
get drawn to the right and fill all the empty space of
the tool item, e.g. in impress see the new toolbar color
selector

Change-Id: Ib70fec9c933b9d743e67475899938a5d9f405496
2015-05-06 10:27:18 +01:00
fa405087c6 Add comments about ImplFontAttrs
Change-Id: I32d8b8f4301188245721d31fd234bb1784a1ae8d
2015-05-06 12:14:25 +03:00
35a185e8e1 Doxygenize comments.
Change-Id: I2a54f0c2694bb069478a8c8764a1789a377b4c0a
2015-05-06 09:56:30 +02:00
662fc8eaa9 convert BMP_MIRROR constants to scoped enum
and fix bug in svx/source/xoutdev/_xoutbmp.cxx,XOutBitmap::MirrorGraphic
where it was not correctly translating between different flags types.

Change-Id: I78b4965544da2aa54b67ec18307fa54c8ffc3aee
2015-05-06 09:01:31 +02:00
b13fbd19b7 convert BMP_SCALE constant to scoped enum
Change-Id: Ibc9f88d2588c028cd71aa86c26d970a73025ef22
2015-05-06 09:01:30 +02:00
ba121a3269 convert USER_OPT constants to scoped enum
Change-Id: I85a1c9f89ac79e0e54fcd8dfd1908325fae9a8ac
2015-05-06 09:01:29 +02:00
bfcb2a1a75 convert DEFAULTFONT_ constants to scoped enum
Change-Id: Ia33e957f6cf530e2639b3c86d9482f642652cb46
2015-05-06 09:01:29 +02:00
9b37c2176e convert SUBSFONT_ to scoped enum
Change-Id: Ic66191ac4cdfa753dc784e7bd1a6dd20f50def6b
2015-05-06 09:01:28 +02:00
78706545a6 convert FONTTOSUBSFONT constants to scoped enum
Change-Id: I994bfc76d709d01406404991dbfbd49b15bd03f4
2015-05-06 09:01:27 +02:00
60e659ae35 convert IMPL_FONT_ATTR constants to scoped enum
Change-Id: I2b5986ea69dc09e6ba18b23a80029f6551b48152
2015-05-06 09:01:27 +02:00
96471119f0 convert CVC_ flags to scoped enum
Change-Id: Iadc9b6240121e9fee91de299b94a9f8629656507
2015-05-06 09:01:26 +02:00
b35828ba7d convert CONFIG_MODE constants to scoped enum
Change-Id: I1b0fb976e7bf8d7de06da0c30012e8bba1320498
2015-05-06 09:01:26 +02:00
c8fdfc39eb Use typed ToolBox::SetDeactivateHdl Link
Change-Id: Ia2521b000e962a0cc461a54f73b5c97bbe34a602
2015-05-06 08:20:56 +02:00
8ff3a90d3c Use typed ToolBox::SetActivateHdl Link
Change-Id: I15044bd9ea94562c1d4727f64aa0b32543e0cc0a
2015-05-06 08:20:56 +02:00
b515d1f36f Use various typed ToolBox::Set*Hdl Links
Change-Id: Iddfd36ae0de86fdd2d4febb2c05d1fe0c02801f0
2015-05-06 08:20:55 +02:00
111952dccc fdo#77985 make calc function NETWORKDAYS comply with ODFF1.2
Change-Id: I523b0c71bc0fed501a4d5fffd75c5a4704f6dd13
Reviewed-on: https://gerrit.libreoffice.org/9827
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2015-05-05 19:15:15 +00:00
8c73b6eeb8 vertically center toolbox/listboxes
Change-Id: I01270b85e019362e8343f4b097620620674f0443
2015-05-05 17:21:58 +01:00
8caebf50b3 Use new color selector in the toolbar for area fills
Change-Id: I4da718620f4864c1c7742ecb9a0fcb8fc787f573
2015-05-05 17:21:58 +01:00
1c6d21d017 these are not used in this .hxx
Change-Id: I81bffed8f47849bb1289cdcef4fa10a332a1c86c
2015-05-05 17:21:58 +01:00
8fca0c44e8 vcl: rename other members of StateChangedType for consistency
Change-Id: Ifd3339813e5d3dfb54566fd226aaf2d2a199d59a
2015-05-05 15:51:11 +02:00
f24590521c vcl: remove WIN32_TRANSPARENT
Change-Id: I164106e89cf910c2f9fa6815b23f58ad6c6ee789
2015-05-05 15:51:11 +02:00
c724eebbae vcl: rename conflicting defintion of TRANSPARENT remove it from postwin.h
Change-Id: I3b4e25c27593e3a61612a96baa2a4378542d151c
2015-05-05 15:51:10 +02:00
e4f10cb0e1 Avoid redefine of TRANSPARENT on solaris after including stream.h
Change-Id: I90611a4855320148f1d4b6e61a420ada47308c28
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2015-05-05 15:51:05 +02:00
f7b3b805b9 -Werror,-Winconsistent-missing-override
Change-Id: Ibd9d3858f833c24f38f982a941353204d9aa9081
2015-05-05 12:22:53 +02:00
c9b4c56811 Use typed Idle::SetIdleHdl Link
Change-Id: I189937950325dc4ef663f7f49cb45f38f8537de9
2015-05-05 12:05:38 +02:00
80a38d2991 tdf#34555 add crop features to svx
Adds crop feature to SdrObject. In EndSdrDrag related to Crop, there is
a new branch. If object is a regular SdrGrafObj (known inside svx), it
is used. Else, a virtual method on the object is used. This enables to
forward End of crop action to SwVirtFlyDrawObj objects (when you crop
with handles in writer).
Regarding writer, coordinates based on Twip/MM100 are used, not the
matrix based one.

This is part of a serie of 4 patches that adds Save graphic, Change Picture,
Edit with external tool, Crop (by handles) in all products (scalc,
sdraw, simpress, swriter).
Main menus, toolbars and contextual menus are updated accordingly.


Change-Id: Ie1a133d18487f51bb9c44ae2f000e63d911bf6b3
Reviewed-on: https://gerrit.libreoffice.org/15588
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2015-05-05 10:03:29 +00:00
8cafd08278 Use typed Timer::SetTimeoutHdl Link
Change-Id: Iaaf0c93e5b28c0f7dbe4f02eda8beeae30708100
2015-05-05 10:21:54 +02:00
01c2626107 loplugin:staticmethods
Change-Id: Ib765ce5a61916b0598ebb42cb9445a5f09c8d37f
2015-05-05 09:30:40 +02:00
add1351e59 loplugin:staticmethods
Change-Id: Ie6867e04156f40cacee275d5bbf3d63ac4965b30
2015-05-05 09:30:39 +02:00
f304a7a14a loplugin:staticmethods
Change-Id: I384a5e60f4b7b2f479c89ef97630519059ab720f
2015-05-05 09:30:39 +02:00
d3b5038cbb loplugin:staticmethods
Change-Id: Iea68c4e466dd8e1cb7164959a680e5e52542166b
2015-05-05 09:30:39 +02:00
f62af191bf typo: strech -> stretch
Change-Id: I0de1cfaa0df460c7bc8e49752b31056f95c30053
Reviewed-on: https://gerrit.libreoffice.org/15628
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2015-05-05 07:25:21 +00:00
b95427196e Use typed TabControl::SetDeactivatePageHdl Link
Change-Id: I487aad5217cb685ece971717445a68b4fb3d2b3a
2015-05-04 17:54:51 +02:00
10d55afd40 sal: match the defintions of SAL_MAX_SIZE and sal_Size
With 64-bit MSVC, sizeof(long) is 4 but sizeof(void*) is 8, so this
would select sal_uInt64 but SAL_MAX_UINT32.

This should make sizeof(sal_Size) the same as sizeof(size_t) on all
supported platforms, but still sal_Size maps to different integer
type (long vs. int) than size_t on 32-bit.

Change-Id: I638aac6b502e624ed6b01f5921e20bc40f42480c
2015-05-04 14:34:05 +02:00
7db7698881 tdf#34555 Moving SID_OBJECT_CROP out of sd
The crop action in impress is defined in impress but uses code shared in
svx. This patch move the declaration of the Crop action in svx so that
it can be shared with sc & writer.

This is part of a serie of 4 patches that adds Save graphic, Change Picture,
Edit with external tool, Crop (by handles) in all products (scalc, sdraw,
simpress, swriter).
Main menus, toolbars and contextual menus are updated accordingly.


Change-Id: Idb6907aa09c0efd456c2ad51232cf37edb28d977
Reviewed-on: https://gerrit.libreoffice.org/15587
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2015-05-02 19:18:32 +00:00
480ca7434a tdf#89790 - DOCX: saving LO version number in correct tag in app.xml
Converted existing method that provides application name and version in two functions

Change-Id: I93b70da7c78ee5db3d6eb710a2a2a9f4b7b4fb86
Reviewed-on: https://gerrit.libreoffice.org/15151
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2015-05-01 22:01:53 +00:00
79acfc59aa missing include
Change-Id: If649c044d5dde770942cc4d859d1191612a247c7
2015-05-01 17:18:48 +01:00
aeeb794863 coverity#1296292 merge these two enum types
Change-Id: I4f82ca5f7a6b392322225c0b871dbaffeba44377
2015-05-01 12:51:01 +01:00
ee494e4a15 missing header for Checkbox
Change-Id: I7eab4aa6b248bd57aca3c2ef2a68b79a29fa9dac
2015-05-01 12:44:57 +01:00
4d28399ccd Use typed Link for MenuButton::SetSelectHdl
(and MenuButton::GetSelectHdl was unused)

Change-Id: I94df06bcda9e041fde65553e30247874b20ff74b
2015-04-30 16:59:09 +02:00
b705075634 IMPL_LINK_NOARG_TYPED is more useful with a non-void* ArgType
...as it will be used to implement a function that needs to be compatiblie with
some specific Link<Arg,Ret> type.

Change-Id: Ieabd0ee499850a304e0c6e625953532be47ac784
2015-04-30 16:59:09 +02:00
85895a76a4 Fix Link<T, void>::Call
Change-Id: Id85f33eab2767961f24688fffac84416b1cb22d8
2015-04-30 16:59:08 +02:00
b306847096 No need for LINK vs LINK_TYPED distinction
(fully qualify ::tools::detail::makeLink to avoid clashes with namespace
basegfx::tools)

Change-Id: I52818d0a47c78f1af7673ff91eb6517bc0820655
2015-04-30 16:59:08 +02:00
ebd62f7c79 Missing param name
Change-Id: I1fd2e76c098d0bffb446a1b2133d3392bfbb3de7
2015-04-30 16:59:07 +02:00
42cd492b83 gtk3: Set tab normal/rollover/hightlight text colors
Change-Id: I4dff83941df62bcd5ec5a70a87f59e9ce17c979d
2015-04-30 14:47:51 +01:00
0dccc59702 Use typed MaybeFile Link
Change-Id: Ic9eebca9d8fe3e9173b1873bdc7800e5161f9999
2015-04-30 10:53:10 +02:00
a29efdc048 All-inline template should not be TOOLS_DLLPUBLIC, keep MSVC happy
Change-Id: Ib03c6ba0eac9400eba89674ca92f638baf65b203
2015-04-30 10:40:37 +02:00
3ead3ad52f Gradually typed Link
Turn the Link class into a template abstracting over the link's argument and
return types, but provide default template arguments that keep the generic,
unsafe "void* in, sal_IntPtr out" behvior.  That way, individual uses of the
Link class can be updated over time.

All the related macros are duplicated with ..._TYPED counterparts, that
additionally take the RetType (except for LINK_TYPED, which manages to infer the
relevant types from the supplied Member).

(It would have been attractive to change the "untyped" LinkStubs from taking a
void* to a properly typed ArgType parameter, too, but that would cause
-fsanitize=function to flag uses of "untyped" Link::Call.)

Change-Id: I3b0140378bad99abbf240140ebb4a46a05d2d2f8
2015-04-30 10:20:00 +02:00
5a27f808be Get rid of initial :: for the sdr namespace
Change-Id: Ibbeb069b6fcb2aa0581429ac5cb6db519548fd00
2015-04-30 09:11:40 +03:00