summaryrefslogtreecommitdiff
path: root/vcl
AgeCommit message (Collapse)Author
2014-07-17Fix FTBFS with TDE support enabledTimothy Pearson
Change-Id: Ib85371542c5d79ef69bc76f6aa388acdfd9dd849 Reviewed-on: https://gerrit.libreoffice.org/10348 Reviewed-by: Timothy Pearson <kb9vqf@pearsoncomputing.net> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-07-17Renamed brdcst.[hc]xx to SfxBroadcaster.[hc]xxTobias Lippert
- Remove includes from files where they are not needed. - Update pch files Change-Id: I0188e3934ef429008c1ef495ab1d5b27f38664d5 Reviewed-on: https://gerrit.libreoffice.org/10342 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-07-16first part of OpenGL context work for OSXMarkus Mohrhard
Context is correctly created and the OpenGL calls no longer crash but it seems that I still have a buffer problem so nothing is shown on the screen. Change-Id: Ia9cc585cd92c6049197dbfa47a41e30e130739ed
2014-07-15fdo#79673 quartz: draw 'bullet' for 'space' directly in one passNorbert Thiebaud
the current implementation of CoreText simply dropped the proper implementation of DrawTextArray, by ignoring DXArray this very visibly borked the show-non-displayable character feature of writer.. the bullet representing the 'spaces' was quite misplaced. This solve specifically this problem. More work is needed to bring proper support of DXArray back to CoreText Conflicts: vcl/inc/sallayout.hxx vcl/source/outdev/text.cxx Change-Id: Idb2cc90d5ffaa8b83f79241cee2d512112d1c3be
2014-07-15Resolves: #i125111# limit mem footprint for GraphicObjects...Armin Le Grand
in 32Bit environments Conflicts: svtools/inc/svtools/grfmgr.hxx svtools/source/graphic/grfmgr.cxx svtools/source/graphic/grfmgr2.cxx sw/source/core/doc/notxtfrm.cxx sw/source/core/graphic/ndgrf.cxx "commit 62b0eaf37c08dd27244e77b8bc90c691b000ebd6 Related: fdo#50697 reset the cache timeout on GetGraphic so the graphic gets swapped out Xms after the last use and not Xms after initial creation regardless of if it got used a moment earlier." corrected place for stl sort function for linux (cherry picked from commit a48414a396f7de4e00510e82e3744c097ce3d5d6) Conflicts: svtools/source/graphic/grfmgr2.cxx Change-Id: I79158b7d42629f8dec2bc5565540701bcd3ef6f4 6f21c7fd4d2681446fc1a6d9607366a1e69165a1
2014-07-15Related: fdo#80633 we can retain cached size for visibility changeCaolán McNamara
we still need to invalidate the layout of our parents, but we can keep the cached optimal size Change-Id: I8e77366bd61ff45d34f9d411c7f501a3a9ccbd4e
2014-07-15fix higher debug levelsCaolán McNamara
Change-Id: I74e4689062d452f8e0fba115cd984aa876711c45
2014-07-14avoid memory leakDavid Tardon
Change-Id: I89e458dbd01a45761948b64cb457424383ca5f51
2014-07-14Related: fdo#52226 ensure graphics are swapped in on DrawingML::WriteImageCaolán McNamara
I imagine it would be best that the Graphics were delivered pre-swapped in by higher levels in case there are second level caches or more complex caching systemed wrapped around it, so warn about it in debug mode but give it a last-ditch shot anyway. i.e. while the .docx problem should be fixed there is a report of a very similar .xlsx problem Change-Id: Ie40ee10fe5cba8ff9c321f47b83e33ee2c1425fd
2014-07-14fix higher debug level buildCaolán McNamara
Change-Id: I5bfa022c3c9fe8d24726989d9068fce7273e3f2d
2014-07-13make threaded rendering work correctly, fdo#81110Markus Mohrhard
The context may only be bound in one thread! Change-Id: Ibb67f88c2f11fd48884ee39d89620193e4e5471b
2014-07-11new loplugin: externalandnotdefinedNoel Grandin
Find "missing headers," where a function is declared directly in the .cxx (as extern) and not defined, and should arguably instead be declared in an include file. Change-Id: I6d83ee432b2ab0cd050aec2b27c3658d32ac02a2
2014-07-11-Wdeprecated-declarations: first deprecated in OS X 10.10rbuj
vcl/osx/salframeview.mm:201:16: warning: 'useOptimizedDrawing:' is deprecated: first deprecated in OS X 10.10 [-Wdeprecated-declarations] Change-Id: I6025de6c23a73c625ddfe8398dfd91bd838fe83c Reviewed-on: https://gerrit.libreoffice.org/10122 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-07-11-Wdeprecated-declarations: first deprecated in OS X 10.10rbuj
vcl/osx/printaccessoryview.mm:362:37: warning: 'NSScaleProportionally' is deprecated: first deprecated in OS X 10.10 - Use NSImageScaleProportionallyDown instead [-Wdeprecated-declarations] Available in OS X v10.0 and later. Deprecated in OS X v10.10. enum { NSScaleProportionally = 0, NSScaleToFit, NSScaleNone }; Available in OS X v10.5 and later. enum { NSImageScaleProportionallyDown = 0, NSImageScaleAxesIndependently, NSImageScaleNone, NSImageScaleProportionallyUpOrDown }; Change-Id: I457196e3e8f2ebcc10e9e0fa87755e5e3dba207c Reviewed-on: https://gerrit.libreoffice.org/10121 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-07-10fdo#80498: vcl: Revert "fdo#74124: Scale the pictures before calling ...Michael Stahl
... ImplDrawAlpha()." This reverts commit 3cf3700b7a903e88f5296076c40ae854bce91cdc. It may look nicer but is unusably slow when scrolling in Writer. Conflicts: vcl/source/gdi/outdev2.cxx Change-Id: I582f3f02a2f8915c244b04b2fe95b6af926396b9
2014-07-10vcl/source/window/wrkwin.cxx: drop unused svsys.h headerDouglas Mencken
Change-Id: Iad99721f6026512584c6e1cb763b81ffc6d1a625 Reviewed-on: https://gerrit.libreoffice.org/10152 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-07-10vcl/source/outdev/outdev.cxx: drop unused svsys.h headerDouglas Mencken
Change-Id: I21308351e86372ce938480a8514415756f9bf549 Reviewed-on: https://gerrit.libreoffice.org/10165 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-07-10setting WB_SCROLL on a toolbar only works from ctorCaolán McNamara
Change-Id: Iafd4d132abb63d698f8907c4aa71bd09c35babde
2014-07-10coverity#708898 Unused pointer valueCaolán McNamara
Change-Id: I2097507b223d45c880c25d51c47f1d347055db40
2014-07-10coverity#1225002 Uninitialized scalar fieldCaolán McNamara
Change-Id: Iec71c9b509b785a6fe043c62e103cb4a930fd416
2014-07-10fix linking in vcl under OSXNoel Grandin
after commit 4789eab "use SimpleReferenceObject in vcl/osx module" Change-Id: I14a3f1da6267a5bb0aede9e56063db4b21a455bf
2014-07-10svp clipping again: Rectangle dimensions don't map directly to B2IBox.Andrzej Hunt
This is the same as in 80f3211a7aeff221718703c445be4c753e0a1067. Change-Id: Ibb981da064b4fc97fd865be2decabd8798de7380 Reviewed-on: https://gerrit.libreoffice.org/10186 Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2014-07-10use SimpleReferenceObject in vcl/osx moduleNoel Grandin
to replace hand-rolled version Change-Id: Idf3f2dd20bacd3cb3de64931027ef62d9116200f
2014-07-10Clean up AlphaMask::CopyPixel "override" hackStephan Bergmann
...that required undefined downcasts of Bitmap objects that are not actually AlphaMasks. Change-Id: I629f4a81d40a2a85cd877ffec13445786ef58187
2014-07-09Avoid undefined premature downcast to potentially wrong typeStephan Bergmann
Change-Id: I53bf8b74edab720fccc829f9228f7d9c4a8c2dad
2014-07-08Related: fdo#80633 dialog size cache has to be invalidated tooCaolán McNamara
otherwise the VclExpander will have no effect Change-Id: I039fa361d7088dfe4a6ff849623e34b27e2be26b
2014-07-08Fix some OUString construction error with VS2013Tor Lillqvist
A bit unclear to me whether the code really did what was intended with earlier VS versions either. VS2013 said: error C2664: 'rtl::OUString::OUString(const sal_uInt32 *,sal_Int32)' : cannot convert argument 1 from 'const char *' to 'const rtl::OUString &' Reason: cannot convert from 'const char *' to 'const rtl::OUString' No constructor could take the source type, or constructor overload resolution was ambiguous Change-Id: Ie23d8382515064062a3ed46418d9d4a977b35d28
2014-07-08Fix some round() confusionTor Lillqvist
Why insist on using the same name as a standard function? Causes confusion with VS2013 at least, "ambiguous call to overloaded function." Sure, this might be caused by a bug in the compiler (or its headers). Or maybe vagueness in the language definition? Who cares, I still claim that intentionally writing an own function called round() is asking for problems. So rename it to round_to_long(). (And then the return value of calls to this function, which is of type 'long', is assigned in a couple of places to variables of type 'int', fun... Intentional, knowing there will be no overflow, or a bug waiting to happen?) Change-Id: If15d44f10f9f05de1c7c79492baf158eee770b8b
2014-07-07Add a few more SAL_INFOsTor Lillqvist
Change-Id: Id379c88c8a8c16f5276568e2bdb5f3730855255f
2014-07-07DBG_ASSERT->assert when followed by dereferenceCaolán McNamara
Change-Id: Ic1c999ffdc391ea01be5711721e7c9e63179473e
2014-07-07svp clipping: Rectangle dimensions don't map directly to B2IBox.Andrzej Hunt
Previously the clip region would end up being 1 pixel smaller in both directions than the requested area -- B2IBox considers the bottom-right point to NOT be included in its area, whereas Rectangle considers the bottom-right point to be the last point WITHIN its area. (This is equivalent to the Rectangle's getWidth/GetWidth differentiation.) This is noticeable e.g. with tiled rendering, where images spanning a tile boundary are clipped to paint only the region within a given tile -- however previously they would be clipped by an additional pixel in each direciton, resulting in an empty border along the bottom-right edge. Change-Id: I0ef3098959defc5c82719155c130aa904c04b6b1
2014-07-04fix typo in coverity#704538-9Norbert Thiebaud
Change-Id: If4868ad8190fcb1a64ae6fc18791d7a266d1b1e9
2014-07-04coverity#735340 Unchecked return valueNorbert Thiebaud
Change-Id: I13df98f64ce505a08ba3e8b2582a17f5d202c4d1
2014-07-04coverity#704538-9 Division by zeroNorbert Thiebaud
Change-Id: Ia77648c3e0442bb5e0a08d01bbd495c9d7c8bbf5
2014-07-04vcl: printf -> SAL_INFO in Font::SetFillColorMiklos Vajna
Change-Id: Icbe3d7f2dc8e25bfde6efc92435f1cef50a3b419
2014-07-04Resolves: fdo#80911 toggle original page orientation on paper fallbackCaolán McNamara
User defined page sizes which match rotated paper sizes available to the printer don't work correctly when they are already in landscape mode. i.e. the orientation should be toggled, not overwritten. Change-Id: I30dca5f988ad72319410a03f47eccff277be8640
2014-07-04coverity#736163 Dereference Null returnNorbert Thiebaud
Change-Id: I62046a619315d53dbeefbe0ebd26d24917adca14
2014-07-04coverity#736159 Dereference Null returnNorbert Thiebaud
Change-Id: I6581efb320a9e43cb242dabecfd500d4e04b058b
2014-07-03fix libmerged: vclplug_svp is inMatúš Kukan
Change-Id: I6ab00275b36725fbb0a446c7e5eb888e034a8989
2014-07-03fdo#39944: Fix mapping for some a11y roles to ATKJacobo Aragunde Pérez
In particular, EDIT_BAR, EMBEDDED_OBJECT and HYPER_LINK were being mapped to custom roles when specific roles exist; fixed passing the proper name to registerRole. Besides, moved two roles that were in the section 'don't exist in ATK yet' because that's not the case now. Change-Id: I6818a0ac623f45053812b5c6dd5fc25c9abf4f65
2014-07-03coverity#706115 Unintended sign extensionCaolán McNamara
and coverity#706114 Unintended sign extension coverity#706113 Unintended sign extension Change-Id: Ib9ab82082fb353ecfc98a4130fdf2bb136ac1350
2014-07-03clang scan-build: Assigned value is garbage or undefinedCaolán McNamara
Change-Id: I461bb3d513fdbfffb3b79b549beded82c8d2a3d9
2014-07-03Shorten Spanish key translations in LinuxAdolfo Jayme Barrientos
Change-Id: I3405e0fb4d9d7992d9da15a162311b7a0e75db76 Reviewed-on: https://gerrit.libreoffice.org/10030 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-07-02fix 'NSCursor' may not respond to operationNotAllowedCursor,dragCopyCursorDouglas Mencken
related commit: e4653eee7680831e6d0995d51d80fb63309c03ab Change-Id: Iba30c90336bf08d15d5990d6e1380867eee3564e Reviewed-on: https://gerrit.libreoffice.org/10013 Tested-by: Norbert Thiebaud <nthiebaud@gmail.com> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2014-07-02fix 'NSImage' may not respond to '-lockFocusFlipped:'Douglas Mencken
related commit: b3818f53812053e94196a58bbe474e2c3b72ac69 Change-Id: Ica27b3c2e474ebb85a69149e35021835f8183b69 Reviewed-on: https://gerrit.libreoffice.org/10011 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2014-07-02expose a way to drop ownership of a window from builder treeCaolán McNamara
Change-Id: I6f6bff32271ed1d6c328ba211a6b1249fda039dd
2014-07-02callcatcher: rsc loaded fixedbitmap is no moreCaolán McNamara
Change-Id: Ie111d9ed3534eb8892400d638eac4b38b3904646
2014-07-01loplugin:stringconcatStephan Bergmann
Change-Id: Ibf410eb1b8be81505b8e778aadf916a26ba39468
2014-07-01fdo#80014: vcl: fix drawing of linear gradientsMichael Stahl
There is an off-by-one error in OutputDevice::ImplDrawLinearGradient() that causes the bottom line to remain black. (regression from 04d937c1ec36c2d9fa8c90604c81a37d30e97da6) Change-Id: I33948ec8065e446a9ec7efeab5e506c93fa2e9e8
2014-07-01Related: fdo#80633 cache optimal sizeCaolán McNamara
Change-Id: Ic2c3aefebd3061d294f339c6d262a3c3e381fbe4