From koffice-devel Fri Jan 29 12:34:21 2010 From: "Pierre Ducroquet" Date: Fri, 29 Jan 2010 12:34:21 +0000 To: koffice-devel Subject: Re: Review Request: Start page numbering from page 'X' Message-Id: <20100129123421.11142.12137 () localhost> X-MARC-Message: https://marc.info/?l=koffice-devel&m=126476850929196 ----------------------------------------------------------- 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) > > 2 > 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