path: root/cppcanvas/source
AgeCommit message (Collapse)AuthorFilesLines
2017-01-23Split emfplus.cxx into multiple filesMark Page15-1033/+1657
This helps make emfplus.cxx more readable. No source code was changed, only moved except these renamed to avoid inheritance warnings:: EMFPBrush::transformation renamed to brush_transformation EMFPPen::transformation renamed to pen_transformation Change-Id: I6952d6300c9c459833c2dda2b715d851b9e80de7 Reviewed-on: Tested-by: Jenkins <> Reviewed-by: jan iversen <>
2016-12-06convert PolyStyle to scoped enumNoel Grandin1-3/+3
Change-Id: Ia35fdbb5e40888db9558988ac069741b31721f0e Reviewed-on: Tested-by: Jenkins <> Reviewed-by: Noel Grandin <>
2016-11-28loplugin:unnecessaryoverride (dtors) in cppcanvasStephan Bergmann1-4/+0
Change-Id: I4f6f6e36a965b5c01ffd51b1710fa8cc57d497fa
2016-11-21cppcanvas, oox: add missing #include <osl/endian.h>Michael Stahl1-0/+2
These files use the macro OSL_BIGENDIAN but did not include the header that defines it. Found via: git grep -l OSL_.*ENDIAN | grep -E '\.h(xx)?$' | while read f; do grep -L endian\\.h $f ; done Change-Id: Iffb36336026e49a9c3d8fcf125a54ec857c7552e
2016-11-03loplugin:unusedmethods unused return typesNoel Grandin2-8/+0
Change-Id: I88204bca60dd1e299b040c52bc87e500cbfaa930 Reviewed-on: Tested-by: Jenkins <> Reviewed-by: Noel Grandin <>
2016-10-25Revert "tdf#96505 Get rid of cargo cult "long" integer literals"jan iversen1-4/+7
This partly reverts commit 8ae33b1652cb1e654c426350169d3bb9fa031a4f. Added a comment why 1L is needed in this file. Change-Id: I92349b42decb964a45d4dc9c50b89cd22766acb9 Reviewed-on: Reviewed-by: jan iversen <> Tested-by: jan iversen <>
2016-10-25tdf#96505 Get rid of cargo cult "long" integer literalsRosen1-4/+4
fixed all long integer literals in file Change-Id: Ib557d88d4e4f17d5c334c92d611d002fe163f2f6 Reviewed-on: Tested-by: Jenkins <> Reviewed-by: jan iversen <>
2016-10-05convert MapUnit to scoped enumNoel Grandin1-1/+1
I left a prefix on the names "Map" so that I would not have to re-arrange each name too much, since I can't start identifiers with digits like "100thMM" And remove RSC_EXTRAMAPUNIT, which doesn't seem to be doing anything anymore. Change-Id: I5187824aa87e30caf5357b51b5384b5ab919d224 Reviewed-on: Reviewed-by: Noel Grandin <> Tested-by: Noel Grandin <>
2016-09-16loplugin:singlevalfields in basic..idlNoel Grandin1-6/+0
Also fix obvious bug in the initialisation of the connectivity::odbc::OConnection::m_bClosed field. Probably closes some kind of connection leak there. Change-Id: I04579cf91bcd6d6c51c697d83971da4142743a82 Reviewed-on: Reviewed-by: Noel Grandin <> Tested-by: Noel Grandin <>
2016-09-15replace sal_Size with std::size_t (or sal_uInt64 for SvStream pos)Michael Stahl1-4/+4
... except in include/rtl, include/sal, include/uno, where sal_Size is retained for compatibility, and where callers of rtl functions pass in pointers that are incompatible on MSVC. Change-Id: I8344453780689f5120ba0870e44965b6d292450c
2016-09-13loplugin:override: No more need for the "MSVC dtor override" workaroundStephan Bergmann12-16/+16
The issue of 362d4f0cd4e50111edfae9d30c90602c37ed65a2 "Explicitly mark overriding destructors as 'virtual'" appears to no longer be a problem with MSVC 2013. (The little change in the rewriting code of compilerplugins/clang/override.cxx was necessary to prevent an endless loop when adding "override" to OOO_DLLPUBLIC_CHARTTOOLS virtual ~CloseableLifeTimeManager(); in chart2/source/inc/LifeTime.hxx, getting stuck in the leading OOO_DLLPUBLIC_CHARTTOOLS macro. Can't remember what that isAtEndOfImmediateMacroExpansion thing was originally necessary for, anyway.) Change-Id: I534c634504d7216b9bb632c2775c04eaf27e927e
2016-09-05convert GradientStyle to scoped enumNoel Grandin1-7/+7
Change-Id: Ib740da708612df7a5f4b8c82262b9b1bd436604d
2016-09-05convert LineStyle to scoped enumNoel Grandin1-3/+3
Change-Id: I30cfa5a0649b806604c443f55683d1f2a430983d
2016-08-30loplugin:stringconstant: adapt to improved OUStringLiteral1 (cppcanvas)Stephan Bergmann1-1/+1
Change-Id: I98a9e1404c2a9a39c8f930609c199c75f0a572f1
2016-06-10Clean up uses of Any::getValue() in cppcanvasStephan Bergmann1-1/+2
Change-Id: I9a69b35ee7dc2da3912a72361e0e742bf480e6be
2016-06-06tools: rename SvStream::Read/Write to ReadBytes/WriteBytesMichael Stahl1-1/+1
Change-Id: Ib788a30d413436aa03f813aa2fddcbc4d6cd2f9a Reviewed-on: Tested-by: Jenkins <> Reviewed-by: Michael Stahl <>
2016-06-03Convert ComplexTextLayoutMode to scoped enumNoel Grandin1-8/+8
Change-Id: I257f8e15fec92f0701235a6fe4b6a2272498c4f1 Reviewed-on: Tested-by: Jenkins <> Reviewed-by: Noel Grandin <>
2016-05-30Convert FontRelief to scoped enumNoel Grandin2-5/+5
Change-Id: I545c83d742db27f1a004b66e5eb1ef768f62e011 Reviewed-on: Tested-by: Jenkins <> Reviewed-by: Noel Grandin <>
2016-05-09convert FONT_EMPHASIS_MARK to scoped enumNoel Grandin2-3/+3
Change-Id: I137c78b337e57d3442db08334128e79d186b278f Reviewed-on: Reviewed-by: Noel Grandin <> Tested-by: Noel Grandin <>
2016-04-21clang-tidy modernize-loop-convert in c*Noel Grandin1-2/+2
Change-Id: I77d2548f8be97792660761e6156cd24734a95aaf
2016-04-18clang-tidy performance-unnecessary-copy-initializationNoel Grandin1-2/+1
probably not much performance benefit, but it sure is good at identifying leftover intermediate variables from previous refactorings. Change-Id: I3ce16fe496ac2733c1cb0a35f74c0fc9193cc657 Reviewed-on: Reviewed-by: Noel Grandin <> Tested-by: Noel Grandin <>
2016-04-14clang-tidy performance-unnecessary-value-param in variousNoel Grandin1-1/+1
Change-Id: I7168d44dab8e6a8e37bb7920d744ff32f5e52907 Reviewed-on: Tested-by: Jenkins <> Reviewed-by: Noel Grandin <>
2016-04-14loplugin:passstuffbyref in variousNoel Grandin3-4/+4
Change-Id: I80070c83204e531c2f599f8a56193d6ffe0e5022
2016-04-12cleanup: remove unused com/sun/star/uno includesJochen Nitschke1-2/+0
Sequence.h(xx), Any.h(xx) and Type.h(xx) and remove unused using-declarations from these files. Add a few missing includes provided by them. Change-Id: I6b91b6d1fdf9d0496dd546c0aab9bdcc6831a5d4 Reviewed-on: Tested-by: Jenkins <> Reviewed-by: Noel Grandin <>
2016-04-08loplugin:unreffun (missing "= delete")Stephan Bergmann1-2/+2
Change-Id: Ie9252e29b06242e8ab0b839f52de8b81897d269e
2016-04-08tdf#94306 replace boost::noncopyable in c...Jochen Nitschke7-24/+36
comphelper, connectivity and cppcanvas. Replace with C++11 delete copy-constructur and copy-assignment. Removed unused boost/noncopyable.hpp includes from some source files in cppcanvas. Change-Id: I90780820e21fbfd291ac10c266e7d16616e3a81b Reviewed-on: Tested-by: Jenkins <> Reviewed-by: Michael Stahl <>
2016-03-16loplugin:constantparams in vcl/Noel Grandin1-1/+1
also some improvements to the plugin Change-Id: I0e3a519d70756e577fcb1bd47dd66864b5b4c871 Reviewed-on: Reviewed-by: Noel Grandin <> Tested-by: Noel Grandin <>
2016-02-28tdf#95709 adapt clip polygon for transparence groupsArmin Le Grand1-0/+10
For presentation transparence groups are rendered by the canvas using VirtualDevices and Bitmaps. To adapt for then painting the Bitnmap to the canvas the RenderState needs to be adapted to e.g. reflect the already applied scaling. Missing was to adapt a set clip polyPolygon to be synchronized with the new RenderState transformation. Change-Id: If760a8076e016a6dcf306db71971f1fd2fef7017 Reviewed-on: Reviewed-by: Thorsten Behrens <> Tested-by: Thorsten Behrens <>
2016-02-22loplugin:write only fieldsNoel Grandin5-17/+0
Change-Id: I44f249a17d0a510ec63a488b656d57a1a392f821
2016-02-09Remove excess newlinesChris Sherlock6-26/+0
A ridiculously fast way of doing this is: for i in $(pcregrep -l -M -r --include='.*[hc]xx$' \ --exclude-dir=workdir --exclude-dir=instdir '^ {3,}' .) do perl -0777 -i -pe 's/^ {3,}/ /gm' $i done Change-Id: Iebb93eccbee9e4fc5c4380474ba595858a27ac2c Reviewed-on: Tested-by: Jenkins <> Reviewed-by: Chris Sherlock <>
2016-02-04loplugin:fpcomparison in cppcanvas/Noel Grandin1-2/+2
Change-Id: I23d7e217f2616b488579be0617dbc14cd407540f Reviewed-on: Tested-by: Jenkins <> Reviewed-by: Noel Grandin <>
2016-02-04vcl: take into account the font width is the average font widthChris Sherlock2-5/+5
I'm changing the Font class function names: - SetSize -> SetFontSize - GetSize -> GetFontSize - SetHeight -> SetFontHeight - GetHeight -> GetFontHeight - SetWidth -> SetAverageFontWidth - GetWidth -> GetAverageFontWidth That's because it really makes no sense to say that there is a single constant font width because obviously proportional fonts don't have one - the best we can do is an average font width, which is what folks like Microsoft sort of do already. On a fixed font, the average is still accurate, for obvious reasons :-) I'm also not a fan of GetSize/SetSize as I find it a might too generic. Change-Id: Ib80a604ba62d6883fd6cbc7994da763976be5c70 Reviewed-on: Tested-by: Jenkins <> Reviewed-by: Chris Sherlock <>
2016-02-02remove B2DLineJoin::MiddleCaolán McNamara1-2/+2
and consistently map css::drawing::LineJoint_MIDDLE to the same thing that css::drawing::LineJoint_MITRE points to everywhere else Change-Id: I77b7586ea13f3fe84c0529172758256666488d36
2016-01-31tools: rename FontUnderline to FontLineStyleChris Sherlock3-41/+41
Change-Id: I4750ad8569a1003b2f8c29052f3e25003ee433ca Reviewed-on: Tested-by: Jenkins <> Reviewed-by: Chris Sherlock <>
2016-01-17vcl: rename Font::GetName to Font::GetFamilyNameChris Sherlock1-1/+1
Change-Id: Ie20871a3078bf875c1782b7761d60591a9c9704f Reviewed-on: Tested-by: Jenkins <> Reviewed-by: Chris Sherlock <>
2016-01-16revert vcl patch series that brok Mac and WindowsNorbert Thiebaud1-1/+1
revert: 9bc2f3de8672e812f3a67541c6d7069b434a7e42 vcl: add comment about ImplFontMetric::{Get|Set}LineHeight() 26371f105bc44e04469ec03fc5bb12505e651c6b vcl: FontAttributes::GetSlantType() -> FontAttributes::GetItalic() 2dd0b4317372b8022efe3911b38b4fa02956d8b9 vcl: font.hxx and metric.hxx cleanup, make ctors explicit and the dtor virtual 5ab13bf3ead3539e4ad847656da81e7eb6029652 vcl: tabify font.hxx f99550dae55e40e49bf9c9875053fe2abb4c71ca vcl: change Font::SetName() to Font::SetFamilyName() 2b297116cb6bb1061c43e5714e2609c8ee9f57d2 vcl: rename Font::GetName to Font::GetFamilyName Change-Id: I23f38921187d66b970ca815eb30dda4222a2da62
2016-01-16vcl: rename Font::GetName to Font::GetFamilyNameChris Sherlock1-1/+1
Change-Id: I83927e0992dfe0a2a79d139818a9f45d3761aae5 Reviewed-on: Reviewed-by: Chris Sherlock <> Tested-by: Chris Sherlock <>
2016-01-13vcl: Create accessor and mutator for int and ext leading in FontMetricChris Sherlock1-4/+4
Accessor and mutator created for external and internal leading space in FontMetric. See commit description in 8bfccd3a71d911b6d ("vcl: Create accessor and mutator for font scaling in FontMetric") for reasoning behind patch. Unit tests - check to ensure that can set external and leading space - check equality operator on FontMetric after setting both external and internal leading space - enhanced tests to also check the inequality operator Change-Id: I973970dd0b0631c5eca3e89039dce57ac3a3eb63 Reviewed-on: Reviewed-by: Chris Sherlock <> Tested-by: Chris Sherlock <>
2016-01-07Some cleanup for sal_uIntPtr usageJohannes Hauf1-1/+1
Change-Id: Ia9779e6477d8848588f3543d09ea6b4477f594a2 Reviewed-on: Reviewed-by: Stephan Bergmann <> Tested-by: Stephan Bergmann <>
2016-01-02cppcheck: allocaCalledCaolán McNamara1-7/+8
Change-Id: I253f71f851621d8a3d1244468b9da63ba2d10b09
2015-11-23VirtualDevices either match another device depth, or are 1 bitCaolán McNamara1-1/+1
cairo can therefore always render to a svp virtual device with need for a fallback Change-Id: I5d03ae541820389e26f7448444444be009fb28a4
2015-11-23establish that Virtual Devices either match Physical Device depth or ...Caolán McNamara1-1/+1
are 1 or (rarely) 8 bit and lock that down. Change-Id: I3d946ebef34ffb71c5adea7aa420af50e9584e05
2015-11-20loplugin:unusedfields in cppcanvasNoel Grandin2-29/+0
Change-Id: Ibba6a89ba87970bf08c44e8a70ce0dd1e9f75956 Reviewed-on: Reviewed-by: Noel Grandin <> Tested-by: Noel Grandin <>
2015-11-20Seems more natural to pass a homogenous list by initializer_listStephan Bergmann1-1/+1
...than by template parameter pack (even if that requires using ServiceDecl*, as initializer_list cannot take reference types) Change-Id: Ia986201b52d8daedfe925f132ebc79bc2c0ba378
2015-11-17Add SvStream::ReadUtf16 (don't assume sal_Unicode is unsigned short)Stephan Bergmann1-1/+1
Change-Id: I74f34e3389582617fa83f8f4a3d6867cf87189e1
2015-11-12Namespace cleanup and disambiguationAshod Nakashian1-1/+1
Change-Id: Ib6d2f8b4e71436c3a7c26bdfc9847152ebaf0739 Reviewed-on: Tested-by: Jenkins <> Reviewed-by: Caolán McNamara <> Tested-by: Caolán McNamara <>
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann14-64/+64
Change-Id: I68f6c78d1a539a960efbcf81be1e5b2bd26c2bc5
2015-11-05Reduce scope of #include <tools/poly.hxx>Matteo Casalin1-1/+0
Change-Id: I0d64393c029d27c8e6f3b6d360d2509dad16d860
2015-10-27Replace boost::bind by lambdas in cppcanvas tree.Mario J. Rugiero1-4/+1
Change-Id: I2eba564ddd462a5aa9f96efda418927eb8b88eb7 Reviewed-on: Reviewed-by: Noel Grandin <> Tested-by: Noel Grandin <>
2015-10-12Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY codeStephan Bergmann18-117/+117
Change-Id: I2ea407acd763ef2d7dae2d3b8f32525523ac8274