Next / Previous / Contents / Shipman's homepage

21.4. Heading.rightContent(): Render a right-hand page heading

listext2
# - - -   H e a d i n g . r i g h t C o n t e n t

    def rightContent(self, pages, flowName):
        '''Producing a running head with the page number on the right.
        '''

For design, see Section 5.2, “XSL-FO design: General page layout”. Actual content is produced by Section 21.6, “Heading.__buildStatic(): Build a header's static-content.

listext2
        #-- 1
        self.__buildStatic(pages, flowName,
            self.__timestamp,
            h.leader(),
            h.inline(MONO_FONT, self.__pathPart),
            h.leader(),
            h.inline(MONO_FONT, self.__filePart),
            h.leader(length=PAGE_NO_GAP),
            E('page-number'),
            "/",
            str(self.inputFile.nOutPages))