summaryrefslogtreecommitdiffstats
path: root/drawinglayer
Commit message (Collapse)AuthorAgeFilesLines
* remove whitespaceMarkus Mohrhard2014-03-101-2/+0
| | | | Change-Id: Ie03ffe6e02fe7c4d67a5a6752bc6fa24377da7cd
* Simplify DrawWaveKeith Curtis2014-03-051-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>
* remove unused code in drawinglayerNoel Grandin2014-03-051-5/+0
| | | | | | drawinglayer::attribute::SdrFillGraphicAttribute::getLogSize() Change-Id: Ib1d958e57598dd3db392de98c4d2e2df1bfc98de
* fdo#75260: Correctly draw double lines for both Writer and Calc.Kohei Yoshida2014-03-042-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
* Remove visual noise from drawinglayerAlexander Wilms2014-02-27119-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>
* cppuhelper: retrofit std::exception into overriding exception specsStephan Bergmann2014-02-263-12/+12
| | | | Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
* Remove unneccessary commentsAlexander Wilms2014-02-232-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>
* vcl: sal_Bool -> boolStephan Bergmann2014-02-211-2/+2
| | | | Change-Id: I2a3e3d3e3266ea0f0fafdd91362076a4aa160f0e
* Remove vcl/settings.hxx from vcl/svapp.hxx and vcl/outdev.hxxTobias Lippert2014-02-201-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>
* fix crash on iostsahi glik2014-02-141-0/+4
|
* "stati" considered both pretentious and incorrect LatinMichael Stahl2014-01-301-2/+2
| | | | | | As one knows, the Latin plural of the noun status is statūs. Change-Id: I6b19c57aa2aedcc1337736becc93d8802fe03f2e
* sd/qa: Remove InteropGrabBag property from XML dumpsJacobo Aragunde Pérez2014-01-281-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
* Resolves: #i123950# unified and redefined CropPrimitive2D::get2DDecompositionArmin Le Grand2014-01-231-103/+69
| | | | | | (cherry picked from commit 08d42c4da0a3f6dc105080102c1b1de4bce987a1) Change-Id: I2d5f52de8e9fa595012a953affbaba9d54f4f2a9
* fdo#73886: Let's keep the "left" border outer and "right" inner.Kohei Yoshida2014-01-221-4/+0
| | | | | | This reduces the complexity a bit. Change-Id: Ieefb57be86e5b66f319920fa61c88d0027c38164
* fdo#73886: Check the right width in case the left width is zero.Kohei Yoshida2014-01-221-0/+5
| | | | Change-Id: I6a0b1dd7382f1d3c7266ba56dbfdc557737380c2
* bool improvementsStephan Bergmann2014-01-212-4/+4
| | | | Change-Id: I703c854efd0e3456bfdc2e9ec527283a04bd31aa
* fdo#73487: Center thick border lines around cell grid.Kohei Yoshida2014-01-201-15/+66
| | | | | | | This reduces the amount of gap at line joins. Plus it generally looks better this way. Change-Id: Ifd21cd0bc1f61f8a875b1bad9cfb33564c18b9ae
* Handle double lines for screen rendering.Kohei Yoshida2014-01-201-2/+20
| | | | | | | Double lines are always drawn as 2 parallel hair lines that are 1 pixel apart, at any zoom level. Change-Id: I2796477d0ea45c9880aa8057bd1a10104df96673
* Ensure that the pixel line is at least 1 pixel wide.Kohei Yoshida2014-01-201-2/+12
| | | | | | Without this, some dashed lines may not get drawn at all at some zoom levels. Change-Id: I273c1548325d14f56618df8ca4166aac58a3ff3f
* Do the same when the pixel thickness is zero.Kohei Yoshida2014-01-201-0/+14
| | | | Change-Id: Icfbb295abb19cf58477f4f14f4a7294a540151c2
* Substitute dashed line with a solid line at lower zoom levels.Kohei Yoshida2014-01-201-23/+40
| | | | Change-Id: I0437409b6a5d6163fadf777df5c028950727e786
* Better on-screen drawing of vertical dashed lines.Kohei Yoshida2014-01-201-42/+100
| | | | Change-Id: I53d5f8b0278d1228cd941221a07cd360943c5ce6
* Same solid line treatment for vertical lines during on-screen drawing.Kohei Yoshida2014-01-201-11/+42
| | | | Change-Id: Idb352dc2afeb2ee7b48620c972c2a186209228ea
* Better pixelization of dashed lines for screen rendering.Kohei Yoshida2014-01-201-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
* Draw horizontal solid border lines directly in the pixel processor.Kohei Yoshida2014-01-202-1/+67
| | | | | | This makes slightly skinnier solid lines which look better on screen. Change-Id: Ia7764be4a53d1dd6bb60ecb3ba5c8966403e4e6c
* -Werror,-Wunused-variableStephan Bergmann2014-01-181-1/+0
| | | | Change-Id: I39d15f863f4e1fd585b03bfc5f8854fb66af3b4c
* Double line looks a bit too apart.Kohei Yoshida2014-01-171-1/+1
| | | | Change-Id: I14676b6e8282a76d0be9dc0cc78e01837726e494
* Distance value has been already scaled; no need to apply scaling twice.Kohei Yoshida2014-01-171-2/+3
| | | | Change-Id: Id3ffc253dbd50fd23e924b4e1a349ab5c2c8518b
* Apply dashing without consulting current map unit.Kohei Yoshida2014-01-171-2/+3
| | | | | | Using scaling is sufficient. Change-Id: If976bec3940772432d814a77681170d7c99306d2
* Use this pattern scale to scale things for better line pattern generation.Kohei Yoshida2014-01-171-4/+3
| | | | | | This works much better across different output devices. Change-Id: Ie89e7284d9063f98fc5a31c505b64f8ce99a7ce1
* Pass scaling to borderline primitive objects.Kohei Yoshida2014-01-172-5/+9
| | | | | | This will be used when generating line patterns. Change-Id: I2fa0298bd3e34df1cb304d9be41e471835484d83
* Draw double lined table border somewhat more pleasantly.Kohei Yoshida2014-01-171-107/+63
| | | | | | Still a scaling issue remains when printed. Change-Id: I4aab8b976fefc6fd9fc5c08da8173de1326b9a4c
* Always disable anti-aliasing when drawing table borders.Kohei Yoshida2014-01-171-0/+13
| | | | Change-Id: Idede8220ac36c5bd4a88ceda33a99333f7b9fe90
* Use hairlines judiciously to draw very thin patterned strokes correctly.Kohei Yoshida2014-01-171-3/+23
| | | | | | | This prevents some dashed or dotted lines from being skipped when printing or in print preview. Change-Id: I9d0a8ae743241d17d65935f4bf0d122e4313bff8
* Fixed comment.Kohei Yoshida2014-01-171-1/+1
| | | | Change-Id: I48d8ed8e218508f4f2d8f377fa9052ba02e61f37
* fdo#72530: drawinglayer: fix PDF export of lossless pictureMichael Stahl2014-01-171-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
* fix rendering issues in iOS with aquatsahi glik2014-01-161-7/+7
|
* convert SvStream::operator<< overloads to more explicit methodsNoel Grandin2014-01-161-2/+2
| | | | | | | | | 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
* longparas: xub_StrLen->sal_Int32Caolán McNamara2014-01-134-18/+17
| | | | Change-Id: I171caa791e1d2a0baa4444a460a7f20ad5428571
* Use boolStephan Bergmann2014-01-1010-30/+30
| | | | Change-Id: I2d06ae03650b318a1318d0e2b026352e22404fdd
* Resolves: #i124002# use own logical size for graphics...Armin Le Grand2014-01-091-3/+19
| | | | | | | | | | | do not adapt PrefSize of these in rendering stack (cherry picked from commit b57f921795c7249d82ca739884c0116574426194) Conflicts: drawinglayer/source/attribute/sdrfillgraphicattribute.cxx Change-Id: I3eff4438a42209ad4c259dfdbed4869ae046bfc6
* TyposJulien Nabet2013-12-234-8/+8
| | | | Change-Id: I27ada8b5154968e521d9e67f21473aa85776e70e
* typo fixesAndras Timar2013-12-201-1/+1
| | | | Change-Id: Ia5f104bfd707bcf4e159c78ca2764c861fb0b6d9
* Adapt all (non-extension, SharedLibrary) .components to environment="..."Stephan Bergmann2013-12-171-2/+2
| | | | Change-Id: I56f38bd786f3a026cb2908f28540dc9c4003af83
* fdo#72260: guard against duplicate "name" attributeKorrawit Pruegsanusak2013-12-081-1/+10
| | | | | | | Change-Id: I1ee4b82e04318a50db8bb54bd5c7e00c79177d37 Reviewed-on: https://gerrit.libreoffice.org/6984 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
* XShapeDumper: empty name should not be dumpedKorrawit Pruegsanusak2013-12-081-2/+2
| | | | Change-Id: Ic1ab8840c9e543cebf322de922b01739684789ad
* add vim modelines for drawinglayer/source/dumper/*Korrawit Pruegsanusak2013-12-083-0/+5
|
* remove unnecessary RTL_CONSTASCII_STRINGPARAM in OString::equalsIgnoreAsciiLNoel Grandin2013-11-221-2/+2
| | | | | | | | | | Convert code like: aStr.equalsIgnoreAsciiCaseL(RTL_CONSTASCII_STRINGPARAM("XGRAD_SEQ_BEGIN")) to: aStr.equalsIgnoreAsciiCase("XGRAD_SEQ_BEGIN") which compiles down to the same code. Change-Id: Ia69289d853d292b2f27b68863cb6f6ecdbf1a71e
* TypoStephan Bergmann2013-11-211-1/+1
| | | | Change-Id: I4cbaf4b51a3e6a0029c81c8242ae03857a42ddc1
* No need for default component_getImplementationEnvironment function any moreStephan Bergmann2013-11-211-17/+1
| | | | Change-Id: I3c019fb810a9527f616f2df7f3082f5d5508c9e3