How can I put page numbers in opposite position in the header of ODD and EVEN pages in LOWriter?

Like the following picture, how can I put the page number in two opposite corners of Odd and Even pages? All the even pages will have the page number at the left part of the header. And all the odd pages will have the page number at the right part of the header. Also I want to put the Book Title in the header of the Even pages as well as the Chapter Title in the header of the Odd pages.

Basically I want to setup the headers of the odd and even pages like the picture.

Thanks in advance!

Use a pair of page styles (left/right rather than mirrored) and make use of the Header Right and Header Left paragraph styles to set alignment in each. Example and commentary in the alternate forum thread here.