summaryrefslogtreecommitdiff
path: root/vcl
AgeCommit message (Collapse)Author
2015-10-30vcl: fix the --disable-dbus buildMichael Stahl
Change-Id: I4562b029172e2dcef7d13bf2c1aa37410d18e25a
2015-10-30vcl: This is a constantTakeshi Abe
Change-Id: Id87952a5eafa6c4ddf2d58b694cadf1fbf5c45a1
2015-10-30UNO: no need to use OUString constructor when calling createInstanceNoel Grandin
Change-Id: I37da28539b94706574116d0fff5f008aabfb5526 Reviewed-on: https://gerrit.libreoffice.org/19682 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-29tdf#70833: IDNA support when exporing hyperlinks to PDFStephan Bergmann
Any URLs using non-ASCII IDNA syntax need to be resolved to ASCII-only, as PDF URI Action's URI needs to be "encoded in 7-bit ASCII." Introduce URIHelper::resolveIdnaHost (svl/urihelper.hxx), which internally uses icu::IDNA, which requires to bump the minimal --with-system-icu requirement from 4.2 to 4.6, which means ICU_RECLASSIFIED_CLOSE_PARENTHESIS is always true now. Change-Id: I0e20d9a20ed2b869fba0cc7c969721411db590b3 Reviewed-on: https://gerrit.libreoffice.org/19669 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
2015-10-28tdf#94138 also apply settings when printing (Draw call)Tomaž Vajngerl
Change-Id: I72056f3e167923f00c37648a24190b533eb9b471
2015-10-28vcl: This is constantTakeshi Abe
Change-Id: I27a83996031b9494ad736ad82a7fff5740fbaf30
2015-10-27Reduce scope of #include <tools/stream.hxx>Matteo Casalin
Change-Id: I0752cbb0cb2e0f89607d81d9eda7ce7091449fd6
2015-10-27tdf#94022 Print dialog: hide Installable OptionsMichael Weghorn
Options specified in PPD files can be grouped using the keywords "OpenGroup" and "CloseGroup". The keyword "InstallableOptions" is used as a group name for a group containing options that define optional hardware features of the printer that can be present or not (s. section 5.4 in version 4.3 of the PPD specification). As they are not print job specific, it is recommended not to show them in the print dialog. To be able to distinguish those options, the PPD group name was added as an attribute to the PPDKey class. Change-Id: I4a3abf23a711ad98556c0b608a07ef0a91e77e2b Reviewed-on: https://gerrit.libreoffice.org/19623 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
2015-10-27loplugin:unusedmethodsNoel Grandin
Change-Id: I161cd52606c11b6008f5d8b1d8ee391692f91861 Reviewed-on: https://gerrit.libreoffice.org/19231 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-27loplugin:unusedmethodsNoel Grandin
Change-Id: I73180266c0af98dbd8d29bd3b11850996b94def9 Reviewed-on: https://gerrit.libreoffice.org/19195 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2015-10-26Fix graphite line endings for stacking spacesMartin Hosken
Change-Id: I63dab1bea8cbe9c702b543978d04fb6aeb7d363d Reviewed-on: https://gerrit.libreoffice.org/19557 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Martin Hosken <martin_hosken@sil.org>
2015-10-26tdf#75637: Resolve help images via a vnd.libreoffice.image UCPStephan Bergmann
...which uses the logic already available in VCL's ImplImageTree to locate the image zip files and find fallbacks for incomplete themes and for localized images. Change-Id: Ic1c15fcacb6596a27a2b051093232902202bf472
2015-10-26-Werror,-Wunused-functionStephan Bergmann
Change-Id: I3c1066902df047a10cf407900dd040dc4408f88c
2015-10-26Let Gtk handle icon names instead of ResMgr for window and trayiconSimon Steinbeiss
The icons in the themes should be deleted in a second step and the defines should be transformed into an ENUM and stored in one place. Furthermore we will have to decide whether to live with gtkimagemenuitem despite its deprecation in Gtk3.10 or whether to pack GtkImages and GtkLabels in GtkBoxes inside GtkMenuItems and live with the additional padding, which potentially looks horrible. Change-Id: I8dec44375e40a4d2b6668792bc4b813efe83ff31 Reviewed-on: https://gerrit.libreoffice.org/19601 Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2015-10-26It's a constantTakeshi Abe
Change-Id: I2315b580f8c786cc41d3cd43cdec485717785d5c
2015-10-25loplugin:simplifyboolStephan Bergmann
Change-Id: I609e3dffeee6cde33fcbab71c15020434fe1a136
2015-10-25loplugin:defaultparamsStephan Bergmann
Change-Id: I0aefe45eb06ac9d63fa79c33fd63f120c0258470
2015-10-25loplugin:simplifyboolStephan Bergmann
Change-Id: Ice6dfc7b8e295f322f38f8bc8f01d6776c742e54
2015-10-24vcl.osx.print: bin >>vintage<< implementationDouglas Mencken
Change-Id: I09958e48846962aa5ad29e3e6cc0ce2450973f74 Reviewed-on: https://gerrit.libreoffice.org/19516 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2015-10-24vcl.osx.print: convert to use modern API for print dialogDouglas Mencken
Change-Id: Icc7d7ad95d1ffbf55f1cd704148f3ceb58618e6c Reviewed-on: https://gerrit.libreoffice.org/19432 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2015-10-24cppcheck: invalidPrintfArgType_sintCaolán McNamara
Change-Id: I4103c8e1549db44055fbfcb8ced6ec36d27fc126
2015-10-23nSetGoToRMode wants to be boolStephan Bergmann
Change-Id: Ib174a3809dd5433c29efbe08a2c4b9f9b6eda804
2015-10-23take the world scaling factor for fonts, but not the rotationCaolán McNamara
regression from commit 8f705df1221c3f92d8cde68bdf726a7c3ce8fe1b Author: Tomaž Vajngerl <tomaz.vajngerl@collabora.com> Date: Fri Jul 18 13:36:13 2014 +0200 bnc#881024 Don't world transform font size in WMF/EMF import which seems to be a regression from commit 1281c1f52b77c4c4fb08e129542c2c4912b38555 Author: Armin Le Grand <alg@apache.org> Date: Mon Dec 10 16:08:58 2012 +0000 Resolves: #i121382# Corrected size handling including font size handling... for EMF/WMF imports Change-Id: I87307c9993d3343b4db636257e2567b10a73b79d
2015-10-23afl-eventtesting: crash on undoing insert new page in impressCaolán McNamara
this is an intermittent crash in the real world but under event testing we can see that the PaintView is informed that the page has been deleted, but doesn't clear its use of the page if it so happens that there was earlier modification events that caused the fire-modification-timer to be launched If there happens to be no such events then the page is correctly cleared If the timer is active, then the page is not cleared, but eventually the timer will fire and access the deleted page and fall over and die minimal change for backporting ease, follow ups now Change-Id: I090ad62cc175545902574c93dec7082225d97ab7
2015-10-23on unity, default to human if possibleBjoern Michaelsen
2015-10-22tdf#94138 fix printing of edit form fieldsTomaž Vajngerl
There are 2 bugs: - In Window::GetDrawPixelFont we asked for the font to the current window, which didn't work correctly when printing. The device itself should provide the font and not the window. - In paint method the font wasn't setup correctly which should happen before painting by calling ApplySettings. The effect of this is that print preview didn't show the correct font for the edit control and similar when you copy + paste the edit control. The work around for this is to call ApplySettings again. Change-Id: I74960355823c71c1d5a18a82bbc86561a3c4b760
2015-10-22vcl: Free memory by appropriate dtorTakeshi Abe
Change-Id: I863251d742374d0a60820d41fec9d467c9ff4bd4 Reviewed-on: https://gerrit.libreoffice.org/19446 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-10-22afl-eventtesting: improve event testing exitCaolán McNamara
don't "Quit" twice and skip tearing down office ipc etc for the pseudo-quit AFL_PERSISTENT=1 case Change-Id: I26f0e798b95bc9376890381d4e5bd87fe8f12622
2015-10-22tdf#93243 - replaced some boost::bind with C++11 lambdasSahas
Did half the file. Need comments before I finish the rest. Change-Id: Idbd98277e908dc568008925611ab1fd1fb778ab1 Signed-off-by: Michael Stahl <mstahl@redhat.com>
2015-10-22vcl: add Window::SetClipboard()Miklos Vajna
Change-Id: I385f64b7d5015c9a34f34a436b0ee2ce6b3a83d3
2015-10-22crashtesting+ubsan: rhbz1003919-1.svg left shift of negative numberCaolán McNamara
Change-Id: I6175b4b28af3257f5734685b8fa323f0b9078512
2015-10-22crashtesting+ubsan: abi2079-1.html memcpy null source with 0 lenCaolán McNamara
Change-Id: I50b9df6a428bd2ddb57819a9da6f07df346e7e61
2015-10-21afl-eventtesting: crash if you close shell behind running presentationCaolán McNamara
Change-Id: Ib8f02ddfe3b74e97145e22aa88e6f97d52c39f7a
2015-10-21afl-eventtesting: crash when accelerator processed after frame is disposedCaolán McNamara
Change-Id: I8c3dcca53d5fb18e9f1da0499a071d35a859a9de
2015-10-21move afl examples/test-cases to dedicated dirCaolán McNamara
Change-Id: I36f09cd19ea721ee69e62fac4cf0744827e8cefb
2015-10-21refactor out some com::sun::star typedefsNoel Grandin
which mostly serve to make the code harder to read Change-Id: Ia2a83fee9f850ab6f0bea6305ce8600d6b785fe8
2015-10-21remove untyped Link<>Noel Grandin
Change-Id: I809f9e10309ceadda0a82c3818277323b34ec61b Reviewed-on: https://gerrit.libreoffice.org/19491 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-21tdf#94897: Don't mess up spacing of combining diacritic glyphsTor Lillqvist
At least for the Cambria font, instead of a precombined glyph, Uniscribe ends up using a separate diacritic glyph for some (all?) accented Latin characters. That caused weird layout errors in justified lines when an accented character was followed by space: The diacritic got separated from the base character. Fix that specific case. Be careful not to mess with any other cases. While debugging this I added lots of temporary debugging printouts. Leave some helper functions for that behind, inside #if 0. Maybe we should start collecting such functions, including ones for most common Win32 structs, in some include file in some common location? Change-Id: Ib0198411f820cb8ba8456786869185a43628628c
2015-10-20afl-eventtesting: shutdown cleaner to allow things to deregisterCaolán McNamara
Change-Id: I2dc7c90f1f5a776bb0e6772d2b381116d28dd46f
2015-10-20ScreenSaverInhibitor: Don't depend on glib type definitionsAndrzej Hunt
We also include this header from the kde and tde backends, it seems to be saner just to use the base definitions of these types rather than depending on glib there. Change-Id: Ib270fd33290f9c213dea72a8e20618007470d882
2015-10-20Add org.mate.SessionManager supportAndrzej Hunt
This is valid for Mate <= 1.10 (As of writing, 1.10 is the current stable release - so we'll have to keep shipping this for quite a few years to come.) Change-Id: I4d1f81c50923148e710eac22f5428b2a1c41f0e9
2015-10-20Add support for org.freedesktop.PowerManagement.Inhibit tooAndrzej Hunt
This one seems to be supported by KDE (partially) and XFCE. On KDE it doesn't inhibit the ScreenSaver, however it's the only inhibition that appears to be available on XFCE (untested due to lack of XFCE system at hand). Change-Id: I4eab04d8ef66fc4fa55f57add46cb1ad15a8e2b3
2015-10-20Move DPMS inhibition to ScreenSaverInhibitorAndrzej Hunt
We should also be doing this irregardless of vcl backend Change-Id: I46ec2c654dfd9ab3c6bcf6da19e7ffa2c05890b9
2015-10-20Deduplicate XGet/SetScreenSaver, move to ScreenSaverInhibitorAndrzej Hunt
I haven't been able to find anyone actually using this API, however it's probably best not to remove it either? Change-Id: I0ca11591bfd54f9882d8081a94b012f638936ce5
2015-10-20Deduplicate XAutoLock inhibition and move to ScreenSaverInhibitorAndrzej Hunt
(Successfully tested with xautolock 2.2) Change-Id: I55a3703322dd6792689ff3c3e85b27840ee2bc55
2015-10-20Lambda'ise the almost identical FDO and GSM screensaver inhibitionAndrzej Hunt
This doesn't save us much for now, but could be useful when yet another screensaver inhibition standard is introduced. (The GSM/gnome inhibition currently requires passing the X11 window handle/id, which suggests that at some point they will have to update their screensaver inhibition api.) Change-Id: I4fa7bc15f089d112777fb166ab469045c002ae48
2015-10-20Add comment on gsm vs fdo differencesAndrzej Hunt
Change-Id: I30d1c24e84f1b28fad9933407b362be886821864
2015-10-20Move org.gnome.SessionManager.Inhibit to ScreenSaverInhibitorAndrzej Hunt
We should be using the same inhibition code irregardless of vcl backend on Linux. Change-Id: I996630666e32c40a52958edb248466c815a5e0e5
2015-10-20Implement org.freedesktop.ScreenSaver inhibitionAndrzej Hunt
This is required for screensaver inhibition on kde (this might also be supported on further desktops). It would appear to make sense to move all screensaver inhibiting code here into one location, since it should be shared across the generic unx, and gtk vcl backends - currently we have completely independent implementations for gtk/gtk3 (which only supports XSetScreenSaver, and gnome's dbus inhibition), and the generic backend for all other plugins, which supports XSetScreenSaver, xautolock, DPMS, but no dbus inhibition. Change-Id: I9c5af8021b0b49b5c93ed75a7d25e3208d5e9629
2015-10-20Add DLOPEN_LIBS to configure for some cases where -ldl is neededRichard PALO
use std::sqrt in vcldemo.cxx Change-Id: I24d8ba15ee267d0cad3b063df9b7cfd8d284f4ee Reviewed-on: https://gerrit.libreoffice.org/18591 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>