summaryrefslogtreecommitdiff
path: root/vcl
AgeCommit message (Collapse)AuthorFilesLines
2013-11-26EMF: More useful debugging output.Jan Holesovsky3-99/+51
Change-Id: I2aa0e97878db62275d794be43a7d351e5ae25f1c
2013-11-26Resolves: fdo#41169 fix MacOSX non-Latin keyboard layout with Latin shortcutsCaolán McNamara1-0/+37
Change-Id: I168de52d6185d5df9c41fd2d7a68c0ff3f733852 (cherry picked from commit 82b5172954261e030a42bd6b3f4acc99807d0ee5) Reviewed-on: https://gerrit.libreoffice.org/6797 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com>
2013-11-25fdo#61272: Do the mapping correctly both for WMF and EMF.Jan Holesovsky1-1/+1
Turns out that for the WMF, we already had everything set up correctly, we were just overwriting the right settings with default data again :-) - fix that. Change-Id: I14b0c12b10f58eb7031f9da712dee76344c75159
2013-11-25Related fdo#61272: Revert "wmf-mm-text.diff: Fix WMF rendering, n#417818"Jan Holesovsky3-25/+0
This approach to WMF breaks EMF reading, need to revert it, and fix a different way. This reverts commit db1b08d217ebbdd1b0296e1da260bf314a77acf5. Conflicts: vcl/source/filter/wmf/winmtf.cxx vcl/source/filter/wmf/winmtf.hxx Change-Id: I8f779791153f2e1faa086c91b82b3e8b93304f3b
2013-11-25Related fdo#61272: Revert "wmf-mm-text-1.diff: Fix WMF rendering, n#417818"Jan Holesovsky1-14/+4
This approach to WMF breaks EMF reading, need to revert it, and fix a different way. This reverts commit 16eaa5e7c1208034bb3244fea9e6d9491ccb5501. Conflicts: vcl/source/filter/wmf/winmtf.cxx Change-Id: I59076d0a65d91ba3a1f3ebb48d8f7a542859d351
2013-11-23Correctly check getFileURLFromSystemPath() successKhaled Hosny1-1/+1
Change-Id: Iadc34171235fec2d6aafd601f62a0bff8ed5b3ee
2013-11-23Make TTC fonts work againKhaled Hosny1-1/+1
osl::File::getFileURLFromSystemPath() does not return a boolean. I wonder how this worked before, if it worked at all. Change-Id: Iadc0e06236f43c24cbcd42e4fd79ac9116a58c13
2013-11-23Simplify this code a bitKhaled Hosny1-9/+3
Change-Id: I591484788c5bcb9b9cde9696b149ede7298015a5
2013-11-22fdo#67802: Fix PS printing of non-CTL text with ligaturesKhaled Hosny1-7/+5
The GlyphSet::AddGlyphID() was messing with glyphs of characters that can be converted to Windows-1252 encoding, discarding whatever glyph it was asked to use and using a random glyph that is supposed to belong to the converted character. For ligatures this means the ligature glyphs was discarded and the glyphs for its component was used, but this broken for just any glyph substitution. The code makes no sense at all, apart from the fact that it is verbatim copy of GlyphSet::AddCharID() since 9754ad8d979557ea03cbfe04708b62b698d1276c and just happened to work because we did not enable ligatures and other typographic features for non-CTL text before. Change-Id: I764f0b40f8acf61eae38a9038b0666d711c04a9d
2013-11-22Related: fdo#41169 fix GTK non-Latin keyboard layout with Latin shortcutsCaolán McNamara1-22/+45
See also rhbz#958300 Change-Id: I5c3cf9652adb7b1c9ec53a32ed39f231a09ae1d7 (cherry picked from commit 8cef6c7ec67aec88b339ca647e784afbabf190f8)
2013-11-21Simplify css.accessibility.MSAAService and corresponding XMSAAServiceStephan Bergmann1-5/+12
Change-Id: I96c69e871aa7b20cdac9751a64faa5e436f31a1f (cherry picked from commit f3f4d9ec0f0eaa1aebdfebe831021a9d96e63f58)
2013-11-20Elide utl::ConfigItem_ImplStephan Bergmann2-32/+19
...and utl::ConfigItem::IsValidConfigMgr is always true. Change-Id: I37e295729c3d0ae12719f0ae6f5a5628c58d0b9f
2013-11-20Revert "remove RTL_CONSTASCII_STRINGPARAM in OString::equalsL calls"Noel Grandin2-10/+10
This reverts commit acebbee971136e6ee0a7bc75bd57d937d6e1c295. I mistakenly converted OUString::equalsL calls to OUString::startsWith calls.
2013-11-20Revert "Simplify KDE4 yielding."Michael Meeks1-8/+12
This reverts commit 20f029c653abbd7578ceee968065f4c5d66f375f. The native X11 and gtk+ backends both have this functionality, and both with a hard-coded 100, and the gtk+ one has had active maintenance and testing. I'd like to leave that there, I suspect it is used in some obscure multi-threaded corner-case where we want to process events but only a few of them.
2013-11-20Simplify KDE4 yielding.Jan-Marek Glogowski1-12/+8
QAbstractEventDispatcher::processEvents always processes all pending events, so we can ignore the the second Yield parameter (bHandleAllCurrentEvents). Change-Id: I49a70ed13d0215b89f48eed93d78eef2f083dc0d Reviewed-on: https://gerrit.libreoffice.org/6686 Reviewed-by: Thorsten Behrens <thb@documentfoundation.org> Tested-by: Thorsten Behrens <thb@documentfoundation.org>
2013-11-20Rewrite Qt4 based nested yield mutex locking.Jan-Marek Glogowski2-26/+24
The Qt event loop may start a nested event loop, when checking for clipboard and Drag'n'Drop events. Previously this was handled by running this nested yield loop inside the main glib loop using qApp->clipboard()->property( "useEventLoopWhenWaiting" ); But this results in nested paint events which crash LO: QWidget::repaint: Recursive repaint detected To prevend yield mutex deadlocks, check for nested event loops and always release the yield lock before starting the nested Yield event loop. This fixes fdo#69002. Change-Id: I7e827abd3489783053ec7123372742a32555875d Reviewed-on: https://gerrit.libreoffice.org/6685 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Reviewed-by: Thorsten Behrens <thb@documentfoundation.org> Tested-by: Thorsten Behrens <thb@documentfoundation.org>
2013-11-20Redirect file picker UI processing to GUI thread.Jan-Marek Glogowski5-4/+272
If a KDE4FilePicker is opened via an remote UNO call, e.g. via a RPC Java call, a JVM is started in a new thread to handle the call. This was creating the KDE4FilePicker in the non-UI JVM process, which crashes LibreOffice. Therefore we redirect the processing of all FilePicker calls to the main thread. This fixes fdo#71145. Change-Id: If6ec2d205af5a883df35fddb44a12ac43e3560f0 Reviewed-on: https://gerrit.libreoffice.org/6683 Tested-by: Michael Meeks <michael.meeks@collabora.com> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2013-11-20Windows: Require at least Windows XP SP2Thomas Arnhold1-2/+0
* Windows XP SP2 is 0x0502, see http://msdn.microsoft.com/en-us/library/aa383745.aspx * If a module changes the Windows SDK version setting, this is done module wide now. So the overall behavior is as before. This seems to be the best compromise for now. * We need at least SP2 because of the bluetooth stuff used in sd/source/ui/remotecontrol. * Now, we require at least Internet Explorer 7.0. IE6 has been outdated for a long time. * Leave StdAfx.h file definitions, as those are Microsoft project specific precompiled header files. * All local definitions of WINVER are removed, because the global WINVER setting makes them obsolete now. To the relation of the three macros: Setting _WIN32_WINNT sets WINVER and NTDDI_VERSION automatically to the same value as _WIN32_WINNT. WINVER and NTDDI_VERSION can be set idenpendently each for itself. Change-Id: Ibcc12493aae4fcaf7bcfda88be99c1b61bc326cb Reviewed-on: https://gerrit.libreoffice.org/6496 Reviewed-by: Thorsten Behrens <thb@documentfoundation.org> Tested-by: Thorsten Behrens <thb@documentfoundation.org>
2013-11-20remove RTL_CONSTASCII_STRINGPARAM in OString::matchL callsNoel Grandin3-17/+17
Convert code like: if (aValue.matchL(RTL_CONSTASCII_STRINGPARAM("BOOL="))) to: if (aValue.startsWith("BOOL=")) Change-Id: I385d10fd486d6a3e5f81f4a28088d913fc2f0d26
2013-11-20remove RTL_CONSTASCII_STRINGPARAM in OString::equalsL callsNoel Grandin2-10/+10
Convert code like: if (aByteStr.equalsL(RTL_CONSTASCII_STRINGPARAM("rem"))) to: if (aByteStr.startsWith("rem")) Change-Id: I09e40b3fdc87d59a8176c2a5f39cc6aa5cf5a576
2013-11-20remove RTL_CONSTASCII_STRINGPARAM in OStringBuffer constructorNoel Grandin1-3/+3
Convert code like: OStringBuffer aKeyName(RTL_CONSTASCII_STRINGPARAM("NDX")); to: OStringBuffer aKeyName("NDX"); which compiles down to the same code Change-Id: If9c96a290bc18cc8285fb733f27be58c6958b63c
2013-11-20Drop processYield return type.Jan-Marek Glogowski2-4/+3
The virtual Yield function has no return type, and the result of processYield is actually never used => drop it. Change-Id: I3da7bc99fd8f56301da37ca196b03b34cdc84a40 Reviewed-on: https://gerrit.libreoffice.org/6684 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-11-20sal_Bool to bool in VCL Timer and minor cleanupsRodolfo Ribeiro Gomes1-63/+29
Change-Id: I72e3987af4509239b2e989483b7396512c17e48b Signed-off-by: Rodolfo Ribeiro Gomes <rodolforg@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/6695 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-11-20remove unnecessary RTL_CONSTASCII_STRINGPARAM in OString::appendNoel Grandin1-11/+11
Convert code like: aOStringBuf.append( RTL_CONSTASCII_STRINGPARAM( " is missing )") ); to: aOStringBuf.append( " is missing )" ); which compiles down to the same code. Change-Id: I3d8ed0cbf96a881686524a167412d5f303c06b71
2013-11-20convert equalsAsciiL calls to startsWith callsNoel Grandin1-9/+9
Convert code like: aStr.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "ActiveConnection" ) ) to aStr.startsWith( "ActiveConnection" ) which compiles down to the same machine code. Change-Id: Id4b0c5e0f9afe716a468d3afc70374699848dc33
2013-11-19convert equalsAsciiL calls to startWith calls where possibleNoel Grandin1-5/+5
Simplify code like: aStr.equalsAsciiL( "%", 1 ) to aStr.startsWith( "%" ) Change-Id: Iee0e4e60b0ae6d567fa8f72db5d616fffbec3c00
2013-11-19uia: merge VCL pieces of IAccessible2 work.Michael Meeks3-7/+101
Original code from: Author: Steve Yin <steve_y@apache.org> Date: Sat Nov 16 23:58:19 2013 +0100 Integrate branch of IAccessible2 With these improvements: Make IAccessible2 an experimental feature, with fallback to Java a11y. Move initial setup of windows into the bridge and clean, remove conditionals Check for presence of AT in the bridge as well to clean. Merge VCL events extensions and their handling. Clean and split WB_GETOBJECT handling out to it's own method. Add component prefix namespacing. Cleanup msaa service info, and implement XComponent to share mxAccessBridge. Add suitable debugging output, remove VCL dependency from UAccCOM causing registration issues. Change-Id: Ib19e38ddca71182018df438df27dcdb555d91402
2013-11-19TypoStephan Bergmann1-1/+1
Change-Id: Ibd12f919cb50f3f8e67fd559a332a1c6eda3c74e
2013-11-19remove unnecessary use of OUString constructor when assigningNoel Grandin13-46/+46
change code like aStr = OUString("xxxx"); to aStr = "xxxx"; Change-Id: Ib981a5cc735677ec5dba76ef9279a107d22e99d4
2013-11-19remove most use of RTL_CONSTASCII_USTRINGPARAM macroNoel Grandin5-14/+14
This is largely unnecessary when working with OUString Change-Id: I3cf4d68357a43665d01162ef4a2d5346a45da9be
2013-11-18want to be able to support non homogeneous buttons in buttonboxesCaolán McNamara5-3/+30
Change-Id: I7ea4c093d6318a24106542f851cfd58230bc3ea3
2013-11-18scaling the width gives huge spaces at the end of long buttonsCaolán McNamara1-3/+3
e.g. in the alien warn dialog Change-Id: I2e3acddb67b480d4d63a3f4cc77252886e0c9a1c
2013-11-18adjust sizes of primary and secondary areasCaolán McNamara1-3/+3
Change-Id: I47dffdabcbd0b321502478327f95e9e6bfba6f5b
2013-11-18HIG seperate primary and secondary text by 24pixelsCaolán McNamara1-0/+1
"Add one line break at the standard font size below both the primary and secondary text, or 24 pixels if you are using Glade" Change-Id: I4bdb0eade4de1304a155fe4338c013d1576b8282
2013-11-18Related: rhbz#1014990 valgrind reports uninitialized another variableCaolán McNamara1-11/+8
Change-Id: I77f082ea145b0f20daa93c3ee04067ecb6c3b108
2013-11-16fix build with --enable-eotDavid Tardon1-2/+2
Change-Id: Ia4e5f3d5a47ff88e318d930261efdc90e08cde50
2013-11-15Use Q_* macros.Jan-Marek Glogowski3-16/+5
This way we won't conflict with boosts signals and slots. Change-Id: Ia92b283a5b47b7bc8c2bec2c6be664c9b7f1bed8 Reviewed-on: https://gerrit.libreoffice.org/6682 Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com>
2013-11-15releasing the CGDataProvider to prevent possible memory leaksPtyl Dragon1-0/+1
Change-Id: Ib64f457bd9cc185e979b1a3e9f07fdba93da88d7
2013-11-15Handle also FORMAT_THIRTYTWO_BIT_TC_MASK_BGRATor Lillqvist1-0/+7
It seems to be used to draw something related to rulers, which we of course don't show at all, but apparently they get initialised anyway. So, to avoid a warning, handle this format, too. (As such, I am not sure if I handle BGRA the right way, but there is no way to check as nothing works properly in this branch at the moment anyway.) Change-Id: I6a7444872f90a34e1e568769a595443c45aa6722
2013-11-15created a long long unit for MLOContentSizePtyl Dragon1-11/+0
Change-Id: I41910058088161119d3cae8ca625d456652d890f
2013-11-15changed to CGSizePtyl Dragon1-0/+11
Change-Id: Ic84fcadf4332210693586825cdd8e32ef0f2a727
2013-11-15refactored to allow copying FixedImage to iosPtyl Dragon1-2/+34
Change-Id: Icecdae8ea2bb68c228f038758af8fb688ce9dd4a
2013-11-15Tiled rendering: Tunnel the request for a tile to the ViewShell.Jan Holesovsky1-13/+0
Change-Id: I6271546ab2c0e92832c501617d94d5ad155de705
2013-11-15add a stock connect button stringCaolán McNamara3-0/+8
Change-Id: Ib90364afebea4ff1b926f3c8b9fd949b155fa81f
2013-11-14SAL_WARN_UNUSED com::sun::star::uno::AnyStephan Bergmann1-1/+0
Change-Id: I9058044d13f696e07667dce706f6c311af6dbea0
2013-11-14make l10n buildable separatelyBjoern Michaelsen1-1/+4
- this renames the 'almost' module target to non-l10n - and adds a l10n target which is intended to only build l10n parts of the product - packagers should then be able to build l10n and non-l10n parts of the product independently, thus: - enable quicker rebuilds - distribution of load - updates to l10n without a full rebuild - security fixes to binaries without rebuilding all l10n - the new targets are called build-l10n-only and build-non-l10n-only - note this is not intended to move a concept of split packages upstream -- while this exsists in distros, the number of test scenarios for this would explode upstream Change-Id: Ib8ccc9bc52718d9b0ebbfee76ad93dc29c260863 Conflicts: filter/Module_filter.mk
2013-11-14Use rollover color in the native case.Jan Holesovsky1-0/+2
Otherwise, the text on the button easily becomes invisible. Change-Id: Ia812706559fbee4ce4ccb1f7610cfd235b1dc5c3
2013-11-14Force SetBackground() only if the appropriate settings changed.Jan Holesovsky1-2/+8
Otherwise, when you use SetBackground() to set a color, it will be changed to white the next time the UpdateSettings() is called whatever you do ;-) Change-Id: I508a049a327fa9be5035bdb19050d6bcb53a2bfe
2013-11-14Minor clean-upStephan Bergmann1-4/+4
Change-Id: Ia6d8a3ddd003558cace81837753e93427737023a
2013-11-14-Werror,-Wunused-exception-parameterStephan Bergmann1-9/+9
Change-Id: Idb21a2fcceccf037e0f8ca56905306b359779813