summaryrefslogtreecommitdiff
path: root/filter/source/svg
AgeCommit message (Collapse)AuthorFilesLines
2013-02-16filter: fix broken string conversionMichael Stahl1-2/+2
Change-Id: Iadcc6cddaf943b76dd82650c2f7246696aa438d1
2013-02-16fdo#57950: Remove more chained appends in filterMarcos Paulo de Souza2-22/+7
And also sanitize some OUStringBuffer uses. Change-Id: I338b18981e1f925d76c0d640159de30bab219122 Reviewed-on: https://gerrit.libreoffice.org/2186 Reviewed-by: Olivier Hallot <olivier.hallot@alta.org.br> Tested-by: Olivier Hallot <olivier.hallot@alta.org.br>
2013-02-14Removed several useless macros: UNISTRING, USTR, USTR_ASCII, ASCII_STR, ↵Jean-Noël Rouvignac1-21/+18
ASCII_STRING, CONST_ASCII, ASCSTR, ASCII, DEFINE_CONST_UNICODE, DEFINE_CONST_OUSTRING Change-Id: I96d690bf9f9b319e9eeafcf218ec5ce87f21215f Reviewed-on: https://gerrit.libreoffice.org/1954 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
2013-02-14fdo#57950: Remove some chained appends in filterMarcos Paulo de Souza1-11/+3
Change-Id: I2386eb47ad7190d626966020e96c1a7ddc07ab4a
2013-02-13filter: svg: optimizeGradientStops: fix STL assertionMichael Stahl1-1/+5
Check that there is actually more than one element in maStops before tweaking its first 2 elements (can be reproduced with fdo#60471 Tux.svg) Change-Id: I7e6ffdf510bb590a9ea9e3782b30247b8fb46ed5
2013-02-11fdo#46808, Adapt document::XML*BasicExporter UNO services to new styleNoel Grandin2-6/+6
The services are document::XMLBasicExporter document::XMLOasisBasicExporter Change-Id: Ifd93e5735cae94d34904d79769cdb3edf587fe43
2013-01-30Removed several useless macros: A2OU, A2S, C2U, C2S, OUSTR, OUSTRINGJean-Noël Rouvignac4-369/+296
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-28fdo#46808, Convert SvNumberFormatter to use XComponentContextNoel Grandin1-1/+1
Change-Id: If4e8312dae6bc5eb8bb7655cf250f06ab37b7e5c
2013-01-07Revert "dummy commit (WIP)"Luboš Luňák1-20/+4
This reverts commit 6eb0522395c236ae6930a300992ad092449f9592. It does not compile and the message and contents suggest it probably wasn't meant to be pushed.
2013-01-07dummy commit (WIP)Chr. Rossmanith1-4/+20
Change-Id: Ibeee6553312323b75b2403ad6832595f228e0e3c
2013-01-04Make LO buildable again after the GraphicFilter move.Jan Holesovsky2-2/+2
Change-Id: I3455a7294b136400f32163626d5a7a7f2bfa898c
2012-12-21Remove unused cppuhelper/servicefactory.hxx includesStephan Bergmann1-1/+0
Change-Id: I27fd4d1f1dfafccaa7936defb5cd687d6266e0a2
2012-12-21fdo#46808, Convert frame::Desktop to new style service.Noel Grandin4-9/+7
I had to drop XEventBroadcaster from the merged interface because it introduced method name conflicts (addEventListener). Shouldn't be an issue since it was scheduled to be dropped anyhow, and the service implementation still implements it, so existing clients will be fine. I dropped the interface XPropertySet from the combined IDL because nobody seems to be using it, and it's primary purpose appears to be to set weird flags. I dropped the optional interfaces XStatusIndicatorFactory XDispatchInformationProvider from the combined IDL because the service does not implement them, and nobody seems to be using them. I suspect they were mistakenly copied from XFrame. I also did not convert the Title, UserDefinedAttributes and LayoutManager properties to attributes, again because no-one is using them. Change-Id: I678a00006ed2cca2d6c37c4e39465811442c33af
2012-12-08SVG: handle degenerate cases of the basic shapes correctlyChr. Rossmanith1-78/+80
Change-Id: I2dc488ba38ca5f63c716f5f7327b47769d289fff
2012-12-06-Werror,-Wunused-private-fieldStephan Bergmann2-5/+3
Change-Id: Ia567a2e7f8089ad193af98443e5d662e744fcff7
2012-12-03fdo#57215: Fixed wrong text rotation in SVG ExportHoracio Fernandes1-0/+21
Added text rotation to "non-positioned characters" in SVG Export. Change-Id: I831644329625fa74e5a2436096d26ec22d8b0319 Reviewed-on: https://gerrit.libreoffice.org/1227 Reviewed-by: Petr Mladek <pmladek@suse.cz> Tested-by: Petr Mladek <pmladek@suse.cz>
2012-11-26More DISABLE_EXPORT tweaksTor Lillqvist1-1/+2
Change-Id: I23652e60de720af4da13f29f221001813b927eb2
2012-11-24Try to get rid of the SVG export code when DISABLE_EXPORTTor Lillqvist1-0/+2
Change-Id: I89d226a8442558fbdff84de2115fa013c1690239
2012-11-23Surely we can bin all indentation in the JavaScriptTor Lillqvist1-1/+1
Change-Id: I8b889402345bd86c4a9ced62a22ad4137c673693
2012-11-23We prefix each line with four spaces, not append, but why?Tor Lillqvist1-2/+1
Change-Id: Ia654664700b0b9262a5803d2976c22b61e44e758
2012-11-23Why write Emacs and vim mode lines to a generated file one should not edit?Tor Lillqvist1-16/+2
Change-Id: I3f815bc7e825728421d5d87832f9a5ad1bcb53cc
2012-11-22AllSettings with LanguageTagEike Rathke2-2/+2
Change-Id: I710ae66e51139662eb442b681fdf9cc9d158551d
2012-11-06re-base on ALv2 code. Includes (at least) relevant parts of:Michael Meeks4-119/+185
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-10-28fix some VS 2010 specific issuesDavid Ostrovsky1-1/+1
Change-Id: Iae27a96c1e2ed72d2744fcbe100d6ada7dc41c82 Reviewed-on: https://gerrit.libreoffice.org/914 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2012-10-22fdo#46808, Adapt xml::sax::XWriter UNO service to new styleNoel Grandin2-17/+9
Create a merged XWriter interface for the service. The xml.sax.Writer service already existed, it just did not have an IDL file. Change-Id: I4e6d3f3c68f9282a55fc7aa19778f97632fd8ad5
2012-10-18loplugin: unused stringsCaolán McNamara1-1/+0
Change-Id: I41a572ea28f827740b7084105a029854035ef9d7
2012-10-11Cleanup svg export namespace handlingThorsten Behrens1-10/+5
All smil animations are inside the http://www.w3.org/2000/svg NS for svg - ODF places e.g. animateMotion into smil, their path attr though into svg. Flattened namespace now into only default (svg) and the ooo prefix. Killed all superfluous NS decls, creating SvXMLExport with EXPORT_META only adds XML_NP_XLINK, XML_NP_DC, XML_NP_META, and XML_NP_GRDDL to the known-namespaces map. Change-Id: Ib54900aaee0eda3a5c5dc618d836df8bd8eb25fc
2012-10-10SVGActionWriter::ImplWriteActions: indent thatMichael Stahl1-29/+32
Change-Id: I6ae6d96f88df813172017bafe1dd883c7b871c9e
2012-10-10SVGActionWriter::ImplWriteActions: fix debug codeMichael Stahl1-11/+13
Change-Id: I770e72673d794b4e3e52a199a05f018558b8a3c4
2012-10-10Make svg export use slidesorter selection in most cases.Thorsten Behrens1-35/+59
There was code previously that took the current selection, iff Impress main view was in slidesorter mode. Extended this quite helpful functionality to also work in other modes (as long as a slidesorter pane is displayed & has up-to-date selection, it should work). Change-Id: Ibbfe630a4ca31aa52978501745c2eef0d79fb8e3
2012-10-10Don't assume we're exporting Impress to svg, unconditionallyThorsten Behrens1-2/+3
Svg export is also used on Draw documents, which do not bear the transition properties. Guard accordingly. Change-Id: I2e4a5d478a8de8621265a0d1de16bd60b1f47cc1
2012-10-10Define ooo xmlns prefix unconditionally for svg exportThorsten Behrens1-12/+1
Plus some commented-code cleanup
2012-10-10Bug Fix: background objects on master pages were not stacked in the correct ↵Marco Cecchetti1-60/+144
order
2012-10-10Bug fix: fixed date/time fields were not exported correctly when positioned ↵Marco Cecchetti1-0/+18
chars are used.
2012-10-10IsUsePositionedCharacters() tries to get its value from filter data passed ↵Marco Cecchetti1-9/+14
to SVGExport ctor Now IsUseTinyProfile and IsEmbedFonts methods are depended by IsUsePositionedCharacters
2012-10-10Now debugging code is conditionally compiled and JavaScript debug log are ↵Marco Cecchetti3-174/+262
turned off.
2012-10-10some improvement in making text animation compatible with text selectionMarco Cecchetti4-73/+235
2012-10-10Handled META_BMPSCALE_ACTION, supported hyperlinks, text selection support.Marco Cecchetti5-157/+720
The implCreateObjectFromShape method of the SVGFilter class has been modified in order to handling bitmap meta actions of type META_BMPSCALE_ACTION for each bitmap embedded into a text shape. The implCreateObjectFromShape method of the SVGFilter class has been modified in order to avoid to generate an id for empty text shapes. The MetaSlide class has two new methods for collecting text shapes from the text shape exported index and hyperlinks. A new HyperlinkElement class has been designed for handling text portion with an attached URL. The routine handling mouse click has been modified in order to interacting with the EventMultiplexer instance belonging to the current slide even when no animations are exported. All that let us supporting both web links and local links to slide belonging to the current document. The routine handling mouse click has been modified in order to avoid to start the next effect or switch to the next slide when there is a text fragment selected. Now when the user selects text or performs a right click in order to copy the selected text no further action is executed by the presentation engine. When the left mouse button is clicked the previous selection is discarded but still no further action is performed by the presentation engine. The implCreateObjectFromShape method of the SVGFilter class has been modified in order to avoid of adding to the group of embedded bitmaps those bitmap belonging to XShape object convertible to XText but that does not contain any text shape meta comment action. Now a meta bitmap action is handled by the SVGTextWriter class only if the action is between a meta comment action of type XTEXT_PAINTSHAPE_BEGIN and a meta comment action of type XTEXT_PAINTSHAPE_END. The writeBitmapPlaceholder and implWriteEmbeddedBitmaps methods of the SVGTextWriter class have been modified in order to change the way the id of the <use> elements that reference a bitmap is created. That has been needed because when two <use> element referencing the same bitmap and embedded into two different text shapes but placed at the same position (e.g. for instance when they belong to different slide) they got the same id. Now the id is built by prepending the meta bitmap action checksum with the text shape id followed by a dot.
2012-10-10Now MasterPage text fields work, list items are detected correctly, some ↵Marco Cecchetti4-288/+665
effect work on text. Date/Time, Footer and Page Number text fields are displayed correctly again. Fixed several bugs related to synchronization of the two iterations on both meta comment actions and text paragraphs/text portions enumerations. At present list items inside a table or an OLE object are not exported correctly. Enabled support for animating text paragraph. Both entrance and exit effects work on text shapes, on the contrary there is not yet support for emphasis effects such as changing font color and font properties. At present it is possible to apply an effect to the whole paragraph only, no support is provided for by word or by character effect variants. Another weak point of current implementation is that if you try to select a fragment of a text shape and in your selection is included an animatable paragraph the selection is not correct.
2012-10-10text export support for bullets and hyperlinksMarco Cecchetti4-35/+1022
SVGFilter: - new: implExportTextShapeIndex, implEmbedBulletGlyphs, implEmbedBulletGlyph, implExportTextEmbeddedBitmaps - modified: implExportShape, implCreateObjectsFromShapes, implCreateObjectsFromShape SVGActionWriter: - new: GetChecksum - modified: ImplWriteActions, WriteMetaFile SVGTextWriter: -new: implExportHyperlinkIds, implWriteBulletChars, writeBitmapPlaceholder, implWriteEmbeddedBitmaps, setTextShape, implRegisterInterface, implGetValidIDFromInterface -modified: nextParagraph, nextTextPortion, startTextShape, endTextShape, startTextParagraph, endTextParagraph, writeTextPortion, implWriteTextPortion
2012-10-10text-export: meta-action based implementationMarco Cecchetti4-45/+990
2012-10-03re-base on ALv2 code. Includes:Michael Meeks7-166/+101
tkr41: #117828# office crash fixed . (null pointer) + add unit test Patch contributed by Tobias Krause http://svn.apache.org/viewvc?view=revision&revision=1172105 Do not add targets for junit tests when junit is disabled. Patch contributed by Andre Fischer http://svn.apache.org/viewvc?view=revision&revision=1241508 remove the OutDev::GetKernPair* stubs completely Patch contributed by Herbert Duerr http://svn.apache.org/viewvc?view=revision&revision=1179221 reverting un-necessary OS/2 conditionals.
2012-10-01Prefixify svgfilterTor Lillqvist2-2/+2
Change-Id: Ifd34a186cd25bafbfd49dad8a1d5bd30756d83d3
2012-09-19ComponentContext::getUnoContext -> getComponentContext simplificationStephan Bergmann1-2/+1
...and some further clean-up. Change-Id: If5dce53e382b56390c502d0d0d93fc06cbfe33ea
2012-09-03fdo#46808, Adapt xml::dom::DocumentBuilder UNO service to new styleNoel Grandin1-3/+3
Change-Id: I577fbc7f990be9ec1f7b7eea53218b7daaccb2a1
2012-09-01filter: remove leftover filesMatúš Kukan1-8/+0
Change-Id: Ifc0525189fb68f8976cd25a5c83419c47281d025
2012-07-20Support for the checkerboard transition animation in SVG export.Horacio Fernandes1-24/+110
Ported the class CheckerBoardWipe. Change-Id: I990c8f417c64d22ef87c1007887e630ac19a7083
2012-07-15JavaScript engine: added support for skipping/rewinding an effect belonging ↵Marco Cecchetti1-80/+406
to an interactive animation sequence. Moreover now when the mouse pointer is over an event-source shape, through which the user can start an interactive animation, the cursor appearance is changed to a hand
2012-07-15Added support for interactive animation sequence to the JavaScript engine.Marco Cecchetti1-53/+240
Now it is possible to start an effect by clicking on a given shape.
2012-07-15Bug fix: now the JavaScript engine parse the ‘counter-clockwise’ value ↵Marco Cecchetti1-2/+2
correctly. Previously it expected ‘counterclockwise’.