From koffice-devel Thu Dec 17 19:49:31 2009 From: Thomas Zander Date: Thu, 17 Dec 2009 19:49:31 +0000 To: koffice-devel Subject: Re: Review Request: Start page numbering from page 'X' Message-Id: <200912172049.35317.zander () kde ! org> X-MARC-Message: https://marc.info/?l=koffice-devel&m=126108793801505 Storing it in the page variable sounds a bit odd, KWord has pages that know their number, I think it should go there. See KWPageManager::appendPage() see line 257 in that file. It currently hardcodes the first page to be 1. This used to be a variable on the KWPageManager but this was removed at some point, not entirely sure why. The reason is likely that the starting page number is part of the KWPageStyle (which represents page styles in ODF). It would make sense to add a 'starts-at' variable to the KWPageStyle and load that and next make KWPageManager honor that. On Wednesday 16. December 2009 15.57.18 Mani Chandrasekar wrote: > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > http://reviewboard.kde.org/r/2385/ > ----------------------------------------------------------- > > 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 > -- Thomas Zander _______________________________________________ koffice-devel mailing list koffice-devel@kde.org https://mail.kde.org/mailman/listinfo/koffice-devel