summaryrefslogtreecommitdiff
path: root/vcl/source/gdi
AgeCommit message (Collapse)Author
2014-01-23bool improvementsStephan Bergmann
Change-Id: I3a3a2122902e1731e95d8469dfe9efc5a6b567ee
2014-01-23Resolves: #i123983# Corrected Graphic Metafile fallback creatorArmin Le Grand
(cherry picked from commit b5797deea72476fbcec4315f1f18249fd39bbaea) Change-Id: I4d09592cd9e4b86445d048fb875e7bc13b03801d
2014-01-22remove SvStream::operator<< methodsNoel Grandin
.. and convert the last few places still using those methods. Change-Id: Id2cd8f9c0dd281df43af439d4fef65881f34a6fd Reviewed-on: https://gerrit.libreoffice.org/7495 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2014-01-22convert more SvStream::operator<< callsNoel Grandin
.. to more explicit SvStream::Write* calls This was done using another run of the clang rewriter, and then a lot of hand tweaking to fix all the places where the rewriter did not play nice with various macros. Change-Id: I7bcab93851c8dfb59cde6bc76290c6484d88fb18 Reviewed-on: https://gerrit.libreoffice.org/7494 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2014-01-22bool improvements (related to mixing bool/sal_Bool in &=, |=, ^=)Stephan Bergmann
Change-Id: I9869d9709f28b68ef7b518527175589d80644668
2014-01-22Resolves: #i106063# avoid additional seek for true color DIBTsutomu Uchino
The position in the stream is already at the end of color palette. (cherry picked from commit 352ca2f6ecf8910afa24c53d7e872f62b2321321) Change-Id: I1696c1b6780407ab579b6215ab13a327ae09fc32
2014-01-22It is just an innocent hyphen not a hyphenatorKhaled Hosny
Change-Id: I7454d90adfd507aae4c7efd1d4075454f03cddd8
2014-01-22Make both GetTextBreak() use the same coding styleKhaled Hosny
For easy visual comparison. Change-Id: Ib143f4bb7789b54dfbdd8fcf47516008403b47fd
2014-01-21bool improvementsStephan Bergmann
Change-Id: I714caa8dc3d34fd56e6a11f57db6723dcb7e6705
2014-01-21coverity#707581Norbert Thiebaud
Change-Id: I9e9ed9b83d830b1ebe2aae35036f49a649837765
2014-01-19Revert "cppcheck: reduce scope", CID#1158238Markus Mohrhard
This reverts commit 943e2930e7453857f229efe04ade85cb1dc87faf. That commit introduces memory corruption because the variables are still used through a pointer.
2014-01-18Use a more descriptive and distinct field nameKhaled Hosny
It is not immediately clear what maRerun is, besides it can be confused with regular maRuns. Change-Id: Idc754a185149a9a4d5e7495b76d8e61f783b42d2
2014-01-17bool improvementsStephan Bergmann
Change-Id: I7ec4f5b2e691ec03e9e2c5ca3a004f1e04efbc27
2014-01-17Remove warning and build error with MSVC.Kohei Yoshida
Change-Id: I8eac2f5ff08968a885a8e413bf4db38092036957
2014-01-17Ensure that we display patterned lines at all zoom levels.Kohei Yoshida
VCL doesn't draw polygons if either its width or height is 1 pixel. Detect when the polygon is too small to display, and substitute it with a minimum displayable rectangle. Change-Id: I7e3174d549880d00ffa55fd2239484c2db3d7829
2014-01-17Additional warnings when processing cmap tablesChris Sherlock
Small enhancements to the code: * Removed unused code that clips unicode characters to the baseplane * Add a SAL_WARNING if the maximum character is greater than the minimum character. Change-Id: I783fba75435e7f98a65afab2e091b737efc9ddc6 Reviewed-on: https://gerrit.libreoffice.org/7404 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-01-16convert SvStream::operator<< overloads to more explicit methodsNoel Grandin
This is in preparation for more conversion of SvStream::operator<< calls to use more explicit method names. This converts the subclasses that have their own convenience overloads of operator<< to use normal methods. Change-Id: I5efd5d9a24c264cb86d2471303dd5849bf91ba80
2014-01-16Resolves: #i123690# handle the extremes Width or Height equal oneArmin Le Grand
(cherry picked from commit f3263e7b8bfe740f8e1e7825214e3936cc938ea9) Change-Id: I8d65ffa45ae69fe64826f8f49e4e6282b9db9807
2014-01-15Bin misleading OSL_TRACETor Lillqvist
Change-Id: I6c638f49b73b4a3d781e6e2e54a5facf52513ad3
2014-01-14vcl: missing modeline in dibtoolsMiklos Vajna
Change-Id: I332e6ed3652f18843ec7abdeaec70d7bb8f5667b
2014-01-14Fix typoTakeshi Abe
Change-Id: Idb7ce105bf347d7cfee039da8939aecf743f2c16
2014-01-13longparas: convert ValidateKashidas to sal_Int32Caolán McNamara
we can use -1 as the failure return code as return value is always checked and isolated from the rest of the code. Change-Id: I87a743de82d681a7e4eabc61a576c4e50f1279a8
2014-01-13longparas: weed out xub_StrLen in pdf writerCaolán McNamara
Change-Id: I3570f653ec44edcf0a215ffcac2017b9a5a3544a
2014-01-13longparas: STRING_LEN here means text len, so expand to just thatCaolán McNamara
Change-Id: Iec55f8976ca180e380c9679c561aae61c0607520
2014-01-13longparas: make OutputDevice::GetGlyphBoundRects safeCaolán McNamara
Change-Id: I3dbb42b14a03c5bd98ebc1f67963ffe4c5e4b6b8
2014-01-13longparas: drop 16bit string limits in meta text actionsCaolán McNamara
Change-Id: I35144034f002cdaaa759a84731aae5fa48c6aa5a
2014-01-11longparas: unnecessary xub_StrLen castCaolán McNamara
Change-Id: I794faf7ba0c2dd32b0c846dd1cf6d1825cf8b63c
2014-01-10re-write SvStream operator<< to non-overloaded methodsNoel Grandin
This is the actual re-write. Use a clang rewriter to rewrite SvStream::operator<< to methods like WriteuInt32. Note that the rewriter is not perfect, and I hand-tweaked the output. In particular, I had to adjust places doing things like (*this) << 1; Change-Id: I5923eda3f4ebaa8b452b6ef109e726e116235a2a Reviewed-on: https://gerrit.libreoffice.org/7342 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2014-01-06Resolves: #i123840# add and use the sal_GlyphId typeHerbert Dürr
Using the central definition adds consistency and cleans up many ad hoc declarations. The type sal_GlyphId will become a class in the future so that its bitfield operations etc. can then be isolated into nice methods. (cherry picked from commit c0a84ad10964fb7a65b6239cbe1cef8698b5d17b) Conflicts: vcl/aqua/source/gdi/salatslayout.cxx vcl/aqua/source/gdi/salgdi.cxx vcl/generic/glyphs/gcach_ftyp.cxx vcl/generic/print/genpspgraphics.cxx vcl/generic/print/glyphset.cxx vcl/generic/print/glyphset.hxx vcl/headless/svptext.cxx vcl/inc/generic/genpspgraphics.h vcl/inc/generic/glyphcache.hxx vcl/inc/os2/salgdi.h vcl/inc/quartz/salgdi.h vcl/inc/salgdi.hxx vcl/inc/sallayout.hxx vcl/inc/unx/salgdi.h vcl/inc/vcl/fontmanager.hxx vcl/inc/win/salgdi.h vcl/os2/source/gdi/os2layout.cxx vcl/os2/source/gdi/salgdi3.cxx vcl/source/gdi/pdfwriter_impl.cxx vcl/source/gdi/sallayout.cxx vcl/source/glyphs/gcach_ftyp.hxx vcl/source/glyphs/gcach_layout.cxx vcl/source/glyphs/glyphcache.cxx vcl/source/glyphs/graphite_layout.cxx vcl/unx/generic/fontmanager/fontmanager.cxx vcl/unx/generic/gdi/gcach_xpeer.cxx vcl/unx/generic/gdi/gcach_xpeer.hxx vcl/unx/generic/gdi/salgdi3.cxx vcl/unx/generic/gdi/xrender_peer.hxx vcl/unx/headless/svpgdi.hxx vcl/unx/headless/svppspgraphics.cxx vcl/unx/headless/svppspgraphics.hxx vcl/win/source/gdi/salgdi3.cxx vcl/win/source/gdi/winlayout.cxx Change-Id: Ic629131950360e2df4c15db30d6a5362193c6330
2014-01-02Resolves: #i123895# split impfont.cxx source from metric.cxxHerbert Dürr
and move the helper function UpdateAttributesFromPSName() there to make it available for all platforms, not only ATSUI-based ones. (cherry picked from commit a3895516f02a80151caaac8b92fb50aa5f7ee93b) Conflicts: include/vcl/metric.hxx vcl/aqua/source/gdi/salatsuifontutils.cxx vcl/inc/impfont.hxx vcl/source/gdi/metric.cxx Change-Id: I6d5702d429673c83740cb72775014f8942e5f44d
2013-12-31Resolves: #i123840# normalize SalGraphics point count argument types...Herbert Dürr
to sal_uInt32 The old mixture of sal_uInt32, ULONG, sal_uLong, sal_uIntPtr gets consolidated. 4e9 points are more than enough for a SalGraphics. (cherry picked from commit 03f5dce97331acc1a5e832f956d711a5dc0aac0e) Conflicts: vcl/aqua/source/gdi/salgdi.cxx vcl/generic/print/genpspgraphics.cxx vcl/inc/os2/salgdi.h vcl/inc/quartz/salgdi.h vcl/inc/salgdi.hxx vcl/os2/source/gdi/salgdi.cxx vcl/os2/source/gdi/salgdi2.cxx vcl/source/gdi/salgdilayout.cxx vcl/unx/generic/gdi/salgdi.cxx vcl/unx/headless/svpgdi.hxx vcl/unx/headless/svppspgraphics.cxx vcl/unx/headless/svppspgraphics.hxx Change-Id: Iddf806256c7e5403158635e3f5f0049e9382500f
2013-12-29Resolves: fdo#72961 Crash when you open ODFver.1.0/1.1 created by LibO-3.5/3.6Julien Nabet
It seems pAction may be NULL so let's keep on to check it. Change-Id: Ie1a48c96bfa930364053c7c3ad0c940559544e33
2013-12-27cppcheck: reduce scopeJulien Nabet
Change-Id: Id3715b84a2328ca37fbc05d552fe58617ecfa78a
2013-12-22TyposJulien Nabet
Change-Id: I101d2c40bc08130f719f52494d95ab60d1d97e0f
2013-12-20Can't use const_reverse_iterator here.Douglas Mencken
Fix build error: no match for ‘operator!=’ in ‘it != std::vector<_Tp, _Alloc>::rend() [with _Tp = rtl::OUString, _Alloc = std::allocator<rtl::OUString>]()’ Change-Id: I4d20a68259163303ce7f14014c939cc7dbdf2784 Reviewed-on: https://gerrit.libreoffice.org/7145 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-12-20hidpi: Let's be brave & always paint odd heights with Hi-DPI ;-)Jan Holesovsky
Change-Id: Ib374d5636a296663c8dde71827f1bca96f545e51
2013-12-20hidpi: Nicer painting of the waved lines.Keith Curtis
Change-Id: I8773b47967bc1aa8cf33b9a1edc4f826291d3554
2013-12-20typo fixesAndras Timar
Change-Id: Ia5f104bfd707bcf4e159c78ca2764c861fb0b6d9
2013-12-20hidpi: Make many places Hi-DPI aware.Keith Curtis
This also introduces a getter for the mnDPIScaleFactor variable. Change-Id: I02ba6858fb1842f911d62976f4c54afc3bfa337f
2013-12-19Introduce DPI scale factor for Hi-DPI displays.Jan Holesovsky
This is supposed to stay 1 (no scale) for printers and default virtual devices, but should be set accordingly (2 or 3) for windows and virtual devices derived from windows. Various VCL widgets or paint operations should incrementally become aware of this, and changed so that they draw nicely on the Hi-DPI displays. This patch only introduces the behavior for waved lines. The default is currently being set depending on the DPI setting only; could be changed to a more clever way if necessary. Change-Id: I71118f9ab6b64028d1eeee76e860e999d5cd9d19
2013-12-19CID#1038302 (unlikely) invalid iterator useCaolán McNamara
Change-Id: Iff61209eb840d5b6722b651580a77ae50d610460
2013-12-18vcl get rid of xub_StrLen and STRING_LEN in outdev3Norbert Thiebaud
a new log section (sal.rtl.xub) is used to display alert in case of suspicious len == 0xFFFF (aka STRING_LEN) Change-Id: I3ed2aa7896e12592be9e003580dd6c8eda4add5e Reviewed-on: https://gerrit.libreoffice.org/7117 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2013-12-15Add a commentTor Lillqvist
Change-Id: I01ec957bd4b10e26075e311593cec36487eee4bc
2013-12-13Drop duplicate #includeTakeshi Abe
Change-Id: I63612bc5bd4e13fcc5c4e57ac73bd9c7bbf4f0e6
2013-12-12Much better fix for the iOS text colour problemTor Lillqvist
Just use the same simple trick as for OS X in OutputDevice::ImplLayout(). Thanks to Khaled Hosny for pointing out this. This reverts commit 9aba69e8cc034526c53f6135a41fc62dc3c5dce3. Change-Id: I27ba92ef8ebd1ebdb9eb74f670d8170649078881
2013-12-11Related: rhbz#1040291 Change language name from 'Oriya' to 'Odia'Caolán McNamara
Except for our external api where the Oriya is stuck (and similar for the vba implementation) Change-Id: I8288c930567385eea49a4c303727b13ef8b8a89f
2013-12-11regband.hxx is private to vclTor Lillqvist
Change-Id: If17510b572aa172c8d973f74b881b0d723213eef
2013-12-11octree.hxx is private to vclTor Lillqvist
Change-Id: I3cb377cfa99914fdba00504fb7d955e088bfca76
2013-12-05EMF+: force canvas if EMF+ comments are used.Andrzej J.R. Hunt
Without this the drawinglayer renderer is used, whereas only the canvas renderer supports EMF+. Change-Id: Id8a10e400e08c1913e7d6864a51f7b73fc9be437
2013-12-04Add some logging to MetaFile read.Andrzej Hunt
Change-Id: I11bc4a82fd0d09fb255c30f3aeffecd3b4e95c09