Re: Need help: SVG import

2012-04-27 Thread Marco Cecchetti
On Fri, 27 Apr 2012 23:07:09 +0200, Christina Roßmanith wrote: That hint helped :-) Now text without any attributes is rendered as well. Great! :) -- Marco -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ___ LibreO

Re: Need help: SVG import

2012-04-27 Thread Christina Roßmanith
That hint helped :-) Now text without any attributes is rendered as well. Christina Am 25.04.2012 13:23, schrieb Marco Cecchetti: After giving a better look, I could have found where the problem is: look at the begin of visitElements routine (line 101): if( xElem->hasAttributes() )

Re: Need help: SVG import

2012-04-25 Thread Michael Stahl
On 25/04/12 11:48, Noel Grandin wrote: > Looks like the code in > unoxml/source/dom/saxbuilder.cxx > converts the SAX event stream into a DOM tree. true, but irrelevant here because this is not used when calling Reference< XDocument > SAL_CALL CDocumentBuilder::parse(const Reference< XInputStr

Re: Need help: SVG import

2012-04-25 Thread Marco Cecchetti
After giving a better look, I could have found where the problem is: look at the begin of visitElements routine (line 101): if( xElem->hasAttributes() ) rFunc(xElem,xElem->getAttributes()); else rFunc(xElem); The function called in case the element has at least one attri

Re: Need help: SVG import

2012-04-25 Thread Marco Cecchetti
That's odd, saxbuilder should be completely agnostic from a element name point of view. Did you try to print element names xElem->getNodeName() (line 1227) for the broken example ? -- Marco On Wed, 25 Apr 2012 11:48:10 +0200, Noel Grandin wrote: Looks like the code in unoxml/source/

Re: Need help: SVG import

2012-04-25 Thread Noel Grandin
Looks like the code in unoxml/source/dom/saxbuilder.cxx converts the SAX event stream into a DOM tree. On 2012-04-25 08:34, Christina Rossmanith wrote: for the example without "x" and "y" attribute the "case XML_TEXT" block is never reached. That's why I'd like to understand where and how th

Re: Need help: SVG import

2012-04-25 Thread Christina Rossmanith
+0200 > Von: Noel Grandin > An: "Christina Roßmanith" > CC: libreoffice@lists.freedesktop.org > Betreff: Re: Need help: SVG import > Most of the code looks to be in svgreader.cxx. > It walks the DOM tree, starting with the writeShapes method, and it > looks like it proce

Re: Need help: SVG import

2012-04-24 Thread Noel Grandin
Most of the code looks to be in svgreader.cxx. It walks the DOM tree, starting with the writeShapes method, and it looks like it processes text nodes at around line 1471. On Tue, Apr 24, 2012 at 22:15, Christina Roßmanith wrote: > Hi, > > I'm still trying to understand how SVG import works. What

Need help: SVG import

2012-04-24 Thread Christina Roßmanith
Hi, I'm still trying to understand how SVG import works. What I've found out so far is: svgreader.cxx: SVGReader::parseAndConvert() calls uno::Reference xDomBuilder()->parse() The latter can be found in documentbuilder.cxx: Reference< XDocument > SAL_CALL CDocumentBuilder::parse(const Refe