summaryrefslogtreecommitdiff
path: root/vcl
AgeCommit message (Collapse)AuthorFilesLines
2016-05-27shortcut the signal handler during batch testNorbert Thiebaud1-1/+4
Change-Id: I7848555743e8d54e755dc82cbf0148eeed54110f Reviewed-on: https://gerrit.libreoffice.org/25178 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2016-05-27Convert GRAPHIC to scoped enumNoel Grandin4-61/+61
Change-Id: I1fd09a729cbda00f99841532e0dd3fa66bce7bea Reviewed-on: https://gerrit.libreoffice.org/25534 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-27Revert "remove unused RSC_DOCKWINDOW flags"Michael Stahl1-1/+32
This reverts commit c8754b38ce205845aad5cde3c5ad4070ce38f7d5. This causes toolkit.AccessibleDropDownListBox to fail with: LOG> ImplementationName Unknown, does not implement XServiceInfo Exception while getting Environment Couldn't create a test object
2016-05-27remove unused RSC_DOCKWINDOW flagsNoel Grandin1-32/+1
Change-Id: I2e2d82760b10876a7cf2a8cfb375926eb24d23e4 Reviewed-on: https://gerrit.libreoffice.org/25462 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-27Related: tdf#87967 valgrind reported invalid reads on 1 pixel wide bitmapCaolán McNamara1-5/+5
Change-Id: Iddd18280c780d8b9f5e11fcc2af80749917192c4
2016-05-26cppcheck: variable scopeCaolán McNamara4-6/+7
Change-Id: I27ab82d32df984a86af1a2abda491581bff70a2c
2016-05-26Convert TextDirectionality to scoped enumNoel Grandin2-5/+5
Change-Id: I1046e791a73ec07be5a946c63a2256939a323e91 Reviewed-on: https://gerrit.libreoffice.org/25497 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-26vcl: replace boost::shared_array with std::shared_ptrMichael Stahl3-28/+28
This was already using get() everywhere. Change-Id: I6d1eee4fe9b0494a1c49ac44917d9fc7c22b43a4 Reviewed-on: https://gerrit.libreoffice.org/25470 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-05-26loplugin:unusedreturntypesNoel Grandin5-40/+23
and clean up the python script Change-Id: I0a7068153290fbbb60bfeb4c8bda1c24d514500f Reviewed-on: https://gerrit.libreoffice.org/25439 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-26Convert MtfConversion to scoped enumNoel Grandin1-3/+3
Change-Id: I694fe139531a10467265b028ad15df0eda6d723a Reviewed-on: https://gerrit.libreoffice.org/25442 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-26convert RSC_IMAGE to scoped enumNoel Grandin1-15/+4
and drop unused RSC_IMAGE_IMAGEBITMAP Change-Id: I6c38e5e8e17d288ab525bbef368ebbc7e860e154 Reviewed-on: https://gerrit.libreoffice.org/25458 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-26Convert METRICFORMATTER to scoped enumNoel Grandin1-3/+3
Change-Id: If7004e0ca3f2dc229b1b36c07811eef09456b437 Reviewed-on: https://gerrit.libreoffice.org/25464 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-26Convert METRICFIELD to scoped enumNoel Grandin1-4/+4
Change-Id: I283d578071af549c0f8f50de728859b6715e47b5 Reviewed-on: https://gerrit.libreoffice.org/25463 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-25lok: reset the font list when there are no itemsHenry Castro1-0/+10
In the pre-init stage the devices were initialized with no font list, but later the font list is updated. So those devices were not updated. Change-Id: I157d4c7079f9b1252916eb92b512aadb8e77329f Reviewed-on: https://gerrit.libreoffice.org/25419 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2016-05-25vcl: replace prematurely optimized GlyphEmit with a std::vectorMichael Stahl1-25/+6
Change-Id: Ie0cdc224c1b224ea549c011f1d07beb38261516f
2016-05-25vcl: replace boost::dynamic_bitset with boost::optional<std::bitset>Michael Stahl6-20/+30
The getTTCoverage either leaves the bitset empty or inits it with 128 bits, so it's not particularly dynamic. Change-Id: Iac0aa6a023acc54da86d681e75ca550faf91ef26 Reviewed-on: https://gerrit.libreoffice.org/25456 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-05-25Window::SetData and Window::GetData are nearly unused nowCaolán McNamara3-12/+0
except for.. a) one use in sw which we can replace with a map b) one use in svx which didn't do anything c) one amusing piece of crazy in cui Change-Id: If66d9f7eab1eaddfb2bdab7815c3a6f22f4d7745
2016-05-25new src file has ExtraLong in use anymoreCaolán McNamara1-5/+0
Change-Id: I1d31fb41a8f7def6a95a46dd61d0be4b608c6994
2016-05-25no src file has BorderStyle in use anymoreCaolán McNamara1-6/+0
Change-Id: Id2d2d845c73a7c83bef2e66ede542e99b0475af8
2016-05-25this temporary window will never see key inputMarkus Mohrhard1-11/+0
Change-Id: I89942224b708565d098702a85ea841c2736dff40 Reviewed-on: https://gerrit.libreoffice.org/25437 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-05-25(nearly) nothing uses GetUniqueId anymore, so remove it.Caolán McNamara4-21/+0
The odd one out is the usage in Formula, which attempts to restore focus to a particular window identified by an unique id. In this case restore focus by keeping a VclPtr to the desired window. Change-Id: I1dc335325c109d75745c6bba2e12662e6ae50638
2016-05-25Convert BMP_FORMAT to scoped enumNoel Grandin26-553/+557
Change-Id: I751ab762b6e6f961e9e73a8a2ca92a3f5a5eb1c8 Reviewed-on: https://gerrit.libreoffice.org/25189 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-25Convert AUTOCOMPLETE to scoped enumNoel Grandin2-9/+9
Change-Id: I201c8f8b41855b2777f0e7131aeaf33cafb82804 Reviewed-on: https://gerrit.libreoffice.org/25438 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-25Use VCL_GL_INFO hereTor Lillqvist1-2/+2
Failing to open a cached shader binary is a no reason for a SAL_WARN. It is normal that they don't exist when first trying, that is the very nature of a 'cache'. Change-Id: Iaa40af11f0679b859f1fa8b246665c61640df379
2016-05-25Avoid redundancy: The same information was logged in readProgramBinary()Tor Lillqvist1-1/+0
Change-Id: Id5619c9c102ba72826265c1b5f46ddb58596b8b1
2016-05-25convert ImageType to scoped enumNoel Grandin1-3/+3
and drop duplicate definition in framework. Change-Id: I6cb95241e659ad58429bffeaaf2f95b07ad12df6 Reviewed-on: https://gerrit.libreoffice.org/25400 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-25Don't claim to be reading a file before trying to open itTor Lillqvist1-2/+2
Change-Id: I8a3332c4b1acaa4dc69ff9349d2e9241fb4f340f
2016-05-25tdf#98792: This assertion is not neededTor Lillqvist1-1/+0
In some cases this assert() even prevents stuff from working nicely. (In a build where assertions are active, obviously, so this commit has no effect on "production" builds.) See bug report for some (fairly clueless) comments by me. Change-Id: Id1847f6e0a7dc30e63e6dd7d5800515c4229b9d1
2016-05-25Convert XmlReader::Result to scoped enumNoel Grandin2-48/+48
Change-Id: I6a0d1dcf5ae51d2ac08aacdfec50865f93e51c21 Reviewed-on: https://gerrit.libreoffice.org/25365 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-25remove (un-)definitions of NDEBUG from source filesMichael Stahl3-10/+0
The build system already defines NDEBUG only if OSL_DEBUG_LEVEL=0 AND ASSERT_ALWAYS_ABORT=FALSE so the C++ code shouldn't override that. Change-Id: Ie67a576646cc7e18c3ffac67a3c81b80747ea438
2016-05-25Convert Disposal to scoped enumNoel Grandin3-10/+10
and drop unused FULL value Change-Id: I3b9c26cb164785ef86f1a8d57cce962b015c85d6 Reviewed-on: https://gerrit.libreoffice.org/25432 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-25Fix typosAndrea Gelmini2-2/+2
Change-Id: I860cc4aa04b4e5cd1437b2f24176ee2ccdec3266 Reviewed-on: https://gerrit.libreoffice.org/25420 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-25Convert FontHintStyle to scoped enumNoel Grandin3-10/+10
Change-Id: I6e59bf8beacc524897aede45420574148c0fecde Reviewed-on: https://gerrit.libreoffice.org/25397 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-25VclBuilder: pStore may indeed be emptyJulien Nabet1-1/+2
eg: sd/uiconfig/simpress/ui/photoalbum.ui It just prepares an empty store for being able to add some files Change-Id: I1481a09fa37d85c78b052026ac612dcd039025cc Reviewed-on: https://gerrit.libreoffice.org/24328 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org>
2016-05-25SAL_FALLTRHOUGH in Windows-only codeStephan Bergmann2-0/+2
Change-Id: If35da46c209746a86687e1c3f60f72f2f08aa681
2016-05-25Mark dubious fallthrough cases as "SAL_FALLTHROUGH; //TODO ???" (in Win-only)Stephan Bergmann1-0/+1
Change-Id: If5ee201aab8c4451971a11ea7d7ff943c9a1a726
2016-05-25-Werror,-Winconsistent-missing-overrideStephan Bergmann1-2/+2
Change-Id: I15a8399d120450b01bd35c7ad974d3af749811ad
2016-05-25Missing includeStephan Bergmann1-0/+1
Change-Id: I11a004458ac90db92f4bf9e54827b6727c5cbc67
2016-05-24opengl: prevent seg. fault - VCL_GL_INFO still needs the contextTomaž Vajngerl1-1/+2
Change-Id: Iaf71104d85e8a0b8f5b101f614a6c4b90ce63f87 Reviewed-on: https://gerrit.libreoffice.org/25409 Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com>
2016-05-24Convert WINDOW_HITTEST to scoped enumNoel Grandin3-11/+9
Change-Id: I18c3798ae41eeffe96797828709f6ee42b32fcbe Reviewed-on: https://gerrit.libreoffice.org/25395 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-24Convert VclPackType to scoped enumNoel Grandin3-11/+13
Change-Id: I5bcc4f8686c1ce5bf7def948ce50837fa542786f Reviewed-on: https://gerrit.libreoffice.org/25394 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-24support old gtk3sCaolán McNamara1-0/+6
Change-Id: I20429aa8c06a319f9eb11079b320211f38e16827
2016-05-24fix crash on pressing esc on Insert->Table floating windowCaolán McNamara1-1/+2
Change-Id: Icc06626608228a1fb4e043ccc73b6a6fb438401a
2016-05-24Revert "Simplify GfxLink using std::shared_ptr to clarify ownership"Stephan Bergmann1-65/+160
This reverts commit d64431ac5a7bede7661c64e0bd6d46805841e704, which caused ASan to complain about "alloc-dealloc-mismatch (operator new [] vs operator delete)" (while e.g. building Gallery_arrows), as GfxLink::mpSwpInData is a std::shared_ptr<sal_uInt8> holding a pointer to an array of sal_uInt8.
2016-05-24Convert XmlReader::Text to scoped enumNoel Grandin2-21/+21
Change-Id: I4741b13fcf887a95b85886cb41f8236e128e81a2 Reviewed-on: https://gerrit.libreoffice.org/25364 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-24Convert ImageType to scoped enumNoel Grandin2-19/+19
Change-Id: I7928fe7f1d6e96dcf42b03bd04fa9499371bbd98 Reviewed-on: https://gerrit.libreoffice.org/25354 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-23opengl: combined shaders to reduce shader switchingTomaž Vajngerl8-25/+273
Combine most common shaders for non-texture drawing and texture drawing into two combined shaders. Inside the shader we switch between the code paths with if statements. Using if statements (or any other branching statements) is discouraged inside shaders but on the other hand we reduce program state changes if we have less shader changes - which is more important for us as we want to push more work to the GPU. Change-Id: I6701b93faa9b0f55dd0af6d983ce4c2de4539c70 Reviewed-on: https://gerrit.libreoffice.org/25357 Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2016-05-23like menus do, restore focus to prev control when floatingwindow popdownsCaolán McNamara1-3/+4
in the FloatWinPopupFlags::GrabFocus case Change-Id: Ibebf23c83133f74f00e5dbb2540f108a383462cc
2016-05-23Resolves: tdf#99874 gtk3: all-black xbm cursorsCaolán McNamara1-7/+11
Change-Id: I1feca80dd75f7a09e05ac43293e8645da391a775
2016-05-23Simplify GfxLink using std::shared_ptr to clarify ownershipMark Page1-160/+65
The functionality has not changed in this class, however the ABI has changed (this class is DLL Public) Change-Id: I11005f03e747d56cb59550e071755429390db7a7 Reviewed-on: https://gerrit.libreoffice.org/25081 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>