summaryrefslogtreecommitdiff
path: root/drawinglayer
AgeCommit message (Collapse)AuthorFilesLines
2014-04-17remove executable bitAndras Timar1-0/+0
Change-Id: I91f6e861f6d0dbea1b57ac73857e0c706b27f681
2014-04-14update_pchThomas Arnhold1-1/+4
Change-Id: I099bff66a7796a5cf18e37e445467bdfb33de602
2014-04-14typo: noone -> no oneThomas Arnhold1-1/+1
2014-04-14typo: implicitely -> implicitlyThomas Arnhold1-1/+1
2014-04-11Revert ""Fix" for some SmartArt rendering artefacts on iOS"Tor Lillqvist1-17/+0
Nah, the "fix" is largely accidental. Must. Try. Harder. This reverts commit c03986e084e8806f66f7490f2aeeb33db5748e4b.
2014-04-11"Fix" for some SmartArt rendering artefacts on iOSTor Lillqvist1-0/+17
Exactly why this change works (to the extent that it does) is unclear to me. Whether it could possibly be used across all platforms and not for iOS is also unclear. Change-Id: I6dcf5982d51e5715b657dbf263a88776bbf55f4d
2014-04-11Add a couple of SAL_INFOs using drawinglayer::primitive2d::idToString()Tor Lillqvist1-0/+4
Change-Id: I3fce5ca1af15714b8b20b1b273ccf41a49cb98ff
2014-04-11Introduce drawinglayer::primitive2d::idToString() debugging functionTor Lillqvist1-0/+80
Change-Id: I71e5b032d52f1fe3a1bde60fe6395c5d2d025885
2014-04-10It's "its", not "it's"Tor Lillqvist5-6/+6
Change-Id: Ieaa787afd7cc622b4750a2ee8f17f6dad934ba63
2014-04-09Clean up function declarations and some unused functionsStephan Bergmann6-54/+59
Change-Id: I2b743ee6e184af5f9020309ea5e184aa17c19405
2014-04-08Use same code for iOS and OS X here, too, not that it seems to help anyTor Lillqvist1-1/+1
Change-Id: I16d11447757680edb0ff786a5ee1e3d453b38910
2014-04-07drawinglayer: sal_Bool->boolNoel Grandin4-99/+99
Change-Id: I893d00a61d314926f84fb3e94743aba2ef5622c4
2014-04-07This IOS ifdef has no visible effect either as far as I can seeTor Lillqvist1-4/+0
Change-Id: Ib800abd569cc713065b874f9ebbbd55b4dad986f
2014-04-07HahTor Lillqvist1-2/+4
Change-Id: Iaf3ddb15268f1a3f10b78f1c2bd12aafc329a359
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