Hi,

蒋东进 wrote:
> Hi,all
> 
>     I have implemented delay load slide page in impress these days. Now I can 
> import a BIG .ppt file in several seconds.
>     Here is my way: I modify func ** sal_Bool ImplSdPPTImport::Import() **, 
> only complete load several pages( start 4-6 pages ) at import phase, for 
> other pages I only import their notepage, but leave their masterpage and 
> slidepage for delay loading when those pages are realy needed,eg display or 
> operate.

A delay load slide page mechanism might be a good thing for a PPT
viewer, but in case you are editing the file you will not save any time
rather it is leading to many difficulties as it is required that the
original file is always available and you have to determine if edited
slides have to be loaded from the original PPT document or from
something else. Additionally import errors will occur at a very late
time, you might get the error if you are just showing your presentation.

>     
>     Everything is ok but 2 questions:
>       
>     1. Under slide show mode, if the previous/next page is not imported, I 
> call my import func to import its masterpage and slidepage in func ** void 
> SlideshowImpl::slideChange() **. My import func is executed well but the page 
> still display blank, only if I forward or backward some times, the page is 
> updated well. So I want to know how I can update the page immediately after 
> call my import func?
>     Under source code base 1.04, I put my import func at the frant of ** void 
> FuSlideShow::PrepareForPage( SdPage* pPage, BOOL bInitAnimObjs ) **,it works 
> well. Now I change my source code base to 680m104, I get the problem. 
>       

Sorry, I don't know what's wrong here.

>     2. When I open a .ppt file, change something and save it, I must call my 
> import func to import all those unimported pages before export it. So even we 
> can import a BIG .ppt file in several seconds, but it will take more time( 
> the same as import the whole .ppt file completely ) to wait the file be 
> saved. I found ** sal_Bool PPTWriter::ImplCreateSlide( sal_uInt32 nPageNum ) 
> ** is the func to export a slidepage, I want to know how I can only export 
> those imported pages, for those unimported pages only copy their bytes from 
> old file medium( inputstream ) to new file medium( outputstream )? In this 
> way the export process will fast.

In my opinion the import of a PPT file is not finished as long as the
original PPT document is needed. There exist the possibility to store
changed slides only, but this requires deep knowledge of the PPT format
and it leads to the fact that you resides on the PPT format, and this is
something that nobody really wants.

>       
>     Thank you to read my question. Any comment and hint are welcome.
>  
> best regards,
> jiangdongjin
> 
> ----
> 
> tsmail is a mail solution, 
> please visit http://www.linuxts.com

best regards,
Sven Jacobi

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to