20 #ifndef INCLUDED_SC_SOURCE_UI_INC_PRINTFUN_HXX
21 #define INCLUDED_SC_SOURCE_UI_INC_PRINTFUN_HXX
43 #define RANGENO_NORANGE USHRT_MAX
45 #define PRINT_HEADER_WIDTH (1.0 * TWIPS_PER_CM)
46 #define PRINT_HEADER_HEIGHT (12.8 * TWIPS_PER_POINT)
109 : m_bSkipEmpty(false)
110 , m_bPrintArea(false)
176 , bPrintAreaValid(false)
184 , bSavedStateRanges(false)
279 const ScRange* pArea =
nullptr,
290 const ScRange* pArea =
nullptr,
347 void CalcZoom( sal_uInt16 nRangeNo );
371 bool bShLeft,
bool bShTop,
bool bShRight,
bool bShBottom );
void GetPrintState(ScPrintState &rState, bool bSavePageRanges=false)
void GetScaleData(Size &rPhysSize, tools::Long &rDocHdr, tools::Long &rDocFtr)
std::vector< SCROW > aPageEndY
void CalcZoom(sal_uInt16 nRangeNo)
void SetManualZoom(sal_uInt16 nNewZoom)
void SetUseStyleColor(bool bFlag)
ScPrintFunc(ScDocShell *pShell, SfxPrinter *pNewPrinter, SCTAB nTab, tools::Long nPage=0, tools::Long nDocP=0, const ScRange *pArea=nullptr, const ScPrintOptions *pOptions=nullptr, ScPageBreakData *pData=nullptr)
static void DrawToDev(ScDocument &rDoc, OutputDevice *pDev, double nPrintFactor, const tools::Rectangle &rBound, ScViewData *pViewData, bool bMetaFile)
bool IsLeft(tools::Long nPageNo)
void PrintPage(tools::Long nPageNo, SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2, bool bDoPrint, ScPreviewLocationData *pLocationData)
void ResetBreaks(SCTAB nTab)
const SvxShadowItem * pShadow
const SfxItemSet * pParamSet
void PrintRowHdr(SCROW nY1, SCROW nY2, tools::Long nScrX, tools::Long nScrY)
const ScPageHFItem * pRight
tools::Long TextHeight(const EditTextObject *pObject)
void PrintArea(SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2, tools::Long nScrX, tools::Long nScrY, bool bShLeft, bool bShTop, bool bShRight, bool bShBottom)
bool GetLastSourceRange(ScRange &rRange) const
tools::Rectangle aPageRect
std::vector< ScAddress > aNotePosList
ScPageTableParam aTableParam
const ScRange * pUserArea
sal_uInt16 GetRightMargin() const
void LocateColHdr(SCCOL nX1, SCCOL nX2, tools::Long nScrX, tools::Long nScrY, bool bRepCol, ScPreviewLocationData &rLocationData)
void InitParam(const ScPrintOptions *pOptions)
const SvxBoxItem * pBorder
sal_uInt16 GetTopMargin() const
tools::Long DoPrint(const MultiSelection &rPageRanges, tools::Long nStartPage, tools::Long nDisplayStart, bool bDoPrint, ScPreviewLocationData *pLocationData)
ScPageAreaParam aAreaParam
tools::Long PrintNotes(tools::Long nPageNo, tools::Long nNoteStart, bool bDoPrint, ScPreviewLocationData *pLocationData)
sc::PrintPageRanges m_aRanges
sal_uInt16 GetBottomMargin() const
tools::Long CountNotePages()
sal_uInt16 GetZoom() const
tools::Long DoNotes(tools::Long nNoteStart, bool bDoPrint, ScPreviewLocationData *pLocationData)
tools::Long GetTotalPages() const
void LocateArea(SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2, tools::Long nScrX, tools::Long nScrY, bool bRepCol, bool bRepRow, ScPreviewLocationData &rLocationData)
void ApplyPrintSettings()
bool IsMirror(tools::Long nPageNo)
void LocateRowHdr(SCROW nY1, SCROW nY2, tools::Long nScrX, tools::Long nScrY, bool bRepRow, ScPreviewLocationData &rLocationData)
ScPageBreakData * pPageData
bool HasPrintRange() const
VclPtr< SfxPrinter > pPrinter
void SetOffset(const Point &rOfs)
const SvxBoxItem * pBorderItem
sc::PrintPageRangesInput aPrintPageRangesInput
std::vector< ScPageRowEntry > aPageRows
const SvxBrushItem * pBackgroundItem
const ScPrintHFParam & GetFooter() const
void PrintColHdr(SCCOL nX1, SCCOL nX2, tools::Long nScrX, tools::Long nScrY)
ScHeaderFieldData aFieldData
bool AdjustPrintArea(bool bNew)
void SetDateTime(const DateTime &)
void PrintHF(tools::Long nPageNo, bool bHeader, tools::Long nStartY, bool bDoPrint, ScPreviewLocationData *pLocationData)
void SetDrawView(FmFormView *pNew)
VclPtr< OutputDevice > pDev
void Construct(const ScPrintOptions *pOptions)
void DrawBorder(tools::Long nScrX, tools::Long nScrY, tools::Long nScrW, tools::Long nScrH, const SvxBoxItem *pBorderData, const SvxBrushItem *pBackground, const SvxShadowItem *pShadow)
const SvxShadowItem * pShadowItem
const SvxBrushItem * pBack
std::unique_ptr< ScHeaderEditEngine > pEditEngine
tools::Long GetFirstPageNo() const
std::vector< SCCOL > aPageEndX
void SetClearFlag(bool bFlag)
const ScPrintHFParam & GetHeader() const
void UpdateHFHeight(ScPrintHFParam &rParam)
void SetRenderFlag(bool bFlag)
void SetExclusivelyDrawOleAndDrawObjects()
const ScPageHFItem * pLeft
sal_uInt16 GetLeftMargin() const
const Size & GetPageSize() const
std::unique_ptr< SfxItemSet > pEditDefaults