Page countting

General TRichView support forum. Please post your questions here
Post Reply
cedo
Posts: 10
Joined: Wed Nov 28, 2012 10:16 am

Page countting

Post by cedo »

Is there a way to force the page counter to reset. Suppose I have two documents, which I show in preview mode all together. These documents must have a separate page numbers. How can I do this ?
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Do you ask about ScaleRichView?
Or TRichViewEdit printed by RichViewActions?
Or may be something else?
cedo
Posts: 10
Joined: Wed Nov 28, 2012 10:16 am

Post by cedo »

TRichViewEdit printed by RichViewActions
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

RVAControlPanel.FirstPageNumber
cedo
Posts: 10
Joined: Wed Nov 28, 2012 10:16 am

Post by cedo »

Suppose I have two documents merged in one document. The documents are separated by tag "pagebreak". I found the following part of the program code (RVXMLRoutines.pas):

function LoadRVDataFromXML(RVData: TCustomRVData; Node: TXMLTag;
Bullets: TImgListList; Default: PRichViewXMLStyle;
var InsertPosition: Integer;
PaletteMode: TRVPaletteAction; RVPalette: HPalette;
RVLogPalette: PLogPalette; PrevCP: TRVCPInfo;
StyleMap, ParaMap, ListMap: TRVIntegerList;
OnUnknownTag: TRVXMLUnknownTagEvent;
OnLoadControl: TRVXMLLoadControlEvent;
RVStyle: TRVStyle;
EditMode: Boolean;
var FirstTime, FullReformat: Boolean;
var NonFirstItemsAdded: Integer;
TagsArePChars: Boolean): Boolean;

...

else if S = 'pagebreak' then begin
PageBreak := True;
Continue;
end

...

if PageBreak then
RVData.GetItem(Position-1).PageBreakBefore := True;
PageBreak := False;

I would like to know what I should change to reset the page counter after tag "pagebreak".
cedo
Posts: 10
Joined: Wed Nov 28, 2012 10:16 am

Post by cedo »

What do you think about attribute "resetpagecounter" for tag "pagebreak" ?
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

No, we do not plan adding such parameters for a page break.
In future, we plan to implement section breaks, with each section having its own page numbering and layout information.
But it is not planned for near future, sorry.
Post Reply