summaryrefslogtreecommitdiff
path: root/vcl
AgeCommit message (Collapse)Author
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann
Change-Id: I05e89f9896170d4df3d1377549ea074f06b884a0
2015-11-10Use a depth buffer on OS X, tooTor Lillqvist
Change-Id: I35fa7c2dcec0731aed1f5effefa131ce3007d010
2015-11-10Surely a 24-bit depth buffer is enoughTor Lillqvist
We asked for a 64-bit one, which is rather preposterous. And the comment claimed we asked for a 32-bit one. Funnily, this same odd code and comment is found in half a dozen code samples on the Internet... Copy pasta rules. Change-Id: Ie54a7b75e07cfe0ffd98ec330ce63158d2d15415
2015-11-10Add some assertions and improve commentsTor Lillqvist
Make sure the hardcoded indexes into the iAttributes array that we use mean what they are supposed to. Add comments about that, and fix one misleading comment. Change-Id: Ibb748b00782db4fcaf34f6c717075f6aff50651e
2015-11-10tdf#95481 catch out-of-range access in vcl bitmapArmin Le Grand
blendBitmap24 assumes bitmap is 2 lines high for doing interpolation. For bitmaps of height 1, really nothing to interpolate there. Fix cornercase by 'blending' between the very same line instead. Change-Id: I9b94000aa563e525d0bb2418346ad2c86af26df8 Reviewed-on: https://gerrit.libreoffice.org/19863 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2015-11-09translated German warningsAndras Timar
Change-Id: Ibb42bfbbf8c7a1796998c5390e7d933009b3ab89
2015-11-09new loplugin: oncevarNoel Grandin
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-08Leftover debug code? (causes -Werror,-Wformat)Stephan Bergmann
Change-Id: I8629481a454a668b3044eb6f56dbe43d4720e52a
2015-11-08update README.varsTomaž Vajngerl
Change-Id: Ie2d0cc90ecc3e585a8fbfc9517e48170cf07c0d2
2015-11-08support to load SVG images when loading from Image resourceTomaž Vajngerl
Change-Id: Ieda1c334d8d995c774381c52fa1d9aa11751c5ef
2015-11-07loplugin:stringconstantStephan Bergmann
Change-Id: I9e505814f206c35b465633c45bab6f989ad18074
2015-11-06vcl: WinMtfOutput: replace the other mutable static with a member tooMichael Stahl
Change-Id: Ied1e1c12f2fe19734f27c005e60db07e674e3639
2015-11-06compilerplugins: enhance "badstatics" plugin to find membersMichael Stahl
Finds static variables of types that have bad non-static members. Change-Id: I81ee940580c0f043feb543840ea4d3dd27734202
2015-11-06unused warning in DISABLE_DYNLOADING fixedOliver Specht
Change-Id: Ic5ae9d2c2c9a7ef95604d80134b0ff4de005db38 Reviewed-on: https://gerrit.libreoffice.org/19825 Reviewed-by: Oliver Specht <oliver.specht@cib.de> Tested-by: Oliver Specht <oliver.specht@cib.de>
2015-11-06vcl: [loplugin:stringconstant]Michael Stahl
Change-Id: I973b6b68a225cc872aff2c0fe0e8a2e9108b3140
2015-11-06merged graphic import/export into a single libraryOliver Specht
instead of egi, eme, epb, epg, epp, eps, ept, era, eti, exp, icd, idx, ime, ipb, ipd, ips, ipt, ipx, ira, itg, iti, there is now one graphic import export lib (gie) Change-Id: I20c0dd94e5857bb6e2e8cc8ac175ff500c6bbdfc Reviewed-on: https://gerrit.libreoffice.org/19756 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Oliver Specht <oliver.specht@cib.de>
2015-11-06coverity#1338231 Unchecked return valueCaolán McNamara
Change-Id: I76161e87adc70fb8ae94c5c4cc7157b95f76b6f7
2015-11-06loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)Stephan Bergmann
Change-Id: I7ac150458a72963f3336d30ef9d99d7c0d81c024
2015-11-06vcl: The keymap table is constantTakeshi Abe
Change-Id: Ia563e1c58a61eaa9f2316be280711fafe6702c9d
2015-11-05afl-eventesting: deref of null mpTextObjCaolán McNamara
Change-Id: Icdb7d1cc250640f428984b96b0a51ac950013cb2
2015-11-05Reduce scope of #include <tools/poly.hxx>Matteo Casalin
Change-Id: I0d64393c029d27c8e6f3b6d360d2509dad16d860
2015-11-05Comment the quartz off-screen buffering code.Michael Meeks
Change-Id: Ie9a52745a83ca6e4281faa4f1dc8b8ea7411badf Reviewed-on: https://gerrit.libreoffice.org/19805 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2015-11-05use uno::Reference::set method instead of assignmentNoel Grandin
Change-Id: I31a69a997098eb1807361b8049c3312a4f287d75
2015-11-05OpenGL options: clarify setting descriptions, and provide a live status.Michael Meeks
Hopefully this will un-confuse users about whether GL is enabled; the settings only take effect on re-start, so show a current status line too. Change-Id: I82832fd8d35bc76ab2cf1f394f11a881fde80774 Reviewed-on: https://gerrit.libreoffice.org/19790 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2015-11-05fix compiling of this java classNoel Grandin
(even though it's not being built right now) Change-Id: I237cce48ea50b1184b166a8a8132ae425597bffe
2015-11-05vcl: This is constantTakeshi Abe
Change-Id: Ib01701c4e89f665cb65cdfa8612b02a70633181e
2015-11-05vcl: fix typo in the Android stub of sgvsplnMiklos Vajna
The intention is to call the real function, not the stub itself. Change-Id: I4bfd3020871c68951b19a3c63ea9a2dc4d736be7
2015-11-04vcl: fix Android buildMiklos Vajna
See <https://code.google.com/p/android/issues/detail?id=74835>, Android's <cmath> currently does not provide std::copysign(), add a forwarding stub till it gets fixed. Change-Id: I49cc74ad1b61fed0460588150f21471d63e9069f
2015-11-04yyyyyNoel Grandin
Change-Id: I9a947beefd2dfe21da8239e841ea3fb416bd1548
2015-11-04-Werror,-Wabsolute-valueStephan Bergmann
("using integer absolute value function 'abs' when argument is of floating point type; use function 'std::abs' instead") Change-Id: I3634186a10607f3b3fc6fc7c0aef968b32892156
2015-11-04vcl: What we want here is exactly std::copysignTakeshi Abe
Change-Id: I888ca84342a6c34b99a1f03d44d686e1f50622f4 Reviewed-on: https://gerrit.libreoffice.org/19778 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2015-11-03loplugin:simplifyboolStephan Bergmann
Change-Id: I7fdcc939154ca6804707039c3311728a0249dec7
2015-11-03tdf#81144 Chinese full-width punctuation does not align properlyMark Hung
Ideographic fullstop and comma in most Chinese fonts are centered, while those in Japanese fonts align closer to the left. Original compression algorithm trimed right side of the punctuation, making fullwidth fullstop or comma in Chinese font visually unbalanced. In worst case, it crowds together with the followed compressed punctuation. This patch fix the situation in the folowing way 1) make compression less stronger. 2) Trim space according to glyph bearing to font height ratio. 3) fix a memory access violation issue Change-Id: Icff215064e6c442fd36eac8e01b01fb6acb27594 Reviewed-on: https://gerrit.libreoffice.org/19517 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2015-11-03vcl: Prefer std::abs to a home-brewed macroTakeshi Abe
The arguments in use are of type sal_Int16, so now it's the overloaded one of type int in <cstdlib>. Change-Id: I83336c093cf58a351e9390c0eb4e20a5d5340f9e Reviewed-on: https://gerrit.libreoffice.org/19754 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-11-03vcl: Mark it as constTakeshi Abe
Change-Id: I0ddaf1cf9d0a3f36f88bea3101b7059e04d755ff
2015-11-03vcl: Mark them as constTakeshi Abe
Change-Id: Ia19d3512d156be725840c24d441a3eaa08e83a5e
2015-11-02Handle case that pDock may have no itemsStephan Bergmann
...in code introduced with be1b03a4b0f61b49a3aba8d6b78ae69be7295785 "dock icon's menu doesn't begin with separator anymore," causing CppunitTest_vcl_lifecycle to fail Change-Id: If6eb1f3a0f52d05284ac01f448888aaaa7523a98
2015-11-02afl-eventtesting: crash close impress with spelling dialog activeCaolán McNamara
Change-Id: I1085b655a9a589f2e92edfdacfea6621d2f67d9c
2015-11-02compilerplugins: add "badstatics" to detect abuse of VCL BitmapsMichael Stahl
VCL Image/Bitmap/BitmapEx instances must not have static life-time because then they will be destructed after DeInitVCL() and that likely segfaults. Change-Id: I3ff8d32de729c971b190028094cb4efe206395e2
2015-11-02dock icon's menu doesn't begin with separator anymoreDouglas Mencken
... even when there's no open windows Change-Id: I8c1d8f254e621d1867a100ad984f8b77ed8cfc5a Reviewed-on: https://gerrit.libreoffice.org/19677 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2015-10-30tdf#93684 - Remove SalFrame::SyncRyan McCoskrie
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 Stahl
Change-Id: I4562b029172e2dcef7d13bf2c1aa37410d18e25a
2015-10-30vcl: This is a constantTakeshi Abe
Change-Id: Id87952a5eafa6c4ddf2d58b694cadf1fbf5c45a1
2015-10-30UNO: no need to use OUString constructor when calling createInstanceNoel Grandin
Change-Id: I37da28539b94706574116d0fff5f008aabfb5526 Reviewed-on: https://gerrit.libreoffice.org/19682 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-29tdf#70833: IDNA support when exporing hyperlinks to PDFStephan Bergmann
Any URLs using non-ASCII IDNA syntax need to be resolved to ASCII-only, as PDF URI Action's URI needs to be "encoded in 7-bit ASCII." Introduce URIHelper::resolveIdnaHost (svl/urihelper.hxx), which internally uses icu::IDNA, which requires to bump the minimal --with-system-icu requirement from 4.2 to 4.6, which means ICU_RECLASSIFIED_CLOSE_PARENTHESIS is always true now. Change-Id: I0e20d9a20ed2b869fba0cc7c969721411db590b3 Reviewed-on: https://gerrit.libreoffice.org/19669 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
2015-10-28tdf#94138 also apply settings when printing (Draw call)Tomaž Vajngerl
Change-Id: I72056f3e167923f00c37648a24190b533eb9b471
2015-10-28vcl: This is constantTakeshi Abe
Change-Id: I27a83996031b9494ad736ad82a7fff5740fbaf30
2015-10-27Reduce scope of #include <tools/stream.hxx>Matteo Casalin
Change-Id: I0752cbb0cb2e0f89607d81d9eda7ce7091449fd6
2015-10-27tdf#94022 Print dialog: hide Installable OptionsMichael Weghorn
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-27loplugin:unusedmethodsNoel Grandin
Change-Id: I161cd52606c11b6008f5d8b1d8ee391692f91861 Reviewed-on: https://gerrit.libreoffice.org/19231 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>