20#include <com/sun/star/text/XPageCursor.hpp> 
   21#include <com/sun/star/beans/XPropertySet.hpp> 
   37    uno::Reference< text::XPageCursor > xPageCursor( xTVCursor, uno::UNO_QUERY_THROW );
 
   38    return xPageCursor->getPage();
 
   48    xTVCursor->collapseToStart();
 
   51    xStyleProps->getPropertyValue( 
"TopMargin" ) >>= 
nTopMargin;
 
   52    sal_Int32 nCurrentPos = xTVCursor->getPosition().Y;
 
   57    sal_Int32 nPageHeight = pViewSh ? pViewSh->
GetPageSize( nCurrentPage, 
false ).
Height() : 0;
 
   63    return Millimeter::getInPoints( nCurrentPos );
 
constexpr auto convertTwipToMm100(N n)
 
virtual const SwViewShell * GetCurrentViewShell() const =0
Returns the layout set at the document.
 
constexpr tools::Long Height() const
 
SwDoc * GetDoc()
returns Doc. But be careful!
 
IDocumentLayoutAccess const & getIDocumentLayoutAccess() const
 
Size GetPageSize(sal_uInt16 nPageNum, bool bSkipEmptyPages) const
 
tools::Long const nTopMargin
 
SwDocShell * getDocShell(const uno::Reference< frame::XModel > &xModel)
 
uno::Reference< style::XStyle > getCurrentPageStyle(const uno::Reference< frame::XModel > &xModel)
 
sal_Int32 getPageCount(const uno::Reference< frame::XModel > &xModel)
 
Reference< XModel > xModel