[dev] MS document header formatting not retained in OO

2009-08-24 Thread Wei Min Teo
Hi all, I am trying to open and read the different headers of different pages on a document in order to sort them. So far, my code works fine for openoffice files, i'm able to access each page and get their relevant pagestyle names to get the different headers. However, using this same

[dev] Drawing layer performance problem.

2009-08-24 Thread zhiyong xue
There are two performance problems in Drawing layer: 1) Load a Presentation document. A Presentation document contains many text object, So it will spend too many time to calculate object bound rectangle in loading. (The function is SdrObject::RecalcBoundRect ). The first question is: can we

[dev] Re: [api-dev] MS document header formatting not retained in OO

2009-08-24 Thread Juergen Schmidt
Hi Wei Min, it sounds like a filter problem. Once a document is loaded in the internal document model the API access should be same regardless the format. Please someone correct me if i am wrong Juergen Wei Min Teo wrote: Hi all, I am trying to open and read the different headers of

[dev] RE: [api-dev] MS document header formatting not retained in OO

2009-08-24 Thread Wei Min Teo
Hi Juergen, That is what i found strange. I did not set any filters. Even when i did not do any programatically, I simply used openoffice to open the MS document using swriter and save as ODT document. The header in section 2 is still lost. However, different headers in section 1 are

Re: [dev] RE: [api-dev] MS document header formatting not retained in OO

2009-08-24 Thread Juergen Schmidt
when you save to odf the appropriate filter is used. The problem was probably already during the import when the MS import filter was used. When the info is not present the export can't the info at all... I am only guessing that this is the problem. Juergen Wei Min Teo wrote: Hi Juergen,

Re: [dev] Drawing layer performance problem.

2009-08-24 Thread Malte Timmermann
Hi zhiyong xue, for the first question: You are right that there shouldn't be too many SdrObject::RecalcBoundRect. I guess calls to RecalcBoundRect are not avoidable, because the ODF file only contains the object size, which doesn't have to be the same like the real text area. But it should

Re: [dev] RE: [api-dev] MS document header formatting not retained in OO

2009-08-24 Thread Florian Ludwig Heckl
Hi Wei Min, On 24.08.2009, at 11:55, Wei Min Teo wrote: That is what i found strange. I did not set any filters. Even when i did not do any programatically, I simply used openoffice to open the MS document using swriter and save as ODT document. The header in section 2 is still lost.

RE: [dev] RE: [api-dev] MS document header formatting not retained in OO

2009-08-24 Thread Wei Min Teo
Hi Juergen, The import seems to work fine because i can physically see the header in the second section. The page style name was automatically renamed to Convert 1. However, when i save this to odt and reopen the file, it's lost. Date: Mon, 24 Aug 2009 12:49:08 +0200 From: