summaryrefslogtreecommitdiff
path: root/vcl/inc
AgeCommit message (Collapse)Author
2016-02-29gtk3: presumably XrmInitialize can be dropped nowCaolán McNamara
Change-Id: Ib3e87d8a07f4e38f8dcb6e1226f91920df53c81c
2016-02-28mbUnityMode is always falseMaxim Monastirsky
Change-Id: I7c4b05cd02dee2b6efb926955759d725428e1dc1
2016-02-26gtk3: add a menubar close buttonCaolán McNamara
the css foo is modeled on the similiar gedit close buttons in its tabs Change-Id: I7af32ad0434a49c52eea215f797c502be7f96dac
2016-02-26gtk3: native gtk menubarCaolán McNamara
Change-Id: Ibb75aa3eae99e499e1c2026c41b0bf51d7f8cf31
2016-02-26loplugin:unuseddefaultparam in vcl/Noel Grandin
Change-Id: Ic09d160ed6e3cdcd95bc04844ee8f20cfcb286ec Reviewed-on: https://gerrit.libreoffice.org/22698 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-25gtk3: put all of our existing toplevel stuff inside a GtkGridCaolán McNamara
so we can optionally insert a native menubar above it all Change-Id: Ib8486d7164493db79c868715a2aef209d7472c01
2016-02-25opengl: shader based polyline rendering - fixes tdf#97137 for OGLTomaž Vajngerl
Adds native opengl polyline rendering to draw polylines, line joins and line caps as triangle strips. The vertex shader allows for the dynamic line width by calculating the correct vertex posiitons, and the fragment shader is used for anti-aliasing. Change-Id: If7982c828cae1fae59c57194c8ac77e5ad7f1d26
2016-02-24gtk3: implement native context menusCaolán McNamara
This reuses lots of the unity machinery which is similar to the mac concept of a single toplevel menubar. So to drive popup menus, part of this is a rework that does away with the idea that the "menubar" is the controller of the hierarchy, and instead the top element becomes the controller Change-Id: I4336391718844bc73cfc47c1043f99f0e3b812d8
2016-02-22gtk3: some changes towards enabling native gtk3 popup menusCaolán McNamara
these menubar things can be menu things and can then do away with the casting, no logic changes intended Change-Id: Ibb1b5354d5e1483327f172d6890e134f1e4b9ee4
2016-02-22tdf#82577: Remove prex.h and postx.h wrapper headersJorenz Paragas
Include the X11 headers directly in files that used to include those wrappers, and add the Pixel typedef to files that use it. prex.h included headers that a file including prex.h might not need at all, so when replacing prex.h and postx.h includes, try including only X11 headers that are actually needed in their place. Also fix saldisp.hxx and i18n_xkb.cxx relying on indirectly included X11 headers. Change-Id: If0c30c7facc28db7f2e410b5e6f1d52d8c7cdfd3 Reviewed-on: https://gerrit.libreoffice.org/22132 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-02-19always support packagekit if dbus is enabledCaolán McNamara
Change-Id: I8eb169d33fcb0217989b180aa0c4c0110875be32 Reviewed-on: https://gerrit.libreoffice.org/22503 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-02-19move dbus config into its own config headerCaolán McNamara
Change-Id: I5b0734a30dee323d41270de06f6a02fd676155c9 Reviewed-on: https://gerrit.libreoffice.org/22502 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-02-19move gio config into its own separate config headerCaolán McNamara
Change-Id: I25ca238931da039c244c2af6171d69c9875f95ff Reviewed-on: https://gerrit.libreoffice.org/22501 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-02-19new loplugin: find write-only fieldsNoel Grandin
Change-Id: I0f83939babacf92485420ee63f290a297d7cb717 Reviewed-on: https://gerrit.libreoffice.org/22498 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-19loplugin: checkconfigmacrosCaolán McNamara
I suppose Change-Id: I2821665548077162c4a434876aee407127b312a4
2016-02-19gtk3: get app menu working again under gtk3Caolán McNamara
and have a stab at getting it working under wayland Change-Id: I57592acc4b7ea4a55296541ab4b3bf0c8fd98c5b Reviewed-on: https://gerrit.libreoffice.org/22491 Tested-by: Jenkins <ci@libreoffice.org> Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2016-02-18Resolves: tdf#97953 spinbuttons are not suitable for reuse as up/down arrowsCaolán McNamara
Change-Id: Ibcd7bd4099210a26513caac6e3b16a88a4c8abad
2016-02-18move from boost::signal to typed LinkCaolán McNamara
it doesn't really gain us much to have a handful of boost::signal use in a sea of Links This also fixes a regression in commit 051b29e1025253f35f87a04e297760aa8b40611f Author: Luboš Luňák <l.lunak@collabora.com> Date: Sun Sep 14 15:45:02 2014 +0200 convert Edit autocomplete Hdl to boost signals2 where the conversion was... - if ( maAutocompleteHdl.IsSet() ) + if ( autocompleteSignal.empty() ) instead of the correct + if ( !autocompleteSignal.empty() ) Change-Id: I27270d94c782485c0a7e929bc4980af4527fe82b
2016-02-18Resolves: tdf#97904 opengl stuff isn't implemented for gtk3Caolán McNamara
Change-Id: I1abbceebadf320f28955f54058b2d0ebfc79b9bc
2016-02-17gtk3: use native GtkPopover for calc formula prompt, etcCaolán McNamara
Change-Id: I9aa7e977228780b6273daa03be5e872342414437
2016-02-17use consistent #define checks for the Windows platformNoel Grandin
stage 2 of replacing usage of various checks for the windows platform with the compiler-defined '_WIN32' macro In this stage we focus on replacing usage of the WIN macro Change-Id: Ie8a4a63198a6de96bd158ecd707dadafb9c8ea84 Reviewed-on: https://gerrit.libreoffice.org/22393 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-16use std shared_ptr for sharing ImpBitmapsCaolán McNamara
Change-Id: I1a0360096964f6402bd3631f2b3f34bf9595ebc6 Reviewed-on: https://gerrit.libreoffice.org/22394 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-02-16Related: tdf#97739 fix gtk3 spinbuttons for recent control region changesCaolán McNamara
Change-Id: Ia745cbe808395c4c9ec6a3c72612814a4834bbcb
2016-02-16use consistent #define checks for the Windows platformNoel Grandin
stage 1 of replacing usage of various checks for the windows platform with the compiler-defined '_WIN32' macro Change-Id: Iece73abdee530937e0737190b1aa97a46cd3075f Reviewed-on: https://gerrit.libreoffice.org/22390 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-02-15Unit test for opengl blocklist parsing and evaluatingTomaž Vajngerl
Parsing unit test checks that the xml values are parsed correctly and that the DriverInfo structure is populated with the expected values. Evaluate unit test checks that blacklisting / whitelisting logic blocks OS/vendor/driver/device as expected. Change-Id: Ib1b0926606f0835207c324193bbe19ba83f86bdc Reviewed-on: https://gerrit.libreoffice.org/22371 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2016-02-15implement wayland handle passing for gstreamerCaolán McNamara
Change-Id: I3b0effe35ad7b37ff7ab3de2a3b78b6312779139
2016-02-15rename X11WindowProvider to a NativeWindowHandle providerCaolán McNamara
sort of thing and genericize it Change-Id: I27e1e47f2b371e5269db079cfc1262d056105f80
2016-02-15tdf#97665 Let's hope that over activation isn't really neededMaxim Monastirsky
- MenuBarManager::Activate has a check for duplicate activation, which makes the second activation attempt fail. Removing this check or deactivating after each activation will likely affect performance even more, but on the other hand should solve lp#1296715, which was the main reason of the over activation in the first place. So let's activate only one menu at a time, and do full activation only on the initial update. - Unfortunately the HUD activation callback doesn't work, so we still have to keep active status listener for all menu items. (Which is BTW against the recommendation in XPopupMenuController::updatePopupMenu IDL doc. Fortunately the performance problem hardly noticeable on modern hw.) Change-Id: I96affa72412f3f38160fdca4b6efd20ca68d059f Reviewed-on: https://gerrit.libreoffice.org/22369 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
2016-02-12nothing needs GetClipRegionType or uses SAL_OBJECT_CLIP_INCLUDERECTS nowCaolán McNamara
Change-Id: Ie43eb3b2c449891fef1031e7df3f381cecb4b4f9
2016-02-12this GetClipRegionType is always SAL_OBJECT_CLIP_INCLUDERECTSCaolán McNamara
Change-Id: I0dc1ac4748dc81e16cf1d68e5f1bd8eb407bb9cf
2016-02-12SAL_OBJECT_CLIP_ABSOLUTE is never usedCaolán McNamara
Change-Id: I090f9854589a26b8de78fcda1093ea0c19625c79
2016-02-12SAL_OBJECT_CLIP_EXCLUDERECTS is never usedCaolán McNamara
Change-Id: I60b267e84df2ca0e540fc3218faa9a3fc4c9c55d
2016-02-12nClipRegionType is always SAL_OBJECT_CLIP_INCLUDERECTSCaolán McNamara
Change-Id: Iba054bc064c664f8499219db002749072435e32c
2016-02-13vcl: include vcl headers via triangular brackets instead of quotesChris Sherlock
Change-Id: I311f7db622ce341527fe12a92b516f800b602f92
2016-02-12Blind Windows fix attemptStephan Bergmann
Change-Id: If4f83dfa0b2977f404715b7a95a73cbcdfc4f5df
2016-02-12Related: rhbz#1287593 subissue 6, get suitable hyperlink colors for dark themeCaolán McNamara
Change-Id: Ieb5ed52fa8a9c26b3e839388a58cff295166eed9
2016-02-11Keep track of ThreadsEnter/Leave acquire counts per threadStephan Bergmann
Appears that gtk_clipboard_wait_for_targets (called from GtkClipboardTransferable::getTransferDataFlavorsAsVector, vcl/unx/gtk3/gtk3gtkinst.cxx) internally calls gdk_threads_leave/enter, so if two threads concurrently try to call into getTransferDataFlavorsAsVector, each with the SolarMutex recursively acquired a different number of times, the GtkYieldMutex::ThreadsLeave/Enter calls can pair up so that the threads' acquire counts get swapped. Then eventually causing one thread to prematurely get the SolarMutex unlocked. This was fairly well reproducible when calling an --enable-dbgutil's soffice with an .oxt file on the command line, causing both the Extension Manager dialog and an empty Writer document to open simultaneously (which apparently both run into the above getTransferDataFlavorsAsVector), and then running into some DBG_TESTSOLARMUTEX assert firing when the SolarMutex had been unlocked prematurely. According to <http://en.cppreference.com/w/cpp/compiler_support>, support for thread_local is available partially since GCC 4.4 and fully only since GCC 4.8, so hope the partial support in GCC 4.7 (our current baseline) is good enough for what is used here. Change-Id: I9fad318078be5f31111a7cbd15d0e1349e7ddd3e Reviewed-on: https://gerrit.libreoffice.org/22291 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-02-11gtk3: adapt to 3.20 style changesCaolán McNamara
todo: get rid of the rest of the getStyleContext foo in favour of additional createStyleContext entries. This appears to now render fine on f23 and f24. upstream gtk now has a foreign drawing demo in gtk-demo. Stuff we are trying to do here can be found in a cleaner single-version state there. And additional demos can be added to keep a reference of how to do this crap up-to-date. Change-Id: I5ae1a52a2cacc6d8178ed1af30a12536ba828050
2016-02-10opengl: remove unneeded mnBufWidth{Height} from OpenGLSalBitmapTomaž Vajngerl
Change-Id: Idf445b9f6b403a0d37650c14e17b7d754451edf1 Reviewed-on: https://gerrit.libreoffice.org/22258 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2016-02-09tdf#94097: Move 'Print to file' option to the front pageKatarina Behrens
Change-Id: I4acc09d0a46d82cfc9a63cbffe8e53a1b86f3acd Reviewed-on: https://gerrit.libreoffice.org/21908 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
2016-02-09tdf#97666 -opengl: convert the bitmap to 8bit grays using GL shaderTomaž Vajngerl
Change-Id: I4d48d29ab752814f71c697a201e70a26ae937775 Reviewed-on: https://gerrit.libreoffice.org/22223 Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com>
2016-02-09Remove excess newlinesChris Sherlock
A ridiculously fast way of doing this is: for i in $(pcregrep -l -M -r --include='.*[hc]xx$' \ --exclude-dir=workdir --exclude-dir=instdir '^ {3,}' .) do perl -0777 -i -pe 's/^ {3,}/ /gm' $i done Change-Id: Iebb93eccbee9e4fc5c4380474ba595858a27ac2c Reviewed-on: https://gerrit.libreoffice.org/22224 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-02-09Formatting changes across all modulesChris Sherlock
+ Removed comment cruft + Tab formatting in number of files + Some commented out code removed + Tab characters replaced with spaces + Newline cleanup in quite a few files + Tweak header guard #endifs Change-Id: I3208ff2f047da890edcc49b73389aca22442f5fc Reviewed-on: https://gerrit.libreoffice.org/22221 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-02-08tdf#97458 - remove unused intel opengl driver version special-casing.Michael Meeks
Change-Id: I938bcab02edb37a5e7d72f1551867e0f5a4dd89b Reviewed-on: https://gerrit.libreoffice.org/22215 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Bryan Quigley <gquigs@gmail.com> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2016-02-08Fix XBM-format cursor dataStephan Bergmann
Change-Id: I7e8dc166a33ad1bf98029a7ed323a7ddcbe74bfb
2016-02-06vcl: bmpacc.hxx -> bitmapaccess.hxxChris Sherlock
Change-Id: I4bb19d6103c4a6a902d86b62a857e3478493924c
2016-02-05Fix typosAndrea Gelmini
Change-Id: Ice72f8d9971e15dd6ef365e64cd567b8581a92d3 Reviewed-on: https://gerrit.libreoffice.org/21797 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2016-02-05vcl: move AInfo into private headerChris Sherlock
Change-Id: If6bb832cbf64d12b4ec3a860010fd99340b14ca5
2016-02-04coverity#1351758 Uninitialized pointer fieldCaolán McNamara
Change-Id: I50639f0f83c2f1135a0c2002145e02fdf15034a5
2016-02-04tdf#96888 - Kill internal vcl dog-tags ...Ras-al-Ghul
Finally removed struct ImplDelData Change-Id: Ib2bb4a51b94886b95bca0c84adffc8fd4123e8b8 Reviewed-on: https://gerrit.libreoffice.org/22093 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>