Re: Paragraphs of certain page
Martin Sevior <[email protected]>
| Newsgroups | gmane.editors.abiword.devel |
|---|---|
| Message-ID | <CAOJESBV7QJttyTx7PH4AmgDWiVCCy5SYhD0aikfsow5H6tGHyQ@mail.gmail.com> |
Hi Tanya, There is no direct way, although you could identify the first and last lines of the first and last columns on the page, then find the corresponding paragraphs (fp_BlockLayout's) that own the lines. It's problem because for abiword pages are really owned by fl_DocSectionLayout and we have not implemented styles for them. I guess we should and then it would be much easier to implement page-level styles. We should do the ground work to allow us to implement Section-level styles so we can eventually do these properly but I can see the point of attempting a work-around to make page-level styles sort-of work. My feeling is though that it might introduce weirder bugs than if we just ignored them. Cheers Martin On Mon, Aug 20, 2012 at 10:18 PM, Tanya Guza <[email protected]> wrote: > Hi Martin, > > I'm working on improving of ODF master page styles import and I'm > trying to "emulate" them by translating page styles into ordinary > Abiword styles. > Is there any way to get list of paragraphs that belong to certain > page? Or it's more correct to save position of first and last > paragraphs that have such master page style and then navigate through > them using listener? > > -- > Best wishes, > Tanya