summaryrefslogtreecommitdiff
path: root/drawinglayer
AgeCommit message (Collapse)AuthorFilesLines
2014-04-03remove unnecessary scope qualifier from sal_Bool usesNoel Grandin1-1/+1
i.e. convert "::sal_Bool" to "sal_Bool" Change-Id: Ie5943aee4fee617bf2670655558927ed25b7e067
2014-04-01Explicitly mark overriding destructors as "virtual"Stephan Bergmann1-1/+1
It appears that the C++ standard allows overriding destructors to be marked "override," but at least some MSVC versions complain about it, so at least make sure such destructors are explicitly marked "virtual." Change-Id: I0e1cafa7584fd16ebdce61f569eae2373a71b0a1
2014-04-01Clear the VirtualDevice we create for an impBufferDevice on iOSTor Lillqvist1-0/+8
Helps rendering of complex SmartArt with shapes a lot, especially such that include shadows. Exact mechanism unknown. Possibly on other platforms virtual devices get implicitly "cleared" when created? Sigh, fun. SmartArt is still not rendered fully like on desktop (OS X), though. Change-Id: I1bf92e85b5659ab7f9f4d843b77619de3af36d10
2014-03-28Bin rest of DBG_WARNING[123]Tor Lillqvist1-2/+2
Change-Id: Iaaf36d012e353f73f083c9c0ebbbb6d0953b16c8
2014-03-28Merge back branch alg_writerframes to trunkArmin Le Grand10-162/+537
(cherry picked from commit b635b4fa4e42053d30ab639643d2236a20243f62) Conflicts: comphelper/inc/comphelper/TypeGeneration.hxx comphelper/source/property/TypeGeneration.cxx cui/source/factory/dlgfact.hxx cui/source/inc/cuitabarea.hxx cui/source/tabpages/tabarea.cxx cui/source/tabpages/tabarea.hrc cui/source/tabpages/tabarea.src cui/source/tabpages/tparea.cxx drawinglayer/source/primitive2d/polypolygonprimitive2d.cxx drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx drawinglayer/source/texture/texture.cxx editeng/inc/editeng/unotext.hxx editeng/source/items/frmitems.cxx include/drawinglayer/texture/texture.hxx include/editeng/brushitem.hxx include/svx/sdr/primitive2d/sdrdecompositiontools.hxx include/svx/svxids.hrc include/xmloff/xmltypes.hxx reportdesign/source/ui/misc/UITools.cxx sc/source/ui/drawfunc/drawsh.cxx sfx2/source/dialog/tabdlg.cxx svl/source/undo/undo.cxx svx/inc/svx/unoshprp.hxx sw/Library_sw.mk sw/inc/doc.hxx sw/inc/format.hxx sw/inc/frmfmt.hxx sw/inc/swatrset.hxx sw/inc/unomap.hxx sw/inc/unoprnms.hxx sw/source/core/access/accpara.cxx sw/source/core/attr/format.cxx sw/source/core/attr/swatrset.cxx sw/source/core/doc/docdraw.cxx sw/source/core/doc/docfly.cxx sw/source/core/doc/notxtfrm.cxx sw/source/core/inc/frame.hxx sw/source/core/inc/frmtool.hxx sw/source/core/layout/atrfrm.cxx sw/source/core/layout/paintfrm.cxx sw/source/core/text/inftxt.cxx sw/source/core/text/porfld.cxx sw/source/core/text/txtfly.cxx sw/source/core/txtnode/fntcache.cxx sw/source/core/uibase/app/docst.cxx sw/source/core/uibase/app/docstyle.cxx sw/source/core/uibase/shells/drawdlg.cxx sw/source/core/uibase/shells/frmsh.cxx sw/source/core/unocore/unoframe.cxx sw/source/core/unocore/unomap.cxx sw/source/core/unocore/unoprnms.cxx sw/source/core/unocore/unostyle.cxx sw/source/ui/fmtui/tmpdlg.cxx sw/source/ui/fmtui/tmpdlg.src sw/source/ui/frmdlg/frmdlg.cxx sw/source/ui/frmdlg/frmpage.src sw/source/ui/inc/frmsh.hxx xmloff/source/text/txtprhdl.cxx xmloff/source/text/txtprmap.cxx Change-Id: Id3ffaa83bb5594d287f1ac8f2c1c9cf55c70946d
2014-03-26First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann7-10/+10
...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a
2014-03-20remove whitespaceMarkus Mohrhard7-51/+0
Change-Id: I81a24a7affa7dffcc3dac65248444679c3c49925
2014-03-19Use sane indentation in new files.Jan Holesovsky1-19/+13
Change-Id: Ida89284c00946d3972c4e45a5453ccfdff99713f
2014-03-19Add dash-dot and dash-dot-dot line styles.Kohei Yoshida1-0/+2
We need these for Excel interop. Change-Id: I91450c1d205f28636edfb4392aa6ae5091b1d7b7
2014-03-18fdo#75260: Center both primary and secondary lines wrt thier respective axes.Kohei Yoshida1-2/+2
The closed borders connect much better this way. Now all double lines look at least half-way decent. Also, we shouldn't be doing any sort of pixel correction in the common code that gets used both raster and vector drawing modes. In case we need to do some pixel correction, we should do it in the pixel processor code. Change-Id: I78e245c10752d0f4790a9ac664a14ce06571434e
2014-03-18fdo#75260: Don't forget to offset the inner with the width of the outer.Kohei Yoshida1-30/+26
The inner and outer lines were drawn side-by-side as one fat line because of this. The positions of the right and bottom border lines are still off even after this change. Change-Id: Ia4b661bb819a813562e0143397cada52148f26e9
2014-03-18Find places where OUString and OString are passed by value.Noel Grandin3-26/+26
It's not very efficient, because we generally end up copying it twice - once into the parameter and again into the destination OUString. So I create a clang plugin that finds such places and generates a warning so that we can convert them to pass-by-reference. Change-Id: I5341a6ea9e3190f4b4c05c42c85595e3dcd83361
2014-03-17Skeleton of drawinglayer object called OpenGLObjectZolnai Tamás5-2/+58
- Shape name: com.sun.star.drawing.OpenGLObject - Drawinglayer object: SdrOpenGLObject - Uno object: SvxOpenGLObject - View contact: ViewContactOfOpenGL - Primitive: OpenGLPrimitive2D Change-Id: I7fc0829d58cb4a8432d0e3007c90223707e5dd84
2014-03-10remove whitespaceMarkus Mohrhard1-2/+0
Change-Id: Ie03ffe6e02fe7c4d67a5a6752bc6fa24377da7cd
2014-03-05Simplify DrawWaveKeith Curtis1-13/+1
This patch simplifies the DrawWave logic. Callers of that code would try to figure out what size wave to draw and pass down a style integer to DrawWaveLine, but DrawWaveLine already has logic which trims the height of the wave so it doesn't need the hint. This doesn't change the UNO API (::com::sun::star::awt::FontUnderline::SMALLWAVE), but it does get rid of internal usages and maps those small waves to normal. Note that changing the zoom in Calc right now causes spelling underlines to disappear. That bug is not related to these changes. Conflicts: editeng/source/editeng/impedit3.cxx Change-Id: I3caa2a74a0f5228b924d4e1b0a77f96eaef5fa00 Reviewed-on: https://gerrit.libreoffice.org/8168 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2014-03-05remove unused code in drawinglayerNoel Grandin1-5/+0
drawinglayer::attribute::SdrFillGraphicAttribute::getLogSize() Change-Id: Ib1d958e57598dd3db392de98c4d2e2df1bfc98de
2014-03-04fdo#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. Change-Id: Iaaa353b6e4f998b524262bea59260b4333e0cdb4
2014-02-27Remove visual noise from drawinglayerAlexander Wilms119-296/+296
Change-Id: Ida745b9d994d09081ad3d18cdf2494a97438dc56 Reviewed-on: https://gerrit.libreoffice.org/8253 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2014-02-26cppuhelper: retrofit std::exception into overriding exception specsStephan Bergmann3-12/+12
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-23Remove unneccessary commentsAlexander Wilms2-26/+26
Change-Id: I939160ae72fecbe3d4a60ce755730bd4c38497fb Reviewed-on: https://gerrit.libreoffice.org/8182 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-21vcl: sal_Bool -> boolStephan Bergmann1-2/+2
Change-Id: I2a3e3d3e3266ea0f0fafdd91362076a4aa160f0e
2014-02-20Remove vcl/settings.hxx from vcl/svapp.hxx and vcl/outdev.hxxTobias Lippert1-0/+1
Added vcl/settings.hxx to all cxx files which require it. This helps to speed up compilation after changes to the settings. Conflicts: sc/source/ui/dbgui/pvlaydlg.cxx Change-Id: I211a0735c47f72d6879f6f15339355abfe0e3cf4 Reviewed-on: https://gerrit.libreoffice.org/7933 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-14fix crash on iostsahi glik1-0/+4
2014-01-30"stati" considered both pretentious and incorrect LatinMichael Stahl1-2/+2
As one knows, the Latin plural of the noun status is statūs. Change-Id: I6b19c57aa2aedcc1337736becc93d8802fe03f2e
2014-01-28sd/qa: Remove InteropGrabBag property from XML dumpsJacobo Aragunde Pérez1-12/+12
The InteropGrabBag property adds a lot of noise to this tests and it doesn't actually have any purpose, because we are building their own tests for InteropGrabBag-supported document attributes. We have removed this property by default but we left a flag to enable it when it's convenient for debugging. Change-Id: I97cc7ba171783222a57ab5a96e5755070b949505
2014-01-23Resolves: #i123950# unified and redefined CropPrimitive2D::get2DDecompositionArmin Le Grand1-103/+69
(cherry picked from commit 08d42c4da0a3f6dc105080102c1b1de4bce987a1) Change-Id: I2d5f52de8e9fa595012a953affbaba9d54f4f2a9
2014-01-22fdo#73886: Let's keep the "left" border outer and "right" inner.Kohei Yoshida1-4/+0
This reduces the complexity a bit. Change-Id: Ieefb57be86e5b66f319920fa61c88d0027c38164
2014-01-22fdo#73886: Check the right width in case the left width is zero.Kohei Yoshida1-0/+5
Change-Id: I6a0b1dd7382f1d3c7266ba56dbfdc557737380c2
2014-01-21bool improvementsStephan Bergmann2-4/+4
Change-Id: I703c854efd0e3456bfdc2e9ec527283a04bd31aa
2014-01-20fdo#73487: Center thick border lines around cell grid.Kohei Yoshida1-15/+66
This reduces the amount of gap at line joins. Plus it generally looks better this way. Change-Id: Ifd21cd0bc1f61f8a875b1bad9cfb33564c18b9ae
2014-01-20Handle double lines for screen rendering.Kohei Yoshida1-2/+20
Double lines are always drawn as 2 parallel hair lines that are 1 pixel apart, at any zoom level. Change-Id: I2796477d0ea45c9880aa8057bd1a10104df96673
2014-01-20Ensure that the pixel line is at least 1 pixel wide.Kohei Yoshida1-2/+12
Without this, some dashed lines may not get drawn at all at some zoom levels. Change-Id: I273c1548325d14f56618df8ca4166aac58a3ff3f
2014-01-20Do the same when the pixel thickness is zero.Kohei Yoshida1-0/+14
Change-Id: Icfbb295abb19cf58477f4f14f4a7294a540151c2
2014-01-20Substitute dashed line with a solid line at lower zoom levels.Kohei Yoshida1-23/+40
Change-Id: I0437409b6a5d6163fadf777df5c028950727e786
2014-01-20Better on-screen drawing of vertical dashed lines.Kohei Yoshida1-42/+100
Change-Id: I53d5f8b0278d1228cd941221a07cd360943c5ce6
2014-01-20Same solid line treatment for vertical lines during on-screen drawing.Kohei Yoshida1-11/+42
Change-Id: Idb352dc2afeb2ee7b48620c972c2a186209228ea
2014-01-20Better pixelization of dashed lines for screen rendering.Kohei Yoshida1-37/+140
Now the dashed lines are evenly placed on screen. For now, horizontal lines only. I'll work on vertical lines later. Change-Id: I474e9c8214e5f079ea2cfca12b35381d8fcf2ae1
2014-01-20Draw horizontal solid border lines directly in the pixel processor.Kohei Yoshida2-1/+67
This makes slightly skinnier solid lines which look better on screen. Change-Id: Ia7764be4a53d1dd6bb60ecb3ba5c8966403e4e6c
2014-01-18-Werror,-Wunused-variableStephan Bergmann1-1/+0
Change-Id: I39d15f863f4e1fd585b03bfc5f8854fb66af3b4c
2014-01-17Double line looks a bit too apart.Kohei Yoshida1-1/+1
Change-Id: I14676b6e8282a76d0be9dc0cc78e01837726e494
2014-01-17Distance value has been already scaled; no need to apply scaling twice.Kohei Yoshida1-2/+3
Change-Id: Id3ffc253dbd50fd23e924b4e1a349ab5c2c8518b
2014-01-17Apply dashing without consulting current map unit.Kohei Yoshida1-2/+3
Using scaling is sufficient. Change-Id: If976bec3940772432d814a77681170d7c99306d2
2014-01-17Use this pattern scale to scale things for better line pattern generation.Kohei Yoshida1-4/+3
This works much better across different output devices. Change-Id: Ie89e7284d9063f98fc5a31c505b64f8ce99a7ce1
2014-01-17Pass scaling to borderline primitive objects.Kohei Yoshida2-5/+9
This will be used when generating line patterns. Change-Id: I2fa0298bd3e34df1cb304d9be41e471835484d83
2014-01-17Draw double lined table border somewhat more pleasantly.Kohei Yoshida1-107/+63
Still a scaling issue remains when printed. Change-Id: I4aab8b976fefc6fd9fc5c08da8173de1326b9a4c
2014-01-17Always disable anti-aliasing when drawing table borders.Kohei Yoshida1-0/+13
Change-Id: Idede8220ac36c5bd4a88ceda33a99333f7b9fe90
2014-01-17Use hairlines judiciously to draw very thin patterned strokes correctly.Kohei Yoshida1-3/+23
This prevents some dashed or dotted lines from being skipped when printing or in print preview. Change-Id: I9d0a8ae743241d17d65935f4bf0d122e4313bff8
2014-01-17Fixed comment.Kohei Yoshida1-1/+1
Change-Id: I48d8ed8e218508f4f2d8f377fa9052ba02e61f37
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
2014-01-16fix rendering issues in iOS with aquatsahi glik1-7/+7