[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Re: Review Request: Start page numbering from page 'X'
From:       "Pierre Ducroquet" <pinaraf () pinaraf ! info>
Date:       2010-01-29 12:34:21
Message-ID: 20100129123421.11142.12137 () localhost
[Download RAW message or body]


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/2385/#review3961
-----------------------------------------------------------


To be more precise : in OpenDocument, you change the page numbering by adding a page \
break with a new start page number. That break is stored 100% in a paragrabh style. \
So in order to get the  «real » page number with that feature, you'll probably have \
to dig much deeper in the KWord/KoText code, understand how page-breaks and page \
numerotation work. First thing would be to parse and store the needed attributes in \
the paragraph style. Then  «apply » them (storing the start page number in the right \
class when the paragraph style is applied). Then update the page numerotation system \
to use them. But you probably won't have to change the PageVariable.

- Pierre


On 2009-12-16 14:57:18, Mani Chandrasekar wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://reviewboard.kde.org/r/2385/
> -----------------------------------------------------------
> 
> (Updated 2009-12-16 14:57:18)
> 
> 
> Review request for KOffice.
> 
> 
> Summary
> -------
> 
> This patch would give page numbering from page 'X' feature. 
> 
> Correct me if I'm wrong (I really din't clearly understand ODF page numbering \
> concept) 
> <text:page-number text:select-page="current">2</text:page-number>
> The above tag would start the numbering from page 2 (skipping page 1)
> 
> So i have added a new variable m_startNumbering to keep track of this value and \
> saving the same value again. 
> 
> Diffs
> -----
> 
> trunk/koffice/filters/kword/msword-odf/texthandler.cpp 1058441 
> trunk/koffice/plugins/variables/PageVariable.h 1058441 
> trunk/koffice/plugins/variables/PageVariable.cpp 1058441 
> 
> Diff: http://reviewboard.kde.org/r/2385/diff
> 
> 
> Testing
> -------
> 
> Unit test passed.
> 
> 
> Thanks,
> 
> Mani
> 
> 

_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic