Commit Graph

27 Commits

Author SHA1 Message Date
Caolán McNamara
fb6d3b883b disambiguate uniform_int_distribution
Change-Id: Ifa0c1b1983d1cc7f22d55b15dee88b7f709dbcf8
2014-10-07 14:21:16 +01:00
Caolán McNamara
8f436d3de7 use comphelper::rng::uniform_*_distribution everywhere
and automatically seed from time on first use

coverity#1242393 Don't call rand
coverity#1242404 Don't call rand
coverity#1242410 Don't call rand and additionally allow 0xFF as a value
coverity#1242409 Don't call rand
coverity#1242399 Don't call rand
coverity#1242372 Don't call rand
coverity#1242377 Don't call rand
coverity#1242378 Don't call rand
coverity#1242379 Don't call rand
coverity#1242382 Don't call rand
coverity#1242383 Don't call rand
coverity#1242402 Don't call rand
coverity#1242397 Don't call rand
coverity#1242390 Don't call rand
coverity#1242389 Don't call rand
coverity#1242388 Don't call rand
coverity#1242386 Don't call rand
coverity#1242384 Don't call rand
coverity#1242394 Don't call rand

Change-Id: I241feab9cb370e091fd6ccaba2af941eb95bc7cf
2014-10-06 14:13:27 +01:00
Noel Grandin
a517898052 remove unnecessary "const &" qualifier from T* parameters
e.g. convert code like
    foo(X * const & p)
to
    foo(X * p)
since the "const &" part of it adds nothing useful.

Change-Id: Icf5f2041517259e7b6e055b75ed1e0e77c547da5
2014-07-18 14:24:19 +02:00
Thomas Arnhold
72a416bef8 fixincludeguards.sh: slideshow
Change-Id: Id966e572afb403fd652a7a9b3936e1cfae4581b9
2014-04-19 11:10:12 +02:00
Marcos Paulo de Souza
b8183958e6 fdo#60698: Split out slideshow code from animations
Also remove the TargetPropertiesCreator service since just slideshow uses this.

Change-Id: I80816f6225b7bd9fb18f48e69eb5dfd6709b6e56
2014-03-10 09:15:54 +01:00
Tor Lillqvist
a7724966ab Bin comments that claim to say why some header is included
They are practically always useless, often misleading or obsolete.

Change-Id: I2d32182a31349c9fb3b982498fd22d93e84c0c0c
2013-10-22 16:56:28 +03:00
Luboš Luňák
1946794ae0 mass removal of rtl:: prefixes for O(U)String*
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk
have kept them, in order not to break external API (the automatic using declaration
is LO-internal).

Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2013-04-07 14:23:11 +02:00
Jean-Noël Rouvignac
97eb8a6e0e Removed several useless macros: A2OU, A2S, C2U, C2S, OUSTR, OUSTRING
Change-Id: Ie859cb2dfdc7103c379fce56be88eef8fe390afd
Reviewed-on: https://gerrit.libreoffice.org/1924
Tested-by: Luboš Luňák <l.lunak@suse.cz>
Reviewed-by: Luboš Luňák <l.lunak@suse.cz>
2013-01-30 12:54:40 +00:00
Michael Meeks
535e83550e re-base on ALv2 code. Includes:
Avoid some uses of non portable #!/bin/bash in shell scripts.
    Patch contributed by Pedro Giffuni
    http://svn.apache.org/viewvc?view=revision&revision=1235297
    remove redundant namespace, patch contributed Mathias Bauer
    http://svn.apache.org/viewvc?view=revision&revision=1162610
    removal of OS/2 port changes, and preferring our similiar
    tools/inc/tools/solar.h DLLPOSTFIX cleanup.
    i118595 - Removal of the use of getopt() from rscdep.
    Patch contributed by Andre Fische
    http://svn.apache.org/viewvc?view=revision&revision=1202270
2012-07-11 18:12:35 +01:00
Stephan Bergmann
10f996efb1 fix trunk gcc compiler errors; second attempt for the previously reverted part 2011-09-29 17:11:14 +02:00
Stephan Bergmann
a08df51f64 Reverted std::hash map part of previous "fix trunk gcc compile errors." 2011-09-29 14:01:20 +02:00
Matúš Kukan
8de6948e4f fix trunk gcc compile errors 2011-09-29 13:22:57 +02:00
Caolán McNamara
5ba602cbf0 callcatcher: another layer of unused 2011-09-01 09:53:36 +01:00
Caolán McNamara
bc5ad2e5b6 callcatcher: remove uncalled and uncallable methods 2010-12-04 21:21:24 +00:00
Caolán McNamara
55ae7b1537 add modelines to .hxx files as well 2010-10-28 15:50:10 +01:00
Jens-Heiner Rechtien
9e19ff00c7 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
thb
44d83b68fd #103174# Code from the ecntablet and eraser CWS; optionally improves user paint interactions in slideshow 2009-06-29 15:15:41 +02:00
Rüdiger Timm
4d1271fde0 INTEGRATION: CWS changefileheader (1.10.46); FILE MERGED
2008/03/31 14:00:31 rt 1.10.46.1: #i87441# Change license header to LPGL v3.
2008-04-11 00:33:55 +00:00
Oliver Bolte
96ed584242 INTEGRATION: CWS presfixes12 (1.9.12); FILE MERGED
2007/01/29 14:02:30 thb 1.9.12.1: Issue number: #i37778#

Larger slideshow refactoring. Wrote design and coding style manifest,
and adapted the code to actually conform to this. In detail:
 - cleaned up ownership/disposable/weak_ptr story. removed hacks and
   explicit Disposable implementations, where workaround were available
 - removed object mutices, where superfluous
 - reworked EventMultiplexer (using templatized listener class now), added
   more events. EventMultiplexer now serves as a true blackboard
 - reworked directory structure: disjunct parts are now physically separated
   into directories, instantiation happens via factories & abstract interfaces
 - added CursorManager, to make setting mouse cursor less hackish
 - reworked DrawShape, to implement SeparateListener pattern
 - reworked IntrinsicAnimationActivity, to avoid cyclic references
 - modified hyperlink & shape cursor handling to communicate via
   EventMultiplexer
 - renamed & cleaned up files (presentation.cxx now named slideshowimpl.cxx,
   etc.)
 - added first version of the z-order fix to layer/layermanager
 - cleaned up include guards and include syntax
2007-07-17 14:17:25 +00:00
Kurt Zenker
06d1e0e4b0 INTEGRATION: CWS presfixes09 (1.7.10); FILE MERGED
2006/04/24 13:25:38 thb 1.7.10.7: #i53194# Unified include statements (local headers always have double quotes; external headers angle brackets); reverted EventMultiplexer pause events to shared_ptr; removed EventMultiplexer::removeViewHandler(), since the handler is held weakly, anyway.
2006/04/13 14:16:45 thb 1.7.10.6: #i37778# Added line break to OSL_TRACEs; improved getPropertyValue() debug output
2006/04/12 19:25:07 thb 1.7.10.5: #i37778# Making slideshow engine much more robust against missing/unsupported interfaces and properties; fixed RehearseTimings output offset issue; fixed WaitSymbol output position
2006/03/24 18:23:39 thb 1.7.10.4: #i37778# Moved whole slideshow engine from namespace presentation (which conflicts with one of the UNO subnamespaces) to slideshow
2006/03/08 18:08:07 thb 1.7.10.3: #i49357# Removed cruft from gdimtftools; moved slideshow component to ServiceDecl; refactored multiple places of filling a rectangle in XCanvas into a tools method; now clearing the shape area to grey50 for applets/plugins (to at least show _something_ during slide transitions)
2006/03/06 22:41:13 thb 1.7.10.2: #i49357# Added AppletShape, which implements Java applets & plugin objects (Netscape plugins)
2006/03/06 22:14:37 thb 1.7.10.1: #i53194# #i55294# #i59324# Overhauled IntrinsicAnimationActivity; fixes GIF animation import; corrected rehearse timings sprite size; several cosmetic changes (removed external header guards); prepared scene for sprite prio
2006-12-13 15:05:06 +00:00
Ivo Hinkelmann
c2a6dcbf7b INTEGRATION: CWS presfixes11 (1.7.32); FILE MERGED
2006/07/27 22:04:31 thb 1.7.32.1: #i53194# #i55294# #i67460# Fixed playback control of GIF animations - timings, loops, and end states
2006-08-03 13:40:37 +00:00
Kurt Zenker
99b0d1955b INTEGRATION: CWS canvas02 (1.6.2); FILE MERGED
2005/10/19 14:41:26 thb 1.6.2.1: #i48939# Moved ValueMap from slideshow; adapted AttributeMap accordingly; added debug trigger code, which initiates a screen dump, after an animation batch has completed
2005-11-02 13:06:13 +00:00
Oliver Bolte
3ec6f7fbd0 INTEGRATION: CWS presfixes08 (1.4.10); FILE MERGED
2005/08/29 13:34:50 dbo 1.4.10.4: #i46618#
Issue number:
Submitted by:
Reviewed by:
2005/08/26 11:56:18 dbo 1.4.10.3: #i46618# hyperlink support
Issue number:
Submitted by:
Reviewed by:
2005/08/02 08:16:11 dbo 1.4.10.2: #i37786# missing const, DBG_UTIL
Issue number:
Submitted by:
Reviewed by:
2005/07/15 12:59:58 dbo 1.4.10.1: #i37786# drawing layer animations, cleanup
Issue number:
Submitted by:
Reviewed by:
2005-10-11 07:54:47 +00:00
Rüdiger Timm
fbaefcf3a1 INTEGRATION: CWS ooo19126 (1.4.16); FILE MERGED
2005/09/05 17:41:48 rt 1.4.16.1: #i54170# Change license header: remove SISSL
2005-09-07 20:22:24 +00:00
Oliver Bolte
d0324ed2e2 INTEGRATION: CWS presfixes03 (1.3.10); FILE MERGED
2005/04/11 17:42:36 thb 1.3.10.2: #i36190# #i44807# Implemented reduction of subset animations to the actual subset bounding box: relegated some common code to tools.cxx; completely overhauled viewshape.cxx; removed duplicate subset vector entry from DrawShapeSubsetting; corrected auto-reverse mode (fixed broken 'put on the brakes' effect); fixed AnimationSetNode deactivate behaviour (made the sequence activate->process activity->deactivate explicit (was by chance before and currently actually broken))
2005/04/01 16:34:27 thb 1.3.10.1: #i46224# Now rendering OLE and graphic shapes as bitmaps (even if they are metafiles); Fixed the extra white line around slides problem by clearing the slide bitmap first black (full size), and then white, but one pixel smaller.
2005-04-18 08:52:36 +00:00
Vladimir Glazounov
66af8bc833 INTEGRATION: CWS presfixes01 (1.2.6); FILE MERGED
2005/02/02 22:47:01 dbo 1.2.6.2: #i37777#
- timing changes for activities queue
- minor fixes
Issue number:
Submitted by:
Reviewed by:
2005/01/26 11:20:06 dbo 1.2.6.1: #i39787# more helpers
Issue number:
Submitted by:
Reviewed by:
2005-03-10 12:56:56 +00:00
Rüdiger Timm
cc9ce99bf5 INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED
2004/08/31 01:12:35 thb 1.1.2.7: #110496# Implemented shape broadcasting, added CurrentPage property when calling the UnoGraphicExporter for shape metafiles
2004/08/27 18:54:36 thb 1.1.2.6: #110496# Implemented slide transitions, fixed some minor sd integration probs (repaints, updateScreen
2004/08/23 19:17:17 thb 1.1.2.5: #110496# Implemented remaining attribute animations, fixed some performance problems
2004/08/20 00:26:02 thb 1.1.2.4: #110496# Fixed faulty string map lookup (values not in the map where mapped to closest map entry)
2004/08/19 17:31:25 thb 1.1.2.3: #110496# Converted concrete shape class to interface, to support different shape flavours (actual trigger was the need to have video/sound objects). Fixed a problem for shape repaint, where instead of the correctly transformed bound rect the original shape bounds where taken
2004/08/13 20:33:38 thb 1.1.2.2: #110496# Implemented color animations
2004/08/05 20:00:01 thb 1.1.2.1: #110496# Moved from source/engine
2004-11-26 18:22:22 +00:00