Mark Wielaard
cb14b1e56d
Fix memory leak in EMFPPen.
...
Delete dashPattern, compoundArray, customStartCap and customEndCap
arrays if they were created in the destructor.
Change-Id: I5f3821b1ab0ac31a9cd4bc402c04090585953573
Reviewed-on: https://gerrit.libreoffice.org/4821
Reviewed-by: David Tardon <dtardon@redhat.com >
Tested-by: David Tardon <dtardon@redhat.com >
2013-07-11 04:02:51 +00:00
Stephan Bergmann
fdcd77cdd7
warning C4305: 'argument' : truncation from 'double' to 'float'
...
Change-Id: Ieee74fd7e7cec65304dd5de9c1368f5449b66407
2013-06-12 17:27:37 +02:00
Fridrich Štrba
2b700a710e
EMF+: aBaseTransform is a hardcoded identity matrix, don't bother with it
...
Change-Id: Ifa4f42c4f17a70c7238347a13897ef6742eb4679
2013-06-12 10:03:55 +02:00
Fridrich Štrba
721f82c9bf
Use a local variable for the points
...
Change-Id: Ibd274ecd7eaeadaaef9f2a17a0d721355a561431
2013-06-11 11:41:23 +02:00
Fridrich Štrba
eb0a738d1b
Refactor a bit the code while reading it
...
Change-Id: I58693bb4ffe0f59365069a87fc30081ddf226eaa
2013-06-11 11:41:23 +02:00
Fridrich Štrba
2933de9ce0
Fix typo and make the debug output a bit more readable
...
Change-Id: I45cb5303bfcc1f3df8455ac454f3e1b3fc5a11e0
2013-06-11 11:41:23 +02:00
Armin Le Grand
385bb45473
Resolves: #i120604# unified and secured gradient tooling for primitives
...
(cherry picked from commit 05785d283e718aab182a5ea848de72e4a4b2efe3)
Conflicts:
basegfx/inc/basegfx/tools/gradienttools.hxx
basegfx/source/tools/gradienttools.cxx
cppcanvas/source/mtfrenderer/implrenderer.cxx
drawinglayer/inc/drawinglayer/primitive2d/fillgradientprimitive2d.hxx
drawinglayer/inc/drawinglayer/texture/texture.hxx
drawinglayer/source/primitive2d/fillgradientprimitive2d.cxx
drawinglayer/source/processor2d/vclhelpergradient.cxx
Change-Id: I21f94e7b4eede094171a83a009ae19213e77f22c
Unname unused argument to prevent warnings.
(cherry picked from commit f7d4af835cf308bc9ece6fd84cbd14ba5be0adcd)
Change-Id: I44381f1e417c39dfbd1d4051079bbd09f0c61848
2013-06-11 10:32:54 +01:00
Michael Stahl
930127da85
cppcanvas: try to make MSVC tinderbox happy
...
Change-Id: If4fd5a788d3907a986e27f5f53d5995c7035f685
2013-06-07 20:54:33 +02:00
Michael Meeks
ed30996f8f
fdo#65502 - EmfFillPie fix.
...
Change-Id: I395ef5f5175b9a2d758f4023605b8e2d4dce859f
2013-06-07 15:00:32 +01:00
Fridrich Štrba
abdbb847fa
Transform the clipping polygon before using it
...
Change-Id: I71a00f7d4b80ef41b637889e51a414fac6883ba1
2013-06-07 15:35:48 +02:00
Fridrich Štrba
db73861949
log point types as numbers and not as ascii chars with the value of the number
...
Change-Id: Ia64c2b3a53f150afd3c194598dc3bf7d6c5d3b17
2013-06-07 10:47:57 +02:00
Chris Sherlock
931984489e
Janitorial: indent code correctly
...
Change-Id: I9fcbeb5f60df1a977347076dac82d4b5f7aba2c1
Reviewed-on: https://gerrit.libreoffice.org/3867
Reviewed-by: Thorsten Behrens <tbehrens@suse.com >
Tested-by: Thorsten Behrens <tbehrens@suse.com >
2013-05-12 13:01:24 +00:00
David Tardon
2293815a63
fix build
...
Change-Id: Iae000243265335e3f0bc6bd8979c2131243c48f9
2013-05-12 07:37:00 +02:00
Chris Sherlock
00fbf73b07
EMF+ fixes
...
A number of fixes have been made to commit
256e42646b
:
* Missing redirect in SAL_WARN - only gets picked up when DBG_LEVEL > 1
* Some errant newlines in SAL_INFO
* Some missing braces
* Missing semi-colon fixed (!)
* Changed int to sal_Int32 (causing ambiguity error)
* Add dumpWords to the SAL_WARN that ensures that size is not greater
than length
* Show values when proessing EMF+ comment record (only enabled when
DBG_LEVEL > 2)
* Missing std::hex in SAL_INFO
Change-Id: I059ba24964dd428a56a31d100109cfec938a8a49
Reviewed-on: https://gerrit.libreoffice.org/3861
Reviewed-by: David Tardon <dtardon@redhat.com >
Tested-by: David Tardon <dtardon@redhat.com >
2013-05-12 05:19:56 +00:00
Chris Sherlock
e3c5f8f5d4
Fix: change to std::dec after having used std::hex
...
The basefield flag of a stream is persistent, which I didn't realise before.
This fixes commit 256e42646b
Change-Id: Ic0076c63ae6236ae75dcd79d108add27391b2125
Reviewed-on: https://gerrit.libreoffice.org/3842
Reviewed-by: David Tardon <dtardon@redhat.com >
Tested-by: David Tardon <dtardon@redhat.com >
2013-05-10 13:10:04 +00:00
Thorsten Behrens
569f6b41c6
Don't leak all of the EMF+ graphic objects.
...
Change-Id: I7951a9d25da5feec997dd0643f8579f5bcd0ee0f
2013-05-08 20:50:09 +02:00
Stephan Bergmann
e50ef53102
Fix adaption to SAL_INFO
...
Change-Id: I12e32c0323e21946b795ca7f2af392930f55eed6
2013-05-06 12:19:05 +02:00
Chris Sherlock
256e42646b
Convert EMFP_DEBUG to SAL_INFO, etc.
...
* Change to SAL_INFO instead of EMFP_DEBUG in emfplus.cxx
* Use #ifdef OSL_DEBUG > 1 to conditionally compile in debugging routines
* Remove some commented/conditionally compiled out code
* Change logging area for SAL_WARN from cppcanvas to cppcanvas.emf
Change-Id: I6db0021807634070cfa2fee0f07e32d235b3d2f3
Reviewed-on: https://gerrit.libreoffice.org/3782
Reviewed-by: Tor Lillqvist <tml@iki.fi >
Tested-by: Tor Lillqvist <tml@iki.fi >
2013-05-06 09:39:43 +00:00
Noel Grandin
2f1a293e1a
Clang cleanup, unaligned if statement
...
The extra semi-colons were confusing clang. Just remove the macro,
it's not adding any real value.
Change-Id: I7f7c312d2c0167a17e31624e197ae75b77fa0c2f
Reviewed-on: https://gerrit.libreoffice.org/3677
Reviewed-by: Tor Lillqvist <tml@iki.fi >
Tested-by: Tor Lillqvist <tml@iki.fi >
2013-04-29 13:59:47 +00:00
Muthu Subramanian
5a1d773278
fdo#60638: Workaround should be in FillRects rather than FillPolygon.
2013-04-26 14:04:21 +05:30
Muthu Subramanian
4bc3ead064
n#812793: (Workaround) Transparent background import in EMF+.
...
EMF+ seems to have alpha of 0xff for transparent background!
2013-04-25 11:57:59 +05:30
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
Stephan Bergmann
aa753f01ba
-Wunused-macros
...
Change-Id: Ifaa1637122d6f9cae1e29b77ac36ca5d1f220aed
2013-03-27 09:36:53 +01:00
Radek Doulik
8b1eac4a14
implemented BeginContainerNoParams and EndContainer records
...
- plus a bit of refactoring to reuse code
Change-Id: I416d2c47800752a27e2dc79f9b55b096e641062f
2013-03-22 20:55:09 +01:00
Radek Doulik
69b19ba284
implemented EmfPlusRecordTypeSave and EmfPlusRecordTypeRestore records
...
Change-Id: Iac87870c0f50a74b7f4db4c674adcded1494c055
2013-03-19 13:19:19 +01:00
Tor Lillqvist
fe8eba5faa
WaE: Potentially uninitialized local variable
...
Change-Id: I497c30dfd951132fe2f7998a158b6c14efe5ebf7
2013-03-19 10:44:25 +02:00
Radek Doulik
f2d9db4ef9
implemented EmfPlusRecordTypeSetClipRect record
...
Change-Id: I0778cf44a1f4e920e723c17c34f6de4f8eed2342
2013-03-15 16:08:20 +01:00
Radek Doulik
ebebb30940
ops, fix build
...
Change-Id: If72f3c1e0d7a14779074d898c4d1eb0fe8f07871
2013-03-15 15:34:26 +01:00
Radek Doulik
fa109b4603
implemented EmfPlusRecordTypeDrawEllipse record
...
Change-Id: If8d7c210e437a041f3202c09f3d26d621b5af748
2013-03-15 15:33:13 +01:00
David Tardon
5b6d469612
WaE: unused variable
...
Change-Id: I05d9fdd234374924c7876d2c123656495016b0ea
2013-03-15 15:16:46 +01:00
Radek Doulik
cf6b2f0ece
implemented EmfPlusRecordTypeFillEllipse record
...
Change-Id: Id9362d05ddae2066f2fa289640f447393d7cda84
2013-03-15 14:48:39 +01:00
Radek Doulik
1d6b17d613
do not crop the bitmap, it is already cropped. more debug output
...
Change-Id: Iac6cd20833e0de9d8135fc4a3a0c4e5884a0e9fa
2013-03-06 15:12:27 +01:00
Eike Rathke
4bc9d484ca
straighten out that dreaded indentation
...
Change-Id: Ia082475c5d00dfd7c09da08b535e685f8513242c
2013-03-06 14:18:29 +01:00
nccuong
a6b9173005
fdo#60148 Clean up warnings from the Clang compiler plugin
...
Change-Id: I08d755677c46c476710ecbd067ed9f7e2f54a671
loplugin: clean warnings: unused variables, incorrect indentation and log area.
Reviewed-on: https://gerrit.libreoffice.org/2544
Reviewed-by: Eike Rathke <erack@redhat.com >
Tested-by: Eike Rathke <erack@redhat.com >
2013-03-06 12:59:26 +00:00
Thomas Arnhold
4f4e4e40f5
loplugin: improve indentation
...
Change-Id: Idb847766d93dc222d6c55889616da21eeac212ee
2013-02-25 17:59:40 +01:00
Radek Doulik
41cfd0fd9d
workaround for emf+ files with broken dataSize of Image object record
...
Change-Id: I5005961e1b618af949dc978a7ac560fc9eca3e65
2013-02-25 15:08:30 +01:00
Michael Stahl
ec0d1440cf
fdo#59405: cppcanvas: fix infinite loop in processEMFPlus
...
This can be observed when inserting the bugdoc from fdo#59405.
Apparently the "size" and "length" do not agree; ensure that the
"length" does not underflow.
Change-Id: Idfc68919859b8284c724831de21208e4392af328
2013-02-25 14:27:07 +01:00
Radek Doulik
da09115cff
implemented EmfPlusRecordTypeFillPie record
...
Change-Id: I15e7464a6a295bb4c1313c0a65ee33b6443c61c8
2013-01-10 16:01:19 +01:00
Jan Holesovsky
0c22f3eadd
Make LO buildable again after the GraphicFilter move.
...
Change-Id: I3455a7294b136400f32163626d5a7a7f2bfa898c
2013-01-04 22:02:51 +01:00
Michael Meeks
44cfc7cb65
re-base on ALv2 code. Includes (at least) relevant parts of:
...
linecap: Reintegrating finished LineCap feature
Patch contributed by Regina Henschel
http://svn.apache.org/viewvc?view=revision&revision=1232507
Patches contributed by Sven Jacobi
impress212: #i81610# fixed animation export
http://svn.apache.org/viewvc?view=revision&revision=1167620
impress212: drawinglayer gbuild environment changes
http://svn.apache.org/viewvc?view=revision&revision=1167627
http://svn.apache.org/viewvc?view=revision&revision=1167628
impress212: DffPropSet -> minor code improvements, removing table
http://svn.apache.org/viewvc?view=revision&revision=1167634
impress212: #158494# fixed excel import (text rotation)
http://svn.apache.org/viewvc?view=revision&revision=1167638
Patches contributed by Armin Le Grand
Svg: Reintegrated Svg replacement from /branches/alg/svgreplavement
http://svn.apache.org/viewvc?view=revision&revision=1220836
#118728# changed indentifying definitions for Svg file detection
http://svn.apache.org/viewvc?view=revision&revision=1229961
#118838# LineGeometry creation for complicated cases optimized to
create single Polygons
http://svn.apache.org/viewvc?view=revision&revision=1236232
#119176# corrected file type detection for SVG for svg files
without xml header
http://svn.apache.org/viewvc?view=revision&revision=1309445
#118728# Extended Svg file detection
http://svn.apache.org/viewvc?view=revision&revision=1230531
#118529# solve break converters and convert commands for OLEs and images
http://svn.apache.org/viewvc?view=revision&revision=1186168
svg: added WaE changes from branch svgreplacement to trunc
http://svn.apache.org/viewvc?view=revision&revision=1222974
svg: corrected missing member initialization
http://svn.apache.org/viewvc?view=revision&revision=1226134
fix for #118525#: Using primitives for chart sub-geometry visualisation
http://svn.apache.org/viewvc?view=revision&revision=1226879
#118898# Adapted ImpGraphic::ImplGetBitmap to correctly convert
metafiles to bitmapEx ...
http://svn.apache.org/viewvc?view=revision&revision=1293316
fix for #118525#: removed no longer used variable maOriginalMapMode, one
more exception eliminated
http://svn.apache.org/viewvc?view=revision&revision=1227097
#16758# Added buffering to the VDev usages of the VclProcessor2D derivates...
http://svn.apache.org/viewvc?view=revision&revision=1229521
#116758# Secured VDev buffer device to Vcl deinit
http://svn.apache.org/viewvc?view=revision&revision=1230574
#116758# added remembering allocated VDevs for VDevBuffer to be able to also
delete these when vcl goes down; it should never happen, but You never know
http://svn.apache.org/viewvc?view=revision&revision=1230927
#118730# Changed SvgClipPathNode to use MaskPrimitive2D for primitive
representation instead of TransparencePrimitive2D
http://svn.apache.org/viewvc?view=revision&revision=1231198
#118822# secured 3D geometry creation (slices) by subdividing the 2D
source polyPolygon early
http://svn.apache.org/viewvc?view=revision&revision=1234749
#118829# enhanced Svg gradient quality, obstacles avoided
http://svn.apache.org/viewvc?view=revision&revision=1235361
#118834# Unified usage of TextBreakupHelper as single tooling class
for i18n text primitive breakup
http://svn.apache.org/viewvc?view=revision&revision=1236110
#118853# added square pixel size limit to conversion of
TransparencePrimitive2D to Metafile action
http://svn.apache.org/viewvc?view=revision&revision=1237656
#118824# coreccted mirroring and boundrect when the graphicmanager
is used for bitmap output
http://svn.apache.org/viewvc?view=revision&revision=1240097
#115092# Corrected VclProcessor2D::RenderPolygonStrokePrimitive2D for
various optimization scenarios
http://svn.apache.org/viewvc?view=revision&revision=1241434
#118783# Corrected errors in ID strings, corrected Svg line/fill export,
corrected polygon close state
http://svn.apache.org/viewvc?view=revision&revision=1232006
#118796# corrected null-pointer usage in SVG text exporter
http://svn.apache.org/viewvc?view=revision&revision=1240262
#118729# Use GraphicStreamUrl and GraphicUrl to allow multi image
import with linked graphics, too
http://svn.apache.org/viewvc?view=revision&revision=1229962
#118898# corrected error in GDIMetaFile::GetBoundRect in handling
MetaFloatTransparentAction
http://svn.apache.org/viewvc?view=revision&revision=1293349
#118855# Corrected handling of possibly created empty clipRegions
after PolyPolygon clipping
http://svn.apache.org/viewvc?view=revision&revision=1237725
#115962# Better (but not yet optimal, see comments in task) handling
of MetaFloatTransparentAction in PDF export
http://svn.apache.org/viewvc?view=revision&revision=1241078
IP clearance: #118466# This patch removes librsvg, libcroco, libgsf, ...
http://svn.apache.org/viewvc?view=revision&revision=1200879
118779# Added svg content streaming in/out to ImpGraphic stream operators
http://svn.apache.org/viewvc?view=revision&revision=1231908
linecap: correctons for WaE and mac drawing
http://svn.apache.org/viewvc?view=revision&revision=1232793
svg: uses current system Dpi for Svg replacement image creation
http://svn.apache.org/viewvc?view=revision&revision=1233948
Patches contributed by Mathias Bauer (and others)
gnumake4 work variously
http://svn.apache.org/viewvc?view=revision&revision=1394326
http://svn.apache.org/viewvc?view=revision&revision=1396797
http://svn.apache.org/viewvc?view=revision&revision=1397315
http://svn.apache.org/viewvc?view=revision&revision=1394326
Remove duplicate header includes.
cws mba34issues01: #i117720#: convert assertion into warning
http://svn.apache.org/viewvc?view=revision&revision=1172352
118485 - Styles for OLEs are not saved. Submitted by Armin Le Grand.
http://svn.apache.org/viewvc?view=revision&revision=1182166
cws mba34issues01: #i117714#: remove assertion
http://svn.apache.org/viewvc?view=revision&revision=1172357
Patch contributed by Jurgen Schmidt
add some additional checks to ensure proper reading operations
http://svn.apache.org/viewvc?view=revision&revision=1209022
mostly prefer our stream / bounds checking work.
Patches contributed by Herbert Duerr
#i118816# add clarifying comment regarding Font::*Color*() methods
http://svn.apache.org/viewvc?view=revision&revision=1233833
extend macro->string handling for empty strings
http://svn.apache.org/viewvc?view=revision&revision=1175801
avoid magic constants for SALCOLOR_NONE
http://svn.apache.org/viewvc?view=revision&revision=1177543
initialize slant properly in ImplFontMetricData constructor (author=iorsh)
http://svn.apache.org/viewvc?view=revision&revision=1177551
#i118675# make check for extension updates more stable
http://svn.apache.org/viewvc?view=revision&revision=1214797
#a118617# remove VBasicEventListener.dll binary
There are no known users depending on its CLSID
http://svn.apache.org/viewvc?view=revision&revision=1203697
Patches contributed by Ariel Constenla-Haile
Fix build breaker on Linux/gcc
http://svn.apache.org/viewvc?view=revision&revision=1221104
Fix crash when trying to instantiate css.graphic.GraphicRasterizer_RSVG
http://svn.apache.org/viewvc?view=revision&revision=1215559
Patches contributed by Oliver-Rainer Wittmann
sw34bf06: #i117962# - method <SwFlyFrm::IsPaint(..)> - consider
instances of <SwFlyDrawObj>
http://svn.apache.org/viewvc?view=revision&revision=1172120
sw34bf06: #i117783# - Writer's implementation of XPagePrintable -
apply print settings to new printing routines
http://svn.apache.org/viewvc?view=revision&revision=1172115
gnumake4 work variously from Hans-Joachim Lankenau
http://svn.apache.org/viewvc?view=revision&revision=1397315
http://svn.apache.org/viewvc?view=revision&revision=1396797
http://svn.apache.org/viewvc?view=revision&revision=1396782
http://svn.apache.org/viewvc?view=revision&revision=1394707
plus some amount of re-splitting of legacy headers.
Patch contributed by Pavel Janik
WaE: Remove unused variables.
http://svn.apache.org/viewvc?view=revision&revision=1230697
Patches contributed by Takashi Ono
mingwport35: i#117795: MinGW port fix for vcl2gnumake
http://svn.apache.org/viewvc?view=revision&revision=1172091
mingwport35: i#117795: MinGW port fix for vcl2gnumake
http://svn.apache.org/viewvc?view=revision&revision=1172091
Patch contributed by Christian Lippka
impress212: #i98044# re enable Text menu for outline and title shapes
http://svn.apache.org/viewvc?view=revision&revision=1167639
Patch contributed by Andre Fischer
118674: Made category B code optional and disabled by default.
http://svn.apache.org/viewvc?view=revision&revision=1215131
118881: Ignore empty paragraphs after bullets.
http://svn.apache.org/viewvc?view=revision&revision=1296205
Patches contributed by Philipp Lohmann
ooo340fixes: #i117780# use rtl allocator
http://svn.apache.org/viewvc?view=revision&revision=1172087
ooo34gsl02: #i117807# fix an off by one error (index actually
inside the pfb section header)
http://svn.apache.org/viewvc?view=revision&revision=1167576
various cleanups, related compilation fixes, warning cleanups, re-working
of obsolete stl template pieces to use boost instead, changed string
classes, re-adapt KDE about data, about dialog, fixing warnings,
and other fixes & improvements.
Disable svg import / render for about/ branding code-paths for now.
Restore full icon theme set.
Remove OS/2 conditionals and sources.
Remove conflicting gtk/full-screen monitors support.
Retain existing svg rasterizer files - temporarily disabled.
Standardize stringificaiton and fixup dllpostfix issues.
Rename SvgGradientHelper::== to equalTo to avoid overloading issues.
Use the flat GdiPlus API for LineCaps calls.
2012-11-06 11:58:16 +00:00
Radek Doulik
35cbe7206d
fixed typo
...
Change-Id: I483ff930b99d04cbd1514d7f541e57e223b04bab
2012-09-06 14:42:18 +02:00
Radek Doulik
cf08e8a2ee
emf+: added implementation of DrawImage record
...
Change-Id: I6c86c2eaca1586d915b648292373da4378c755ba
2012-07-19 11:09:07 +02:00
Stephan Bergmann
4dd7c0369d
Various Clang 3.1 -Wunsued-variable, -Wconstant-conversion
...
Change-Id: I0799f22685609201dfb524c373d065b6184ed53c
2012-07-18 08:23:28 +02:00
Thomas Arnhold
278000a28b
Remove unused defines
...
Some of them were commented out for documentation purpose.
Change-Id: I29a6b2cbe774b527f0c3a0be5675160817a7f3ce
2012-07-02 17:46:25 +02:00
Caolán McNamara
d5909e1452
replace custom readString with read_uInt16s_ToOUString
...
replace custom readString with more efficient and foolproof
read_uInt16s_ToOUString
Change-Id: Idf5f85adad008b4bd775badd83f55b152a6ddaaf
2012-06-25 14:19:02 +01:00
Caolán McNamara
447e5b4b36
death to some UniStrings
...
Change-Id: I0fa0c60e12c418d25f8bd96cc04c6abd74b1a608
2012-06-19 14:11:50 +01:00
Michael Meeks
3858ba3585
targetted string re-work
...
Change-Id: I9ed4df2a25c8a2a868f83de48472715a6cabe2be
2012-05-22 18:21:18 +01:00
Radek Doulik
41c4585504
tune the guessed position a bit, so that it works better with test documents
2012-04-18 19:17:11 +02:00
Radek Doulik
e14b7cdd54
implemented EmfPlusRecordTypeDrawString record
2012-04-18 19:08:43 +02:00
Radek Doulik
8e92501541
added debug message for unsupported cases
2012-04-18 15:40:05 +02:00