26#include <document.hxx>
40 for (
SCCOL i=nStartCol;
i<nEndCol;
i++)
47 for (
SCROW nRow = nStartRow; nRow <= nEndRow-1; ++nRow)
49 SCROW nLastRow = nRow;
50 if (rDoc.
RowHidden(nRow, nTab,
nullptr, &nLastRow))
61 MapMode aHMMMode( MapUnit::Map100thMM,
Point(), rZoomX, rZoomY );
67 if ( aPixelLog.
X() && nTwipsX )
68 rScaleX =
Fraction(
static_cast<double>(aPixelLog.
X()) *
75 if ( aPixelLog.
Y() && nTwipsY )
76 rScaleY =
Fraction(
static_cast<double>(aPixelLog.
Y()) *
sal_Int32 GetNumerator() const
void ReduceInaccurate(unsigned nSignificantBits)
sal_Int32 GetDenominator() const
SAL_WARN_UNUSED_RESULT Point PixelToLogic(const Point &rDevicePt) const
constexpr tools::Long Y() const
constexpr tools::Long X() const
SC_DLLPUBLIC sal_uInt16 GetRowHeight(SCROW nRow, SCTAB nTab, bool bHiddenAsZero=true) const
SC_DLLPUBLIC sal_uInt16 GetColWidth(SCCOL nCol, SCTAB nTab, bool bHiddenAsZero=true) const
SC_DLLPUBLIC bool RowHidden(SCROW nRow, SCTAB nTab, SCROW *pFirstRow=nullptr, SCROW *pLastRow=nullptr) const
static void CalcScale(const ScDocument &rDoc, SCTAB nTab, SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, const OutputDevice *pDev, const Fraction &rZoomX, const Fraction &rZoomY, double nPPTX, double nPPTY, Fraction &rScaleX, Fraction &rScaleY)
static tools::Long ToPixel(sal_uInt16 nTwips, double nFactor)