summaryrefslogtreecommitdiff
path: root/drawinglayer
AgeCommit message (Collapse)AuthorFilesLines
2015-04-02loplugin:staticmethodsNoel Grandin1-1/+1
Change-Id: Ibf0c73ac17ec19ed672f66907db47057920babca
2015-03-31Reduce to static_cast any reinterpret_cast from void pointersStephan Bergmann1-1/+1
Change-Id: I9465739d641310e7e3014b8b1a452ae05882df17
2015-03-27convert CUTFLAG_ constants to enum classNoel Grandin1-1/+1
Change-Id: I98dc5488954a4d46f7e0158790a4c3dabebfc1b3
2015-03-26const_cast: convert some C-style casts and remove some redundant onesStephan Bergmann1-1/+1
Change-Id: I54b59f527e1e31e1949c1a0a52b0d8c603484cce
2015-03-16drawinglayer::processor2d::HitTestProcessor2D: ignore pixel size of ...Miklos Vajna1-3/+6
... candidate when tiled rendering. Tiled rendering works entirely in twips, so pixel sizes are not relevant. One step closer to working image resizing in the tiled rendering case. Change-Id: I1d5e33071a383b333e0fdb9d30ea09fcea23a8fc
2015-03-06Timer/Idle: adapted inherited funktionsTobias Madl2-4/+4
Change-Id: I7714a4638b03d020820b276028c0819ef054fa26
2015-03-04V813: Decreased performanceCaolán McNamara2-60/+60
Change-Id: I8a7528366156b288dc422b09cff0d5a32cde3c91
2015-03-03TyposJulien Nabet1-1/+1
Change-Id: I0aef0c185457687aa0e40a4a1e8024d9e691093f
2015-03-03Improve loplugin:passstuffbyrefStephan Bergmann1-2/+2
Change-Id: I88ab4c51ff59312127681d3087d22b9c79192b94
2015-02-21Typo: deleteing->deletingJulien Nabet1-1/+1
Change-Id: I2bdde7524a97039c94a8da5ac5d2eba38c91d71a
2015-02-17boost->stdCaolán McNamara2-4/+4
Change-Id: I8371b942d915f777a29ca01cd0aed674db0ca853
2015-02-05Updated all precompiled headers.Ashod Nakashian1-0/+3
Change-Id: I955c8ac4dbe002d23531df7eb10fb4444d6b5157 Reviewed-on: https://gerrit.libreoffice.org/14292 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-01-26Visible function type RTTI for Clang -fsanitize=functionStephan Bergmann1-0/+1
...by adding some further SAL_DLLPUBLIC_RTTI type annotations (cf. b4f6b26b5a1a78fecfa95ec2eb7ac8b80495d8aa "SAL_DLLPUBLIC_RTTI for proper RTTI visibility for LLVM") and by making sure relevant function types do not use incomplete types in their parameter and return types (which would make the RTTI hidden). Change-Id: Id7aadcbc0704b9759968ae36266fc9ce11a2e340
2015-01-09override the overloading of "overload" to decrease cognitive (over-)loadMichael Stahl1-1/+1
Change-Id: I4d0e1de89d0bbdbea23bc5a46bf75ae0ce4e2796
2015-01-07drawinglayer: fix Android buildMiklos Vajna1-2/+2
Change-Id: Ie214c91f59780db9baa40cea01b6ddef3019febf
2015-01-07fdo#84938: convert STREAM_ #defines to 'enum class'Noel Grandin2-6/+6
Change-Id: Ibbf14c7e9a5c1883c1311d4c86f948f74f8e473e
2015-01-06boost::math::nextafter->std::nextafterCaolán McNamara1-2/+1
Change-Id: I868b3fcf367e61c40e77e64bcc153b2a2feefa0b
2014-12-10Resolves: fdo#87189 don't draw negative canvas sizesCaolán McNamara1-1/+1
Change-Id: Ia52bc54084883817ffdd8ade06c3079865d52f70
2014-11-21Revert "WaE: unused functions"Tor Lillqvist1-3/+0
This needs to be reverted, too. This reverts commit 734f30484221e091669cfdb45c144084a1377998.
2014-11-21Revert "fdo#81643: Regression in rendering of borders"Kohei Yoshida1-5/+5
This reverts commit c35fae3f6b15221701cadfca3132803695607660. One man's feature (with minor issure) is another man's regressions...
2014-11-21WaE: unused functionsTor Lillqvist1-0/+3
Change-Id: I7c91c90341c9aec75c096d400602877f61f04171
2014-11-21fdo#81643: Regression in rendering of bordersZolnai Tamás1-5/+5
Regerssion from: 6a3fb868b2b8af21f7b6140424b6f8377599a786 The new tryDrawBorderLinePrimitive2DDirect() draws rectangles, but borders are assumed to be trapezoids. So simple comment this out and use the original drawing method. Change-Id: I755d5f0b3621bfc4c999ee994a375d4e5ebbcdf0
2014-11-17sal: clean up public headers with include-what-you-useMichael Stahl1-0/+2
Sadly cannot forward declare "struct {...} TimeValue;". rtl/(u)?string.hxx still include sal/log.hxx but removing osl/diagnose.h was painful enough for now... Change-Id: Id41e17f3870c4f24c53ce7b11f2c40a3d14d1f05
2014-11-15drawinglayer: these are expected to be UTF-8Miklos Vajna1-2/+2
Change-Id: Ic2054af851bb9d195be4d550f36b1d7349f90204
2014-11-14vcl: move the Impl class of MapMode ...uhm... out of the public header?Michael Stahl1-0/+1
And remove the tools/fract.hxx include. grep -l -r fract.hxx workdir/Dep/*Object* |wc -l before: 4569 after: 1851 Shrinks some libraries, example from --enable-dbgutil Fedora gcc 4.8.3: libvcllo.so by 473k (0.35%) libswlo.so by ~1Mb (sadly that is just 0.2%) Change-Id: I09bd025d551a5d2c5528b938a68c6aa5f8f114a0
2014-11-06Revert "use the new OUString::fromUtf8 method"Stephan Bergmann1-2/+2
This reverts commit 05050cdb23de586870bf479a9df5ced06828d498, not all places that use e.g. OStringToOUString to convert potential UTF-8 are guaranteed to fulfil the prerequisites necessary to use fromUtf8 (and some places like e.g. in codemaker are happy with the best-effort effect of OStringToOUString's OSTRING_TO_OUSTRING_CVTFLAGS).
2014-11-06use the new OUString::fromUtf8 methodNoel Grandin1-2/+2
Change-Id: I771004b7ccab3344a67e827e45bc34c22ffa5f77
2014-11-05markup with event type not checker typeCaolán McNamara1-1/+2
Change-Id: I14c0c5d90b67000cb4fe9e6be647854abfe784da
2014-11-05fdo#38835 strip out OUString globalsNoel Grandin3-49/+33
they are largely unnecessary these days, since our OUString infrastructure gained optimised handling for static char constants. Change-Id: I07f73484f82d0582252cb4324d4107c998432c37
2014-11-03Zero font width means non-scaledStephan Bergmann1-1/+5
...so make sure to always round small width of a scaled font to one, not zero. Change-Id: I032b28e7f7183770db134f5891393ceaf39e0103
2014-11-02vcl: Refactor OutputDevice::TryDrawPolyLineDirect()Chris Sherlock1-5/+2
I've renamed TryDrawPolyLineDirect() to DrawPolyLineDirect() and also renamed TryDrawPolyLineDirectNoAACheck() to drawPolyLineDirectNoAACheck(). However, at the same time I feel that there is no need to call on drawPolyLineDirectNoAACheck in most instances, because DrawPolyLineDirect does an AA check before it can continue anyway. There is one instance where constantly checking the AA check is inefficient because it's in a loop, in that case then we call directly on drawPolyLineDirectNoAACheck, but this is the only case it is necessary. Change-Id: Ie0320bfc45b5c0e1ac6ce35912da3e2897af9429 Reviewed-on: https://gerrit.libreoffice.org/12190 Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2014-10-30Fixed typos. No automatic tools (sed, and so on).Andrea Gelmini1-1/+1
Change-Id: Ia43976d84eede6f699381bc4f3daf89b95e4cb4f Reviewed-on: https://gerrit.libreoffice.org/12150 Reviewed-by: Bryan Quigley <gquigs@gmail.com> Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2014-10-24Resolves: fdo#84729 buffer cache grows to over 9000 unused entriesCaolán McNamara1-0/+5
regression from commit a5351434fbea1126961f5dbaa986e7c9e686c24e Author: tsahi glik <tsahi.glik@cloudon.com> Date: Thu Jan 16 12:51:44 2014 -0800 fix rendering issues in iOS with aqua because now the cache just fills up because nothing will have a depth of "0" and a new entry is created every time. 0 could be seen to mean "whatever is a good non-1bit depth" or auto or something. (Do the uses of "8" really mean 8) 0 passed to new VirtualDevice under Linux/X ends up using the depth of the outputdev, so here set nBits to that value to start with and the problem goes away Change-Id: I4390d6f7edef9dc7430cc77e3518dc751a5f479d
2014-10-23Fraction: Revert "fdo#81356: convert Fraction to boost::rational<long> - wip"Jan Holesovsky1-3/+3
This reverts commit 47a2d7642d249d70b5da0c330a73f3a0032e4bba. Conflicts: cui/source/tabpages/transfrm.cxx svx/source/svdraw/svdedtv1.cxx svx/source/svdraw/svdibrow.cxx sw/source/filter/ww1/w1filter.cxx tools/source/generic/rational.cxx Change-Id: I4849916f5f277a4afef0e279b0135c76b36b9d15
2014-10-23Fraction: Revert "fdo#84854 it seems long is not enough on 32 bit"Jan Holesovsky1-1/+1
This reverts commit 582ef22d3e8e30ffd58f092d37ffda30bd07bd9e. Conflicts: svx/source/svdraw/svdedtv1.cxx svx/source/svdraw/svdibrow.cxx sw/source/filter/ww1/w1filter.cxx Change-Id: I80abc7abdeddc267eaabc9f8ab49611bb3f8ae83
2014-10-16fdo#84854 it seems long is not enough on 32 bitDavid Tardon1-1/+1
Fraction used BigInt internally for computations, rational does nothing like that. Change-Id: I3e9b25074f979bc291208f7c6362c3c40eb77ff5
2014-10-13create a macro library for implementing bit-flags typesNoel Grandin3-24/+24
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>, changed from a macro- to a template-based solution. (Unfortunately MSVC 2012 does not support explicit conversion operators. Worked around that with explicit #ifs rather than some HAVE_EXPLICIT_CONVERSION_OPERATORS and SAL_EXPLICIT_CONVERSION_OPERATOR ainticipating we hopefully soon move to a baseline that requires unconditional support for them.) Change-Id: I4a89643b218d247e8e4a861faba458ec6dfe1396
2014-10-09fdo#81356: convert Fraction to boost::rational<long> - wipJuan Picca1-3/+3
* Added rational util functions used by Fraction class not available in the boost::rational class. * Replaced usage of Fraction by boost::rational<long> * Removed code that relies on: 1. fraction.IsValid() -- rational only allow valid values, ie denominator() != 0 2. rational.denominator() == 0 -- always false 3. rational.denominator() < 0 -- always false but implementation detail: http://www.boost.org/doc/libs/release/libs/rational/rational.html#Internal%20representation * Simplified code that relies on: 1. rational.denominator() != 0 -- always true * BUGS EXIST because Fraction allows the creation of invalid values but boost::rational throws the exception boost::bad_rational Change-Id: I84970a4956afb3f91ac0c8f726547466319420f9 Reviewed-on: https://gerrit.libreoffice.org/11551 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2014-10-06use comphelper::rng::uniform_*_distribution everywhereCaolán McNamara2-10/+15
and automatically seed from time on first use coverity#1242393 Don't call rand coverity#1242404 Don't call rand coverity#1242410 Don't call rand and additionally allow 0xFF as a value coverity#1242409 Don't call rand coverity#1242399 Don't call rand coverity#1242372 Don't call rand coverity#1242377 Don't call rand coverity#1242378 Don't call rand coverity#1242379 Don't call rand coverity#1242382 Don't call rand coverity#1242383 Don't call rand coverity#1242402 Don't call rand coverity#1242397 Don't call rand coverity#1242390 Don't call rand coverity#1242389 Don't call rand coverity#1242388 Don't call rand coverity#1242386 Don't call rand coverity#1242384 Don't call rand coverity#1242394 Don't call rand Change-Id: I241feab9cb370e091fd6ccaba2af941eb95bc7cf
2014-10-02loplugin: cstylecastNoel Grandin36-105/+105
Change-Id: I06957bb1a736331995be810672e9d47b47cc6c0e
2014-10-01loplugin: cstylecastNoel Grandin3-3/+3
Change-Id: I44408c89d00064ae00e4e0ae154ba79c35e56c7f
2014-09-30fdo#82577: Handle PolyPolygonNoel Grandin7-20/+20
Put the TOOLS PolyPolygon class in the tools namespace. Avoids clash with the Windows PolyPolygon typedef. Change-Id: I811ecbb3d55ba4ce66e4555a8586f60fcd57fb66
2014-09-30fdo#82577: Handle RegionNoel Grandin2-11/+11
Put the VCL Region class in the vcl namespace. Avoids clash with the X11 Region typedef. Change-Id: I6e008111df7cf37121fbc3eaabd44a8306338291
2014-09-29toolkit: std::auto_ptr -> std::unique_ptrStephan Bergmann1-2/+2
Change-Id: I4566a0b7215b729f04591bed0ad5bed42f71f227
2014-09-23fdo#82577: Handle WindowNoel Grandin1-1/+1
Put the VCL Window class in the vcl namespace. Avoids clash with the X11 Window typedef. Change-Id: Ib1beb7ab4ad75562a42aeb252732a073d25eff1a
2014-09-18use vcl::FontNoel Grandin1-1/+1
Change-Id: Ia6ac8d9fca94c6140f5df39932d0cd62ba4c229e
2014-09-18fdo#82577: Handle FontNoel Grandin3-16/+16
Put the VCL Font class in the vcl namespace. Avoids clash with the X11 Font typedef. Change-Id: I1a84f7cad8b31697b9860a3418f7dff794ff6537
2014-09-05drawinglayer: Improve the README.Jan Holesovsky1-3/+83
Change-Id: I40ae115a03f1a289c940f9f96e3d496d1eba1a48
2014-08-21vcl: convert push flags to type-safe enum-like classNoel Grandin1-7/+7
Change-Id: Ib49a0dd5ecee0225f51bea2ff1c0ab5326595a47
2014-08-20vcl: use enum for complex text layout constantsNoel Grandin2-6/+6
Since these constants are bitfield flags, we define some methods to make working with them reasonably type safe. Move the definitions to outdevstate.hxx, since we need the values there, and that appears to be the "root most" header file. Also dump TEXT_LAYOUT_BIDI_LTR constant, since it means the same thing as TEXT_LAYOUT_DEFAULT (ie. 0), and leaving it in causes people to write weird code thinking that it's a real flag. Change-Id: Iddab86cd6c78181ceb8caa48e77e1f5a8e526343 Reviewed-on: https://gerrit.libreoffice.org/10676 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>