summaryrefslogtreecommitdiffstats
path: root/canvas
Commit message (Collapse)AuthorAgeFilesLines
* Explicitly mark overriding destructors as "virtual"Stephan Bergmann2014-04-016-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
* coverity#738566 Uninitialized pointer fieldCaolán McNamara2014-04-011-2/+0
| | | | Change-Id: I8eefe76a202c11858df0c5bddebfce3559ec8ca4
* typo: optimisation -> optimizationThomas Arnhold2014-03-291-2/+2
|
* fdo#38844 Remove XOR rendering code from canvas moduleKrisztian Pinter2014-03-281-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>
* First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann2014-03-2632-303/+307
| | | | | | | ...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a
* Remove unused includeStephan Bergmann2014-03-201-1/+0
| | | | Change-Id: Icb79f8f67271a4bcf56be9b4fa88f14cb9d7633c
* Mark overriding DisambiguationHelper class template mem funs as SAL_OVERRIDEStephan Bergmann2014-03-1215-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
* Mark overriding BitmapCanvasBase class template member funs as SAL_OVERRIDEStephan Bergmann2014-03-127-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
* cppuhelper: retrofit std::exception into overriding exception specsStephan Bergmann2014-02-2638-365/+365
| | | | Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
* Remove visual noise from canvasAlexander Wilms2014-02-2525-183/+183
| | | | Change-Id: I0f01a4064ab6d1f55647ecdc1a8710e289e5d96c
* Remove unneccessary commentsAlexander Wilms2014-02-238-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>
* vcl: sal_Bool -> boolStephan Bergmann2014-02-2110-24/+24
| | | | Change-Id: I2a3e3d3e3266ea0f0fafdd91362076a4aa160f0e
* Drop unused #includeTakeshi Abe2014-02-142-6/+0
| | | | Change-Id: Id05440ffb8eb9990d2d08f721d6914f3dbc86cab
* coverity#706253 Uncaught exceptionCaolán McNamara2014-02-111-1/+2
| | | | Change-Id: Id55f2ae36c03db59011ce11538fd45d9e909d5c0
* coverity#706250 Uncaught exceptionCaolán McNamara2014-02-111-1/+2
| | | | Change-Id: I862f30149c46869ad8cb973442a1818af8e9031f
* coverity#1103731 Uncaught exceptionCaolán McNamara2014-02-112-2/+5
| | | | Change-Id: Ia56720a1dbc209b048cb9285266e8d897b37cf29
* cairo canvas: Zero font's width means "the same as height".Jan Holesovsky2014-01-311-1/+5
| | | | Change-Id: I1d24b2039fb3c615e672189d12c77e960cc858ee
* bool improvementsStephan Bergmann2014-01-221-2/+2
| | | | Change-Id: Ic02ccfcadc1a82f489280304ce1180c86aaa3a63
* Add missing include.Matúš Kukan2014-01-161-0/+2
| | | | Change-Id: I9e32df45b44513562202f9e453138f54c1d2abe8
* fdo#54938: Convert canvas to cppu::supportsServiceMarcos Paulo de Souza2014-01-1615-94/+57
| | | | | | Final part Change-Id: I5ff8e4aacf7be7c0cb1eab520f01cc312143641e
* longparas: drop wrong xub_StrLen casts nowCaolán McNamara2014-01-141-4/+4
| | | | Change-Id: I720b921367ad810e3d775155535c1e05ab5f6f2c
* Be explicit when using bool as integral valueStephan Bergmann2014-01-104-13/+13
| | | | Change-Id: I3a6b9df9b1b6c48d5db506942d651f66cefdaa18
* vcl get rid of xub_StrLen and STRING_LEN in outdev3Norbert Thiebaud2013-12-182-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>
* Adapt all (non-extension, SharedLibrary) .components to environment="..."Stephan Bergmann2013-12-177-14/+14
| | | | Change-Id: I56f38bd786f3a026cb2908f28540dc9c4003af83
* Remove unnecessary use of OUString constructor in + expressionsNoel Grandin2013-12-171-1/+1
| | | | | | | | | Convert code like aFilename = OUString::number(nFilePostfixCount) + OUString(".bmp"); to aFilename = OUString::number(nFilePostfixCount) + ".bmp"; Change-Id: I03f513ad1c8ec8846b2afbdc67ab12525ed07e50
* Revert "add dummy oglcanvas::SpriteCanvas::copyRect so this compiles..."Thorsten Behrens2013-11-291-13/+0
| | | | | | With the XCanvas / XBitmapCanvas revert in, this can go, too. This reverts commit f0d93fab3eaad5865feb5895e542e8947c866aef.
* add dummy oglcanvas::SpriteCanvas::copyRect so this compiles...Michael Stahl2013-11-281-0/+13
| | | | Change-Id: I5c6986b4c765c8328cacb84ce84cc99eb6871d0a
* cairo canvas: Line dashing size depends on the line width.Jan Holesovsky2013-11-271-1/+1
| | | | Change-Id: I6a3f563b6effd37b448ec3e8463a87879e0566d4
* Windows: Require at least Windows XP SP2Thomas Arnhold2013-11-202-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>
* remove unnecessary use of OUString constructor when assigningNoel Grandin2013-11-191-2/+2
| | | | | | | | | change code like aStr = OUString("xxxx"); to aStr = "xxxx"; Change-Id: Ib981a5cc735677ec5dba76ef9279a107d22e99d4
* canvas: include <> for external includesNorbert Thiebaud2013-11-112-4/+4
| | | | Change-Id: I63f1fe2f1dfc65b3e50e03e1d2ebb6256560bd5c
* remove unnecessary use of OUString constructorNoel Grandin2013-11-111-2/+2
| | | | Change-Id: Ifb220af71857ddacd64e8204fb6d3e4aad8eef71
* fixincludeguards.sh: canvasThomas Arnhold2013-11-0583-214/+214
| | | | Change-Id: I2fb527c2cb5814b15862144baf3783d226e675ef
* remove redundant calls to OUString constructorNoel Grandin2013-11-042-6/+2
| | | | | | | | | Change code like this: aStr = OUString("xxxx"); into this: aStr = "xxxx"; Change-Id: I31cb92e21658d57bb9e14b65c179536eae8096f6
* Resolves: #i123433# Detect pseudo-vertices at svg import...Armin Le Grand2013-10-311-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
* fixincludeguards.sh: canvasThomas Arnhold2013-10-2883-214/+214
| | | | Change-Id: I5b17411c58e5c5ae7b473d263fa5e4ee97ff35c8
* Bin comments that claim to say why some header is includedTor Lillqvist2013-10-2213-13/+13
| | | | | | They are practically always useless, often misleading or obsolete. Change-Id: I2d32182a31349c9fb3b982498fd22d93e84c0c0c
* missing headersCaolán McNamara2013-10-221-0/+3
| | | | Change-Id: I62a0e0d4d1d297c8faf1b684d845a630aa3a1a81
* What we actually want to check here is HAVE_FEATURE_X11Tor Lillqvist2013-10-121-1/+2
| | | | Change-Id: Id3f695f4b8dce4ace558c6d791488e8b6efd1c54
* CID#1103749 unintialized memberCaolán McNamara2013-10-111-0/+1
| | | | Change-Id: I33f92b9fc6adc6fabc9732c4e62e7331e0baba25
* oglcanvas: OUString cleanupThorsten Behrens2013-10-092-9/+4
| | | | Change-Id: If37ea29ba239c0affd8e5777c82db755ee03f1c2
* oglcanvas: ship comp registration, return device window.Thorsten Behrens2013-10-081-1/+1
| | | | Change-Id: I6c7e9416f908fd3b903eaef82492c1f4445b4e0c
* -Werror,-Wunused-private-fieldStephan Bergmann2013-10-081-1/+9
| | | | Change-Id: Ie8aaab5fb6042c4845cb5355db2ee1a1c66d9d92
* only build openGL canvas when libGL supports shaderChristian Lohmaier2013-10-071-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>
* We're still stuck with boost::unordered_mapStephan Bergmann2013-10-071-2/+2
| | | | Change-Id: If6d59fefd35541a53405dab13188a217c48ad52c
* Add opengl canvas implementation.Thorsten Behrens2013-10-0725-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
* XCanvas does no longer imply XBitmapCanvasThorsten Behrens2013-10-075-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
* fdo#39674 fix some spellingThomas Arnhold2013-10-044-4/+4
| | | | Change-Id: I72e497fb97edf8782c69000576f42896594e1556
* finish deprecation of O(U)String::valueOf()Luboš Luňák2013-08-215-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
* allow to build for Windows XP when using Visual Studio 2012Christian Lohmaier2013-07-191-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>