Commit Graph

1066 Commits

Author SHA1 Message Date
7d1e257a6b make IsNativeControlSupported const
Change-Id: I4346b2df94fc8767fce734362901b6248bb6342d
2013-06-29 18:06:15 +04:00
1a8addc137 GetNativeControlRegion is const
Change-Id: I0b34001e99036f197a50ff24b854e5a07eac6f06
2013-06-29 18:06:15 +04:00
c08a20b648 reduce indentation level
Change-Id: I4411ffaa3c8bc73891fc854894cca9d5ab1a1dc5
2013-06-29 18:06:15 +04:00
e3a801e245 fdo#44582: fix scrollbars in RTL UI
Change-Id: I518e9bcf673ffd1f17ecb51c2c4f962a2f722446
2013-06-28 22:35:48 +04:00
949f97ba48 Resolves: #i121162# ImageScaleMode constants should be in UPPERCASE
(cherry picked from commit 734b532fb77d2d5be7eb7becb6720dbd7b3d8978)

Conflicts:
	offapi/com/sun/star/awt/ImageScaleMode.idl
	oox/source/ole/axcontrol.cxx
	reportdesign/source/filter/xml/xmlHelper.cxx
	wizards/com/sun/star/wizards/reportbuilder/layout/ReportBuilderLayouter.java

Change-Id: Ib5fa7b82edddb809129a4e5619a20ca7a7b2e38a
2013-06-27 16:58:09 +01:00
b139f6fedf Remove leftover debugging printf
Besides, it caused a WaE: format '%d' expects argument of type 'int', but
argument 3 has type 'sal_Int32 {aka long int}'

Change-Id: Ib0360816e7d0a4829aff4267aa922269950d520c
2013-06-24 18:04:14 +03:00
9495e91279 Resolves: fdo#66105 set max growth width for labels/edits which take paths
Change-Id: I12220821f76550baacdc8ce604f2e612d260c1a1
2013-06-24 14:40:40 +01:00
0a5c151b62 Resolves: fdo#65635 don't include border gap in height for borderless edits
Change-Id: If778fdeb5bdbd5a5cac33f57ef8d598ddc1408f2
2013-06-21 13:22:16 +01:00
c96802f0e2 Resolves: #i122418# Added workaround to not use GetBitmap on windows
(cherry picked from commit 136976efb17b8617a83c7f26601cd04031b51e7f)

Conflicts:
	vcl/inc/vcl/bitmap.hxx
	vcl/inc/vcl/bitmapex.hxx
	vcl/source/gdi/bitmap4.cxx
	vcl/source/gdi/bitmapex.cxx

Change-Id: I9c3aeae76c155c9050404f67adeb91106502c3f1
2013-06-19 12:17:19 +01:00
040710161c fdo#43460 use isEmpty()
Change-Id: Ie33025fbd10f47efd6b97304b76b21166d4ee70e
Reviewed-on: https://gerrit.libreoffice.org/4307
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2013-06-16 15:56:43 +00:00
710f5dd271 Remove some warnings on mingw64
Change-Id: I4fbb543e19ecba879f9982dd4bb8442d77854526
2013-06-06 23:29:11 +02:00
dcbaf7c253 remove unused componentcontext.hxx includes
Change-Id: I598926b72c5540b472f9607e2f3df134a8c50048
2013-06-05 08:13:21 +02:00
ba8485a9c8 cast double to sal_Int64 can throw EXCEPTION_FLT_INVALID_OPERATION on Windows
cherry picked from commit eb34ba3c343807201c62a49a19d7616e1011c118)

Conflicts:
	vcl/source/control/field.cxx

Change-Id: I2fb03b1b03ea23259e9eca7305c3f86d80d79f21
2013-05-27 10:23:07 +01:00
4881ec4acc sync the menubutton size request and draw calculations
Change-Id: I122254532dfe8ecd9c3118622bf24b50f885a0f6
2013-05-24 12:07:16 +01:00
dbfafb5475 after 14 years I think we can forget about this titchy FIXME
Change-Id: I95472eb49975861721f5bd6e174b7cb05defe203
2013-05-24 12:07:16 +01:00
c19c9dfc69 setting max line count should allow extra values to be added later
Change-Id: Ia693c83b8d27cacbd257f81b5eae2936fc5f8a6f
2013-05-22 17:34:40 +01:00
662d96bc62 vcl: all EnableAutoSize methods take a bool.
Change-Id: I6f974d6b82f6bb77996d20219b5c0ceb78596c5c
2013-05-20 12:18:03 +01:00
60285fdc86 Related: #i122041# More unifications for FillStyles
better defaults and better preview visualizations

(cherry picked from commit 35c9acfc98fc98399005815e0464b1944f327d4e)

Conflicts:
	officecfg/registry/schema/org/openoffice/Office/Common.xcs
	svtools/inc/svtools/accessibilityoptions.hxx
	svtools/inc/svtools/valueset.hxx
	svtools/source/config/accessibilityoptions.cxx
	svtools/source/control/ctrlbox.cxx
	svtools/source/control/valueset.cxx
	svtools/source/inc/configitems/accessibilityoptions_const.hxx
	svx/inc/svx/dlgctrl.hxx
	svx/inc/svx/xtable.hxx
	svx/source/dialog/dlgctrl.cxx
	svx/source/tbxctrls/SvxColorValueSet.cxx
	svx/source/xoutdev/xtabdash.cxx
	svx/source/xoutdev/xtable.cxx
	vcl/inc/ilstbox.hxx
	vcl/inc/vcl/combobox.hxx
	vcl/inc/vcl/lstbox.hxx
	vcl/inc/vcl/settings.hxx
	vcl/source/app/settings.cxx
	vcl/source/control/combobox.cxx
	vcl/source/control/ilstbox.cxx
	vcl/source/control/lstbox.cxx

Change-Id: I905b6814cb796a35aa23fedb9ce716f77e2bfda0
2013-05-20 11:33:18 +01:00
01d839f257 sal_Bool to bool
Change-Id: I5bc7eba1ba17162916c016218b8e5f43627ce047
2013-05-18 21:45:11 +09:00
e8ad612bf8 Keep the functions local
Change-Id: I7d56a72b8c22ce5e4c664b5ccf45aa984b9df88b
2013-05-18 21:45:11 +09:00
8232eaf93f ImplDateIncrementYear: handle February 29
Change-Id: I1120950f1161e51591701368229844f6a5344eeb
2013-05-17 17:55:28 +02:00
59d6bde404 obtain days in month from non-normalized date, fdo#63805 related
Change-Id: I05cefb96d7d6290ff7e1a89fa88b21da7a6c82a2
2013-05-17 17:26:08 +02:00
0a330eb740 sal_Bool to bool
Change-Id: I0247e462b648b0dc7fc9ea12723415fbf6dcaff5
2013-05-16 09:20:41 +09:00
acf9b40977 sal_Bool to bool
Change-Id: If2f09533666a6090d4860e79b33a05d12e058940
2013-05-14 14:31:27 +09:00
b12ef43863 cppcheck: fix arrayIndexThenCheck in vcl
Change-Id: Id7258dd35c131c2c8151bc5e0f97076241e6d10f
Reviewed-on: https://gerrit.libreoffice.org/3868
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2013-05-13 17:29:46 +00:00
57b5ed51d4 Support IMR_QUERYCHARPOSITION in Writer and Calc.
IMR_QUERYCHARPOSITION is one of optional but fundamental request
message sent from IMEs to application. This message is used for
retrieving the positional information for each character in a
composition text especially when the composition text is drawn
by the application.
This information is critical for IMEs to align suggestion window
with the composition text.

Change-Id: I53a344a78688060004cc8bcbbf1127f22a468e20
Reviewed-on: https://gerrit.libreoffice.org/3849
Reviewed-by: Tor Lillqvist <tml@iki.fi>
Tested-by: Tor Lillqvist <tml@iki.fi>
2013-05-13 05:14:37 +00:00
8fa7b8234f sal_Bool to bool
Change-Id: I7e69466f189b845a807edbf3ca4422b0fb2aec94
2013-05-11 00:47:52 +09:00
86b73eeef4 fdo#63154: Remove _CL and _LF from solar.h
And use RTL_CHAR_{CR,LF} from rtl/string.h

Conflicts:

	vcl/source/app/dbggui.cxx

Change-Id: I05b0325006845e48eb5483485a9042aa7b0cd22a
Reviewed-on: https://gerrit.libreoffice.org/3740
Reviewed-by: Andras Timar <atimar@suse.com>
Tested-by: Andras Timar <atimar@suse.com>
2013-05-09 09:49:15 +00:00
48ad2f61fe fdo#46808, Convert some code to getProcessComponentContext
Change-Id: Ic59060818bf02a402610613a6bc97c5969a5c461
2013-05-08 08:06:44 +02:00
7d6f4391de Resoves: fdo#31849 ensure more button text remains vertically centered
Is seems very bizarre that in Button::ImplDrawAlignedImage if
there is no image, that we still add padding for the image
separator to the text position. Why we have the concept of an
Image *and* a Symbol escapes me.

Anyway, setting the "Image" align to the right to match the
"Symbol" align stops the button text getting displaced downwards.

Change-Id: I67b80b2ff5cc960f5394cb7d69cab7a4c14513bf
2013-05-01 16:47:40 +01:00
72e5d0c8fb Move to MPLv2 license headers, with ESC decision and author's permission. 2013-04-30 13:34:06 +01:00
e986d3e396 fdo#39468 Translation and cleanup
Cleanup of source code:
- translated German to English
- removed useless comment decorations
- removed commented out code
- some reformatting of code

Change-Id: I71d5fdab8226d61bda9ac906bb82176dc11cafd2
Reviewed-on: https://gerrit.libreoffice.org/3643
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
2013-04-29 04:15:58 +00:00
a049c87ba5 fix access to invalid string position
Change-Id: If811f256dc2a0cbdc25fe2a56e949736191aa002
2013-04-21 02:35:01 +02:00
0f200cc30e fdo#63154: Change Min/Max/Abs for std::min/max/abs
Now all these usages were removed from LO.

Change-Id: I8a7233db20abdcdbb18428ad4004c78cc516a0e6
Reviewed-on: https://gerrit.libreoffice.org/3326
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
2013-04-20 11:09:54 +00:00
9830fd36db date/time IDL datatypes incompatible change
- nanosecond precision
 - signed (allowed negative) year

Also: assorted improvements / bugfixes in date/time handling code.
Some factorisation of copy/pasted code.

Change-Id: I761a1b0b8731c82f19a0c37acbcf43d3c06d6cd6
2013-04-18 21:34:46 +02:00
dd76360478 basic inplace Font preview for calc
Change-Id: Ic1e6c953852a6106ee94f0b577ed398d62aa2285
2013-04-15 20:37:19 +01:00
1946794ae0 mass removal of rtl:: prefixes for O(U)String*
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk
have kept them, in order not to break external API (the automatic using declaration
is LO-internal).

Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2013-04-07 14:23:11 +02:00
876c619b94 new module i18nlangtag
Moved portions from module i18npool, all of former i18nisolang1 library
that now is i18nlangtag. Included are languagetag, isolang and mslangid.

This i18nlangtag code is now even used by module comphelper, so
disentangling i18npool and making this an own module was needed to not
create circular module dependencies.

Change-Id: Ib887c3d6dde667403fd22d382310ba5f1a9b0015
2013-04-05 19:10:48 +02:00
dac06a943a Resolves: fdo#61940 unable to change shape fill colors
The tab area page has a magic bit which is set when the page is activated that
enables its properties to be applied on ok. If another page is activated that
also affects area fill using an alternative set of properties, then the bit is
unset.

For layout we have to activate all pages that don't exist yet to get their
optimal size. So we need to re-activate the original/current page after forcing
the other pages to exist in order to make this trickery work.

Change-Id: I90cac4624a12e6c29f6b226ce831f71c7cc49117
2013-04-05 13:30:19 +01:00
ae2c256e22 unwind tangled mess around spinner buttons
Restore removed spinner artwork, cleanup the code: hicontrast - is now
a function of icon theme, not a global boolean.
uwith thanks to Ariel Constenla-Haile)

Change-Id: I68d4c7293a6faa130274cf45f53509ce140fa8c0
2013-04-04 11:17:21 +01:00
8644d10098 Asserting rtl::O[U]StringBuffer::operator [] preconditions
...and fixing two call-sites.

Change-Id: I8ed8cb189bd5034130b49b2f57156568e6b24716
2013-04-03 11:27:05 +02:00
4d858fff6b Fix typo: addtional => additional in the comment.
Change-Id: I7e9e71c721266a0cbc4412024ec49cb689672876
Reviewed-on: https://gerrit.libreoffice.org/3165
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Reviewed-by: Andras Timar <atimar@suse.com>
Tested-by: Andras Timar <atimar@suse.com>
2013-04-02 06:47:04 +00:00
aa753f01ba -Wunused-macros
Change-Id: Ifaa1637122d6f9cae1e29b77ac36ca5d1f220aed
2013-03-27 09:36:53 +01:00
69a9cffb9e fdo#39468 Translate German comments - vcl/source/control/
FYI: there is some code duplication noticeable between slider and scrbar

Conflicts:
	vcl/source/control/longcurr.cxx
	vcl/source/control/lstbox.cxx
	vcl/source/control/menubtn.cxx
	vcl/source/control/morebtn.cxx
	vcl/source/control/prgsbar.cxx
	vcl/source/control/scrbar.cxx

Change-Id: I736cf155e252293ed571cd44a6a395b15c4bf576
Reviewed-on: https://gerrit.libreoffice.org/2966
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-26 23:36:57 +00:00
84bac1799e Kill double conversion from NumericBox
Change-Id: Id1161c40725f75ea0d7ec3f15a19ca14defd0a75
Reviewed-on: https://gerrit.libreoffice.org/3035
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2013-03-26 13:36:29 +00:00
25810de17f Translate German comments, fix some whitespace
Change-Id: I44eba784d51522b67826051d20ba8939f195dccb
Reviewed-on: https://gerrit.libreoffice.org/2916
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-25 09:24:36 +00:00
5d02714a9d Fix wrong copy paste, should be UNDERLINE_DASHDOT and not UNDERLINE_DOTTED
Change-Id: I807d88631cf35e51cd034a62eed1d4230c75d1be
2013-03-23 13:39:17 +01:00
38d0e65fa5 Reuse ImplPower10()
Change-Id: I0a86e43065689d2478ced4804ab083244d8d35f5
Reviewed-on: https://gerrit.libreoffice.org/2774
Reviewed-by: Joren De Cuyper <joren.libreoffice@telenet.be>
Reviewed-by: Thorsten Behrens <tbehrens@suse.com>
Tested-by: Thorsten Behrens <tbehrens@suse.com>
2013-03-18 10:46:23 +00:00
533be98148 restore incrementing time fields by area cursor is in
regression from String->OUString conversion with
tricky unsigned xub_StrLen of 0xFFFF for not-found
> any found position, vs -1 for OUString for not-found

Change-Id: I4a2babae085916a86cd1e60b74b4ea839dd8b87a
2013-03-14 13:11:50 +00:00
38d3e115c1 vcl: make Region ctors explicit to prevent overloading desasters
Change-Id: Id36d125b4940418833bec31a4710d6cd545629e0
2013-03-13 22:29:46 +01:00