20#include <config_wasm_strip.h>
23#include <osl/diagnose.h>
42#if !ENABLE_WASM_STRIP_ACCESSIBILITY
54 OSL_FAIL(
"view shell doesn't belongs to a page preview - no adjustment of its view options");
71 OSL_ENSURE( 0 <= nRenderer && nRenderer <= nMaxRenderer,
"nRenderer out of bounds");
73 if (!pPrinter || nMaxRenderer < 0 || nRenderer < 0 || nRenderer > nMaxRenderer)
80 std::pair< sal_Int32, sal_Int32 > rPagesToPrint =
94 MapMode aMapMode( MapUnit::MapTwip );
101 if (rPagesToPrint.first > 0)
105 if (rPagesToPrint.second > 0)
145 nMaxColSz = 2 * aNxtPageSize.
Width();
146 nMaxRowSz = aNxtPageSize.
Height();
150 nMaxColSz = 2 * aSttPageSize.
Width();
151 nMaxRowSz = aSttPageSize.
Height();
155 nMaxColSz = aNxtPageSize.
Width() + aSttPageSize.
Width();
156 nMaxRowSz = std::max( aNxtPageSize.
Height(), aSttPageSize.
Height() );
185 Point aSttPt( (aTmpPrtSize.
Width() - nMaxColSz) / 2,
186 (aTmpPrtSize.
Height() - nMaxRowSz) / 2 );
187 for(
int nC = 0; nC < 2; ++nC )
194 Point aPos( aSttPt );
void SetOrigin(const Point &rOrigin)
void SetScaleY(const Fraction &rScaleY)
void SetScaleX(const Fraction &rScaleX)
SAL_WARN_UNUSED_RESULT Point PixelToLogic(const Point &rDevicePt) const
void Push(vcl::PushFlags nFlags=vcl::PushFlags::ALL)
tools::Long AdjustX(tools::Long nHorzMove)
const Size & GetPaperSizePixel() const
constexpr tools::Long Height() const
constexpr tools::Long Width() const
const SwRect & getFrameArea() const
SwLayoutFrame * GetUpper()
virtual void PaintSwFrame(vcl::RenderContext &rRenderContext, SwRect const &, SwPrintData const *const pPrintData=nullptr) const override
A page of the document layout.
sal_uInt16 GetPhyPageNum() const
page preview functionality in the writer
const SwRenderData & GetRenderData() const
Note: in the context where this class is used the pointers should always be valid during the lifetime...
void Pos(const Point &rNew)
void SSize(const Size &rNew)
PagePairsVec_t & GetPagePairsForProspectPrinting()
used for prospect printing only
o3tl::sorted_vector< sal_Int32 > & GetValidPagesSet()
void InvalidateAccessiblePreviewSelection(sal_uInt16 nSelPage)
void SetFirstVisPageInvalid()
SwPagePreviewLayout * PagePreviewLayout()
SwPagePreviewLayout * PagePreviewLayout()
SwRootFrame * GetLayout() const
void PrintProspect(OutputDevice *pOutDev, const SwPrintData &rPrintData, sal_Int32 nRenderer)
print brochure
SwRect maVisArea
The modern version of VisArea.
void AdjustOptionsForPagePreview(SwPrintData const &rPrintOptions)
adjust view options for page preview
SAL_DLLPRIVATE void PrepareForPrint(const SwPrintData &rOptions, bool bIsPDFExport=false)
void ShowPreviewSelection(sal_uInt16 nSelPage)
size_type count(const Value &v) const
SwPageFrame const * sw_getPage(SwRootFrame const &rLayout, sal_Int32 const nPage)