734 Commits

Author SHA1 Message Date
Armin Le Grand
829d31c122 Resolves: #i121387# Corrected RenderBitmapPrimitive2D_GraphicManager...
to correctly handle cases with combinations of mirroring and rotation, also
changed VclProcessor2D::RenderBitmapPrimitive2D to use own bitmapEx renderer
for these cases for better quality

(cherry picked from commit b8cf3355071035085c705a65558cd4a6cefe8f47)

Change-Id: I3f0c61db9c776299e9ee866c4e54d9c6ac431a31
2013-06-12 17:16:53 +01:00
Armin Le Grand
9536e3cbb8 Resolves: #i121233# some slight corrections/enhancements
(cherry picked from commit db00dfd93ac0e215a5d71e72645790918db0e734)

Conflicts:
	vcl/inc/vcl/bitmap.hxx
	vcl/source/gdi/bitmap3.cxx

Change-Id: I1a7817a94232b3d7f1c095dd27025e4cccea348c
2013-06-12 17:16:52 +01:00
Armin Le Grand
70e3eb2c17 Resolves: #i121267# added support for taking clipping into account...
for metafile-based exporters to vector formats

(cherry picked from commit 229a79b97110c11ef21b7b99ffc768254ca01d96)

Conflicts:
	basegfx/inc/basegfx/polygon/b2dpolypolygontools.hxx
	filter/source/flash/swfexporter.cxx
	filter/source/graphicfilter/eos2met/eos2met.cxx
	svtools/source/filter/wmf/wmf.cxx
	vcl/Package_inc.mk

Remove unused variable to prevent compile warnings.

(cherry picked from commit 60d19c1602e4fec740624fd20a7bfd39707297e4)

Change-Id: Iaeb02d7321bea2890cf4e969f1d45d58deef5584
106285f06a21f4f39f34c6755d12ac6cd4196a7f
2013-06-12 15:38:50 +01:00
Armin Le Grand
e717d1dcce Resolves: #i121237# Rework/Cleanup of Region code...
due to missing complete support for B2DPolygon class

(cherry picked from commit cab10eeb7878edf224a004fd7640bd4adf8d3c51)

Conflicts:
	cppcanvas/source/mtfrenderer/implrenderer.cxx
	svx/source/sdr/overlay/overlaymanagerbuffered.cxx
	svx/source/svdraw/svdpntv.cxx
	vcl/aqua/source/gdi/salgdi.cxx
	vcl/inc/region.h
	vcl/inc/unx/gtk/gtkgdi.hxx
	vcl/inc/vcl/regband.hxx
	vcl/inc/vcl/region.hxx
	vcl/os2/source/gdi/salgdi.cxx
	vcl/source/gdi/bmpacc3.cxx
	vcl/source/gdi/outdev2.cxx
	vcl/source/gdi/outmap.cxx
	vcl/source/gdi/regband.cxx
	vcl/source/gdi/region.cxx
	vcl/source/window/window.cxx
	vcl/unx/generic/gdi/pspgraphics.cxx
	vcl/unx/headless/svpgdi.cxx
	vcl/unx/headless/svppspgraphics.cxx
	vcl/win/source/gdi/salgdi.cxx

Change-Id: Iee9a66ff431c3cecb7603e445147b67715de0f7d

Remove unused variable to prevent compiler warning

(cherry picked from commit 0ac65ccf079e3e22ac23cbe7ae546504c863c31f)

Change-Id: Icbcaa9d576a7e560d96debc7360bdbe9090b3fd3

Wrong comparison with bool corrected

(cherry picked from commit 612cefdcf6176b6bb847ce899d89af40ef313a90)

Change-Id: I1cf5de6734b588f78d8e870ba7b7860634b461ce
2013-06-12 14:31:10 +01:00
Armin Le Grand
49a0278601 Made conversion from BitmapColor to Color more explicit...
by using operator Color()

(cherry picked from commit 08275c1207f2c66dc69f815941fa9c39c47b629a)

Change-Id: I26350c3d47e37064b5a8674f75c9822753994a17

Corrected color conversion from BitmapColor to Color

(cherry picked from commit b0b8e3854f679383fe3ff2e436bfbe3573f34088)
2013-06-11 20:16:50 +01:00
Armin Le Grand
37aa7d81aa Resolves: #i121194# Better support for graphic fill styles...
which are not bitmaps (svg, metafiles, ..)

(cherry picked from commit 7a652a2b2ab5e0d37e32185c8c5fac3af482bb76)

Conflicts:
	drawinglayer/Library_drawinglayer.mk
	drawinglayer/Package_inc.mk
	drawinglayer/inc/drawinglayer/attribute/fillgraphicattribute.hxx
	drawinglayer/inc/drawinglayer/attribute/sdrfillattribute.hxx
	drawinglayer/inc/drawinglayer/attribute/sdrfillgraphicattribute.hxx
	drawinglayer/inc/drawinglayer/primitive2d/drawinglayer_primitivetypes2d.hxx
	drawinglayer/inc/drawinglayer/primitive2d/fillgraphicprimitive2d.hxx
	drawinglayer/inc/drawinglayer/primitive2d/polypolygonprimitive2d.hxx
	drawinglayer/inc/drawinglayer/primitive3d/textureprimitive3d.hxx
	drawinglayer/inc/drawinglayer/processor2d/vclprocessor2d.hxx
	drawinglayer/inc/drawinglayer/texture/texture.hxx
	drawinglayer/inc/drawinglayer/texture/texture3d.hxx
	drawinglayer/source/attribute/fillbitmapattribute.cxx
	drawinglayer/source/attribute/sdrfillattribute.cxx
	drawinglayer/source/attribute/sdrfillgraphicattribute.cxx
	drawinglayer/source/primitive2d/fillbitmapprimitive2d.cxx
	drawinglayer/source/primitive2d/graphicprimitive2d.cxx
	drawinglayer/source/primitive2d/polypolygonprimitive2d.cxx
	drawinglayer/source/processor2d/canvasprocessor.cxx
	svx/inc/svx/sdr/primitive2d/sdrattributecreator.hxx
	svx/source/sdr/contact/objectcontacttools.cxx
	vcl/inc/vcl/graph.hxx

unused file _vclmetafileprocessor2d.cxx deleted, was added by error

(cherry picked from commit ed0d53f8283cd3ce579a90b599118884d0db6119)

Conflicts:
	drawinglayer/source/processor2d/_vclmetafileprocessor2d.cxx

Corrected canvasProcessor usage

(cherry picked from commit 7903c33f31c457eb6ff506958c4233f2a5d39bcf)

Conflicts:
	svx/source/sdr/contact/objectcontacttools.cxx

Change-Id: I80008050b98dafc92fde043524843c13a75fe22c
d2fa667d7c127b4d735334e56093d1d4553b0a5b
e20c60c7d6472da1295a162d9a629be998861f62
2013-06-11 20:00:34 +01:00
Armin Le Grand
45d011ba37 Resolves: #i121153# adapted RenderBitmapPrimitive2D_self...
bitmap transformation to metafile case where no destination bitmap size is
given

(cherry picked from commit 1f0b83f0e62094257a1c69ff18969f07422772dc)

Change-Id: I12ece7aa36df6a9895303af59693de3b9813bb17
2013-06-11 11:30:59 +01:00
Armin Le Grand
59db4be207 Related: #i120604# corrected 3d gradients
adapted basegfx to be smarter in some areas

(cherry picked from commit 888e64505474808166c29ada24178cc3e58d6c18)

Conflicts:
	basegfx/inc/basegfx/pixel/bpixel.hxx
	basegfx/inc/basegfx/point/b2dhompoint.hxx
	basegfx/inc/basegfx/point/b3dhompoint.hxx
	basegfx/inc/basegfx/raster/rasterconvert3d.hxx
	basegfx/inc/basegfx/tuple/b2dtuple.hxx
	basegfx/inc/basegfx/tuple/b2i64tuple.hxx
	basegfx/inc/basegfx/tuple/b2ituple.hxx
	basegfx/inc/basegfx/tuple/b3dtuple.hxx
	basegfx/inc/basegfx/tuple/b3i64tuple.hxx
	basegfx/inc/basegfx/tuple/b3ituple.hxx
	basegfx/source/point/b2dhompoint.cxx
	basegfx/source/tuple/b2ituple.cxx

Change-Id: Id92864093dd40d34bd20b130cc3b405a7b8f9d91
2013-06-11 10:32:54 +01: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
Petr Mladek
0de49e5d36 Revert "fix fdo#60533, Set TEXT_LAYOUT_BIDI_STRONG flag."
It caused some regressions. For example, see fdo65414 and fdo65562

This reverts commit 6708ad7f1baa8d4cef1718bdef1d26fb5d8510f3.

Change-Id: I0108463c78bbcb48a4c218d78e51deaa39caec0c
2013-06-11 10:01:05 +02:00
Armin Le Grand
628ed6bc13 Resolves: #i122395# Adapted mapping of content to more general way
(cherry picked from commit 525dfeafdb5c9a57cd2d40c9b2358446aa6aabbd)

Change-Id: Iba1af96519e378e3bdccca4295b412563004bab3
2013-05-30 14:51:23 +01:00
Jan Holesovsky
00b33bf3ef drawinglayer: Fix typo Primitrive -> Primitive.
Change-Id: Iec1f5192fb052e884c4878ffb017dfd2f5f99350
2013-05-20 13:10:22 +02:00
Caolán McNamara
cf9078b54d correct bugtracker ids
Change-Id: I082857045bdca110c9eb07eb678c85e9a53687ad
2013-05-20 09:52:11 +01:00
Armin Le Grand
fc91501f9f Resolves: #i121185# corrected handling of gradients in rotated metafiles
(cherry picked from commit 498926039ce717631eda046b1aa256efd24dfdf6)

Conflicts:
	drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx

Change-Id: Ib1a96888d0990f6f9aa573e308736d40b694a613
2013-05-20 09:31:15 +01:00
Armin Le Grand
3df12741fa Resolves: #i116162# Forced DRAWMODE_WHITEFILL to DRAWMODE_BLACKFILL
during line geometry processing to get line geometry rendered black (as
intended) in b&w mode (e.g. print preview)

(cherry picked from commit e3ec94e68f63e4e9fda829c9214f89dd5ffc4df2)

Change-Id: I35fd6d26ac48bb478a8a3b9cd4f50ccd0e4468d0
2013-05-20 09:31:15 +01:00
Armin Le Grand
5a6ed660ec Resolves: #i120596# Optimized grid primitive
added some tooling to basegfx

(cherry picked from commit 97fa4faaa0b09724cf98dbf22390b283ba57b41c)

Conflicts:
	basegfx/inc/basegfx/numeric/ftools.hxx

Change-Id: Ib15c43cf4d5b50605ec596dab498e3a678f3734a
2013-05-19 16:50:31 +01:00
Jan Holesovsky
225b41088a XShapeDumper: Dump more values, to be able to test n#819614.
Change-Id: I19cbae855996bffb18206b9003e22a2bcc0c75d9
2013-05-16 04:57:15 +02:00
Jan Holesovsky
d84b22e9a8 sd unittests: Do not dump the font name, depends on installed fonts.
Change-Id: Id401feed7d629cbc0c24428b0c1273afdb31be89
2013-05-15 14:43:01 +02:00
Jan Holesovsky
826f28e64d sd unittests: Update XShapeDumper to dump also (some) font properties.
+ update the expected dumps together with that.

This allows testing of the other part (wrong text color and size, commit
55c63ccfd460895af22e91979967cec15d80b72d) of n#758621 too.

Change-Id: Ie93feb9d9d05eb4e11106bf9aa1f237947351b4e
2013-05-15 11:31:15 +02:00
Tor Lillqvist
cb6d67c21f Spelling "separate" (etc) correctly is hard 2013-05-15 11:14:28 +03:00
Philipp Riemer
2ce25faffd fix typos (wich instead of which) 2013-05-06 20:07:23 +02:00
Armin Le Grand
8f43c78e9a Resolves: #i120230# Adapt hatch processing for a more pleasant visualisation
Adapt hatch processing to keep a view-dependent minimal distance for a more
pleasant visualisation

(cherry picked from commit 6a036e7ac17a1d4394d60471bd8931d9b16b7bb4)

Conflicts:
	drawinglayer/inc/drawinglayer/attribute/fillhatchattribute.hxx
	drawinglayer/inc/drawinglayer/primitive2d/fillhatchprimitive2d.hxx
	drawinglayer/inc/drawinglayer/primitive2d/primitivetools2d.hxx
	drawinglayer/source/attribute/fillhatchattribute.cxx

Change-Id: I15cd784ef7d3e47a20308f16d370c24ef46d2f22
2013-05-02 14:16:14 +01:00
Caolán McNamara
92e5232dcb double lock drawinglayer statics
move related statics into classes and the make safe static singleton instances
of those clases.

We still have to have the additional mutex (now per singleton) on the
methods that return the buffered data, as it may be modified per
call

Change-Id: I5873ae8271f48a0ebf4b584c1734688b77cd1d42
2013-05-02 11:03:10 +01:00
Michael Meeks
72e5d0c8fb Move to MPLv2 license headers, with ESC decision and author's permission. 2013-04-30 13:34:06 +01:00
Noel Grandin
3872be5432 Clang cleanup, unused mutex variables
Some of these were doing nothing useful at all. I removed those.
A couple were protecting static data, and I fixed those to use Mutex
and MutexGuard properly.

Change-Id: I444d13f8b6c50e526cce8d69d09aeaf240e5c6ca
Reviewed-on: https://gerrit.libreoffice.org/3678
Reviewed-by: Tor Lillqvist <tml@iki.fi>
Tested-by: Tor Lillqvist <tml@iki.fi>
2013-04-30 06:29:35 +00:00
David Tardon
092fa33f22 fdo#53163 fix hatching for objects with curves
B2DPolyPolygon can contain Bezier curves, but that is not taken into
account when drawing the hatching in OutputDevice::ImplDrawHatch. The
poly-polygon is adapted already when creating metafile, because the
information about the poly-polygon containing curves is then lost
somewhere in the process. At least, when I do the adaptation in
OutputDevice::ImplDrawHatch, it has no effect and the hatching in the
produced PDF is still wrong.

Change-Id: Ibec9d6aceb23da986fe2d2414dc2e7fd4bf835b4
2013-04-26 17:29:06 +02:00
Tor Lillqvist
e4e9fba5f4 Don't point to inc directories that don't exist any longer
Change-Id: Ia160f0ee3e9480c60056d38bf11a6b139b53424f
2013-04-24 11:01:06 +03:00
David Tardon
c042cd05e9 gbuild: drop uses of removed packages
Change-Id: I400fad08c0ae7b6b34bad63693f54856867e4dac
Reviewed-on: https://gerrit.libreoffice.org/3502
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
2013-04-24 05:18:03 +00:00
Bjoern Michaelsen
b9337e22ce execute move of global headers
see https://gerrit.libreoffice.org/#/c/3367/
and Change-Id: I00c96fa77d04b33a6f8c8cd3490dfcd9bdc9e84a for details

Change-Id: I199a75bc4042af20817265d5ef85b1134a96ff5a
2013-04-23 22:20:31 +02:00
Michael Meeks
62badf3828 Move to MPLv2 license headers, with ESC decision and author's permission. 2013-04-22 09:37:38 +01:00
Thomas Arnhold
1264480bc3 fdo#60724 correct spelling
Change-Id: I3d978cb657647b4a4e9709258c6a6a4ac1d339a9
2013-04-15 05:39:31 +02:00
Peter Foley
1472c5ed16 add filter libs to libmerged
Change-Id: I1891d1499aae87a87436bc9aaf4f70203dfbb585
2013-04-14 18:50:23 -04: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
Eike Rathke
876c619b94 new module i18nlangtag
Moved portions from module i18npool, all of former i18nisolang1 library
that now is i18nlangtag. Included are languagetag, isolang and mslangid.

This i18nlangtag code is now even used by module comphelper, so
disentangling i18npool and making this an own module was needed to not
create circular module dependencies.

Change-Id: Ib887c3d6dde667403fd22d382310ba5f1a9b0015
2013-04-05 19:10:48 +02:00
Thomas Arnhold
78bec2b6f4 fdo#62525: use cow_wrapper for ViewInformation3D
Change-Id: I4f304febfedfa4a5a89d996fe276a9413d0ef855
2013-04-03 12:12:57 +02:00
Thomas Arnhold
0c85109e64 fdo#62525: use cow_wrapper for ViewInformation2D
Change-Id: Ide3bce3257c9fed7bbda7276dfb55fa179d74fdd
Reviewed-on: https://gerrit.libreoffice.org/3183
Tested-by: Thorsten Behrens <tbehrens@suse.com>
Reviewed-by: Thorsten Behrens <tbehrens@suse.com>
2013-04-03 10:05:53 +00:00
Thomas Arnhold
7470c93a7b fdo#62525: use cow_wrapper for Sdr3DObjectAttribute
Change-Id: I80e378f6a88068f5d3b36c6187b41ab8d968a0c3
2013-04-03 02:49:17 +02:00
Thomas Arnhold
d3dff92c74 fdo#62525: use cow_wrapper for SdrSceneAttribute
Change-Id: Iaedb5080f341482c3ac4f4e0548be49801c5f0b2
2013-04-03 02:49:17 +02:00
Thomas Arnhold
12012150d2 fdo#62525: use cow_wrapper for SdrLineStartEndAttribute
Change-Id: I714011f70ae4c1b9a1dcce5cb3653e918cc742b4
2013-04-03 02:49:17 +02:00
Thomas Arnhold
92261a33c8 fdo#62525: use cow_wrapper for StrokeAttribute
Change-Id: Icf5daca279902b90da98069338638c3ad432e69a
2013-04-03 02:49:17 +02:00
Thomas Arnhold
8ee042bdb5 fdo#62525: use cow_wrapper for SdrLineAttribute
Change-Id: I62b897bd49ef05a3862cb2cd91c3aa13f621e9fd
2013-04-03 02:49:17 +02:00
Thomas Arnhold
4f989f3068 fdo#62525: use cow_wrapper for SdrLightingAttribute
Change-Id: Ibd6bd31ef78f2e853ff668f64202eff89afb1234
2013-04-03 02:49:16 +02:00
Thomas Arnhold
f61b5c3654 fdo#62525: use cow_wrapper for Sdr3DLightAttribute
Change-Id: I9639746d072642d46c3f0766c473425221b1706a
2013-04-03 02:49:16 +02:00
Thomas Arnhold
f5cf7f36f9 fdo#62525: use cow_wrapper for SdrFillBitmapAttribute
Change-Id: Ib8bb849b179be12680c5adae6bf89afc5ad31563
2013-04-03 02:49:16 +02:00
Thomas Arnhold
f98bee58fb fdo#62525: use cow_wrapper for SdrFillAttribute
Change-Id: I827e1edb2c6ec2fc3e16fde6f105063e59d40f66
2013-04-03 02:49:16 +02:00
Thomas Arnhold
c42bdb0237 fdo#62525: use cow_wrapper for MaterialAttribute3D
Change-Id: I7ee65afe8065525e6af198a4d1b75e1035644983
2013-04-02 14:56:44 +02:00
Thomas Arnhold
4e188ae252 fdo#62525: use cow_wrapper for LineStartEndAttribute
Change-Id: Id8803574245298c6d15b3c59bbfd3b7c812b5794
2013-04-02 14:56:43 +02:00
Thomas Arnhold
44e7cb139d fdo#62525: use cow_wrapper for LineAttribute
Change-Id: I8934156790051d52dd317b6654b1cc2e1bc381a4
2013-04-02 14:56:43 +02:00
Julien Nabet
182059964f Prefer prefix ++/-- operators for non-primitive types
Change-Id: Ie155215aea1d6f15e51bf5e64bab10eb2198d4de
2013-04-01 18:13:16 +02:00
Julien Nabet
6550f88834 Prefer prefix ++/-- operators for non-primitive types
+ use const_iterator for end iterator

Change-Id: Ib07b71bb878665126666db3569bd5a40e23eff5e
2013-03-29 06:43:17 +01:00