Writer: Get currently displayed page number

Hi,

I'm trying to get the current page number of where the document is shown (scrolled to), not where the cursor is located.
(How) is this possible with the API?

I already tried accessing the status bar and extract the localized text "Page X of Y" but since I'm removing it to have less visual clutter, I cannot access it (plus I would have to parse it, locale dependent).

P.S.: I'm using C++

Regards,
Thomas