summaryrefslogtreecommitdiff
path: root/canvas
AgeCommit message (Collapse)AuthorFilesLines
2014-04-01Explicitly mark overriding destructors as "virtual"Stephan Bergmann6-6/+6
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-01coverity#738566 Uninitialized pointer fieldCaolán McNamara1-2/+0
Change-Id: I8eefe76a202c11858df0c5bddebfce3559ec8ca4
2014-03-29typo: optimisation -> optimizationThomas Arnhold1-2/+2
2014-03-28fdo#38844 Remove XOR rendering code from canvas moduleKrisztian Pinter1-71/+2
Change-Id: Ie0c6b2950184bd3843baae59eff08a2f4e9e1b9c Reviewed-on: https://gerrit.libreoffice.org/8715 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-03-26First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann32-303/+307
...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a
2014-03-20Remove unused includeStephan Bergmann1-1/+0
Change-Id: Icb79f8f67271a4bcf56be9b4fa88f14cb9d7633c
2014-03-12Mark overriding DisambiguationHelper class template mem funs as SAL_OVERRIDEStephan Bergmann15-35/+37
...which reveals that some uses are not derived from XEventListener, so re- introduce BaseMutexHelper as an alternative (which originally got superseded by DisambiguationHelper in 09b546cf9c1d0d9f78066e70a0348c7678cdcb14 "Fix overloaded-virtual warning in canvas"). Change-Id: I1418370733b72526ec481b70fa69f03e7c28b7ce
2014-03-12Mark overriding BitmapCanvasBase class template member funs as SAL_OVERRIDEStephan Bergmann7-28/+40
...which reveals that SpriteCanvasBase is not derived from XBitmapCanvas, so split up BitmapCanvasBase (just XBitmap) and BitmapCanvasBase2 (plus XBitmapCanvas) and make IntegerBitmapBase directly abstract over those two as arguments. Change-Id: Ieae87fe466bb9f1a861c8a95162ef25235ae5799
2014-02-26cppuhelper: retrofit std::exception into overriding exception specsStephan Bergmann38-365/+365
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-25Remove visual noise from canvasAlexander Wilms25-183/+183
Change-Id: I0f01a4064ab6d1f55647ecdc1a8710e289e5d96c
2014-02-23Remove unneccessary commentsAlexander Wilms8-27/+27
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 Bergmann10-24/+24
Change-Id: I2a3e3d3e3266ea0f0fafdd91362076a4aa160f0e
2014-02-14Drop unused #includeTakeshi Abe2-6/+0
Change-Id: Id05440ffb8eb9990d2d08f721d6914f3dbc86cab
2014-02-11coverity#706253 Uncaught exceptionCaolán McNamara1-1/+2
Change-Id: Id55f2ae36c03db59011ce11538fd45d9e909d5c0
2014-02-11coverity#706250 Uncaught exceptionCaolán McNamara1-1/+2
Change-Id: I862f30149c46869ad8cb973442a1818af8e9031f
2014-02-11coverity#1103731 Uncaught exceptionCaolán McNamara2-2/+5
Change-Id: Ia56720a1dbc209b048cb9285266e8d897b37cf29
2014-01-31cairo canvas: Zero font's width means "the same as height".Jan Holesovsky1-1/+5
Change-Id: I1d24b2039fb3c615e672189d12c77e960cc858ee
2014-01-22bool improvementsStephan Bergmann1-2/+2
Change-Id: Ic02ccfcadc1a82f489280304ce1180c86aaa3a63
2014-01-16Add missing include.Matúš Kukan1-0/+2
Change-Id: I9e32df45b44513562202f9e453138f54c1d2abe8
2014-01-16fdo#54938: Convert canvas to cppu::supportsServiceMarcos Paulo de Souza15-94/+57
Final part Change-Id: I5ff8e4aacf7be7c0cb1eab520f01cc312143641e
2014-01-14longparas: drop wrong xub_StrLen casts nowCaolán McNamara1-4/+4
Change-Id: I720b921367ad810e3d775155535c1e05ab5f6f2c
2014-01-10Be explicit when using bool as integral valueStephan Bergmann4-13/+13
Change-Id: I3a6b9df9b1b6c48d5db506942d651f66cefdaa18
2013-12-18vcl get rid of xub_StrLen and STRING_LEN in outdev3Norbert Thiebaud2-7/+7
a new log section (sal.rtl.xub) is used to display alert in case of suspicious len == 0xFFFF (aka STRING_LEN) Change-Id: I3ed2aa7896e12592be9e003580dd6c8eda4add5e Reviewed-on: https://gerrit.libreoffice.org/7117 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2013-12-17Adapt all (non-extension, SharedLibrary) .components to environment="..."Stephan Bergmann7-14/+14
Change-Id: I56f38bd786f3a026cb2908f28540dc9c4003af83
2013-12-17Remove unnecessary use of OUString constructor in + expressionsNoel Grandin1-1/+1
Convert code like aFilename = OUString::number(nFilePostfixCount) + OUString(".bmp"); to aFilename = OUString::number(nFilePostfixCount) + ".bmp"; Change-Id: I03f513ad1c8ec8846b2afbdc67ab12525ed07e50
2013-11-29Revert "add dummy oglcanvas::SpriteCanvas::copyRect so this compiles..."Thorsten Behrens1-13/+0
With the XCanvas / XBitmapCanvas revert in, this can go, too. This reverts commit f0d93fab3eaad5865feb5895e542e8947c866aef.
2013-11-28add dummy oglcanvas::SpriteCanvas::copyRect so this compiles...Michael Stahl1-0/+13
Change-Id: I5c6986b4c765c8328cacb84ce84cc99eb6871d0a
2013-11-27cairo canvas: Line dashing size depends on the line width.Jan Holesovsky1-1/+1
Change-Id: I6a3f563b6effd37b448ec3e8463a87879e0566d4
2013-11-20Windows: Require at least Windows XP SP2Thomas Arnhold2-2/+4
* Windows XP SP2 is 0x0502, see http://msdn.microsoft.com/en-us/library/aa383745.aspx * If a module changes the Windows SDK version setting, this is done module wide now. So the overall behavior is as before. This seems to be the best compromise for now. * We need at least SP2 because of the bluetooth stuff used in sd/source/ui/remotecontrol. * Now, we require at least Internet Explorer 7.0. IE6 has been outdated for a long time. * Leave StdAfx.h file definitions, as those are Microsoft project specific precompiled header files. * All local definitions of WINVER are removed, because the global WINVER setting makes them obsolete now. To the relation of the three macros: Setting _WIN32_WINNT sets WINVER and NTDDI_VERSION automatically to the same value as _WIN32_WINNT. WINVER and NTDDI_VERSION can be set idenpendently each for itself. Change-Id: Ibcc12493aae4fcaf7bcfda88be99c1b61bc326cb Reviewed-on: https://gerrit.libreoffice.org/6496 Reviewed-by: Thorsten Behrens <thb@documentfoundation.org> Tested-by: Thorsten Behrens <thb@documentfoundation.org>
2013-11-19remove unnecessary use of OUString constructor when assigningNoel Grandin1-2/+2
change code like aStr = OUString("xxxx"); to aStr = "xxxx"; Change-Id: Ib981a5cc735677ec5dba76ef9279a107d22e99d4
2013-11-11canvas: include <> for external includesNorbert Thiebaud2-4/+4
Change-Id: I63f1fe2f1dfc65b3e50e03e1d2ebb6256560bd5c
2013-11-11remove unnecessary use of OUString constructorNoel Grandin1-2/+2
Change-Id: Ifb220af71857ddacd64e8204fb6d3e4aad8eef71
2013-11-05fixincludeguards.sh: canvasThomas Arnhold83-214/+214
Change-Id: I2fb527c2cb5814b15862144baf3783d226e675ef
2013-11-04remove redundant calls to OUString constructorNoel Grandin2-6/+2
Change code like this: aStr = OUString("xxxx"); into this: aStr = "xxxx"; Change-Id: I31cb92e21658d57bb9e14b65c179536eae8096f6
2013-10-31Resolves: #i123433# Detect pseudo-vertices at svg import...Armin Le Grand1-2/+2
unify svg:d handling, correct svg:d import for relative sub-polygons in svg import; changed default for moveto writes for svg:d in ODF to absolute (cherry picked from commit f15874d8f976f3874bdbcb53429eeefa65c28841) Conflicts: basegfx/inc/basegfx/polygon/b2dpolygontools.hxx basegfx/inc/basegfx/polygon/b2dpolypolygontools.hxx basegfx/inc/basegfx/polygon/b3dpolypolygontools.hxx basegfx/source/polygon/b2dpolypolygontools.cxx basegfx/source/polygon/b2dsvgpolypolygon.cxx basegfx/source/polygon/b3dpolypolygontools.cxx basegfx/source/tools/makefile.mk basegfx/test/boxclipper.cxx basegfx/test/clipstate.cxx basegfx/test/genericclipper.cxx canvas/source/tools/surfaceproxy.cxx sdext/source/pdfimport/tree/drawtreevisiting.cxx sdext/source/pdfimport/tree/writertreevisiting.cxx xmloff/inc/xexptran.hxx xmloff/source/draw/XMLImageMapContext.cxx xmloff/source/draw/XMLImageMapExport.cxx xmloff/source/draw/shapeexport2.cxx xmloff/source/draw/shapeexport3.cxx xmloff/source/draw/xexptran.cxx xmloff/source/draw/ximp3dobject.cxx xmloff/source/draw/ximpshap.cxx xmloff/source/style/MarkerStyle.cxx xmloff/source/text/XMLTextFrameContext.cxx xmloff/source/text/txtparae.cxx Change-Id: I5171b4a3559ea116bea45152e1f2685666463635
2013-10-28fixincludeguards.sh: canvasThomas Arnhold83-214/+214
Change-Id: I5b17411c58e5c5ae7b473d263fa5e4ee97ff35c8
2013-10-22Bin comments that claim to say why some header is includedTor Lillqvist13-13/+13
They are practically always useless, often misleading or obsolete. Change-Id: I2d32182a31349c9fb3b982498fd22d93e84c0c0c
2013-10-22missing headersCaolán McNamara1-0/+3
Change-Id: I62a0e0d4d1d297c8faf1b684d845a630aa3a1a81
2013-10-12What we actually want to check here is HAVE_FEATURE_X11Tor Lillqvist1-1/+2
Change-Id: Id3f695f4b8dce4ace558c6d791488e8b6efd1c54
2013-10-11CID#1103749 unintialized memberCaolán McNamara1-0/+1
Change-Id: I33f92b9fc6adc6fabc9732c4e62e7331e0baba25
2013-10-09oglcanvas: OUString cleanupThorsten Behrens2-9/+4
Change-Id: If37ea29ba239c0affd8e5777c82db755ee03f1c2
2013-10-08oglcanvas: ship comp registration, return device window.Thorsten Behrens1-1/+1
Change-Id: I6c7e9416f908fd3b903eaef82492c1f4445b4e0c
2013-10-08-Werror,-Wunused-private-fieldStephan Bergmann1-1/+9
Change-Id: Ie8aaab5fb6042c4845cb5355db2ee1a1c66d9d92
2013-10-07only build openGL canvas when libGL supports shaderChristian Lohmaier1-1/+1
and disable for Mac until code is adjusted to compile Change-Id: I48c69962ae5e59ae3bdd35d343deeeffdde6e903 Reviewed-on: https://gerrit.libreoffice.org/6160 Reviewed-by: Thorsten Behrens <thb@documentfoundation.org> Tested-by: Thorsten Behrens <thb@documentfoundation.org>
2013-10-07We're still stuck with boost::unordered_mapStephan Bergmann1-2/+2
Change-Id: If6d59fefd35541a53405dab13188a217c48ad52c
2013-10-07Add opengl canvas implementation.Thorsten Behrens25-0/+4652
Adds opengl canvas implementation - display-list-based, all rendering done as textured geometry. Needs shader support. Currently compiles and works on Linux, Mac should be ~easy to add, win32 eventually. Change-Id: Ibf3eb88d6a36a91b2960a3a6320d708160e4fc14
2013-10-07XCanvas does no longer imply XBitmapCanvasThorsten Behrens5-5/+10
Remove the implication that XCanvas IS-A XBitmapCanvas, i.e. one can access underlying pixels. That's a preparation for display-list based canvas implementations, and was a rather silly assumption in the first place. Also fixes up all client sites. Change-Id: I7a3d6f68ef46fe94b23cce7759cc0b8b6ca4dae9
2013-10-04fdo#39674 fix some spellingThomas Arnhold4-4/+4
Change-Id: I72e497fb97edf8782c69000576f42896594e1556
2013-08-21finish deprecation of O(U)String::valueOf()Luboš Luňák5-24/+24
Compiler plugin to replace with matching number(), boolean() or OUString ctor, ran it, few manual tweaks, mark as really deprecated. Change-Id: I4a79bdbcf4c460d21e73b635d2bd3725c22876b2
2013-07-19allow to build for Windows XP when using Visual Studio 2012Christian Lohmaier1-1/+1
VS 2012 Update 1 added the possibility to target Windows XP by using a SDK that is based on the Windows 7 one. http://blogs.msdn.com/b/vcblog/archive/2012/10/08/10357555.aspx This patch probably should not be integrated as is, as it disables a test that fails in this configuration (CppunitTest_connectivity_ado) Change-Id: I3ba8723882452950c40049ccdc95b04c60862cbf Reviewed-on: https://gerrit.libreoffice.org/4966 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>