summaryrefslogtreecommitdiff
path: root/vcl/unx/generic
AgeCommit message (Collapse)AuthorFilesLines
2016-07-20loplugin:nullptr: More NULL -> nullptr automatic rewriteStephan Bergmann4-18/+18
Change-Id: Ie83819e2bcdc5fa160b39296b005ca9a5ff74b1d (cherry picked from commit fb8a3fac5d448451794804a7470be45fa14da453)
2016-06-13Related: tdf#99446 cairo text + xrender bodgeCaolán McNamara1-0/+18
(cherry picked from commit 1d18db339242a535d956b7e944ad1488fd2b4fd8) Change-Id: I926881bcfa4911f3d7f4899711be44a2f6d82026 Reviewed-on: https://gerrit.libreoffice.org/26087 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> (cherry picked from commit c55d703ea00de67793765f8da7ca17dfb54281fc)
2016-05-11Change #include <cairo-svg.h> to <cairo.h>Korrawit Pruegsanusak1-4/+1
Since we don't need cairo's svg feature, and we build internal cairo with --disable-svg. Also remove commented-out codes which use svg. Change-Id: I5a8e8c672588bb6eca28696f21221770972ec3d3 Reviewed-on: https://gerrit.libreoffice.org/23456 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com> (cherry picked from commit f9ddd6e317a7bfd662516d197c3caea976aef3b3) Reviewed-on: https://gerrit.libreoffice.org/24890
2016-02-19Resolves: tdf#97904 opengl stuff isn't implemented for gtk3Caolán McNamara1-0/+9
Change-Id: I1abbceebadf320f28955f54058b2d0ebfc79b9bc (cherry picked from commit d967cc35fd0c77d9f3dd0b3d0c7df850db6ec274) Reviewed-on: https://gerrit.libreoffice.org/22472 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-02-19gtk3+wayland: implement video playback under gtk3 + waylandCaolán McNamara5-75/+74
split the gtk2 and gtk3 gtkobjects (cherry picked from commit 31fa4545985acc1594107e087cedc2d99b3d0f0b) Change-Id: I32084232c44a12e9641010b51e75710abc827695 rename X11WindowProvider to a NativeWindowHandle provider sort of thing and genericize it (cherry picked from commit e35e762d564da18b0b508112f3e4d78fd26ba99c) Change-Id: I27e1e47f2b371e5269db079cfc1262d056105f80 implement wayland handle passing for gstreamer Change-Id: I3b0effe35ad7b37ff7ab3de2a3b78b6312779139 (cherry picked from commit c0d4f3ad3307c7a0d0fddd8c413ef0cc91d382ae) gtk3+wayland: play video via gtksink gstreamer element (cherry picked from commit 8543fbc72fafc0d71a8760752ca2ef5b7119cb5c) Change-Id: Ib371fa06eda73962cbe94739e69a68b46c26e4bf Reviewed-on: https://gerrit.libreoffice.org/22462 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-02-16unused vcl::IsWindowSystemAvailableJuergen Funk1-16/+0
Change-Id: Ie903a6fe3237319661662c0533c23528766ffd08 Reviewed-on: https://gerrit.libreoffice.org/20404 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com> (cherry picked from commit 6ded842ac4a0e06efcfcc312775d25063201eb68)
2016-01-25Resolves: rhbz#1257635 after httpConnectEncrypt use cupsGetDests2Caolán McNamara1-4/+3
sometimes after calling httpConnectEncrypt + httpClose and then calling cupsGetDests we get no printers found. Using cupsGetDests2 with the return of httpConnectEncrypt consistently provides results. Change-Id: I7ea5b11fbaabbd7ca73e5c94d0757ebdea8445ad (cherry picked from commit 6b86edae5c1eee51ee754b8013d463497bb75f65) Reviewed-on: https://gerrit.libreoffice.org/21714 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com>
2016-01-20Related: rhbz#1149116 collateEquals was set with OString::booleanCaolán McNamara1-1/+1
but extracted with toInt32() since commit c76cd71fe9bdefaef3f33f8ca193c32e3ab112ed fdo#41524: CUPS printing: use "collate" option when PDF is available though actual reported problem works fine for me with default f23 configuration already, this looks suspicious however Change-Id: I6fcb5df8039296c0e8b0fe931cb490396182de38 Reviewed-on: https://gerrit.libreoffice.org/21629 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com> (cherry picked from commit e220ba8610f8315af473a230565daa978ca6a16c) Reviewed-on: https://gerrit.libreoffice.org/21630 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-12-02valgrind: scary warning that the cairo font options were deleted before useCaolán McNamara1-6/+6
Change-Id: I58427aafb30eca64a67bcf7dd9a7738d8da3e085 (cherry picked from commit 3520b0f82aa2146958fbc1bda1cf7e9b5beb9a5d)
2015-11-25XRegion has to match the "real" XRegion structure, even if we don't useCaolán McNamara1-0/+1
some of the fields regression from commit dd351dd728687cffe432ce0ec9367ceb80e097fb Author: Noel Grandin <noel@peralex.com> Date: Tue Nov 24 08:50:39 2015 +0200 loplugin:unusedfields in vcl/ Change-Id: If68bf1e0ce90ee3c513f5461d5acd7a32e238d7b
2015-11-24Replace return boolean from DoYield with pleasant enumeration.Michael Meeks2-5/+7
Change-Id: I1b1f885b4d7916a18dfb2457a8e9af9a5b4ae6e4 Reviewed-on: https://gerrit.libreoffice.org/20138 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2015-11-24loplugin:unusedfields in vcl/Noel Grandin4-10/+0
and remove the unused SALEVENT_MOUSEACTIVATE stuff Change-Id: Ieb85872eca68621c6a7be47ff5dbea12f7690507 Reviewed-on: https://gerrit.libreoffice.org/20140 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-23VirtualDevices either match another device depth, or are 1 bitCaolán McNamara2-9/+3
cairo can therefore always render to a svp virtual device with need for a fallback Change-Id: I5d03ae541820389e26f7448444444be009fb28a4
2015-11-23establish that Virtual Devices either match Physical Device depth or ...Caolán McNamara3-11/+43
are 1 or (rarely) 8 bit and lock that down. Change-Id: I3d946ebef34ffb71c5adea7aa420af50e9584e05
2015-11-23Do all svp text rendering with cairoCaolán McNamara1-0/+2
enabling us to delete a whole pile of foo For android we patch cairo, which is internal in that case, to swap the rgb components so that cairo then matches the OpenGL GL_RGBA format so we can use it there where we don't have GL_BGRA support. Change-Id: I25e34889c7b7263438b143dd2a2ad882fb0f190a
2015-11-18remove unused typedefs and inline use-once typedefsNoel Grandin1-1/+0
and improve the script a little Change-Id: I2792ea4dd5df3a50736fbe209225c3f16fb86b84 Reviewed-on: https://gerrit.libreoffice.org/20033 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-18com::sun::star->css in vcl/Noel Grandin12-67/+59
Change-Id: Ifad76177673cf93746ba221838be80ff76fed228 Reviewed-on: https://gerrit.libreoffice.org/20032 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-17vcl: add parameter to detect if OS events are processed during Yield.Michael Meeks3-8/+16
Intended as a non-functional change. Change-Id: I1915aad03786540da1a4bfe9031d33f2c2a9b4e3 Reviewed-on: https://gerrit.libreoffice.org/20006 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2015-11-16this is pure cairo, no xlib foo hereCaolán McNamara1-2/+0
Change-Id: I037f4a293c64071306b782a156162735a2658e23
2015-11-15use initialiser for Sequence<OUString>Noel Grandin1-2/+1
replaced using: git grep -lP 'Sequence.*OUString.*\(\s*1\s*\)' | xargs perl -0777 -pi -e "s/Sequence<\s*OUString\s*> (\w+)\(\s*1\s*\); .*\[0\] = (\S+);/Sequence<OUString> \1 { \2 };/g" Change-Id: I20ad0489da887a9712982531c3b127339bb8b3b9 Reviewed-on: https://gerrit.libreoffice.org/19969 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-15use initialiser syntax for Sequence<OUString>Noel Grandin1-6/+3
replaced using the script: git grep -lP 'Sequence.*OUString.*\(1\)' | xargs perl -0777 -pi -e "s/Sequence< OUString > (\w+)\(1\); .*\[0\] = (\S+);/Sequence< OUString > \1 { \2 };/g" Change-Id: I23688a91562051a8eed11fc2a85599545c285c34 Reviewed-on: https://gerrit.libreoffice.org/19967 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-13tdf#95795 vcl: fix KDE5 desktop detectionMiklos Vajna1-1/+1
Regression from commit 6c80a8fe89fadf9a2c7260a09c037a09462f53d1 (new loplugin: oncevar, 2015-11-06), KDE4 was detected as KDE5. Change-Id: If4a7a074052a31c7505f53c03a36a0975d71b3a7
2015-11-13vcl: rename static variable I18NStatus::pInstanceMichael Stahl1-9/+9
Change-Id: Ic162dd2d9a97e7d311921fad7d4d2bdf4b81293b
2015-11-10vcl: We see what you meant by DBG_ASSERT(true, ...)Takeshi Abe1-3/+4
This also makes SalColormap::GetColor() return an RGB color if m_hColormap is valid. Change-Id: I154dc43a2be54f7da473263f9f2a29db0cf2fd4b Reviewed-on: https://gerrit.libreoffice.org/19836 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann37-536/+536
Change-Id: I05e89f9896170d4df3d1377549ea074f06b884a0
2015-11-09new loplugin: oncevarNoel Grandin1-23/+15
Change-Id: If57390510dde4d166be3141b9f658a7453755d3f Reviewed-on: https://gerrit.libreoffice.org/19815 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-06loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)Stephan Bergmann7-37/+37
Change-Id: I7ac150458a72963f3336d30ef9d99d7c0d81c024
2015-11-06vcl: The keymap table is constantTakeshi Abe1-19/+19
Change-Id: Ia563e1c58a61eaa9f2316be280711fafe6702c9d
2015-10-30tdf#93684 - Remove SalFrame::SyncRyan McCoskrie1-5/+0
Change-Id: Icae9cf0a17f9cdf9a671c7e7278019d6980602b1 Reviewed-on: https://gerrit.libreoffice.org/18453 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
2015-10-30vcl: fix the --disable-dbus buildMichael Stahl1-8/+38
Change-Id: I4562b029172e2dcef7d13bf2c1aa37410d18e25a
2015-10-27tdf#94022 Print dialog: hide Installable OptionsMichael Weghorn1-4/+36
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-20Add org.mate.SessionManager supportAndrzej Hunt1-0/+31
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 Hunt1-0/+28
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 Hunt2-69/+47
We should also be doing this irregardless of vcl backend Change-Id: I46ec2c654dfd9ab3c6bcf6da19e7ffa2c05890b9
2015-10-20Deduplicate XGet/SetScreenSaver, move to ScreenSaverInhibitorAndrzej Hunt2-27/+33
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 Hunt2-77/+48
(Successfully tested with xautolock 2.2) Change-Id: I55a3703322dd6792689ff3c3e85b27840ee2bc55
2015-10-20Lambda'ise the almost identical FDO and GSM screensaver inhibitionAndrzej Hunt1-97/+62
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-20Move org.gnome.SessionManager.Inhibit to ScreenSaverInhibitorAndrzej Hunt2-3/+92
We should be using the same inhibition code irregardless of vcl backend on Linux. Change-Id: I996630666e32c40a52958edb248466c815a5e0e5
2015-10-20Implement org.freedesktop.ScreenSaver inhibitionAndrzej Hunt2-0/+108
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-19loplugin:defaultparamsStephan Bergmann2-4/+4
Change-Id: I8db42173f116372b1c849284540c111635c3582e
2015-10-15cppcheck:variableScopeNoel Grandin2-2/+2
Change-Id: I9b671637fbe0f32e695d22b74bfb40a39a9fe884 Reviewed-on: https://gerrit.libreoffice.org/19364 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-12Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY codeStephan Bergmann14-148/+148
Change-Id: I2ea407acd763ef2d7dae2d3b8f32525523ac8274
2015-10-12Replace "SAL_DELETED_FUNCTION" with "= delete" in LIBO_INTERNAL_ONLY codeStephan Bergmann1-2/+2
Change-Id: I328ac7a95ccc87732efae48b567a0556865928f3
2015-10-09clang-analyzer-deadcode.DeadStoresStephan Bergmann1-1/+1
Change-Id: Ic3464a466302b87fae70a63f2723d1355eccab6f
2015-10-07loplugin:mergeclassesNoel Grandin1-4/+4
Change-Id: If8fabc79f4cbef6fc0d164bbe2f6136f1d1f00af
2015-10-06loplugin:unusedmethodsNoel Grandin1-5/+0
Change-Id: I150baadc442e57ee604563bc52965daa9d2e41af
2015-10-05convert SAL_FRAME_STYLE to scoped enumNoel Grandin3-87/+87
Change-Id: Ic3f7fddcea36c18ffe43c4c633d415f596a58cbc Reviewed-on: https://gerrit.libreoffice.org/19094 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-02loplugin:unusedmethods in vclNoel Grandin10-148/+2
Change-Id: Ib404310761fd555b033ab6594ba8636d37f23463 Reviewed-on: https://gerrit.libreoffice.org/19074 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-01tdf#39080 Interactive hide-whitespace modeAshod Nakashian1-1/+8
Support for enabling and disabling hide-whitespace by clicking between page frames. Disabled header and footer decorators when hide-whitepsace is enabled, and page size is trimmed to the contents of each page. Experimental/suggestive mouse pointers added but only tested on Windows. Change-Id: Ia2faeeda9e3e783ffaf5340aa69303a4218892a7 Reviewed-on: https://gerrit.libreoffice.org/18156 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-09-30Fix typosAndrea Gelmini2-2/+2
Change-Id: I2cf36eb80068adcf57238a286f09bdc96b4e01f8 Reviewed-on: https://gerrit.libreoffice.org/18994 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>