sal_Int32 nCurrentPage = handleWdActiveEndPageNumber( xTVCursor );
SwDoc* pDoc = xModel->GetDocShell()->GetDoc();
SwViewShell* pViewSh = pDoc->getIDocumentLayoutAccess().GetCurrentViewShell();
sal_Int32 nPageHeight = pViewSh ? pViewSh->GetPageSize( nCurrentPage, false ).Height() : 0; // FIXME: handle multiple page style // it is very strange that the cursor position is incorrect when open Word file. // e.g. if current cursor in the top left of the text body of the first page without header, // the top value of current position should be 0, but is 201 when open a Word file.
nCurrentPos = nCurrentPos + nTopMargin - ( DEFAULT_PAGE_DISTANCE + convertTwipToMm100( nPageHeight ) ) * ( nCurrentPage - 1 ); return Millimeter::getInPoints( nCurrentPos );
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.