summaryrefslogtreecommitdiff
path: root/drawinglayer
AgeCommit message (Collapse)AuthorFilesLines
2014-04-30Resolves: fdo#62038 EPS not rendered in drawinglayer code pathsCaolán McNamara1-2/+4
It attempts to see if the outputdevice can draw the true EPS but if the outputdevice is in record-only mode it just stashs a new eps metaaction, and this time with no fallback image, and happily returns ok so the drawing layer ends up with a new replacement eps metaction, except with no preview anymore. Perhaps DrawEPS should return false here, but its safer this way Change-Id: I0e0b16e4b2be00802a1af1f8147500d816a3c5de (cherry picked from commit 3db00c554b38ee6c1b6e969768da53db4dc2f92a) Reviewed-on: https://gerrit.libreoffice.org/9192 Tested-by: David Tardon <dtardon@redhat.com> Reviewed-by: David Tardon <dtardon@redhat.com>
2014-04-27fdo#74336 draw hairline if line width is smallTomaž Vajngerl1-0/+10
RenderPolygonStrokePrimitive2D draws a simple hairline if the line width is less than 1.0 (and less than 1.5 if no AA is used) so in tryDrawPolygonStrokePrimitive2DDirect we need to reflect this behaviour - otherwise the lines are drawn too small. Change-Id: Icd3d8f35a00346b1d624b6df010f43ed21968d04
2014-03-25fdo#75260: Improve double line drawing for writer table.Kohei Yoshida1-30/+26
(cherry picked from commit 1c6fb266567c8e397e3c65663b21f0fa50696aa5) (cherry picked from commit 77b6c1602aaa0bd059077765e7fabb53d9e6ddeb) (cherry picked from commit 32391d25293935fbbf0075e3ccf68625951427f0) (cherry picked from commit 24b4fbfa39f212c769bf4d966258a8fb4c98c201) (cherry picked from commit 07909e0045d9f94329861fe2e7b3403a5c4befed) (cherry picked from commit 335470edf00cabb47abb9d7dcc4dd3a5a0e79616) Change-Id: Id350531f09b3ded66fd05ea7ebeefe8771260b62 Reviewed-on: https://gerrit.libreoffice.org/8635 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2014-03-07fdo#75260: Correctly draw double lines for both Writer and Calc.Kohei Yoshida2-55/+69
Fix all sorts of incorrect double line handling in drawinglayer in order to draw thick-thin double line types correctly. Also change handling of border lines in writer tables. There are still some outstanding issues but it's much better than how it was before. Also realized that Word and Excel handle simple thin double lines differently; Word varies widths of all of the lines and the gap whereas Excel only has one fixed size for its double line. For this reason I decided to add a separate double line type (DOUBLE_THIN) to handle Excel's double line. (cherry picked from commit 2c62596cf264ef10749d8bfdb2bb2ebef2d98fbc) Conflicts: cui/source/tabpages/border.cxx sc/qa/unit/subsequent_export-test.cxx sc/source/ui/view/tabvwsha.cxx sw/source/core/layout/paintfrm.cxx xmloff/source/style/bordrhdl.cxx Change-Id: Iaaa353b6e4f998b524262bea59260b4333e0cdb4 Reviewed-on: https://gerrit.libreoffice.org/8464 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2014-01-31-Werror,-Wunused-variableStephan Bergmann1-1/+0
(cherry-picked from 849482c0ea88c4aa70ec56adfefe7e59b6060950) Change-Id: I39d15f863f4e1fd585b03bfc5f8854fb66af3b4c Reviewed-on: https://gerrit.libreoffice.org/7749 Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2014-01-29fdo#73487, fdo#73886: Overhaul cell borders to make them look sane.Kohei Yoshida4-118/+480
Change-Id: Ie563f272b60ec8b6b8a4ff0df7256902997610c1 Reviewed-on: https://gerrit.libreoffice.org/7597 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com>
2014-01-17fdo#72530: drawinglayer: fix PDF export of lossless pictureMichael Stahl1-1/+2
Don't pass empty Rectangle to PDFExtOutDevData::EndGroup(), it will result in early return from PDFWriterImpl::drawJPGBitmap() and no picture in the PDF. Passing in the same Rectangle for the 3rd and 4th parameter will avoid cropping in PDFExtOutDevData. (regression from 677df250becd5cde71c6310f647e78ac3763347e) Change-Id: Icf110fe3e635319419fcacc7bc684c792a34d6ad (cherry picked from commit c8e9038b13c64df430fb4e3fecac65a3c507e3e8) Reviewed-on: https://gerrit.libreoffice.org/7502 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-11-20remove RTL_CONSTASCII_STRINGPARAM in OString constructorNoel Grandin1-11/+11
Convert code like: OString aKeyName(RTL_CONSTASCII_STRINGPARAM("NDX")); to: OString aKeyName("NDX"); which compiles down to the same code Change-Id: I1780264cae4484fc78f0586b0750c09f2dce135f
2013-11-14-Werror,-Wunused-member-functionStephan Bergmann1-5/+0
Change-Id: Ib723e19923578c07353bbd8cef98ae031a766045
2013-11-06Resolves: #i123500# redefined ColorModifiers and ColorModifierStack...Armin Le Grand10-92/+361
redefined GraphicAttr to be expressed as primitives if needed, enhanced render and export quality if graphic is modified using graphic attributes (cherry picked from commit 1e79e8da3f8042f7d7bd94b2c9f03cff7545b05c) Conflicts: basegfx/inc/basegfx/color/bcolor.hxx basegfx/inc/basegfx/color/bcolormodifier.hxx basegfx/source/color/bcolormodifier.cxx drawinglayer/inc/drawinglayer/primitive2d/graphicprimitivehelper2d.hxx drawinglayer/inc/drawinglayer/primitive2d/modifiedcolorprimitive2d.hxx drawinglayer/inc/drawinglayer/primitive3d/modifiedcolorprimitive3d.hxx drawinglayer/source/primitive2d/graphicprimitive2d.cxx drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx drawinglayer/source/primitive2d/modifiedcolorprimitive2d.cxx drawinglayer/source/primitive3d/modifiedcolorprimitive3d.cxx Change-Id: Ief2172efc9cc1b9838de48ec7f536c05573c7dc3
2013-11-05Resolves: i123564 corrected some aspects when working with bitmaps...Armin Le Grand1-3/+12
with low color depth or small size (cherry picked from commit ba54ce4fc788605fc96235f432b455311faee406) Conflicts: cui/source/tabpages/tpbitmap.cxx Change-Id: I10677414ab7d1904dbb29cd395a0c0334e0faa03
2013-10-20drop unnecessary tools/string includesCaolán McNamara2-2/+1
Change-Id: I4278999b9b7d184c26036bbe9e3b98420f461e8c
2013-10-15update pchThomas Arnhold1-0/+1
Change-Id: I475bee35ca5d24903d85e7f2427fab0e47d8db4d
2013-10-08fdo#70090: Avoid race in copy vs. modification of aRetval SequenceStephan Bergmann1-1/+2
If, in the original code, aRetval[0] was computed before calling new MaskPrmitive2D (as apparently happens with Clang), no COW-copy of aRetval's internals was created (as the refcount was still 1), so MaskPrimitive2D's maChildren would share the Sequence internals with aRetval, so would end up having itself as its children after the assignment. Change-Id: I145ca429fdfae2ea555b8c754b407a81b989d45b
2013-10-07fdo#54938: Adapt supportsService implementations to cppu::supportsServiceMarcos Paulo de Souza1-11/+2
Change-Id: I683c0d30c3286ed5d725d4eefe8b3977b82ee316 Reviewed-on: https://gerrit.libreoffice.org/6035 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
2013-10-04fdo#39674 fix some spellingThomas Arnhold1-1/+1
Change-Id: I72e497fb97edf8782c69000576f42896594e1556
2013-10-02-Werror,-Wunused-variableStephan Bergmann1-1/+1
Change-Id: Icb19121e39565a3588c0acd14db114a8572b00fa
2013-10-02-Werror,-Wunused-variableStephan Bergmann2-2/+0
Change-Id: If08088f17f65619023774473c088dcf589de4e79
2013-09-22add mode lines to new files (and idls) since last runCaolán McNamara3-0/+9
Change-Id: Id1e74f18c90e69d1a781c8f02e30dc3c005ed4fd
2013-09-20Resolves: #i123295# corrected object and clip rect...Armin Le Grand1-2/+5
in PDFExtOutDevData::EndGroup call in VclMetafileProcessor2D (cherry picked from commit b756639c139f043a613df6ca16c18f426fca1f29) Change-Id: I75faf2c8d925ec210cd74d8c29b90f5f9bf61ec8
2013-09-17convert DRAWINGLAYER module from String to OUStringNoel Grandin1-2/+2
Change-Id: I0856974cb9fe33418e3be0a5b977100be3bdce00
2013-09-09drawinglayer: added dumping of InteropGrabBag propAndres Gomez1-6/+7
XShapeDumper is now also dumping the InteropGrabBag property as a new empty element. In the future, new "private" properties added to the grab bag could be dumped too. Updated the unit tests accordingly. Change-Id: I7526dbd64bdc08915dc71f1167f05224118f17a6 Reviewed-on: https://gerrit.libreoffice.org/5848 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2013-09-05WaE: unused function 'dumpInteropGrabBagAsElement'Tor Lillqvist1-0/+6
Change-Id: I304b8021225c105f068c793ce04a447d4db4f7cf
2013-09-05svx: new InteropGrabBag UNO prop in Shape serviceAndres Gomez1-0/+17
Added the new InteropGrabBag property to the Shape service and modified the JUnit UNO unit tests for it. Added specific implementation in the svx module for the SvxShape class. This new property is intended by now for its usage on preserving OOX's Smart-Art but it could also be used for preserving other attributes for interoperability among document formats. Change-Id: Idc7a8e91592399ff05effd4da6eaa2935f8f4d42 Reviewed-on: https://gerrit.libreoffice.org/5769 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2013-09-05clean up after my cow wrapper changesThomas Arnhold5-25/+0
Change-Id: I42fcce936750888388e80db24b529b7543f9f4bf
2013-08-31deleted code that was commented outPhilipp Riemer1-2/+0
This is a follow up commit to - 22d1beb78a475e4846af945afde1c4d6c263b5d6 - 1c7af455ab9345304a7ac48ce2e0310de2ac8a75 Change-Id: I7a67c3768c0d7e36784ee88fc46680037acb244d
2013-08-31fdo#62475 - remove visual noisePhilipp Riemer1-15/+4
This is a follow up commit to - 22d1beb78a475e4846af945afde1c4d6c263b5d6 - 1c7af455ab9345304a7ac48ce2e0310de2ac8a75 Change-Id: I102685391125f3b4f7bdf838f8bd17a2283d558d
2013-08-28Resolves: #i122923# optimize place to add alpha to bitmaps which need rotationArmin Le Grand1-22/+2
(cherry picked from commit 2178fea0941c4abb624ecddf2453f670ba68878f) Change-Id: Ib83d10bcd2d0950fbb8afe8894caa9c0b60e6a5d
2013-08-22convert drawinglayer module from String to OUStringNoel Grandin7-29/+29
Change-Id: I115dfd5ca7d343b220b2a3e8aa0565f9e4689042
2013-08-20Re-work 8bit characters in source code, or remove them.Michael Meeks1-1/+1
Change-Id: I93e14d4936c0ffbe03425d4a54bb0e09bc62b3e3 Reviewed-on: https://gerrit.libreoffice.org/5550 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@suse.com> Tested-by: Michael Meeks <michael.meeks@suse.com>
2013-07-29Avoid SolarMutex assertion in a dbgutil build when exiting ImpressTor Lillqvist1-0/+1
Change-Id: I903d078713007920574dcdb780e1dd301ce94bf6
2013-07-26targetted clean of redundant header piece from 62badf3828Michael Meeks1-3/+0
Change-Id: Ic1240114d667fb7797afae4847427cc889f3cb48
2013-07-25Resolves: #i122836# fix rotated images looking corrupted on MacOSXHerbert Dürr1-1/+2
The solution is to intialize the images rotation mask to be opaque, an approach that also the fix for bug #i122758#. (cherry picked from commit 78f54616efdcfb1c8cbd1a75d3cf9faf7b5e1b8a) Change-Id: I417aab21ded9619ae4023edf169136c7115d4a07
2013-07-16Resolves: #i122758# Initialize Mask with non-transparentArmin Le Grand1-1/+2
(cherry picked from commit db4affff17f202e69447fd22c246843a6cda3e52) Change-Id: I4851c544b23d2857a0f13cff3ede987ebb813cef
2013-07-13use static LanguageTag::convertTo...() for standalone conversionsEike Rathke1-1/+1
If no LanguageTag instance is at hand use the static methods to convert between BCP 47 string, Locale and MS-LangID instead of creating temporary instances. Change-Id: I9597f768078eb81c840e84a5db5617f26bb7dc09
2013-07-12PCH for more librariesLuboš Luňák3-0/+142
Change-Id: I6f9a1969605e0016b11157ddb5754ac77fd3966b
2013-07-12fdo#66745: drawinglayer: properly restore anti-aliasing modeMichael Stahl2-4/+21
VclPixelProcessor2D: the constructor changes the anti-aliasing mode of the given output device, and the destructor restores a hard-coded mode instead of what was there before. Due to this commit 5913506b2193e93ca2767ab7365ab2e76ed7848f turned off anti-aliasing for FontWork objects simply by creating a temporary VclPixelProcessor2D. Change-Id: I7f7fcbf86b0dd425f599cd8e62fce3c69a2744bb
2013-07-08WaE and numerical inconsequence in gradient fallback render handlingArmin Le Grand2-5/+13
(cherry picked from commit d8dfdae3da901a5a26182f3221c7aa374561672f) Conflicts: drawinglayer/inc/drawinglayer/primitive2d/svggradientprimitive2d.hxx drawinglayer/source/primitive2d/svggradientprimitive2d.cxx Change-Id: Ifcc795a3474efad1c1bca77088adfef36258ee95
2013-07-04emf+ is not decomposed into primitives, so restore wind and playCaolán McNamara4-3/+127
regression from f69df53b316b53931e10d35402a70f533399398c we presumably should process comments and go through their emfplus contents too, or something of that nature Change-Id: Ifa8c3f058f0a320057d02b53f5717eaa42e63282
2013-06-19Resolves: #i110384# added better fat line rendering where possibleArmin Le Grand4-105/+248
(cherry picked from commit 144eb666b72516ef78c15424087800dff1be5cfd) Conflicts: drawinglayer/inc/drawinglayer/processor2d/vclpixelprocessor2d.hxx drawinglayer/inc/drawinglayer/processor2d/vclprocessor2d.hxx vcl/inc/vcl/outdev.hxx Change-Id: I89f378a4d7a8311b8922f10acff66b000a20a4b7
2013-06-18Resolves: #i122120# Changed UI preview creators...Armin Le Grand1-0/+11
to no longer need SdrModel/SdrObject (cherry picked from commit 0c353433ad94786a937fa9da01d6e7382e3da942) corrected unwanted change (cherry picked from commit 8a10735b8ee3926a592d6919f4dbb823771bed9f) Conflicts: vcl/inc/vcl/outdev.hxx 7c096015d974382e6874a874370ee72a61f02e6a Change-Id: Ib2afe135566eba2e99cc8c4a653de3df0fa7f0cd
2013-06-17Resolves: #i74211# Correct crop of bitmap data when...Armin Le Grand2-36/+14
logical size and MapMode do not match real pixel size (cherry picked from commit a24965371f7e881671182bc51432c08cbf667b56) Conflicts: svtools/inc/svtools/grfmgr.hxx svtools/source/graphic/grfmgr.cxx svx/inc/svx/svdhdl.hxx svx/inc/svx/svdograf.hxx svx/source/svdraw/svdhdl.cxx Change-Id: Icfb9091b55e50081e8daf697c9f00f5b5a10531a
2013-06-17restore now needed ctorCaolán McNamara1-0/+10
partial revert of bb61f56d71b699dfbe422bac37a3151767e6a40f now that we need it again Change-Id: Iffaf72b96b237101b4bbb65efd32d6c5f18eb212
2013-06-17Related: #i121801# Corrected objectBoundingBox case for GradientTransformArmin Le Grand1-17/+24
(cherry picked from commit f03ec4812cfe71f582c5290869f22eadd661b48a) Change-Id: Icb3e2cefda2fd5fe9a2dcf501e5e07881961932e
2013-06-17Resolves: #i121801# Corrected handling of gradient transformationsArmin Le Grand1-4/+21
(cherry picked from commit 4f49f1d95e8d0be7df259ad1458441fd858be735) Conflicts: drawinglayer/inc/drawinglayer/primitive2d/svggradientprimitive2d.hxx svgio/source/svgreader/svgnode.cxx svgio/source/svgreader/svgstyleattributes.cxx Change-Id: I155854692a9d1771826867d2666fc6174e2c9256
2013-06-17Resolves: #i122132# Some simple extensions to exporterArmin Le Grand1-11/+18
(cherry picked from commit 3454d18694e0ddcf9bc71661bf48c37450fa1fab) Conflicts: filter/source/svg/svgwriter.cxx Change-Id: I2f9d96ffce0d51695a665b58a776807bab5d277e
2013-06-17Resolves: #i113080# added test code, cleaned up a small inconsistencyArmin Le Grand1-16/+34
(cherry picked from commit d7fa73b25f75796291432496d9bb8d7c80e82c8b) Conflicts: drawinglayer/source/tools/converters.cxx Change-Id: Ia8edda4ca2c79bfc9d4a0962f99d8db581622a7d
2013-06-17move now private headers to private locationCaolán McNamara8-8/+356
Change-Id: Ibc3a6d446dd2bd49af916cbe1ca88e173ae414cb
2013-06-17Related: #i121532# unified processor2d usages from other modulesArmin Le Grand3-37/+107
(cherry picked from commit f371f92c89d296207ef9a219518ba8caa481bcfe) Conflicts: drawinglayer/Library_drawinglayer.mk drawinglayer/Package_inc.mk drawinglayer/inc/drawinglayer/processor2d/vclmetafileprocessor2d.hxx drawinglayer/inc/drawinglayer/processor2d/vclpixelprocessor2d.hxx drawinglayer/inc/drawinglayer/processor2d/vclprocessor2d.hxx drawinglayer/inc/drawinglayer/processor3d/defaultprocessor3d.hxx drawinglayer/inc/drawinglayer/processor3d/zbufferprocessor3d.hxx drawinglayer/source/processor2d/processor2dtools.cxx svx/Package_inc.mk svx/source/sdr/contact/objectcontactofobjlistpainter.cxx svx/source/sdr/contact/objectcontactofpageview.cxx svx/source/sdr/overlay/overlaymanager.cxx svx/source/sdr/overlay/overlayprimitive2dsequenceobject.cxx svx/source/svdraw/svdedxv.cxx sw/source/core/doc/notxtfrm.cxx Change-Id: Iea4a79133f4375cb0625b187eeb3d727b50ff0fe Related: #i121532# missing defaultprocessor3d.hxx breaks build Revision 1440387 changed defaultprocessor3d.hxx to be no longer "delivered". It is needed in svx by being included indirectly via cutfindprocessor3d.hxx. Fixing the build breaker by "delivering" the missing header file again. (cherry picked from commit 3bd3ea81c8d54109950b435225c3aac011d56c3d) Conflicts: drawinglayer/Package_inc.mk Change-Id: If0dcea79cfff4cf20a1ca1af3d0a34f86eb2e24e Related: #i121532# removed include to no longer existing file (cherry picked from commit a4c602d9b5b17e220dbaa4dec2cef91d39945154) Conflicts: sw/source/core/doc/notxtfrm.cxx Change-Id: I7dc2f99684fa285225dfdcfc7add553695b8412e
2013-06-16Resolves: #i121532# enhanced visualisation of text edit&selectionArmin Le Grand1-1/+111
D&D overhauled (cherry picked from commit c6e63b6bbb6b4a63fe1302de57fc32cd28432378) Conflicts: drawinglayer/inc/drawinglayer/primitive2d/drawinglayer_primitivetypes2d.hxx drawinglayer/inc/drawinglayer/primitive2d/polypolygonprimitive2d.hxx drawinglayer/inc/drawinglayer/processor2d/linegeometryextractor2d.hxx drawinglayer/source/primitive2d/polypolygonprimitive2d.cxx svx/Package_inc.mk svx/inc/svx/sdr/overlay/overlayanimatedbitmapex.hxx svx/inc/svx/sdr/overlay/overlayobject.hxx svx/inc/svx/sdr/overlay/overlaypolypolygon.hxx svx/inc/svx/sdr/overlay/overlayrectangle.hxx svx/inc/svx/sdr/overlay/overlaytools.hxx svx/inc/svx/sdr/primitive2d/svx_primitivetypes2d.hxx svx/inc/svx/svdview.hxx svx/source/engine3d/view3d.cxx svx/source/sdr/overlay/overlayanimatedbitmapex.cxx svx/source/sdr/overlay/overlayhatchrect.cxx svx/source/sdr/overlay/overlaypolypolygon.cxx svx/source/sdr/overlay/overlaytools.cxx svx/source/svdraw/svdcrtv.cxx svx/source/svdraw/svdedxv.cxx svx/source/svdraw/svdhdl.cxx svx/source/svdraw/svdobj.cxx svx/source/svdraw/svdview.cxx sw/source/ui/dochdl/swdtflvr.cxx Unname unused arguments to prevent WaE issues. (cherry picked from commit 0735a61e631b8d4bb3d4e889bee436fb9e7c5734) Change-Id: I3b1cf4754063985dc1b4adac44b33e52e200607f e4288936cadd1f6e06bdf79611536d7114236b56