summaryrefslogtreecommitdiff
path: root/vcl
AgeCommit message (Collapse)AuthorFilesLines
2015-10-08Call WritePS with length argument, where knownStephan Bergmann4-12/+12
...which also avoids clang-analyzer-deadcode.DeadStores on the final update of the length variable when assembling the data prior to the call Change-Id: I046b1fa253e1d26a09c5095516e336b471b2e2f0
2015-10-08Use OString to dynamically assemble a stringStephan Bergmann1-7/+1
Change-Id: I5ae99bd58217bc8b105abc71286d4036a175cbf2
2015-10-08afl-eventtesting: send events to focus window and fallback to toplevelCaolán McNamara1-1/+3
otherwise we get stuck if the menubar gets activated Change-Id: I23a613de41202fa0a542d1da6e10d190225a5f44
2015-10-08Don't re-read the same glsl files over and over againTor Lillqvist1-4/+20
Change-Id: I10b4badaba01630e1a054b3d4d9cc4720822511a
2015-10-08afl-eventtesting: add Application::EndAllDialogsCaolán McNamara2-11/+21
which uses PostUserEvent like Application::Quit so can ensure EndAllDialogs gets called before Quit Change-Id: I9eb7dbd4f012be2e9b9cea7a73c90c5aaba141aa
2015-10-08fix for tdf#94827 - ToolBox events aren't deliveredNoel Grandin1-3/+4
regression from 1e67e94f1a308ca60d4934e9fe9d5c048225ebe8 "convert Link<> to typed" Change-Id: Ibb20366f0edcb9425d61ce5e9d5fb1a34533785b
2015-10-07Make this compile for iOS againTor Lillqvist6-46/+9
Change-Id: Idd4a1e6d50652a879493d8411c59605ca1a53dfb
2015-10-07afl-eventtesting: quit on next cycle if testing stops earlyCaolán McNamara1-5/+4
Change-Id: Ie313009ee0d10872f5e705d017e6a73ff83c2761
2015-10-07fix some indentCaolán McNamara1-13/+13
Change-Id: I59f5a38f6c62b97eb73d85177be408996568e2cd
2015-10-07clang-analyzer-deadcode.DeadStoresStephan Bergmann1-3/+2
Change-Id: I9570057473f844c55b88d38f24f8156ea7c6c90c
2015-10-07afl-eventtesting: creating OUString from super long sal_Unicode* is slowCaolán McNamara11-71/+80
the mpStr and mnLength arguments are always created from an OUString and the OUString aRun(rArgs.mpStr); creates a duplicate of the original string. Its way faster to pass the original OUString around instead. Change-Id: I3de0cc31654eb215362548b6aee435f9c0c3c9db Reviewed-on: https://gerrit.libreoffice.org/19221 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-10-07afl-eventtesting: it has learned to open dialogs, so...Caolán McNamara1-2/+14
close all open dialogs on quitting to avoid triggering the hang timeout and get things moving faster Change-Id: I7469a32549f20d6b0971932e3334cb322f57b1ff
2015-10-07afl-eventtesting: lets ditch the key repeat and timestamp fieldsCaolán McNamara3-4/+3
time stamp doesn't matter apparently for keyboard events so ditching it gives less surface area to fuzz repeat showed some interesting effects, but mostly just allows vast paragraphs to be generated causing timeout hangs which isn't what I'm super interested in right now. Change-Id: I955b91745a26d5044f0d53acd3fda0a160e53855
2015-10-07Revert "loplugin:mergeclasses" to fix mac buildCaolán McNamara5-14/+23
because fontsubst.cxx is not built on mac. move PreMatchFontSubstitution to PhysicalFontCollection.cxx ? This reverts commit 349700228e4449ace956b30bc65208b9196f0a78. Change-Id: I007f24313ddfd0eb3db3fd599abcf1eae3da4e9c
2015-10-07loplugin:mergeclassesNoel Grandin5-23/+14
Change-Id: I9f56beebae1ea02a8914b7b25fe7565f7b0df053
2015-10-07loplugin:mergeclassesNoel Grandin6-35/+37
Change-Id: If8fabc79f4cbef6fc0d164bbe2f6136f1d1f00af
2015-10-06Prefer getSelectedFiles to getFiles (vcl)Julien Nabet2-2/+2
Change-Id: I0cb515a8b394c5e4b43fe84282383872c0680f15 Reviewed-on: https://gerrit.libreoffice.org/19216 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
2015-10-06experimental afl driven ui testingCaolán McNamara4-0/+84
Change-Id: I1933951c52adc75ed36db2c083c232f29b6140d6
2015-10-06dead makefile.mkCaolán McNamara1-64/+0
Change-Id: I03b10f2cda6bf9305e724f2a547924d1c8ec316b
2015-10-06test tool is goneCaolán McNamara1-1/+0
Change-Id: I3d99a62c27b914cc6286ddf013f551111d677484
2015-10-06loplugin:unusedmethodsNoel Grandin9-82/+0
Change-Id: I150baadc442e57ee604563bc52965daa9d2e41af
2015-10-06 tdf#94559: 4th step to remove rtti.hxxOliver Specht1-1/+1
replaced use of PTR_CAST, IS_TYPE, ISA in idl, editeng, sc, sd, sw, sfx2, sot, starmath Change-Id: I4a5bba4fdc4829099618c09b690c83f876a3d653 Reviewed-on: https://gerrit.libreoffice.org/19132 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Oliver Specht <oliver.specht@cib.de>
2015-10-06loplugin:mergeclassesNoel Grandin1-25/+49
and move the boost-depending code inside the module, no need to expose that dependency and include that header in all client code. Change-Id: Ib991572d7a54a9ad16825d688e76f8e3a824803c
2015-10-05opengl: take row stride into account when reading to 1-bit bitmapTomaž Vajngerl1-15/+21
Change-Id: Iaa67b209d5b6ab0d9c567a71dee0684a85f53f6b
2015-10-05opengl: cache Spinbox native widget texturesTomaž Vajngerl2-17/+26
Change-Id: Ib3e99ce36f3f0c855d2932038776f62f2d47f50c
2015-10-05create "disabled" image (icon) only if the original changesTomaž Vajngerl2-1/+8
Currently we create a "disabled" version of bitmaps in "Image" class (used for toolbar icons for example) in every draw call. This is not really optimal. The solution is to calculate the checksum of the original and create a "disabled" version only if the checksum changes. Change-Id: I6ed2d08c64fee028b479fedb35e4384f112e98e2
2015-10-05Emscripten: First steps of porting to EmscriptenSamuel Mehrbrodt1-1/+5
See https://wiki.documentfoundation.org/Development/Emscripten for details Change-Id: I977a8b9e98b9be13c263fef48f567b92347d0492 Reviewed-on: https://gerrit.libreoffice.org/18643 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2015-10-05Fix SalFrameStyleFlags bitmaskStephan Bergmann1-1/+1
Change-Id: I2e161a3b9cc06180becf63a44018ff72cdd8449a
2015-10-05fix KDE4 buildNoel Grandin2-2/+2
Change-Id: I1be5448074bd763dd6a68d33dc2c6a1b1adc57d9
2015-10-05fix KDE4 buildNoel Grandin2-2/+2
Change-Id: Idb101b5b5d40b6a1a54acda81be5a5f2c09722bb
2015-10-05convert SAL_FRAME_STYLE to scoped enumNoel Grandin32-290/+298
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-03add QuattroPro support to fftesterCaolán McNamara1-5/+6
Change-Id: I832ab43e2fccf9b2c24e98ae443a9611012ea5a1
2015-10-02drop unneeded headerDouglas Mencken1-1/+0
Change-Id: I0f4e31af807ea3a7771db81f1514a7ebdd1f7f7e Reviewed-on: https://gerrit.libreoffice.org/19101 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2015-10-02Allow non ASCII chars as accelerator keysNiklas Johansson1-2/+2
Non ASCII characters like åäö can be used as accelerator keys (Alt+<x>). This already works however at the moment it is not exposed properly to accessibility tools such as screen readers. After this patch at least NVDA gets information about accelerator keys that are non ascii. On Linux we need to adapt code in vcl/unx/atk/a11y/atkaction.cxx. There is also vcl/source/window/dlgctrl.cxx#Window::GetActivationKey should probably have similar treatment and I guess that it is related to accelerator keys in dialogs but I need to confirm that. I'm a bit unsure how to best do that so I'll save it for later. Change-Id: I1f1509a26d781011d217670266bd10b2107811d5 Reviewed-on: https://gerrit.libreoffice.org/19078 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-10-02-Werror,-Wdeprecated-declarationsStephan Bergmann1-0/+2
Change-Id: I87922fb64dda54f245954d6c5eb3b244812ceaf0
2015-10-02Resolves: tdf#92993 access violation on particular .docx on glyph layoutCaolán McNamara1-2/+4
Change-Id: I69dfd6747e37ddb1727dd41b99d1b70eaed83425
2015-10-02vcl tiled rendering: avoid 'Pixel represents color values!' warningsMiklos Vajna1-1/+5
Which happens e.g. during rendering tiles: OutputDevice::BlendBitmapWithAlpha() produces an RGB alpha (255,255,255), then tries to set a pixel in the 8bit alpha channel using it, so when BitmapReadAccess::SetPixelFor_8BIT_PAL() tries to get the color index, we try to get it from a color that is not indexed. Let's assume that when the color is not indexed, it's always gray, so it doesn't matter what color we pick for the alpha mask needs. Change-Id: I325c1d70514fd176fdc9cc39683b444447adf07f
2015-10-02fix Android and KDE buildNoel Grandin5-5/+43
after commit 837f171810a95a1d87907dd08d67e969276f0559 "loplugin:unusedmethods in vcl" Change-Id: Idd4603f34891950940a77efa30b9ee70f35d7533
2015-10-02Fix --enable-kde4Stephan Bergmann1-0/+1
...after 837f171810a95a1d87907dd08d67e969276f0559 "loplugin:unusedmethods in vcl" Change-Id: I43ade93c47d7633a5b660ae25fe1137df161cec3
2015-10-02fix KDE buildNoel Grandin1-0/+1
after commit 837f171810a95a1d87907dd08d67e969276f0559 "loplugin:unusedmethods in vcl" Change-Id: Ic0ece310202ecd1663d8933b10a6aef8b462a02d
2015-10-02loplugin:unusedmethods in vclNoel Grandin71-774/+17
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#94428 - don't use OpenGL font rendering when we're printing.Michael Meeks1-1/+1
Change-Id: I212bb442bdffa38d77e7e7357199c39420fa7951
2015-10-01desktop, vcl: support transparency in VirtualDevices with user-provided memoryMiklos Vajna1-4/+8
Change-Id: I65c31995c02a644aa436aecd065255fab38045e4
2015-10-01Fix typosAndrea Gelmini1-1/+1
Change-Id: I4452d4a4a4a61f39cd9c2b5a441c6c2017f15ce8 Reviewed-on: https://gerrit.libreoffice.org/19073 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2015-10-01add 602 format to fftesterCaolán McNamara1-1/+13
Change-Id: I52055dc66ab2119dce6e3df3a34c25a822dea166
2015-10-01Fix typosAndrea Gelmini14-19/+19
Change-Id: I8fd769ca61d1ec1a915a012c0c2244056dc5bcb8 Reviewed-on: https://gerrit.libreoffice.org/18992 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2015-10-01tdf#39080 Interactive hide-whitespace modeAshod Nakashian15-12/+150
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-10-01Graphite edge case line endingsMartin Hosken2-38/+31
Change-Id: I3ac15b79d47a79167717acfb5549a353b7520d3e Reviewed-on: https://gerrit.libreoffice.org/18915 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Martin Hosken <martin_hosken@sil.org>
2015-10-01vcl: Fix possible memory leak in OpenGLSalBitmapDaniel Robertson1-0/+1
Fix possible memory leak in OpenGLSalBitmap::CreateTexture Change-Id: Ic2d259569a5e89f60af7065b9d66ef03f82f90e7 Reviewed-on: https://gerrit.libreoffice.org/19049 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-01remove old standalone Sun bug numbersNoel Grandin5-8/+7
Sun bug numbers without any accompanying text are completely useless. Fixed with git grep -lP '//\s*#\d+#\s*$' | xargs perl -i -ne'/\/\/\s*#\d+#\s*$/d or print' And then hand-checking the result to restore places where it deleted code. And then some more grepping and hand-editing to kill the others. Change-Id: Ia96ce4466db8bb8da363ebf41f0ae7f45f28bf29 Reviewed-on: https://gerrit.libreoffice.org/19023 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>