can ooo's write export swf file?

2012-09-24 Thread jianlizhao
HI Dave Fisher:

I  know the  Java libraries.
How to combine it with ooo?
Or  How to use it with ooo?

Regards,



> HI Dave Fisher
> Could you tell me the  Java libraries.

They are here:

http://www.flagstonesoftware.com/transform/index.html

OpenSource and BSD licensed.

Regards,
Dave


> Regards
> 
> 
>> Hello my friend:
>> 
>> I ask you some question:
>> 
>> 1) Can ooo's write export swf file format?
>> 2) Can I use extension implement this feature?
> 
> Possibly, I know that there are Java libraries like itransform that can
> help.
> 
> Regards,
> Dave




Re: can ooo's write export swf file?

2012-09-22 Thread jianlizhao
Hi Mechtilde:

Read online . Similar http://wenku.baidu.com/.
Or similar http://www.docin.com/.

I do not want to use pdf2swf.

Do not know if I make it clear.
I hope to get your reply.

regards


As far as I know, the AOO Presentation has (or had have, which I am not
pretty sure currently) the function that could export a slide into a SWF
file. But the AOO Writer, I am sorry that not support what you want.
Just for my curiosity, may I ask what kind of using scenario you are facing,
that makes you want to use such function?


已从三星手机发送Mechtilde  写道:-BEGIN PGP SIGNED
MESSAGE-
Hash: SHA1

Hello,

Am 22.09.2012 15:58, schrieb jianlizhao:
> Hello my friend:
> 
> I ask you some question:
> 
> 1) Can ooo's write export swf file format?

Why do you want a document in such an old file format which isn't
ISO-Standard?

> 2) Can I use extension implement this feature?
> 
Kind regards




答复: can ooo's write export swf file?

2012-09-22 Thread jianlizhao
HI Dave Fisher
Could you tell me the  Java libraries.
Regards


> Hello my friend:
> 
> I ask you some question:
> 
> 1) Can ooo's write export swf file format?
> 2) Can I use extension implement this feature?

Possibly, I know that there are Java libraries like itransform that can
help.

Regards,
Dave

> 
> Regards
> 
> 



can ooo's write export swf file?

2012-09-22 Thread jianlizhao
Hello my friend:

I ask you some question:

1) Can ooo's write export swf file format?
2) Can I use extension implement this feature?

Regards




about extension's name

2012-09-14 Thread jianlizhao
Hello Juergen:
 Thank you very much. 
With your help, I solve the problem.

I ask youu another problem .
How display a  brief of my Extension on the Extension Manager? 





about extension's name

2012-09-14 Thread jianlizhao
I wrote a simple oepnoffice extension, this extension is a OfficeToolBar ,
The extension working properly.

I click  menu  view->toolbars, I find the extension name is "addon 1", not I
write  the expansion's name.

How can I solve this problem.
Which configuration file need to modify?



where can I find XRenderable.hpp file?

2012-06-09 Thread jianlizhao
HI my friend:

I ask you a question

 

In  pdfexport.cxx file: You can  see some code as below

#ifndef _COM_SUN_STAR_VIEW_XRENDERABLE_HPP_

#include 

#endif

 

sal_Bool PDFExport::Export( const OUString& rFile, const Sequence<
PropertyValue >& rFilterData )

{

 ..

 

if( aURL.GetProtocol() == INET_PROT_FILE )

{

Reference< XRenderable > xRenderable( mxSrcDoc, UNO_QUERY );



}

}

 

For searching XRenderable.hpp, I use OpenGrok with

http://opengrok.adfinis-sygroup.org/source/

 

not find the XRenderable.hpp file

 

where can I find XRenderable.hpp file?

 

Thanks 

 

regards



a question of Export custom file format?

2012-06-07 Thread jianlizhao
Hi 

My os is ms windows.
I write a extention.
In my  extention how can I get openoffice program path.
I want to  Dynamic loading some dll.
Who can tell me get the  path method?

My programming language use C++.

Best regards.



how get openoffice program path?

2012-06-07 Thread jianlizhao
Hi 

My os is ms windows.
I write a extention.
In my  extention how can I get openoffice program path.
I want to  Dynamic loading some dll.
Who can tell me get the  path method?


Best regards.



a question of Export custom file format?

2012-06-06 Thread jianlizhao
Hi  蜗牛

You can modify the source code to be recompiled.


Reference< XRenderable > xRenderable( mxSrcDoc, UNO_QUERY )
VCLXDevice* pXDevice = new VCLXDevice;
..
PDFWriter*  pPDFWriter = new PDFWriter(
aURL.GetMainURL(INetURLObject::DECODE_TO_IURI), PDFWriter::PDF_1_4,
eCompressMode );
OutputDevice*  pOut = pPDFWriter->GetReferenceDevice();
pXDevice->SetOutputDevice( pOut );
..
GDIMetaFile aMtf;
const MapMode   aMapMode( MAP_100TH_MM );
const Size  aMtfSize( aPageSize.Width, aPageSize.Height );

pOut->Push();
pOut->EnableOutput( FALSE );
pOut->SetMapMode( aMapMode );

aMtf.SetPrefSize( aMtfSize );
aMtf.SetPrefMapMode( aMapMode );
aMtf.Record( pOut );

xRenderable->render( nSel - 1, aSelection, aRenderOptions );
aMtf.Stop();
aMtf.WindStart();

if( aMtf.GetActionCount() )
bRet = ImplExportPage( *pPDFWriter, aMtf, nCompressMode ) || bRet;

pOut->Pop();
Regards



about OpenOffice.org NetBeans Integration?

2012-06-06 Thread jianlizhao
Hello my friend:

I ask you a question:

OpenOffice.org NetBeans Integration  can use c++  language  develop
extension ?

Please give me an example.
 Regards



question about aoo record macro?

2012-06-04 Thread jianlizhao
hello my friend:

I have two question as below:
1)  in aoo , record macro of Insert picture,Why insert picture code written
two times?
  Example code  as below:

sub Main
rem --
rem define variables
dim document   as object
dim dispatcher as object
rem --
rem get access to the document
document   = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")

rem --
dim args1(3) as new com.sun.star.beans.PropertyValue
args1(0).Name = "FileName"
args1(0).Value = "file:///C:/2.png"
args1(1).Name = "FilterName"
args1(1).Value = ""
args1(2).Name = "AsLink"
args1(2).Value = true
args1(3).Name = "Style"
args1(3).Value = "Graphics"

dispatcher.executeDispatch(document, ".uno:InsertGraphic", "", 0, args1())

rem --
dim args2(3) as new com.sun.star.beans.PropertyValue
args2(0).Name = "FileName"
args2(0).Value = "file:///C:/2.png"
args2(1).Name = "FilterName"
args2(1).Value = ""
args2(2).Name = "AsLink"
args2(2).Value = true
args2(3).Name = "Style"
args2(3).Value = "Graphics"

dispatcher.executeDispatch(document, ".uno:InsertGraphic", "", 0, args2())

end sub

2)  after insert picture, how get the image object.
The image will be  processing of rotation  eg.



Is the document needs to be saved?

2012-06-03 Thread jianlizhao
Hello my friend:

In  Openoffice's  write  extention, how Judgment the document is modify has
not save?

 Best Regards!







Custom Attributes on Shapes ( Writer)?

2012-06-03 Thread jianlizhao
Hello my friend:

User Defined Attributes in OpenOffice.org as below:

userAttrs = oShape.getPropertyValue( "UserDefinedAttributes" )
myAttr = uno.createUnoStruct( "com.sun.star.xml.AttributeData" )
myAttr.Type = "CDATA"
myAttr.Value = "test"
userAttrs.insertByName( "url", myAttr )
oShape.UserDefinedAttributes = myAttr

my question is
1) myAttr.Value maybe a url.  example:  c:\mystyle.zip 
  or  c:\mystyle.css.
2) If the first one was established。
   What is the file extension type?


Look forward  your reply.
Best Regards!




how Get Bitmap file from SVG module?

2012-06-03 Thread jianlizhao
Hi Armin:

I send an Email to Texmaths's author ,  asked he some questions, communicate
with each other as follows:

My question:
LaTeX will equations can be inserted as images (SVG or PNG formats) and
 the LaTeX, code is saved into the image attribute for further editing.

His reply:
Image attributes are not stored directly in the png file but in LibreOffice
data that are attached to the image.


 attached the image attribute in openOffice data  below:( basic code)
,,,
Sub SetAttributes( oShape as Variant, iEqSize as Integer, sEqType as String,
sCode as String) 
 'Add the Latex attribute to the image.
 Dim oAttributes as Variant, oLatexAttribute as Variant
 oAttributes = oShape.UserDefinedAttributes
 oLatexAttribute = createUnoStruct(
;com.sun.star.xml.AttributeData" )
 oLatexAttribute.Type =  
 oLatexAttribute.Value = 
 oAttributes.insertByName( ) 
 oShape.UserDefinedAttributes = oAttributes
End Sub
,,,

My question is:
When the image attribute very long, example 10M bytes, if it  will  wrong.
The image attribute can  as a zip file saved in the odf?

 Look forward to your reply.
 Best Regards!



how Get Bitmap file from SVG module?

2012-06-03 Thread jianlizhao
Hi Armin:

I send an Email to Texmaths's author ,  asked he some questions, communicate
with each other as follows:

My question:
LaTeX will equations can be inserted as images (SVG or PNG formats) and
 the LaTeX, code is saved into the image attribute for further editing.

His reply:
Image attributes are not stored directly in the png file but in LibreOffice
data that are attached to the image.


But he did not tell me how to attached the image in openOffice data,could
you tell me?



how Get Bitmap file from SVG module?

2012-05-31 Thread jianlizhao
Hi Armin:
You say this I understanding.
I would  insert original image aoo's write and display, I do not how to do it 
with zip file?

Look forward to your reply.
 Best Regards!


-邮件原件-
发件人: Armin Le Grand [mailto:armin.le.gr...@me.com] 
发送时间: 2012年5月31日 22:28
收件人: ooo-dev@incubator.apache.org
主题: Re: how Get Bitmap file from SVG module?

    Hi jianlizhao,

much more simple, only a trick to look at the contents of a ODF file.

Example: Save the file (e.g. foo.odf), extend filename (e.g. in explorer 
on windows) by *.ziz (-> foo.odf.zip). You can the open the odf file as 
zip archive and inspect/check it's contents.

HTH!

On 31.05.2012 13:54, jianlizhao wrote:
> Hi Armin:
> You reply said  "Another way is to add a '.zip' to
> the AOO file name and to open it as archive".
> how to do it?
>
> Can you give a simple and complete example, Programming languages ​​using C++ 
> ,runtime environment for Microsoft Windows.
>
> Look forward to your reply.
> Best Regards!
>
> -邮件原件-
> 发件人: Armin Le Grand [mailto:armin.le.gr...@me.com]
> 发送时间: 2012年5月30日 23:46
> 收件人: ooo-dev@incubator.apache.org
> 主题: Re: how Get Bitmap file from SVG module?
>
>   Hi jianlizhao,
>
[..]

Sincerely,
Armin
--
ALG




how Get Bitmap file from SVG module?

2012-05-31 Thread jianlizhao
Hi Armin:
You reply said  "Another way is to add a '.zip' to 
the AOO file name and to open it as archive".
how to do it?

Can you give a simple and complete example, Programming languages ​​using C++ 
,runtime environment for Microsoft Windows.

Look forward to your reply.
Best Regards!

-邮件原件-
发件人: Armin Le Grand [mailto:armin.le.gr...@me.com] 
发送时间: 2012年5月30日 23:46
收件人: ooo-dev@incubator.apache.org
主题: Re: how Get Bitmap file from SVG module?

    Hi jianlizhao,

On 30.05.2012 16:29, jianlizhao wrote:
> Hi Armin:
>
> I find  TexMaths extension is very like my needs. Described as follows:
>
> TexMaths is an extension designed to provide LaTeX support into LibreOffice.
> LaTeX equations can be inserted as images (SVG or PNG formats) and the LaTeX
> code is saved into the image attribute for further editing.
>
> My question as follows:
> The new type picture can be inserted as images (PNG formats) and the
> Original picture is saved into the image attribute for further used.
> the image attribute can be saved with a file?

I have no idea, I never used something like this. If the example 
extension does it currently and it is allowed to save any binary data at 
the PNG then you can do the same (probably).

To find out if it is saved with the file I would check if it is saved 
currently with the TexMaths extension. Another way is to add a '.zip' to 
the AOO file name and to open it as archive. There you can check for the 
contained single files and data, your binary data should be there somewhere.

> The difference between them is
> LaTeX equations is small and short, The new type picture is large.
> can  This method rigth?

If it serves your needs and works it is right. You need to check if the 
files you create are loadable by a standard office (the AOO3.4 release 
version for example). It should load and show the PNG. I cannot say if 
it will strip your binary data when saving changed, you have to find out 
yourself.

The only possible drawback is when you or other people using your 
extension would spread files generated this way and these files are very 
big. This may cause high eMail loads and similar effects. People may ask 
'why is this file so big, there is only one picture in it'. I would 
suggest to not spread such files with extra data in them too much, maybe 
you only need to use them inhouse or privately anyways. It is a very 
specialized usage of ODF files.

> The benefits of the treatment is:
> do not have to program  a import filter,
> without considering the compatibility of the file ,
> Only insert a  picture into openoffice's write.

Yes, looks reasonable.

> Look forward to your reply.
> Best Regards!

Thanks, same to You. And good luck with it!

>   >Hi Armin:
>> Receipt of your reply, I modified my needs.
>>
[..]

Sincerely,
Armin
--
ALG




how Get Bitmap file from SVG module?

2012-05-30 Thread jianlizhao
Hi Armin: 

I find  TexMaths extension is very like my needs. Described as follows:

TexMaths is an extension designed to provide LaTeX support into LibreOffice.
LaTeX equations can be inserted as images (SVG or PNG formats) and the LaTeX
code is saved into the image attribute for further editing.

My question as follows:
The new type picture can be inserted as images (PNG formats) and the
Original picture is saved into the image attribute for further used.
the image attribute can be saved with a file?

The difference between them is 
LaTeX equations is small and short, The new type picture is large.
can  This method rigth? 

The benefits of the treatment is:
do not have to program  a import filter, 
without considering the compatibility of the file ,
Only insert a  picture into openoffice's write.

Look forward to your reply.
Best Regards!


  
 >Hi Armin:
>Receipt of your reply, I modified my needs.
>
>The original picture I do not need to display and modify,only to provide
data to the extension,used for data analysis and >processing. This process
does not need to show only need end result, the end result is saved to a TXT
file.
>
>All requirements are summarized as follows:
>1)On screen Display bmp or png file, the bmp or png converted from the
original pictures.
>
>2) In the save file include two files, one is the original file. 
>In order to achieve compatibility.
>
>3)on screen when the user delete the BMP file,in the save file, the file
related to this BMP files do not save,that is also >deleted.
>
>4)In the extension, the original file for data analysis and processing, and
processing the results are saved to txt file.
>It should be based on the screen select the BMP file,access to the
corresponding original file.
>
>Do you have any good suggestions.
>
>Thanks...
>Best Regards!



how Get Bitmap file from SVG module?

2012-05-29 Thread jianlizhao
Hi  蜗牛
Although I use openoffice for many years, use openoffice to development is
the first time.

The problem persists, not resolved, we can discuss.

Thanks...
Best Regards!

-邮件原件-
发件人: 蜗牛 [mailto:56091...@qq.com]
发送时间: 2012年5月28日 17:41
收件人: ooo-dev
主题: how Get Bitmap file from SVG module?

Hi jianlizhao
 You solve your problem?I encountered the same problem,Only the format of
the picture is not the same。
Can you tell me solve the problem?
 Thanks...
Best Regards!
  
  
 >Hi Armin:
>Receipt of your reply, I modified my needs.
>
>The original picture I do not need to display and modify,only to provide
data to the extension,used for data analysis and >processing. This process
does not need to show only need end result, the end result is saved to a TXT
file.
>
>All requirements are summarized as follows:
>1)On screen Display bmp or png file, the bmp or png converted from the
original pictures.
>
>2) In the save file include two files, one is the original file. 
>In order to achieve compatibility.
>
>3)on screen when the user delete the BMP file,in the save file, the file
related to this BMP files do not save,that is also >deleted.
>
>4)In the extension, the original file for data analysis and processing, and
processing the results are saved to txt file.
>It should be based on the screen select the BMP file,access to the
corresponding original file.
>
>Do you have any good suggestions.
>
>Thanks...
>Best Regards!



how Get Bitmap file from SVG module?

2012-05-29 Thread jianlizhao
Hi Armin:
Your are right.
Insert raw data file to write, not draw/Impress.
outputs a text file is the results of the analysis, depending on the
circumstances maybe insert openoffice'write.

The reason for this is:
We need a complex Graphics and text mixed layout , Editing software ,
support for mathematical formulas and Data Analysis , So think of the
openoffice'write.

It is easy to teaching student and exchange.

Some special needs, but we need such.

Thanks...
Best Regards!

-邮件原件-
发件人: Armin Le Grand [mailto:armin.le.gr...@me.com]
发送时间: 2012年5月29日 16:56
收件人: ooo-dev@incubator.apache.org
主题: Re: how Get Bitmap file from SVG module?

    Hi jianlizhao,

I still have to guess what you want to do, but it sounds like:
- Insert raw data file to draw/Impress
- A special extension uses that data to proccess something and outputs a
text file
- That extension creates a Bitmap/BitmapEx AOO can display

If this is correct I see no real reason to implement/embed this internally
in AOO. If you only need the raw data in your extension, why use AOO for it
and create a file format which is potentially very big?
Why not load the raw data from an app which needs it and processes it (the
extension itself)? It seems so specialized that I would think about a
specialized solution. When you already put a *.txt file with results next to
the ODF, why not also let the raw data be aside the ODF file?
Why do you need Draw/Impress at all?

Maybe I'm wrong, still guessing your needs and plan.

On 25.05.2012 03:27, jianlizhao wrote:
> Hi Armin:
> Receipt of your reply, I modified my needs.
> 
> The original picture I do not need to display and modify,only to 
> provide data to the extension,used for data analysis and processing.
> This process does not need to show only need end result, the end 
> result is saved to a TXT file.
> 
> All requirements are summarized as follows:
> 1)On screen Display bmp or png file, the bmp or png converted from the 
> original pictures.

Yes. Who converts this? Which instance?

> 2) In the save file include two files, one is the original file.
> In order to achieve compatibility.

Only useful when the extension is installed, no extra use for the standard
user, but much bigger files?

> 3)on screen when the user delete the BMP file,in the save file, the 
> file related to this BMP files do not save,that is also deleted.
> 
> 4)In the extension, the original file for data analysis and 
> processing, and processing the results are saved to txt file.
> It should be based on the screen select the BMP file,access to the 
> corresponding original file.
> 
> Do you have any good suggestions.

See above!

> Thanks...
> Best Regards!
> 
> 
[..]

Sincerely,
Armin
--
ALG



about openoffice PixelFilter?

2012-05-25 Thread jianlizhao
Hello  my friend

In the file
main\binfilter\bf_svtools\source\filter.vcl\filtersvt_FilterConfigCache.cxx 

Have the following code:
const char*
FilterConfigCache::FilterConfigCacheEntry::InternalPixelFilterNameList[] = 
{ 
IMP_BMP, IMP_GIF, IMP_PNG,IMP_JPEG, IMP_XBM, IMP_XPM, 
EXP_BMP, EXP_JPEG, NULL 
}; 

const char*
FilterConfigCache::FilterConfigCacheEntry::InternalVectorFilterNameList[] = 
{ 
IMP_SVMETAFILE, IMP_WMF, IMP_EMF, IMP_SVSGF, IMP_SVSGV, 
EXP_SVMETAFILE, EXP_WMF, EXP_EMF, EXP_SVG, NULL 
}; 

const char*
FilterConfigCache::FilterConfigCacheEntry::ExternalPixelFilterNameList[] = 
{ 
"egi", "epn", "icd", "ipd", "ipx", "ipb", "epb", "epg", 
"epp", "ira", "era", "itg", "iti", "eti", "exp", NULL 
}; 


my question as below: 
The openoffice division what based InternalPixelFilter or
ExternalPixelFilter? 
I wrote an addon extension used to insert a new type of picture is to belong
InternalPixelFilter or external ExternalPixelFilter?

Thanks...

Best Regards!



how Get Bitmap file from SVG module?

2012-05-24 Thread jianlizhao
Hi Armin:
Receipt of your reply, I modified my needs.

The original picture I do not need to display and modify,only to provide
data to the extension,used for data analysis and processing. This process
does not need to show only need end result, the end result is saved to a TXT
file.

All requirements are summarized as follows:
1)On screen Display bmp or png file, the bmp or png converted from the
original pictures.

2) In the save file include two files, one is the original file. 
In order to achieve compatibility.

3)on screen when the user delete the BMP file,in the save file, the file
related to this BMP files do not save,that is also deleted.

4)In the extension, the original file for data analysis and processing, and
processing the results are saved to txt file.
It should be based on the screen select the BMP file,access to the
corresponding original file.

Do you have any good suggestions.

Thanks...
Best Regards!


-邮件原件-
发件人: Armin Le Grand [mailto:armin.le.gr...@me.com] 
发送时间: 2012年5月24日 22:57
收件人: ooo-dev@incubator.apache.org
主题: Re: how Get Bitmap file from SVG module?

Hi jianlizhao,

On 24.05.2012 16:07, jianlizhao wrote:
> Hi Armin:
> I am very glad to receipt your letter,
> 
> I see the following content in your blog:
> There were also ODF-compatible File Format adaptions needed, more concrete
> the in ODF already contained and described multi-image support. In ODF,
the
> original SVG is now embedded to the 'Pictures' folder inside the ODF file
as
> one would expect from such a feature and can be easily extracted (unzip
the
> ODF file and there you are). There is also a Png file written as
replacement
> image. The draw:frame is now multi-image capable (as the spec allows). In
> the case of a SVG it writes a good quality Png and the original SVG as
> draw:image elements. Since older (and other) office versions are only
> capable of loading a single (and thus the first) image, the Png is written
> first. This allows file exchange with other and older offices without
> breaking backward compatibility and/or ODF file exchange.
> 
> I have two questions :
> 1) I would also like to use this method to insert the picture, so that in
> document will retain the original file, the original file  is there are
> other useful.

To achieve this you have to add the needed code to the core (similar as
jpeg and png are added). This includes import code to get the data into
a Bitmap/BitmapEx. This is uniquely held (using a unique ID calculated
based on the bitmap data, there is one calculation defined for each
format) at the GraphicManager and can be accessed using
Graphic/GraphicObject.
AFAIK it is also possible to hold the original raw data at the entry in
the GraphicManager (to be able to write the original again in unchanged
form without needing to export it to it's format).
The feature you mentioned above is needed for file formats which differ
in content, in Your case this is not needed since a e.g. reduced data
BitmapEx can be recreated without data loss from your raw data. It makes
no sense to write both, so no need for this feature.

> 2) How do I access the original file.

The Graphic holding it (and the contact with the GraphicManager) may
have it as raw data, but also has a link to a temporary storage (using
the temp on your system) where it is swapped out.
To Access, use Graphic/GraphicObject. I repeat here: It is no easy task
to add a graphic format to the core. I'm also not the specialist for
that, maybe someone else knows in more details about exactly what steps
have to be done to implement it.

HTH!

> Thanks...
> Best Regards!
> 
> 
> -邮件原件-
> 发件人: Armin Le Grand [mailto:armin.le.gr...@me.com]
> 发送时间: 2012年5月24日 18:10
> 收件人: ooo-dev@incubator.apache.org
> 主题: Re: how Get Bitmap file from SVG module?
> 
>   Hi jianlizhao,
> 
[..]

Sincerely,
Armin
--
ALG




how Get Bitmap file from SVG module?

2012-05-24 Thread jianlizhao
Hi Armin:
I am very glad to receipt your letter,

I see the following content in your blog:
There were also ODF-compatible File Format adaptions needed, more concrete
the in ODF already contained and described multi-image support. In ODF, the
original SVG is now embedded to the 'Pictures' folder inside the ODF file as
one would expect from such a feature and can be easily extracted (unzip the
ODF file and there you are). There is also a Png file written as replacement
image. The draw:frame is now multi-image capable (as the spec allows). In
the case of a SVG it writes a good quality Png and the original SVG as
draw:image elements. Since older (and other) office versions are only
capable of loading a single (and thus the first) image, the Png is written
first. This allows file exchange with other and older offices without
breaking backward compatibility and/or ODF file exchange.

I have two questions :
1) I would also like to use this method to insert the picture, so that in
document will retain the original file, the original file  is there are
other useful.
2) How do I access the original file.

Thanks...
Best Regards!


-邮件原件-
发件人: Armin Le Grand [mailto:armin.le.gr...@me.com] 
发送时间: 2012年5月24日 18:10
收件人: ooo-dev@incubator.apache.org
主题: Re: how Get Bitmap file from SVG module?

    Hi jianlizhao,

On 24.05.2012 10:57, jianlizhao wrote:
> 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.

Sorry, it is not similar and I would not suggest svgio as an example to
extend for picture formats. The way to extend picture formats is to look
at how e.g. png, jpeg and others are handled in the office and to extend
these by a filter. Be warned, this is a complex (and fragile) system
which will need a lot of care.

Your raw format is pixel data, so this will fit much better than svgio.
Svgio needed an exception to be hold at Graphic/GraphicObject at all,
this will not be needed for another pixel-based format and thus is a
very bad example for your case.

All this would need to be done in the core, there are deep vcl- and
tools-based mechanisms behind this, including the GraphicManager who
will automatically buffer the picture data and import/export it on
demand to rduce mem footprint. I think it cannot be done as an extension.

What you could do in an extension is to implement the loader (raw data
to Bitmap/BitmapEx) and insert that pixel data using API to the writer
somehow. It will then not be embedded as the original raw bitmap data,
but it will be in the system in a compatible way.

HTH!

> 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!
> 
> 
> 
> -邮件原件-
> 发件人: Armin Le Grand [mailto:armin.le.gr...@me.com]
> 发送时间: 2012年5月23日 20:51
> 收件人: ooo-dev@incubator.apache.org
> 主题: 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
> the current SVG export which has nothing to do with the new import.
> There also is no module svg, the module I added for the new SVG import
> 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
> Graphic you may try
> 
>   const SvgDataPtr&  getSvgData() const;
> 
> If getSvgData().is() there is a SVG graphic. At the contained SvgData
> you can use
> 
>   const Bi

how Get Bitmap file from SVG module?

2012-05-24 Thread jianlizhao
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!



-邮件原件-
发件人: Armin Le Grand [mailto:armin.le.gr...@me.com] 
发送时间: 2012年5月23日 20:51
收件人: ooo-dev@incubator.apache.org
主题: 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 
the current SVG export which has nothing to do with the new import. 
There also is no module svg, the module I added for the new SVG import 
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 
Graphic you may try

 const SvgDataPtr& getSvgData() const;

If getSvgData().is() there is a SVG graphic. At the contained SvgData 
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




how Get Bitmap file from SVG module?

2012-05-23 Thread jianlizhao
Hi Armin:
I ask you some question as below:
In  module svg, have two Interfaces, one is  XSVGPrinter, the other is
XSVGWriter.

1) Can I use these interfaces, output Bitmap file?

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?

Thanks...
Best Regards!



about openoffice insert the picture?

2012-05-21 Thread jianlizhao
Hello  ,
I ask some question as below:

1) The code of insert the picture in which directory,  
2) On the main menu, select Insert > Picture > From File ..., this process
are related to those files?
3) bmp picture how way save to SwNoTxtNode

Best Regards!



about openoffice insert the picture?

2012-05-21 Thread jianlizhao
Hello my friend,
I ask you some question as below:

1) The code of insert the picture in which directory,  
2) click menu->insert->picture->From file..., this process are related to
those files?
3) bmp picture how way save to SwNoTxtNode

Best Regards!



答复: about openoffice support on SVG ?

2012-05-20 Thread jianlizhao
Hi,Armin :
thanks for you  replay.

I often deal with the digital camera file, its file format is RAW format,
I would like to develop an addon in the openoffice's write , through the addon  
import RAW files.

Import new pictures to openoffice's write,  the same as Svg import. 

I see you develop SVG, no change openoffice's file format, and to maintain the 
compatibility of the before and after, this realization of the idea of ​​a good.

I work on the C++ program development in Windows platform about 10 years, but 
not familiar with the openoffice extension development. Therefore, I need your 
help.

Can you give me an addon examples code that the following functions

1) Click on the menu, display a dialog box, a text input box and a button in 
the dialog box 
2) Click the button on the dialog box , display let users to select the RAW 
format files.

In this way, I only  consider the  program  procedure, rather than familiar 
with the addon framework.

 Look forward to your reply.
  Best Regards!
 


-邮件原件-
发件人: Armin Le Grand [mailto:armin.le.gr...@me.com] 
发送时间: 2012年5月20日 19:37
收件人: ooo-dev@incubator.apache.org
主题: Re: about openoffice support on SVG ?

Hi jianlizhao,

jianlizhao  wrote:
> Hello my friend,
> 
> I ask you some question as below:
> 1) source code with support for SVG code, What programming language is used?

It's C++.


> IS   C + + or JAVA?
> 2) In order to support SVG features, which files additions and modifications
> to those source code?

The code is in the main/svgio module, I wrote it. What do you want to do?
Maybe I can help you or just support your needs. Have you read the blog
entry on it
(https://blogs.apache.org/OOo/entry/native_svg_support_for_apache), it
explains some basic principles about it and how it is added to the office
processing (primitive usage).

> Thanks...
> 
>  Best Regards!

Sincerely,
Armin
-- 
ALG




about openoffice support on SVG ?

2012-05-19 Thread jianlizhao
Hello my friend, 

I ask you some question as below:
1) source code with support for SVG code, What programming language is used?


IS   C + + or JAVA?
2) In order to support SVG features, which files additions and modifications
to those source code?

 

Thanks...

 Best Regards!



about souce code of write insert a picture ?

2012-05-18 Thread jianlizhao
Hello  Jim Cheng:

I see  http://wiki.services.openoffice.org/wiki/Documentation/DevGuide.

It is schematic respect, Very detailed.
I'm looking for a simple practical example

Thanks...
Best Regards!




Please refer to Yong Lin's reply...to find expected info from
http://wiki.services.openoffice.org/wiki/Documentation/DevGuide

On Fri, May 18, 2012 at 4:39 PM, jianlizhao  wrote:

> Hello  Jim Cheng:
>
> Yes. a kind of customer application developed based on OpenOffice, call
> Extensions .  the  Extensions  Has the following features
> 1)  dialog box
> 2)  Click the button on the dialog box display "hello world".
>
> it was simple, but good learning.
>
> Thanks...
>
> Best Regards!
>
>
> -邮件原件-
> 发件人: chengjh [mailto:chen...@apache.org]
> 发送时间: 2012年5月18日 16:19
> 收件人: ooo-dev@incubator.apache.org
> 主题: Re: about souce code of write insert a picture ?
>
> You mean a kind of customer application developed based on OpenOffice ,
> such as "Hello World!",right?
>
> On Fri, May 18, 2012 at 4:07 PM, jianlizhao 
> wrote:
>
> > Hello  Jim Cheng:
> >
> > Thanks you replay.
> >
> > Could I find a example of openoffice secondary development, programming
> > language use C++ language , the example Achieve Function
> > 1)  dialog box
> > 2)  Click the button on the dialog box display "hello world".
> >
> > Where can I download the example program?
>
>
> Thanks...
>
> Best Regards!
>
> Jim Cheng (程建宏)
>
>


-- 

Thanks...

Best Regards!

Jim Cheng (程建宏)



about souce code of write insert a picture ?

2012-05-18 Thread jianlizhao
Hello  Jim Cheng:

Yes. a kind of customer application developed based on OpenOffice, call
Extensions .  the  Extensions  Has the following features
1)  dialog box
2)  Click the button on the dialog box display "hello world".

it was simple, but good learning.

Thanks...

Best Regards!


-邮件原件-
发件人: chengjh [mailto:chen...@apache.org] 
发送时间: 2012年5月18日 16:19
收件人: ooo-dev@incubator.apache.org
主题: Re: about souce code of write insert a picture ?

You mean a kind of customer application developed based on OpenOffice ,
such as "Hello World!",right?

On Fri, May 18, 2012 at 4:07 PM, jianlizhao  wrote:

> Hello  Jim Cheng:
>
> Thanks you replay.
>
> Could I find a example of openoffice secondary development, programming
> language use C++ language , the example Achieve Function
> 1)  dialog box
> 2)  Click the button on the dialog box display "hello world".
>
> Where can I download the example program?


Thanks...

Best Regards!

Jim Cheng (程建宏)



about souce code of write insert a picture ?

2012-05-18 Thread jianlizhao
Hello  Jim Cheng:

Thanks you replay. 

Could I find a example of openoffice secondary development, programming
language use C++ language , the example Achieve Function
1)  dialog box 
2)  Click the button on the dialog box display "hello world".

Where can I download the example program?




about souce code of write insert a picture ?

2012-05-17 Thread jianlizhao
Hello 
could you  the tell me openoffice's the write,How to insert a picture,Can
you briefly describe the implementation process? 

 insert a picture code  in which module ?

Regards
jianlizhao



how export write to Macromedia Flash swf format?

2012-05-16 Thread jianlizhao
Whether there are 3rd party extension with OpenOffice.org, that can  export
write to Macromedia Flash swf format



-邮件原件-
发件人: Liu Da Li [mailto:wawal...@gmail.com] 
发送时间: 2012年5月17日 10:00
收件人: ooo-dev@incubator.apache.org
主题: Re: how export write to Macromedia Flash swf format?

It seems that there doesn't exist such filter in Openoffice,export write to
flash.

2012/5/17 jianlizhao 

> OpenOffice.org can export draw and Impress to Macromedia Flash swf format,
> how export write  to Macromedia Flash swf format?
>
>



how export write to Macromedia Flash swf format?

2012-05-16 Thread jianlizhao
OpenOffice.org can export draw and Impress to Macromedia Flash swf format,
how export write  to Macromedia Flash swf format? 



答复: 答复: about dmake question

2012-05-11 Thread jianlizhao
Hello  Pedro:

http://wiki.services.openoffice.org/wiki/Documentation/Building_Guide/Building_on_Windows.

The references are as follows:
,
setting the enviroment 
When the configure script has been run successfully a file winenv.Set.sh was 
created[7]. Do this: 

source winenv.Set.sh
to set up the enviroment for the build. 

starting the build 
Build the software by typing the following in $SRC_ROOT[8]: 

Dmake
,
The end of the reference to the content.

My question is  Under $SRC_ROOT Directory,  dmake is compiled which file .


-邮件原件-
发件人: Pedro Giffuni [mailto:p...@apache.org] 
发送时间: 2012年5月12日 11:06
收件人: ooo-dev@incubator.apache.org; jianlizhao
主题: R: 答复: about dmake question

Hello Jianlizhao,

--- Ven 11/5/12, jianlizhao  ha scritto:

> Hi Pedro,
> I'm sorry, I did not describe my question clearly.
> Re-description as follows:
> 
> When we entered the dmake,
> dmake is compiled which file .
> 


It depends on the description in makefile.mk.
For example: writerfilter/source/filter/makefile.mk

(...)
.INCLUDE : settings.mk
.INCLUDE :  $(PRJ)$/inc$/writerfilter.mk

# --- Files -

SLOFILES=   $(SLO)$/WriterFilter.obj \
$(SLO)$/WriterFilterDetection.obj \
$(SLO)$/ImportFilter.obj \
$(SLO)$/RtfFilter.obj


# --- Targets --

.INCLUDE : target.mk

__

will compile WriterFilter.cxx to generate WriterFilter.obj

cheers,

Pedro.




答复: about dmake question

2012-05-11 Thread jianlizhao
Hi Pedro,
I'm sorry, I did not describe my question clearly.
Re-description as follows:

When we entered the dmake,
dmake is compiled which file .

jianlizhao

-邮件原件-
发件人: Pedro Giffuni [mailto:p...@apache.org] 
发送时间: 2012年5月12日 10:34
收件人: ooo-dev@incubator.apache.org
主题: R: about dmake question

Hi Jianlizhao,

--- Ven 11/5/12, laser laser  ha scritto:

> 
> hello  Pedro Giffuni
> Thank you for your reply.
> I would also like to know,
> Build OOo we are using dmake, which file is damke calls the
> first file?

I don't understand well what you mean by first file. If
you mean the Makefile with a description of what to
build then it you will notice a makefile.mk file in
the modules.

To be honest, I am no expert in the build system...
I am just happy it works ;).

Pedro.




Which program process scp2?

2012-05-11 Thread jianlizhao


-邮件原件-
发件人: jianlizhao [mailto:jianlizh...@hotmail.com] 
发送时间: 2012年5月11日 17:35
收件人: 'ooo-dev@incubator.apache.org'
主题: 转发: Which program process scp2?

Hello my friend: 
 
I have a question to ask.
Included in the new packaging process are different Perl programs, that
create the native installation sets based on the information stored in our
platform independent installation set description language ?scp“. Files,
directories, and many things more are described in the cvs module ?scp2“.
Based on these files, a platform and product specific setup script is
created, which is then used by the new packaging process to create the
native installation sets. The different processes are shown in the following
graphic:
 
  preprocessor
 scp file--->pre file
   |

   |
   |
perl file formatting
   |
   perl-Linker|
setup script--- par file
| 
perl- |
Packer |
   |windows
   |-Windows
Installation set
   |NoN-Windows
   |epm>RPM, Solaris
package,...
 
 
My question  Which program process scp2 files ? The resulting file  “setup
script”in there?
 
At the moment I can give only a partial answer because I am setting up a
new machine and do not have access to my development files.

Here is what I have found out so far:

Creation of .par files from .scp files is triggered by makefiles in
main/scp2/source. The rules can be found in
main/solenv/inc/pstrules.mk. A par file is first pre-processed by
cpp.lcc into a .pre file. The .pre files are then transformed into
the .par files by scpcomp.

-Andre


My question  is:
How the  .par files  Generate the  windows installation set?
  




The file directory of the source code is organized?

2012-05-10 Thread jianlizhao
The file directory of the source code is organized?

 

For example, the document processing module sw directory as follows:
inc  a header file
src  ---a resource file
source   ---the source file
sdi  ---message map 

mac
prj
util
win
xml

 

What are the advantages of such organization file directory?

 

My question is  a description of these directories is described in which
file? 



minimum system of openoffice

2012-05-07 Thread jianlizhao
openoffice is very large,, Getting started is very difficult.

Has a minimum system of openoffice  that allow the developers Quick Start ?



How to re-package openoffice?

2011-10-21 Thread jianlizhao
Hello Alexandro Colorado:

Not to change the core module, just re-packaged in the application layer,
that is just write the application installed, other applications will not
packaged. Run the software only write.


 Look forward to your reply

   jianlizhao 

The following is the original email:
Re: How to re-package openoffice?

On Thu, Oct 20, 2011 at 7:47 PM, jianlizhao  wrote:

> openoffice installation program has hundreds of megabytes, which includes
> Writer, Calc and Draw, and other modules.
>
>  Due to hardware resource constraints, combined with the actual demand,
> packaged to meet the requirements write, how packaged write it?How to
> modify
> the SCP2 project?
>
>
Writer Calc and the rest of the modules use the same toolkit and engine
which is not as modular so is not currently possible to divide the core
modules.


-- 
*Alexandro Colorado*
*OpenOffice.org* Español
http://es.openoffice.org
fingerprint: E62B CF77 1BEA 0749 C0B8 50B9 3DE6 A84A 68D0 72E6



How to re-package openoffice?

2011-10-20 Thread jianlizhao
openoffice installation program has hundreds of megabytes, which includes
Writer, Calc and Draw, and other modules.

  Due to hardware resource constraints, combined with the actual demand,
packaged to meet the requirements write, how packaged write it?How to modify
the SCP2 project?



reply: Extensions Integration into Installation Set

2011-10-20 Thread jianlizhao
Hello  Ariel Constenla-Haile 
With your help, I solved the Extensions Integration into Installation Set
problem, I would like to ask some questions about build.lst file

 build.lst file
 myext myextensions: solenv NULL
 myext myextensions usr1 - all myextensions_mkout NULL
 myext myextensions \ prj get - all myextensions_prj NULL
 myext myextensions \ zipped nmake - all myextensions_zipped NULL

My question is as follows:
 What is the meaning of which usr1

 Look forward to your reply

   jianlizhao 




Extensions Integration into Installation Set

2011-10-19 Thread jianlizhao


-邮件原件-
发件人: jianlizh...@hotmail.com [mailto:jianlizh...@hotmail.com] 
发送时间: 2011年10月19日 17:47
收件人: jianlizh...@hotmail.com
主题: Extensions Integration into Installation Set


http://openoffice.2283327.n4.nabble.com/Adding-PDF-import-extension-td275593
0.html

I'm trying to add the my_extension to my Windows build of OOo 3.1. 

I tried to follow the instructions at : 
http://wiki.services.openoffice.org/wiki/Extensions_Integration_into_Install
ation_Set


In file_ooo.scp: 
File gid_File_Oxt_pdfimport 
   TXT_FILE_BODY; 
   Styles = (PACKED); 
   Dir = gid_Brand_Dir_Share_Extension_Install; 
   Name = "myextion.oxt"; 
End 

In module_hidden.scp: 
Module gid_Module_Optional_PDFImport 
Name = "gid_File_Oxt_pdfimport"; 
Description = "gid_File_Oxt_pdfimport"; 
ParentID = gid_Module_Optional; 
Default=YES; 
Files = (gid_File_Oxt_pdfimport); 
End 

  

I read the article many times. I still can not solve the problem.
My question is:
 

I do not know which directory the  Extensions  files(myextion.oxt)  is
located under slover.
 
for example:Extension Dictionarie   is located under slover’s pck
directory.

 
   Look forward to your reply

  2011-10-19 




how can I Extensions_Integration_into_Installation_Set?

2011-10-18 Thread jianlizhao
 

I want do  Extensions Integration into Installation Set, I find web page
bellow:

 

http://wiki.services.openoffice.org/wiki/Extensions_Integration_into_Install
ation_Set

 

I read the article many times. I still can not solve the problem.

 

My question is:

 

I do not know which directory the  Extensions  files  is located under
slover.

 

for example:Extension Dictionarie   is located under slover’s pck
directory.

 

Can  you  help  me ?

   Look forward to your reply

  2011-10-19 

 



how can I Extensions_Integration_into_Installation_Set?

2011-10-18 Thread jianlizhao
I want do  Extensions Integration into Installation Set, I find web page
bellow:

 

http://wiki.services.openoffice.org/wiki/Extensions_Integration_into_Install
ation_Set

 

I read the article many times. I still can not solve the problem.

 

My question is:

 

I do not know which directory the  Extensions  files  is located under
slover.

 

for example:Extension Dictionarie   is located under slover’s pck
directory.

 

Can  you  help  me ?

   Look forward to your reply

  2011-10-18