Commit Graph

31 Commits

Author SHA1 Message Date
Noel Grandin
8e234c5b7d use initialiser syntax for Sequence<OUString>
replaced using the script:

git grep -lP 'Sequence.*OUString.*\(1\)'
  | xargs perl -0777 -pi
    -e "s/Sequence< OUString > (\w+)\(1\);
.*\[0\] = (\S+);/Sequence< OUString > \1 { \2 };/g"

Change-Id: I23688a91562051a8eed11fc2a85599545c285c34
Reviewed-on: https://gerrit.libreoffice.org/19967
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-15 10:13:08 +00:00
Norbert Thiebaud
e5ec630414 stop inclduing canvas/verbosetraces.hxx and canvas/debug.hxx
also clean-up and 'standardize' the include sections of canvas' source code

Change-Id: Ib437a41ea41ae2ea6528f755ae5b2828775aaf73
Reviewed-on: https://gerrit.libreoffice.org/17633
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2015-08-11 03:57:18 +00:00
Norbert Thiebaud
326777b5d9 remove VERBOSE use from canva
in preparation to kill --enable-verbose in configure.ac
convert modules that use VERBOSE-YES/NO (uppercase) env variable
to do things differently at compile time
Convert canvas to use SAL_INFO/SAL_WARN mechanism instead of its
home-grown 'verbose logging'.

Change-Id: I2898d2309d421457839e3cd7078166c6da919882
Reviewed-on: https://gerrit.libreoffice.org/17619
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2015-08-10 17:14:18 +00:00
Noel Grandin
456c379ffd convert ANTIALIASING constants to scoped enum
Change-Id: I175b8ea4e8bc01c3cdd3dd90506eba01b35e0085
2015-05-20 09:52:09 +02:00
Noel Grandin
3cbdf64ad5 convert DRAWMODE constants to scoped enum
Change-Id: I36cbe8057d09226f8b302963bdd94dc5600b686f
2015-05-20 09:52:08 +02:00
Stephan Bergmann
5e21a413c7 cppuhelper: retrofit std::exception into overriding exception specs
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-26 18:22:20 +01:00
Alexander Wilms
0ce0c369aa Remove unneccessary comments
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-23 03:38:49 +00:00
Marcos Paulo de Souza
ccf47bd943 fdo#54938: Convert canvas to cppu::supportsService
Final part

Change-Id: I5ff8e4aacf7be7c0cb1eab520f01cc312143641e
2014-01-16 10:26:03 +01:00
Ádám Csaba Király
b93b23fe10 Replace rtl::O(U)String with O(U)String
Other changes include:
in bridges/test/testcomp.cxx duplicate 'using namespace ::test' removed,
'using namespace ::rtl' replaced with 'using ::rtl::OUString' and
'using ::rtl::OUStringToOString'

Change-Id: I67a5952afd305adeb07f728c9074620ecba8e9fc
Reviewed-on: https://gerrit.libreoffice.org/2475
Reviewed-by: Andras Timar <atimar@suse.com>
Tested-by: Andras Timar <atimar@suse.com>
2013-03-01 13:19:13 +00:00
Chr. Rossmanith
58ae10ed58 RTL_CONSTASCII_(U)STRINGPARAM removed in canvas (WIP)
Change-Id: Id8db06826b77a2b59df51dc0829cd9e7539045fa
2013-01-07 19:42:36 +01:00
Michael Meeks
60337134e4 re-base on ALv2 code. Includes:
linecap: Reintegrating finished LineCap feature
    Patch contributed by Regina Henschel
    http://svn.apache.org/viewvc?view=revision&revision=1232507

    disable extended linecap API for now.

    gnumake4 work primarily from Mathias Bauer
    http://svn.apache.org/viewvc?view=revision&revision=1394326

    misc. dead code cleanups
    Patch contributed by Ariel Constenla-Haile
    http://svn.apache.org/viewvc?view=revision&revision=1204995
    http://svn.apache.org/viewvc?view=revision&revision=1207270
2012-10-08 11:36:37 +01:00
Szabolcs Dezsi
f770c5d6bc Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator
Pattern used:

find . -name "*.cxx" -exec sed -i 's/\( *\)return \([^()]*\)\.equalsAsciiL( *RTL_CONSTASCII_STRINGPARAM *( *\([^)]*\) ) *);/\1return \2 == \3;/' \{\} \;
2012-04-06 12:48:32 +02:00
Norbert Thiebaud
24c0f87615 remove include of pch header in canvas 2011-11-27 12:57:22 -06:00
Thorsten Behrens
09b546cf9c Fix overloaded-virtual warning in canvas
With enabled -Woverloaded-virtual gcc warning (see
http://lists.freedesktop.org/archives/libreoffice/2011-March/009567.html),
canvas exposed a nasty clash between WeakComponentImplHelper::disposing
and XEventListener::disposing. Fixed by overriding *once* in baseclass,
and then calling disambiguated, renamed methods.
2011-04-08 16:47:25 +02:00
Norbert Thiebaud
5ef746c218 use SolarMutexGuard instead of LocalGuard in canvas
LocalGuard is a wrapper guard around the SolarMutex.
SolarMutexGuard already provide this function.
2010-10-25 19:55:37 -05:00
Sebastian Spaeth
4905a19032 Add vim/emacs modelines to all source files
Fixes #fdo30794
Based on bin/add-modelines script (originally posted in mail
1286706307.1871.1399280959@webmail.messagingengine.com)

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2010-10-14 17:02:15 +02:00
Jens-Heiner Rechtien
8764506704 changefileheader2: #i109125#: change source file copyright notice from Sun Microsystems to Oracle; remove CVS style keywords (RCSfile, Revision) 2010-02-12 15:01:35 +01:00
Kurt Zenker
4152d6a07d INTEGRATION: CWS canvas05 (1.12.26); FILE MERGED
2008/04/21 07:27:58 thb 1.12.26.4: RESYNC: (1.13-1.14); FILE MERGED
2007/12/20 22:18:59 thb 1.12.26.3: #i81092# #i78888# #i78925# #i79258# #i79437# #i84784# Large canvas rework, completing various areas such as color spaces, bitmap data access, true sprite and non-sprite implementations, and upstreaming the canvas parts of rodos emf+ rendering
2007/11/06 12:36:52 thb 1.12.26.2: RESYNC: (1.12-1.13); FILE MERGED
2007/10/01 13:02:03 thb 1.12.26.1: #i78888# #i78925# #i79258# #i79437# Merge from CWS picom
2008-06-24 09:56:25 +00:00
Rüdiger Timm
b7e7c79337 INTEGRATION: CWS changefileheader (1.13.24); FILE MERGED
2008/03/28 16:35:15 rt 1.13.24.1: #i87441# Change license header to LPGL v3.
2008-04-11 08:48:23 +00:00
Jens-Heiner Rechtien
46f23c53b1 INTEGRATION: CWS thbpp9_SRC680 (1.12.28); FILE MERGED
2007/10/17 21:14:36 thb 1.12.28.1: #i82485# Carry clips along, also for XCachedPrimitive repaints
2007-11-01 13:41:02 +00:00
Oliver Bolte
9c6cfc030f INTEGRATION: CWS presfixes12 (1.11.30); FILE MERGED
2007/02/20 22:23:09 thb 1.11.30.1: #i37778# Added XCanvas::clear() method throughout all implementations
2007-07-17 13:25:27 +00:00
Oliver Bolte
2ec3e4d2c4 INTEGRATION: CWS pchfix02 (1.10.50); FILE MERGED
2006/09/01 17:18:08 kaib 1.10.50.1: #i68856# Added header markers and pch files
2006-09-17 02:29:54 +00:00
Kurt Zenker
ba57f8148d INTEGRATION: CWS canvas02 (1.8.2); FILE MERGED
2005/10/08 12:53:51 thb 1.8.2.6: RESYNC: (1.8-1.9); FILE MERGED
2005/09/27 09:22:14 thb 1.8.2.5: #i48939# Removed alpha VDev option from BackBuffer (wasn't used since ages); correctly setting backbuffer size (rounded _up_, like the sprite size itself is calculated, too)
2005/09/22 21:00:53 thb 1.8.2.4: #i48939# Employing faster XOR masking for the special case nontransparent, non-alpha bitmap redraw in backbuffer (incidently, that matches the typical slide transition sprite update)
2005/07/21 14:52:47 thb 1.8.2.3: #i48939# Factored out round up/down to integer; removed backend specific methods from base Sprite interface; removed updateScreen overwrite from SpriteCanvasBase (too much backend specifics need to be passed to HW canvases); now passing the target OutputDevice directly via Sprite::redraw() method in VCL canvas; made XFont -> impl font conversion dynamic cast, too; removed the getSpriteTargetSurface crap from SpriteCanvas
2005/07/03 20:25:14 thb 1.8.2.2: #i48939# Reworked ParametricPolyPolygon, to extract state in an atomic operation; added more state checking 'isXDirty()' methods to canvascustomspritehelper; added various comments and notes
2005/06/17 23:49:49 thb 1.8.2.1: #i48939# Huge refactoring of canvas; as much functionality as possible is now common in a bunch of shared base classes (input checking, locking, sprite redraw, etc.); added scroll update optimization, transparently to all canvas implementations
2005-11-02 11:59:14 +00:00
Rüdiger Timm
bbac449a6b INTEGRATION: CWS ooo19126 (1.8.16); FILE MERGED
2005/09/05 17:27:11 rt 1.8.16.1: #i54170# Change license header: remove SISSL
2005-09-07 22:18:26 +00:00
Oliver Bolte
1f68e836b3 INTEGRATION: CWS presfixes06 (1.7.2); FILE MERGED
2005/04/30 23:56:16 thb 1.7.2.2: #i43238# Largely reworked the update area optimization; now also serving the needs of the RedrawManager to determine whether we can update without backbuffer output preparation; En passant, also fixed a bug that output pos and scale where calculated wrong, if a shape transformation was set but not changed for a sprite redraw
2005/04/26 12:17:24 mbu 1.7.2.1: update area now handled smarter while clip is set
2005-05-06 08:16:52 +00:00
Oliver Bolte
8e9c36420a INTEGRATION: CWS presfixes03 (1.6.2); FILE MERGED
2005/04/12 03:21:23 thb 1.6.2.4: #i44807# Added preliminary version for VCL canvas transformed sprites (taking the slow Set/GetPixel affine transformater from impltools for the time being)
2005/04/11 15:08:47 thb 1.6.2.3: #i36190# Now fully dumped storing of sprite positions (was kinda redundant anyway), because the nominal sprite position has nothing to do with the bound rect's top left edge anymore (due to the transformations); made order of setting/Sprite interface calls more coherent; corrected XSprite::move() semantics (now passes on the bound rect's position and size); changed getSpriteRect() to look similar to dx canvas'
2005/04/08 11:23:23 thb 1.6.2.2: #i36190# Sprite-transform support made it necessary to track update area also for moves (because the sprite size is no longer fixed, but can vary between the enqueuing of the sprite record and the actual repaint; slightly adapted getSpriteRect(), to match bounds actually attained during sprite transform
2005/04/07 10:28:27 thb 1.6.2.1: #i36190# Preparations for full sprite transform support at VCL canvas; safe-guarding against zero-sized sprites; corrected queryTextBounds() to handle baseline offset right.
2005-04-18 08:10:29 +00:00
Rüdiger Timm
05ab4766b1 INTEGRATION: CWS presfixes02 (1.5.2); FILE MERGED
2005/03/14 16:03:07 thb 1.5.2.1: #i35136# #i36914# #i41113# #i44100# Merge from presfixes01 patches
2005-03-30 06:36:15 +00:00
Vladimir Glazounov
166d5cacdb INTEGRATION: CWS presfixes01 (1.4.2); FILE MERGED
2005/02/16 11:14:05 fs 1.4.2.4: #i42558# drafts.com.sun.star.drawing/rendering/geometry moved to com.sun.star.*
2005/02/15 12:24:18 thb 1.4.2.3: #i42440# Now filling polygons 'inclusive', i.e. with one additional pixel to the right and the bottom. Along the same lines, moved sprite-growing code to slideshow, we already handle the case there for update areas of antialiased shapes
2005/02/10 04:23:59 thb 1.4.2.2: #i38960# Added opacity detection code, which, according to the drawBitmap() call, determines whether the sprite's content is fully opaque. In that case, we can use the _much_ faster OutputDevice::DrawBitmap() method, instead of the slow mask version
2005/02/07 18:26:15 pl 1.4.2.1: #i42218# use Region::GetRegionFromPolyPolygon as performance shortcut
2005-03-10 10:57:53 +00:00
Kurt Zenker
22afd607d1 INTEGRATION: CWS impress23 (1.3.4); FILE MERGED
2005/01/07 14:57:36 dbo 1.3.4.1: #i39053# don't redraw sprite if it is hidden
2005-01-21 15:26:18 +00:00
Rüdiger Timm
670e1ada33 INTEGRATION: CWS presentationengine01 (1.2.2); FILE MERGED
2004/11/17 17:00:28 thb 1.2.2.20: #118514# Canvas module reorg
2004/10/26 23:36:58 thb 1.2.2.19: #110496# Added dedicated alpha bitmap support: factory methods at the XGraphicDevice, and optimized handling internally
2004/10/25 19:07:44 thb 1.2.2.18: #i20518# Improved canvas performance for sprite rendering
2004/10/11 00:00:05 thb 1.2.2.17: #i34997# Added new method XCanvas::drawBitmapModulated(), to facilitate global alpha channel changes when rendering bitmaps
2004/09/09 14:44:31 thb 1.2.2.16: #110496# Fixed minor map file issues; changed order of canvas instantiations in canvas factory; added sprite clipping to DirectX canvas
2004/09/06 13:33:45 thb 1.2.2.15: #110496# Improved documentation
2004/09/01 10:50:36 thb 1.2.2.14: #110496# Optimized sprite repaint (for static sprite content)
2004/08/27 18:46:16 thb 1.2.2.13: #110496# Adapted to recent canvas API changes (XSpriteCanvas::updateScreen and sprite clip semantics
2004/08/26 12:23:40 thb 1.2.2.12: #110496# Fixed a nasty update bug (hidden sprites where not cleared, when not part of other update areas by chance)
2004/08/20 00:27:10 thb 1.2.2.11: #110496# Added TODO comment
2004/08/06 14:00:09 thb 1.2.2.10: #110496# Adapted XSprite API to match reality (the way it was simply wasn't logical). Implemented sprite clipping
2004/08/02 17:50:59 thb 1.2.2.9: #110496# Adapted to recent XCanvas API changes, streamlined and factored out common code with directxcanvas
2004/07/22 20:38:27 thb 1.2.2.8: #110496# Adapted to setData/setPixel API change
2004/07/22 18:40:42 thb 1.2.2.7: #110496# Overhauled sprite redraw algo, to also respect overlapping sprites
2004/07/20 19:23:55 thb 1.2.2.6: #110496# Removed self-references to various interface implementations, along the lines, factored out common base implementation for all c++ canvases
2004/06/17 10:33:25 thb 1.2.2.5: #110496# Handle huge shrinks correctly for font scaling; added some more debug code
2004/05/27 20:51:24 thb 1.2.2.4: #110496#
Added classification code to all TODO/HACK/FIXME comments.
There are four categories:
 - code quality (C)
 - performance (P)
 - missing functionality (F)
 - and missing/incomplete error handling (E)

Furthermore, every category has a severity number between
1 and 3 associated, where 1 is lowest and 3 highest
severity
2004/05/27 14:36:52 thb 1.2.2.3: #110496# verbose tracing is now guarded also with DBG_UTIL. Unified verbose trace output between directx and VCL canvas
2004/04/12 15:12:24 thb 1.2.2.2: #110496# Adaptions after canvas01 merge
2004/04/05 15:57:57 thb 1.2.2.1: Resync with canvas01 changes
2004-11-26 16:11:13 +00:00
Thorsten Behrens
6e89341b50 #110496# Merge from cws_srx645_canvas01: first working version of XCanvas UNO components, for now consisting of javacanvas.uno.jar, vclcanvas.uno and directxcanvas.uno (windows only) 2004-03-18 09:38:44 +00:00