Commit Graph

36 Commits

Author SHA1 Message Date
Stephan Bergmann
9222f5d065 A UNO Any can't contain an Any
...and css::uno::makeAny<css::uno::Any>() was never meant to be used.  Introduce
css::uno::toAny for the (template-code) cases that shall return an Any for both
Any and non-Any inputs.

Change-Id: Ifa977d73f1da71b2fedde7e8140b19497c4a0257
2015-04-08 17:45:08 +02:00
Caolán McNamara
f88b5ab869 Related: fdo#87242 merge duplicate clip setup code
favoring the vclcanvas one for the places where
they diverge

Change-Id: I18e3d4e7659ebd4cb90c86718c1b1035671b4be3
2014-12-11 20:44:26 +00:00
Noel Grandin
827c46e7d7 fdo#82577: Handle Window
Put the VCL Window class in the vcl namespace. Avoids clash with the X11
Window typedef.

Change-Id: Ib1beb7ab4ad75562a42aeb252732a073d25eff1a
2014-09-23 14:11:39 +03:00
Markus Mohrhard
b1d2bbecac add warning about bad input
Change-Id: I7018813740460c79d09318770fbdcb24a24a441e
2014-09-02 01:08:48 +02:00
Stephan Bergmann
70cc2b191b First batch of adding SAL_OVERRRIDE to overriding function declarations
...mostly done with a rewriting Clang plugin, with just some manual tweaking
necessary to fix poor macro usage.

Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a
2014-03-26 16:39:26 +01:00
Stephan Bergmann
5e21a413c7 cppuhelper: retrofit std::exception into overriding exception specs
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-26 18:22:20 +01:00
Thorsten Behrens
21ec9beae2 XCanvas does no longer imply XBitmapCanvas
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-07 17:33:45 +02:00
Chr. Rossmanith
0968c30437 RTL_CONSTASCII_(U)STRINGPARAM removed in canvas
::rtl:: prefix removed from OUString as well

Change-Id: I4de29a9c487ff2b87fdb5efa8e75aaf5b88402b0
2013-01-09 21:15:12 +01:00
Stephan Bergmann
5124b6d83e warning C4309: '=' : truncation of constant value
Change-Id: I18bc0505870181fe2c667e3281ed5a90abeac476
2012-11-22 17:36:38 +01:00
David Tardon
642b86aa54 fix 3D 'fade' transitions
* canvas bitmaps created without transparency get an appropriate color
  space
* implement a color space for OpenGL RGBA to use instead of
  canvas::tools::getStdColorSpace(), which apparently uses VCL's
  interpretation of alpha (alpha == 0xff means full transparency,
  alpha == 0 full opacity).

Change-Id: I97f30533206b75132abd0bb0d290a279f15ae8a9
2012-11-22 10:47:16 +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
Jordi Mallach
a393af6e91 Remove unused method canvas::tools::clipBlit 2012-05-03 17:01:40 +02:00
Julien Nabet
161fb1781b Remove canvas::tools::calcRectToRectTransform 2012-04-09 13:45:35 +02:00
Elton Chung
dac6e46f29 Remove unused code 2012-02-13 16:21:42 +00:00
Takeshi Abe
7113c7152d catch by constant reference 2011-11-30 11:27:42 +09:00
Norbert Thiebaud
24c0f87615 remove include of pch header in canvas 2011-11-27 12:57:22 -06: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
Petr Mladek
028b400398 remove include guards using fixguard.py 2010-10-05 18:21:29 +02:00
thb
ce1a6f9141 Merge DEV300_m75
* resolved two conflicts caused by lineend changes in
   canvashelper_texturefill.cxx and implrenderer.cxx. Took the cws
   version, which uses new texture fill semantics, and fixes clipping
   bug
 * binned file header changes from head for deleted files
2010-03-31 14:57:58 +02:00
thb
b76532e1fb Fix dxcanvas gradient glitches
* moved common gradient step size code
   out to canvastools to share
 * reverted back to manual polygon rendering
   for anisotrophic rect and ellipse gradients
 * fixed tilemode==none case for bitmap fills
2010-02-19 01:13:34 +01: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
Armin Le Grand
7857f07d09 #i97509# continued matrix tooling and adapting the usages now to all the ooo code 2009-09-22 18:14:05 +02:00
Rüdiger Timm
08dd93a4b7 CWS-TOOLING: integrate CWS canvas06
2008-11-14 18:59:03 +0100 thb  r263697 : Reverted fAlpha setup to previous state, as this was bogus as well - code path is apparently not taken for test, but anyway
2008-11-13 21:32:45 +0100 thb  r263663 : WaE fix (and a bad bug as well - int color would have overflown)
2008-11-13 16:51:37 +0100 pl  r263654 : remove warnings
2008-11-13 09:46:28 +0100 thb  r263623 : #i95317# Fixed typo (thx WaE for finding)
2008-11-12 21:25:19 +0100 thb  r263617 : #i96047# call update() on hidden sprite shape as well, to force actual hiding
2008-11-12 21:23:31 +0100 thb  r263616 : #i95209# Merge from CWS thb11 - revives canvasbitmap unit tests, fixes nasty corner case in x11 salbmp (for 16bpp)
2008-11-12 21:21:46 +0100 thb  r263615 : #i95197# Shuffled code to make valgrind quiet during bmp loading
2008-11-12 21:18:06 +0100 thb  r263614 : #i93382# Make --disable-moz build work
2008-11-12 21:16:55 +0100 thb  r263613 : #i95317# Fixed mis-named traits methods for min and max numbers
2008-11-12 20:59:01 +0100 thb  r263612 : #i95317#, #i92902#: migrate CWS canvas06 to SVN.
2008-12-09 13:22:21 +00:00
Kurt Zenker
0dd2678747 INTEGRATION: CWS canvas05 (1.12.56); FILE MERGED
2008/04/21 07:31:16 thb 1.12.56.5: RESYNC: (1.12-1.13); FILE MERGED
2008/03/13 22:48:50 thb 1.12.56.4: merging in remaining ooo-build cairocanvas fixes; completing std color space implementation
2008/03/13 14:57:21 thb 1.12.56.3: Finishing touches to StdColorSpace; move cairocanvas to new color space mechanisms
2007/10/02 13:24:07 thb 1.12.56.2: #i10000# WaE fixes for Solaris
2007/10/01 13:02:02 thb 1.12.56.1: #i78888# #i78925# #i79258# #i79437# Merge from CWS picom
2008-06-24 09:48:03 +00:00
Rüdiger Timm
10120034ab INTEGRATION: CWS changefileheader (1.12.80); FILE MERGED
2008/03/28 16:35:11 rt 1.12.80.1: #i87441# Change license header to LPGL v3.
2008-04-11 08:35:25 +00:00
Kurt Zenker
b42fe193ed INTEGRATION: CWS presfixes09 (1.8.32); FILE MERGED
2006/10/18 13:59:54 thb 1.8.32.4: RESYNC: (1.10-1.11); FILE MERGED
2006/09/15 15:41:01 thb 1.8.32.3: RESYNC: (1.8-1.10); FILE MERGED
2006/03/15 13:45:57 thb 1.8.32.2: #i49357# Added VCL window coordinate absolutization method
2006/03/06 21:21:11 thb 1.8.32.1: #i59324# Correctly handling the case of 'empty' ranges now in all canvastools methods (before, we'd happily process empty ranges, yielding rather arbitrary non-empty ones afterwards); improved debug display for VCL canvas sprite count
2006-12-13 13:45:56 +00:00
Oliver Bolte
f50b8389ec INTEGRATION: CWS pchfix02 (1.10.20); FILE MERGED
2006/09/01 17:18:05 kaib 1.10.20.1: #i68856# Added header markers and pch files
2006-09-17 02:25:21 +00:00
Jens-Heiner Rechtien
d46cdb84d4 INTEGRATION: CWS warnings01 (1.8.8); FILE MERGED
2006/05/23 23:35:33 sb 1.8.8.2: RESYNC: (1.8-1.9); FILE MERGED
2005/11/15 16:51:45 thb 1.8.8.1: #i55991# made code compile without warnings for gcc
2006-06-20 01:17:03 +00:00
Rüdiger Timm
ca849be1ab INTEGRATION: CWS thbpp3 (1.8.26); FILE MERGED
2006/02/09 15:25:32 thb 1.8.26.1: Corrected debugging for sprite numbers; sanitized tools methods to return empty ranges, when input range is empty (doing calculations with the magic empty values usually yield non-magic, non-empty results)
2006-05-04 06:47:46 +00:00
Kurt Zenker
e23167ddb9 INTEGRATION: CWS canvas02 (1.6.4); FILE MERGED
2005/10/08 12:50:21 thb 1.6.4.6: RESYNC: (1.6-1.7); FILE MERGED
2005/10/07 23:05:03 thb 1.6.4.5: #i48939# Unified formatting; improved constness; avoided a few copy constructions; pruned debug code; removed empty destructors; moved end iterator queries out of the loops
2005/08/02 14:07:57 thb 1.6.4.4: #i48939# moved polyPolygonFromXPolyPolygon2D to canvastools
2005/07/25 00:56:26 thb 1.6.4.3: #i48939# Added common clip and scroll tool methods
2005/07/22 00:12:17 thb 1.6.4.2: #i48939# Factored out stubby corner sprite bound rect rendering to canvastools; finished removal of actual redraw methods from ::canvas::Sprite
2005/06/17 23:49:46 thb 1.6.4.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:52:11 +00:00
Rüdiger Timm
bbe6bcccb4 INTEGRATION: CWS ooo19126 (1.6.18); FILE MERGED
2005/09/05 17:27:07 rt 1.6.18.1: #i54170# Change license header: remove SISSL
2005-09-07 22:14:37 +00:00
Oliver Bolte
66008eceed INTEGRATION: CWS presfixes03 (1.5.4); FILE MERGED
2005/04/01 15:48:07 thb 1.5.4.1: #i36190#, #i37793#, #i39245#, #i46023# Fixes for open/close polygon stroking; beefed up the canvas tools; moved try/catch block around configuration in cf_factory (to facilitate canvasdemo with broken/incomplete services.rdb; enhanced TextLayout to cope with new Action::getBounds() functionality in cppcanvas (needed for proper mtf bounds calculation); removed extra pixel right and bottom for filled polygons; avoiding uno::Sequence::operator[] for non-const cases, but using the naked mem ptr instead (performance)
2005-04-18 08:09:20 +00:00
Vladimir Glazounov
ca43babf1c INTEGRATION: CWS presfixes01 (1.4.2); FILE MERGED
2005/02/17 23:58:04 thb 1.4.2.2: #i42499# Changed getTransformedRectBounds() according to comments from AW
2005/02/16 11:13:56 fs 1.4.2.1: #i42558# drafts.com.sun.star.drawing/rendering/geometry moved to com.sun.star.*
2005-03-10 10:55:14 +00:00
Kurt Zenker
3a89c00298 INTEGRATION: CWS impress23 (1.3.4); FILE MERGED
2005/01/04 12:28:47 thb 1.3.4.1: #i39829# Corrected XGraphicDevice::getSize() behaviour, added createInfiniteSize2D() method to tools
2005-01-21 15:26:02 +00:00
Rüdiger Timm
22d573fb62 INTEGRATION: CWS presentationengine01 (1.2.2); FILE MERGED
2004/11/17 17:00:25 thb 1.2.2.8: #118514# Canvas module reorg
2004/09/02 13:38:24 ka 1.2.2.7: separation of DX- and VCLDeviceInfo access functions
2004/09/02 11:38:24 ka 1.2.2.6: added helper function to retrieve device (implementation) specific information
2004/08/26 12:22:11 thb 1.2.2.5: #110496# Factored out LinePolyPolygonBase from canvastools.hxx/cxx
2004/08/17 16:04:54 aw 1.2.2.4: #110496# Added clipping for text on DX
2004/05/27 20:51:23 thb 1.2.2.3: #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/04/12 15:12:22 thb 1.2.2.2: #110496# Adaptions after canvas01 merge
2004/04/05 15:57:56 thb 1.2.2.1: Resync with canvas01 changes
2004-11-26 16:07:40 +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