Krisztian Pinter
73f866aa61
RTL_CONSTASCII_USTRINGPARAM and ::rtl:: removals
...
All RTL_CONSTASCII_USTRINGPARAMs removed from canvas
Change-Id: Ie62d080eb58a05f7bb18aa1cc2f518c951145460
Reviewed-on: https://gerrit.libreoffice.org/2283
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2013-02-20 23:04:14 +00:00
Radu Ioan
f4f727f7bf
fdo#43157 - Clean up OSL_ASSERT, DBG_ASSERT
...
- changed osl_trace with sal_info
Change-Id: I6504abf50f6193db52d101ec856bcaf1ee2a982c
2013-02-05 15:55:01 +01:00
Julien Nabet
6086949c9e
Remove unused function useFont
...
Change-Id: Icaa3e130ebd4eb168a62a2b45cf8f7a222c0764e
2013-01-13 22:12:45 +01:00
Tor Lillqvist
e103887c8c
QUARTZ is equivalent to MACOSX
...
So just check MACOSX in the sources, and don't pass any -DQUARTZ to
compilations.
Change-Id: Ia1de6024810f81f1eea01b8eb0b885d9d1ee8e20
2013-01-11 11:16:59 +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
Chr. Rossmanith
58ae10ed58
RTL_CONSTASCII_(U)STRINGPARAM removed in canvas (WIP)
...
Change-Id: Id8db06826b77a2b59df51dc0829cd9e7539045fa
2013-01-07 19:42:36 +01:00
Ricardo Montania
50a7098b2e
More ::rtl::OUString -> OUString in canvas
...
Change-Id: If99dfc98ace1bf62cd5ab05c596f4f6ffc5fbd2f
Reviewed-on: https://gerrit.libreoffice.org/1175
Tested-by: Olivier Hallot <olivier.hallot@alta.org.br>
Reviewed-by: Olivier Hallot <olivier.hallot@alta.org.br>
2012-11-27 20:47:07 +00:00
Ricardo Montania
ad2eedc8eb
::rtl prefix removal in canvas
...
Change-Id: Iab6aaa9f06dfe69c85db5e87f9512db0eb44caa8
Reviewed-on: https://gerrit.libreoffice.org/1181
Reviewed-by: Olivier Hallot <olivier.hallot@alta.org.br>
Tested-by: Olivier Hallot <olivier.hallot@alta.org.br>
2012-11-27 20:41:21 +00: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
Andras Timar
6c1282c1fa
fix typo
...
Change-Id: Ic5c3c2d9cb2ad4186aad7bd16693c972d4a257f3
2012-11-20 22:19:24 +01:00
Eike Rathke
ee6bfe1910
use LanguageTag
...
Change-Id: Ic81a3f3ffd00431ddc8082a210dacaa77ce862f4
2012-11-20 17:26:16 +01:00
Eike Rathke
8efe5ff8a0
use LanguageTag
...
Change-Id: I7277f40dcba1e079ede32a01f526342a5cde435b
2012-11-17 00:11:52 +01:00
José Guilherme Vanz
ea7a809700
unusedcode.ease cleanup
...
This commit removes some unused code from unusedcode.easy
Change-Id: If3cad67a508cc85dbffd70d6344e1427bac0c775
Signed-off-by: José Guilherme Vanz <guilherme.sft@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/1021
Reviewed-by: Tor Lillqvist <tml@iki.fi>
Tested-by: Tor Lillqvist <tml@iki.fi>
2012-11-12 12:02:40 +00:00
Jan Holesovsky
638f6cb6a6
bnc#681110: Fix squashed glyphs with Cairo canvas.
...
I suppose it is the same misconception as in fdo#55931 - I am convinced that
the font metrics should not be used here.
Looks to me as if in the past, the font width computation was broken somewhere
deep inside OOo, and everyone instead of fixing the root cause was just
working that around by using the FontMetric; and then one day the root cause
was fixed, and all the workarounds broke ;-) - but that is just a theory.
Change-Id: I741bf8f4eaea4f7d8bc698dc9a8124109dfb8c20
2012-11-09 11:59:08 +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
Flex Liu
b6aa58c4d8
Resolves: fdo#47432 Improve the "faux bold" in cairo canvas
...
The "faux bold" make the bold font in Asian ugly & unacceptable,
Adjust & improve the "faux bold" to make the bold font better.
Change-Id: I2e02156ffc30629476b80134ffb0b50e793f7ead
2012-10-26 15:20:54 +01:00
Michael Stahl
0c120f9dd4
cairo canvas: handle 8-bit grey-scale alpha colors:
...
Apparently BitmapReadAccess::ImplCreate creates non-indexed color
palettes in case of grey-scale, which leads to one assertion from
BitmapColor::GetIndex() per pixel if that is accessed incorrectly;
handle this better in cairo canvas.
Change-Id: Idcdc3fbe182db948d25e744cb484e2db932c7868
2012-10-15 15:49:47 +02:00
Tor Lillqvist
3d70fe990d
WaE: unused function 'unoCapeFromCap'
...
Change-Id: I21dc33e39da8f46379fad672a83e8fb8449a0ec4
2012-10-08 13:43:22 +03: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
Peter Foley
ffbcd1c8b4
fix canvas build with Win8 SDK
...
Change-Id: I17bd44ba8f5a6484d10bb64201ace8e030cf334d
Reviewed-on: https://gerrit.libreoffice.org/789
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-10-07 02:03:06 +00:00
David Tardon
e60b346a30
drop unused #include
...
Change-Id: I55b5815feb5674c830993440027c9f3fbbf1ec02
2012-10-06 15:06:35 +02:00
Arnaud Versini
36a2db3722
Replace usage of rtl_*Memory with equivalent from string.h
...
Change-Id: I50ffc10f007f03c3252ef0196b59b881429cc159
Reviewed-on: https://gerrit.libreoffice.org/734
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-10-01 18:48:05 +00:00
Caolán McNamara
6ab899e7cc
some windows SetPosSizePixel->setPosSizePixel
...
Change-Id: I676284380e2aab7327f4ceb5e043aafb29aa555d
2012-09-28 08:48:42 +01:00
Norbert Thiebaud
750fc20611
replace remaining InterlockedCount() with inlined version
...
Change-Id: Ifcfa48fc87f905a91470a5b0fd597b02f220784c
Reviewed-on: https://gerrit.libreoffice.org/671
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-09-25 01:55:38 +00:00
Radek Doulik
b65b4160bf
fill whole polypolygon at once, so that fill rule is applied correctly
...
- fixes rest of n#759172
Change-Id: I6c2694bf8276337b7d1fa54a12867bfc2b658a23
2012-08-20 12:54:37 +02:00
Matúš Kukan
23461fcf80
unusedcode: SpriteCanvasHelper's methods
...
Change-Id: I24021fa1495a9fb48c1cb5f107d119031a4d1e87
2012-08-13 01:48:57 +02:00
Thomas Arnhold
49ad17e2b1
remove include comments and boxes
...
Change-Id: I9ccf664e8f75a68b1b87c2b29ae617a90d0741a7
2012-08-08 13:53:53 +02:00
Thomas Arnhold
d80174e6f1
remove some more eof noise
...
Change-Id: Ib13c0435d61e803220d5444c29c99cf670340008
2012-08-08 13:53:52 +02:00
Thomas Arnhold
34569eb28f
drop bogus eof lines
...
Change-Id: Idda2852c3e96ce15fde75d5a95369ec50a012410
2012-08-07 13:45:27 +02:00
Caolán McNamara
d4b172b819
strip down UniString some more
...
Change-Id: Ibd749a70a7bbe8c1023edf7bd144aa6547147a12
2012-08-02 08:55:53 +01:00
Julien Nabet
5cfd4e9200
Reduce scope
...
Change-Id: Ifbfd8e4b7a549d0225229a60a12b1b346fc02828
2012-07-16 23:09:35 +02:00
Christophe JAILLET
3396c06c55
Use rtl_zeroMemory in place of rtl_fillMemory(..., 0)
...
Change-Id: Idd83f6340d13a1d7111d0d5a7268f1aa8bf5c09e
2012-07-11 12:31:49 +05:30
Michael Meeks
b95cfee03c
fix fdo#51547: revert "Some cppcheck cleaning"
...
This reverts commit 2f804c94cdaaa9ac047f229509c774dbea1dbcaa.
2012-07-04 16:08:13 +01:00
Takeshi Abe
30d3637516
removed unnecessary forward declarations of class
...
Change-Id: I0d6aad17c471b6edd584c668dc7ff054090c185c
2012-07-04 19:18:57 +09:00
Thomas Arnhold
6fcac7dfc4
Remove unused include files
...
Those never get included at any point in the code.
Change-Id: I17736e005635b9e57759cfc95176a99e7c5e8988
2012-06-27 13:34:23 +02:00
Michael Stahl
7b6b71ce14
remove bunch of obsolete looking .flt files
...
Change-Id: Ic3d45afca14d0bebfb6168b6cf6fc6c618754183
2012-06-22 22:39:33 +02:00
Luboš Luňák
ceb8b18f5b
use generic names rather than specific algorithm names when scaling
...
The Lanczos scaling is of very good quality, but it's rather slow,
which can be very noticeable with large images, so it's not a very
good default for everything. And in general, it's not good to refer
to a specific algorithm when all one usually wants is fast/default/best.
Some of these changes are a bit of a guess between default/best,
but the general logic is that best should be used only for images
that won't be large or where the possible waiting does not matter.
Change-Id: I53765507ecb7ed167890f6dd05e73fe53ffd0231
2012-06-22 17:40:09 +02:00
Michael Meeks
9d088154b4
fix comment snafu
2012-06-19 18:10:49 +01:00
Michael Meeks
bdc909b07d
re-base on ALv2 code.
2012-06-19 18:00:37 +01:00
David Tardon
012b43d571
fdo#30519 paint scrolled area from the right surface
...
This adds a way to test whether mpCompositeSurface contains the front
buffer image, so it can be used as a source in painting operations.
It means the mpCompositeSurface changed status from 'temporary' to
'persistent' (which it was anyway, from implementation POV :-)
Change-Id: Iee4fc7a97cd60e47d0abb148e7337f0b50cabb40
2012-06-18 10:55:31 +02:00
David Tardon
fb1d37b4ba
OSL_TRACE -> SAL_INFO
...
Change-Id: Icc6f47cc76dfa6716fc44f6c1b5f1b11ba1443c6
2012-06-18 10:55:31 +02:00
Takeshi Abe
462935f367
removed unused forward declarations of class
...
Change-Id: I819d5b931c937ec52b14f60591546d1d86c38631
2012-06-16 22:09:38 +09:00
Jan Holesovsky
6d78c490b0
Get rid of GRADIENT_* defines, they conflict with Windows GDI types.
...
Change-Id: Ia0bc37f81b7213b20fc5093beb46d7a05b1ac931
2012-06-12 16:31:43 +02:00
Jan Holesovsky
9afb6e1e38
Use BMP_SCALE_LANCZOS instead of BMP_SCALE_INTERPOLATE.
...
Where we explicitly ask for better quality, use BMP_SCALE_LANCZOS, instead of
BMP_SCALE_INTERPOLATE.
Change-Id: I28ddf3290204532a8660e09ee9ab0949b6ce1c73
2012-06-05 11:28:07 +02:00
Julien Nabet
2f804c94cd
Some cppcheck cleaning
...
Change-Id: Id5be3a25fc66d2f7fcec8325491a23d6908021fc
2012-05-28 20:50:31 +02:00
Caolán McNamara
df34ccb01d
remove unneeded include of boost/bind.hpp
...
Change-Id: I5a254459a491b9547530d8e312260dceed21f25c
2012-05-16 15:05:36 +01:00
Caolán McNamara
107f844781
Related: fdo#48961 don't crash on silly pixmap sizes
...
Change-Id: I43dbe846160d19b203ad6bed06e807d4fbf7ce56
2012-05-09 11:35:43 +01:00
Jordi Mallach
a393af6e91
Remove unused method canvas::tools::clipBlit
2012-05-03 17:01:40 +02:00
Caolán McNamara
810f4a007c
rework callcatcher makefile to build subsequentcheck tests
...
Change-Id: Idda0262e62e42817b8c0502a38ee16913495233c
2012-05-01 14:18:42 +01:00