Return-Path: X-Original-To: apmail-incubator-ooo-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-ooo-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 69C4E9F6F for ; Thu, 24 May 2012 08:57:42 +0000 (UTC) Received: (qmail 49122 invoked by uid 500); 24 May 2012 08:57:41 -0000 Delivered-To: apmail-incubator-ooo-dev-archive@incubator.apache.org Received: (qmail 48942 invoked by uid 500); 24 May 2012 08:57:41 -0000 Mailing-List: contact ooo-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ooo-dev@incubator.apache.org Delivered-To: mailing list ooo-dev@incubator.apache.org Received: (qmail 48919 invoked by uid 99); 24 May 2012 08:57:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 May 2012 08:57:40 +0000 X-ASF-Spam-Status: No, hits=0.2 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jianlizhao6@hotmail.com designates 65.55.111.148 as permitted sender) Received: from [65.55.111.148] (HELO blu0-omc4-s9.blu0.hotmail.com) (65.55.111.148) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 May 2012 08:57:31 +0000 Received: from BLU0-SMTP362 ([65.55.111.136]) by blu0-omc4-s9.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 24 May 2012 01:57:11 -0700 X-Originating-IP: [14.197.141.73] X-Originating-Email: [jianlizhao6@hotmail.com] Message-ID: Received: from tiantiana6a9fd ([14.197.141.73]) by BLU0-SMTP362.phx.gbl over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Thu, 24 May 2012 01:57:09 -0700 From: jianlizhao To: Subject: how Get Bitmap file from SVG module? Date: Thu, 24 May 2012 16:57:07 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 Thread-Index: Ac044tAtE+iahgQgTk6hho2n7vkPDwAp0U+gAABFD2A= X-OriginalArrivalTime: 24 May 2012 08:57:09.0565 (UTC) FILETIME=[33C8D6D0:01CD398B] X-Virus-Checked: Checked by ClamAV on apache.org Hi Armin: Read your letter, I know my idea is stupid. I would like to achieve an ADDON expansion in openoffice's write, The extension function is plug a new type of picture into openoffice's write, need following requirements 1) There were also ODF-compatible File Format adaptions needed.That is = to say, That is not installed the extended on the openoffice's write can = open the saved file. 2) If the extension is installed, can use the extended functionality to = deal with the inserted picture. This function is very similar to your SVGIO, so I need to look deeper SVGIO. Then modeled this idea, realization my needs. I have installed openoffice's SDK.Debugging through a simple C++ example = of the addon. Do you have any good suggestions. Thanks... Best Regards! -----=D3=CA=BC=FE=D4=AD=BC=FE----- =B7=A2=BC=FE=C8=CB: Armin Le Grand [mailto:Armin.Le.Grand@me.com]=20 =B7=A2=CB=CD=CA=B1=BC=E4: 2012=C4=EA5=D4=C223=C8=D5 20:51 =CA=D5=BC=FE=C8=CB: ooo-dev@incubator.apache.org =D6=F7=CC=E2: Re: how Get Bitmap file from SVG module? Hi jianlizhao, On 23.05.2012 11:06, jianlizhao wrote: > Hi Armin: > I ask you some question as below: > In module svg, have two Interfaces, one is XSVGPrinter, the other is > XSVGWriter. Both are interfaces, XSVGPrinter is not used at all and XSVGWriter is=20 the current SVG export which has nothing to do with the new import.=20 There also is no module svg, the module I added for the new SVG import=20 is svgio. > 1) Can I use these interfaces, output Bitmap file? No. > 2) under the module svg, in the file of svgimagenode.cxx, > > void extractFromGraphic ( > const Graphic& rGraphic > drawinglayer :: primitive2d :: Primitive2DSequence& rEmbedded, > basegfx :: B2DRange& rViewBox, > BitmapEx& rBitmapEx) > > is the parameters rBitmapEx get Bitmap file? I am not sure what you want to do. To work with imported SVGs you need a = Graphic (see vcl and GraphicObject, too) where it is loaded. From=20 Graphic you may try const SvgDataPtr& getSvgData() const; If getSvgData().is() there is a SVG graphic. At the contained SvgData=20 you can use const BitmapEx& getReplacement() const; to get the BitmapEx of the SVG. There is no need to work with stuff from = svgio directly. All usages work with it are using the service XSvgParser = and do the work for you, where XSvgParser is implemented in svgio. I still do not understand what you want to do, please explain this, else = I cannot really help you. > Thanks... > Best Regards! > > Sincerely, Armin -- ALG