LibreOffice Module sc (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
ScPrintFunc Class Reference

#include <printfun.hxx>

Collaboration diagram for ScPrintFunc:
[legend]

Public Member Functions

 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)
 
 ScPrintFunc (ScDocShell *pShell, SfxPrinter *pNewPrinter, const ScPrintState &rState, const ScPrintOptions *pOptions)
 
 ScPrintFunc (OutputDevice *pOutDev, ScDocShell *pShell, SCTAB nTab, tools::Long nPage=0, tools::Long nDocP=0, const ScRange *pArea=nullptr, const ScPrintOptions *pOptions=nullptr)
 
 ScPrintFunc (OutputDevice *pOutDev, ScDocShell *pShell, const ScPrintState &rState, const ScPrintOptions *pOptions)
 
 ~ScPrintFunc ()
 
void SetDrawView (FmFormView *pNew)
 
void SetOffset (const Point &rOfs)
 
void SetManualZoom (sal_uInt16 nNewZoom)
 
void SetDateTime (const DateTime &)
 
void SetClearFlag (bool bFlag)
 
void SetUseStyleColor (bool bFlag)
 
void SetRenderFlag (bool bFlag)
 
void SetExclusivelyDrawOleAndDrawObjects ()
 
bool UpdatePages ()
 
void ApplyPrintSettings ()
 
tools::Long DoPrint (const MultiSelection &rPageRanges, tools::Long nStartPage, tools::Long nDisplayStart, bool bDoPrint, ScPreviewLocationData *pLocationData)
 
const SizeGetPageSize () const
 
Size GetDataSize () const
 
void GetScaleData (Size &rPhysSize, tools::Long &rDocHdr, tools::Long &rDocFtr)
 
tools::Long GetFirstPageNo () const
 
tools::Long GetTotalPages () const
 
sal_uInt16 GetZoom () const
 
void ResetBreaks (SCTAB nTab)
 
void GetPrintState (ScPrintState &rState, bool bSavePageRanges=false)
 
bool GetLastSourceRange (ScRange &rRange) const
 
sal_uInt16 GetLeftMargin () const
 
sal_uInt16 GetRightMargin () const
 
sal_uInt16 GetTopMargin () const
 
sal_uInt16 GetBottomMargin () const
 
const ScPrintHFParamGetHeader () const
 
const ScPrintHFParamGetFooter () const
 
bool HasPrintRange () const
 

Static Public Member Functions

static void DrawToDev (ScDocument &rDoc, OutputDevice *pDev, double nPrintFactor, const tools::Rectangle &rBound, ScViewData *pViewData, bool bMetaFile)
 

Private Member Functions

void Construct (const ScPrintOptions *pOptions)
 
void InitParam (const ScPrintOptions *pOptions)
 
void CalcZoom (sal_uInt16 nRangeNo)
 
void CalcPages ()
 
tools::Long CountPages ()
 
tools::Long CountNotePages ()
 
bool AdjustPrintArea (bool bNew)
 
Size GetDocPageSize ()
 
tools::Long TextHeight (const EditTextObject *pObject)
 
void MakeEditEngine ()
 
void UpdateHFHeight (ScPrintHFParam &rParam)
 
void InitModes ()
 
bool IsLeft (tools::Long nPageNo)
 
bool IsMirror (tools::Long nPageNo)
 
void MakeTableString ()
 
void PrintPage (tools::Long nPageNo, SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2, bool bDoPrint, ScPreviewLocationData *pLocationData)
 
void PrintArea (SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2, tools::Long nScrX, tools::Long nScrY, bool bShLeft, bool bShTop, bool bShRight, bool bShBottom)
 
void LocateArea (SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2, tools::Long nScrX, tools::Long nScrY, bool bRepCol, bool bRepRow, ScPreviewLocationData &rLocationData)
 
void PrintColHdr (SCCOL nX1, SCCOL nX2, tools::Long nScrX, tools::Long nScrY)
 
void PrintRowHdr (SCROW nY1, SCROW nY2, tools::Long nScrX, tools::Long nScrY)
 
void LocateColHdr (SCCOL nX1, SCCOL nX2, tools::Long nScrX, tools::Long nScrY, bool bRepCol, ScPreviewLocationData &rLocationData)
 
void LocateRowHdr (SCROW nY1, SCROW nY2, tools::Long nScrX, tools::Long nScrY, bool bRepRow, ScPreviewLocationData &rLocationData)
 
void PrintHF (tools::Long nPageNo, bool bHeader, tools::Long nStartY, bool bDoPrint, ScPreviewLocationData *pLocationData)
 
tools::Long PrintNotes (tools::Long nPageNo, tools::Long nNoteStart, bool bDoPrint, ScPreviewLocationData *pLocationData)
 
tools::Long DoNotes (tools::Long nNoteStart, bool bDoPrint, ScPreviewLocationData *pLocationData)
 
void DrawBorder (tools::Long nScrX, tools::Long nScrY, tools::Long nScrW, tools::Long nScrH, const SvxBoxItem *pBorderData, const SvxBrushItem *pBackground, const SvxShadowItem *pShadow)
 
void FillPageData ()
 

Private Attributes

ScDocShellpDocShell
 
ScDocumentrDoc
 
VclPtr< SfxPrinterpPrinter
 
VclPtr< OutputDevicepDev
 
FmFormViewpDrawView
 
MapMode aOldPrinterMode
 
Point aSrcOffset
 
Point aOffset
 
sal_uInt16 nManualZoom
 
bool bClearWin
 
bool bUseStyleColor
 
bool bIsRender
 
SCTAB nPrintTab
 
tools::Long nPageStart
 
tools::Long nDocPages
 
const ScRangepUserArea
 
const SfxItemSetpParamSet
 
bool bFromPrintState
 
sal_uInt16 nLeftMargin
 
sal_uInt16 nTopMargin
 
sal_uInt16 nRightMargin
 
sal_uInt16 nBottomMargin
 
bool bCenterHor
 
bool bCenterVer
 
bool bLandscape
 
bool bSourceRangeValid
 
SvxPageUsage nPageUsage
 
Size aPageSize
 
const SvxBoxItempBorderItem
 
const SvxBrushItempBackgroundItem
 
const SvxShadowItempShadowItem
 
ScRange aLastSourceRange
 
ScPrintHFParam aHdr
 
ScPrintHFParam aFtr
 
ScPageTableParam aTableParam
 
ScPageAreaParam aAreaParam
 
sal_uInt16 nZoom
 
bool bPrintCurrentTable
 
bool bMultiArea
 
bool mbHasPrintRange
 
tools::Long nTabPages
 
tools::Long nTotalPages
 
tools::Rectangle aPageRect
 
MapMode aLogicMode
 
MapMode aOffsetMode
 
MapMode aTwipMode
 
double nScaleX
 
double nScaleY
 
SCCOL nRepeatStartCol
 
SCCOL nRepeatEndCol
 
SCROW nRepeatStartRow
 
SCROW nRepeatEndRow
 
SCCOL nStartCol
 
SCROW nStartRow
 
SCCOL nEndCol
 
SCROW nEndRow
 
bool bPrintAreaValid
 
sc::PrintPageRanges m_aRanges
 
std::unique_ptr< ScHeaderEditEnginepEditEngine
 
std::unique_ptr< SfxItemSetpEditDefaults
 
ScHeaderFieldData aFieldData
 
std::vector< ScAddressaNotePosList
 
ScPageBreakDatapPageData
 

Detailed Description

Definition at line 228 of file printfun.hxx.

Constructor & Destructor Documentation

◆ ScPrintFunc() [1/4]

ScPrintFunc::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 
)

◆ ScPrintFunc() [2/4]

ScPrintFunc::ScPrintFunc ( ScDocShell pShell,
SfxPrinter pNewPrinter,
const ScPrintState rState,
const ScPrintOptions pOptions 
)

◆ ScPrintFunc() [3/4]

ScPrintFunc::ScPrintFunc ( OutputDevice pOutDev,
ScDocShell pShell,
SCTAB  nTab,
tools::Long  nPage = 0,
tools::Long  nDocP = 0,
const ScRange pArea = nullptr,
const ScPrintOptions pOptions = nullptr 
)

◆ ScPrintFunc() [4/4]

ScPrintFunc::ScPrintFunc ( OutputDevice pOutDev,
ScDocShell pShell,
const ScPrintState rState,
const ScPrintOptions pOptions 
)

◆ ~ScPrintFunc()

ScPrintFunc::~ScPrintFunc ( )

Definition at line 421 of file printfun.cxx.

References aOldPrinterMode, ScDocument::GetPrinter(), pEditDefaults, pEditEngine, and rDoc.

Member Function Documentation

◆ AdjustPrintArea()

bool ScPrintFunc::AdjustPrintArea ( bool  bNew)
private

◆ ApplyPrintSettings()

void ScPrintFunc::ApplyPrintSettings ( )

◆ CalcPages()

void ScPrintFunc::CalcPages ( )
private

◆ CalcZoom()

void ScPrintFunc::CalcZoom ( sal_uInt16  nRangeNo)
private

◆ Construct()

void ScPrintFunc::Construct ( const ScPrintOptions pOptions)
private

◆ CountNotePages()

tools::Long ScPrintFunc::CountNotePages ( )
private

◆ CountPages()

tools::Long ScPrintFunc::CountPages ( )
private

◆ DoNotes()

tools::Long ScPrintFunc::DoNotes ( tools::Long  nNoteStart,
bool  bDoPrint,
ScPreviewLocationData pLocationData 
)
private

◆ DoPrint()

tools::Long ScPrintFunc::DoPrint ( const MultiSelection rPageRanges,
tools::Long  nStartPage,
tools::Long  nDisplayStart,
bool  bDoPrint,
ScPreviewLocationData pLocationData 
)

◆ DrawBorder()

void ScPrintFunc::DrawBorder ( tools::Long  nScrX,
tools::Long  nScrY,
tools::Long  nScrW,
tools::Long  nScrH,
const SvxBoxItem pBorderData,
const SvxBrushItem pBackground,
const SvxShadowItem pShadow 
)
private

◆ DrawToDev()

void ScPrintFunc::DrawToDev ( ScDocument rDoc,
OutputDevice pDev,
double  nPrintFactor,
const tools::Rectangle rBound,
ScViewData pViewData,
bool  bMetaFile 
)
static

evaluate nPrintFactor !!!

hand over Flag at FillInfo !!!!!

SetUseStyleColor ??

nZoom for GetFont in OutputData ???

Definition at line 466 of file printfun.cxx.

References ScRange::aEnd, ScRange::aStart, ATTR_PAGE_FORMULAS(), ATTR_PAGE_GRID(), ATTR_PAGE_NULLVALS(), tools::Rectangle::Bottom(), ScAddress::Col(), COL_BLACK(), ScOutputData::DrawBackground(), ScOutputData::DrawEdit(), ScOutputData::DrawFrame(), ScOutputData::DrawGrid(), ScOutputData::DrawShadow(), ScOutputData::DrawSparklines(), ScOutputData::DrawStrings(), ScDocument::FillInfo(), SfxStyleSheetBasePool::Find(), SfxItemSet::Get(), ScViewData::GetActivePart(), ScDocument::GetColWidth(), ScDocument::GetDrawLayer(), ScDocument::GetEmbedded(), SfxStyleSheetBase::GetItemSet(), ScViewData::GetLogicMode(), SdrPaintView::GetModel(), ScViewOptions::GetOption(), SdrModel::GetPage(), ScDocument::GetPageStyle(), ScViewData::GetPosX(), ScViewData::GetPosY(), ScDocument::GetRange(), ScDocument::GetRowHeight(), ScOutputData::GetScrH(), ScOutputData::GetScrW(), ScDocument::GetStyleSheetPool(), ScViewData::GetTabNo(), ScDocument::GetViewOptions(), Size::Height(), i, ScDocument::IsEmbedded(), ScDocument::IsLayoutRTL(), lcl_HidePrint(), tools::Rectangle::Left(), ScDocument::MaxCol(), ScDocument::MaxRow(), nScaleX, nScaleY, OLE_STD_CELLS_X, OLE_STD_CELLS_Y, OUTTYPE_PRINTER, pDev, pDrawView, ScOutputData::PostPrintDrawingLayer(), ScOutputData::PrePrintDrawingLayer(), ScOutputData::PrintDrawingLayer(), rDoc, ScDocument::ResetEmbedded(), tools::Rectangle::Right(), ScAddress::Row(), rSet, SC_LAYER_BACK(), SC_LAYER_FRONT(), SC_LAYER_INTERN(), ScOutputData::SetDrawView(), ScDocument::SetEmbedded(), ScOutputData::SetMetaFileMode(), SdrPaintView::SetPrintPreview(), ScOutputData::SetShowFormulas(), ScOutputData::SetShowNullValues(), ScOutputData::SetSnapPixel(), FmFormView::ShowSdrPage(), tools::Rectangle::Top(), ScViewData::VisibleCellsX(), ScViewData::VisibleCellsY(), VOPT_FORMULAS, VOPT_GRID, VOPT_NULLVALS, WhichH(), WhichV(), Size::Width(), Point::X(), and Point::Y().

Referenced by ScDocShell::Draw(), ScTransferObj::PaintToDev(), and ScModelObj::render().

◆ FillPageData()

void ScPrintFunc::FillPageData ( )
private

◆ GetBottomMargin()

sal_uInt16 ScPrintFunc::GetBottomMargin ( ) const
inline

Definition at line 377 of file printfun.hxx.

References nBottomMargin.

◆ GetDataSize()

Size ScPrintFunc::GetDataSize ( ) const

◆ GetDocPageSize()

Size ScPrintFunc::GetDocPageSize ( )
private

◆ GetFirstPageNo()

tools::Long ScPrintFunc::GetFirstPageNo ( ) const
inline

◆ GetFooter()

const ScPrintHFParam & ScPrintFunc::GetFooter ( ) const
inline

Definition at line 379 of file printfun.hxx.

References aFtr.

◆ GetHeader()

const ScPrintHFParam & ScPrintFunc::GetHeader ( ) const
inline

Definition at line 378 of file printfun.hxx.

References aHdr.

◆ GetLastSourceRange()

bool ScPrintFunc::GetLastSourceRange ( ScRange rRange) const

Definition at line 379 of file printfun.cxx.

References aLastSourceRange, and bSourceRangeValid.

◆ GetLeftMargin()

sal_uInt16 ScPrintFunc::GetLeftMargin ( ) const
inline

Definition at line 374 of file printfun.hxx.

References nLeftMargin.

◆ GetPageSize()

const Size & ScPrintFunc::GetPageSize ( ) const
inline

Definition at line 362 of file printfun.hxx.

References aPageSize.

Referenced by ScModelObj::getRenderer().

◆ GetPrintState()

void ScPrintFunc::GetPrintState ( ScPrintState rState,
bool  bSavePageRanges = false 
)

◆ GetRightMargin()

sal_uInt16 ScPrintFunc::GetRightMargin ( ) const
inline

Definition at line 375 of file printfun.hxx.

References nRightMargin.

◆ GetScaleData()

void ScPrintFunc::GetScaleData ( Size rPhysSize,
tools::Long rDocHdr,
tools::Long rDocFtr 
)

◆ GetTopMargin()

sal_uInt16 ScPrintFunc::GetTopMargin ( ) const
inline

Definition at line 376 of file printfun.hxx.

References nTopMargin.

◆ GetTotalPages()

tools::Long ScPrintFunc::GetTotalPages ( ) const
inline

Definition at line 367 of file printfun.hxx.

References nTotalPages.

Referenced by ScPreview::CalcPages(), and ScPrintFuncCache::ScPrintFuncCache().

◆ GetZoom()

sal_uInt16 ScPrintFunc::GetZoom ( ) const
inline

Definition at line 368 of file printfun.hxx.

References nZoom.

◆ HasPrintRange()

bool ScPrintFunc::HasPrintRange ( ) const
inline

Definition at line 381 of file printfun.hxx.

References mbHasPrintRange.

Referenced by ScPreview::CalcPages().

◆ InitModes()

void ScPrintFunc::InitModes ( )
private

◆ InitParam()

void ScPrintFunc::InitParam ( const ScPrintOptions pOptions)
private

walk through all PrintAreas of the table !!!

Definition at line 859 of file printfun.cxx.

References aAreaParam, ScRange::aEnd, aFieldData, aFtr, aHdr, ScHeaderFieldData::aLongDocName, aPageSize, ScPageAreaParam::aPrintArea, ScHeaderFieldData::aShortDocName, ScRange::aStart, aTableParam, ScHeaderFieldData::aTitle, ATTR_BACKGROUND(), ATTR_BORDER(), ATTR_LRSPACE(), ATTR_PAGE(), ATTR_PAGE_CHARTS(), ATTR_PAGE_DRAWINGS(), ATTR_PAGE_FIRSTPAGENO(), ATTR_PAGE_FOOTERFIRST(), ATTR_PAGE_FOOTERLEFT(), ATTR_PAGE_FOOTERRIGHT(), ATTR_PAGE_FOOTERSET(), ATTR_PAGE_FORMULAS(), ATTR_PAGE_GRID(), ATTR_PAGE_HEADERFIRST(), ATTR_PAGE_HEADERLEFT(), ATTR_PAGE_HEADERRIGHT(), ATTR_PAGE_HEADERS(), ATTR_PAGE_HEADERSET(), ATTR_PAGE_HORCENTER(), ATTR_PAGE_NOTES(), ATTR_PAGE_NULLVALS(), ATTR_PAGE_OBJECTS(), ATTR_PAGE_SCALE(), ATTR_PAGE_SCALETO(), ATTR_PAGE_SCALETOPAGES(), ATTR_PAGE_SIZE(), ATTR_PAGE_TOPDOWN(), ATTR_PAGE_VERCENTER(), ATTR_SHADOW(), ATTR_ULSPACE(), ScPageTableParam::bCellContent, bCenterHor, bCenterVer, ScPageTableParam::bCharts, ScPageTableParam::bDrawings, ScPageTableParam::bForceBreaks, ScPageTableParam::bFormulas, ScPageTableParam::bGrid, ScPageTableParam::bHeaders, bLandscape, ScPageTableParam::bLeftRight, bMultiArea, ScPageTableParam::bNotes, ScPageTableParam::bNullVals, ScPageTableParam::bObjects, ScPageAreaParam::bPrintArea, bPrintAreaValid, bPrintCurrentTable, ScPageAreaParam::bRepeatCol, ScPageAreaParam::bRepeatRow, ScPageTableParam::bScaleAll, ScPageTableParam::bScaleNone, ScPageTableParam::bScalePageNum, ScPageTableParam::bScaleTo, ScPageTableParam::bSkipEmpty, ScPageTableParam::bTopDown, CalcPages(), CountNotePages(), CountPages(), ScHeaderFieldData::eNumType, SfxItemSet::Get(), SfxItemPool::GetDefaultItem(), SfxObjectShell::getDocProperties(), ScPrintOptions::GetForceBreaks(), ScPageScaleToItem::GetHeight(), SfxItemSet::GetItemIfSet(), SfxItemSet::GetItemState(), INetURLObject::GetLastName(), SvxLRSpaceItem::GetLeft(), SvxULSpaceItem::GetLower(), INetURLObject::GetMainURL(), SfxObjectShell::GetMedium(), SvxPageItem::GetNumType(), SvxPageItem::GetPageUsage(), SvxPaperInfo::GetPaperSize(), SfxItemSet::GetPool(), ScDocument::GetPrintRange(), ScDocument::GetPrintRangeCount(), ScDocument::GetRepeatColRange(), ScDocument::GetRepeatRowRange(), SvxLRSpaceItem::GetRight(), ScPrintOptions::GetSkipEmpty(), SfxObjectShell::GetTitle(), SvxULSpaceItem::GetUpper(), SfxMedium::GetURLObject(), CntUInt16Item::GetValue(), ScPageScaleToItem::GetWidth(), ScDocument::HasPrintRange(), Size::Height(), SvxPageItem::IsLandscape(), ScDocument::IsPrintEntireSheet(), ScPageScaleToItem::IsValid(), ScDocument::IsVisible(), lcl_FillHFParam(), mbHasPrintRange, nBottomMargin, ScPrintHFParam::nDistance, nDocPages, ScPageTableParam::nFirstPageNo, nLeftMargin, nPageStart, nPageUsage, nPrintTab, nRepeatEndCol, nRepeatEndRow, nRepeatStartCol, nRepeatStartRow, nRightMargin, ScPageTableParam::nScaleAll, ScPageTableParam::nScaleHeight, ScPageTableParam::nScalePageNum, ScPageTableParam::nScaleWidth, nTabPages, nTopMargin, ScHeaderFieldData::nTotalPages, nTotalPages, PAPER_A4, pBackgroundItem, pBorderItem, pDocShell, ScPrintHFParam::pFirst, ScPrintHFParam::pLeft, pPageData, pParamSet, ScPrintHFParam::pRight, pShadowItem, pUserArea, rDoc, SCCOL_REPEAT_NONE, SCROW_REPEAT_NONE, SetDateTime(), ScAddress::SetTab(), DateTime::SYSTEM, INetURLObject::Unambiguous, and Size::Width().

Referenced by Construct().

◆ IsLeft()

bool ScPrintFunc::IsLeft ( tools::Long  nPageNo)
private

Definition at line 1703 of file printfun.cxx.

References nPageUsage.

Referenced by PrintHF().

◆ IsMirror()

bool ScPrintFunc::IsMirror ( tools::Long  nPageNo)
private

Definition at line 1698 of file printfun.cxx.

References nPageUsage.

Referenced by PrintNotes(), and PrintPage().

◆ LocateArea()

void ScPrintFunc::LocateArea ( SCCOL  nX1,
SCROW  nY1,
SCCOL  nX2,
SCROW  nY2,
tools::Long  nScrX,
tools::Long  nScrY,
bool  bRepCol,
bool  bRepRow,
ScPreviewLocationData rLocationData 
)
private

◆ LocateColHdr()

void ScPrintFunc::LocateColHdr ( SCCOL  nX1,
SCCOL  nX2,
tools::Long  nScrX,
tools::Long  nScrY,
bool  bRepCol,
ScPreviewLocationData rLocationData 
)
private

◆ LocateRowHdr()

void ScPrintFunc::LocateRowHdr ( SCROW  nY1,
SCROW  nY2,
tools::Long  nScrX,
tools::Long  nScrY,
bool  bRepRow,
ScPreviewLocationData rLocationData 
)
private

◆ MakeEditEngine()

void ScPrintFunc::MakeEditEngine ( )
private

◆ MakeTableString()

void ScPrintFunc::MakeTableString ( )
private

Definition at line 1715 of file printfun.cxx.

References aFieldData, ScHeaderFieldData::aTabName, ScDocument::GetName(), nPrintTab, and rDoc.

Referenced by DoPrint().

◆ PrintArea()

void ScPrintFunc::PrintArea ( SCCOL  nX1,
SCROW  nY1,
SCCOL  nX2,
SCROW  nY2,
tools::Long  nScrX,
tools::Long  nScrY,
bool  bShLeft,
bool  bShTop,
bool  bShRight,
bool  bShBottom 
)
private

◆ PrintColHdr()

void ScPrintFunc::PrintColHdr ( SCCOL  nX1,
SCCOL  nX2,
tools::Long  nScrX,
tools::Long  nScrY 
)
private

◆ PrintHF()

void ScPrintFunc::PrintHF ( tools::Long  nPageNo,
bool  bHeader,
tools::Long  nStartY,
bool  bDoPrint,
ScPreviewLocationData pLocationData 
)
private

◆ PrintNotes()

tools::Long ScPrintFunc::PrintNotes ( tools::Long  nPageNo,
tools::Long  nNoteStart,
bool  bDoPrint,
ScPreviewLocationData pLocationData 
)
private

◆ PrintPage()

void ScPrintFunc::PrintPage ( tools::Long  nPageNo,
SCCOL  nX1,
SCROW  nY1,
SCCOL  nX2,
SCROW  nY2,
bool  bDoPrint,
ScPreviewLocationData pLocationData 
)
private

Line width?

Line width?

subtract one pixel less?

adjust nEndX/Y

Definition at line 2040 of file printfun.cxx.

References aAreaParam, aFtr, aHdr, aLastSourceRange, aOffsetMode, aPageRect, aPageSize, aTableParam, aTwipMode, bCenterHor, bCenterVer, ScPageTableParam::bCharts, bClearWin, ScPageTableParam::bDrawings, ScPrintHFParam::bEnable, ScPageTableParam::bGrid, ScPageTableParam::bHeaders, ScPageTableParam::bObjects, tools::Rectangle::Bottom(), ScPageAreaParam::bRepeatCol, ScPageAreaParam::bRepeatRow, bSourceRangeValid, bUseStyleColor, SvxShadowItem::CalcShadowSpace(), COL_BLACK(), COL_WHITE(), Display, svtools::DOCCOLOR, DrawBorder(), ScPatternAttr::fillFont(), svtools::FONTCOLOR, SvxBoxItem::GetBottom(), ScDocument::GetColWidth(), SvxBoxItem::GetDistance(), tools::Rectangle::GetHeight(), SvxBoxItem::GetLeft(), SvxShadowItem::GetLocation(), ScDocument::GetPool(), SvxBoxItem::GetRight(), ScDocument::GetRowHeight(), ScDocument::GetScaledRowHeight(), SvxBoxItem::GetTop(), tools::Rectangle::GetWidth(), Size::Height(), i, ScDocument::IsLayoutRTL(), IsMirror(), lcl_LineTotal(), tools::Rectangle::Left(), LocateArea(), LocateColHdr(), LocateRowHdr(), ScPrintHFParam::nDistance, ScPrintHFParam::nHeight, nLeftMargin, nPrintTab, nRepeatEndCol, nRepeatEndRow, nRepeatStartCol, nRepeatStartRow, nRightMargin, nScaleX, nScaleY, nZoom, pBackgroundItem, pBorderItem, pDev, pDrawView, pPrinter, Print, PRINT_HEADER_HEIGHT, PRINT_HEADER_WIDTH, PrintArea(), PrintColHdr(), PrintHF(), PrintRowHdr(), pShadowItem, rDoc, tools::Rectangle::Right(), SC_MOD, SdrPaintView::setHideChart(), SdrPaintView::setHideDraw(), SdrPaintView::setHideFormControl(), SdrPaintView::setHideOle(), tools::Rectangle::SetLeft(), tools::Rectangle::SetRight(), tools::Rectangle::Top(), and Size::Width().

Referenced by DoPrint().

◆ PrintRowHdr()

void ScPrintFunc::PrintRowHdr ( SCROW  nY1,
SCROW  nY2,
tools::Long  nScrX,
tools::Long  nScrY 
)
private

◆ ResetBreaks()

void ScPrintFunc::ResetBreaks ( SCTAB  nTab)

◆ SetClearFlag()

void ScPrintFunc::SetClearFlag ( bool  bFlag)

Definition at line 2396 of file printfun.cxx.

References bClearWin.

◆ SetDateTime()

void ScPrintFunc::SetDateTime ( const DateTime rDateTime)

Definition at line 1137 of file printfun.cxx.

References ScHeaderFieldData::aDateTime, and aFieldData.

Referenced by InitParam().

◆ SetDrawView()

void ScPrintFunc::SetDrawView ( FmFormView pNew)

Definition at line 434 of file printfun.cxx.

References pDrawView.

◆ SetExclusivelyDrawOleAndDrawObjects()

void ScPrintFunc::SetExclusivelyDrawOleAndDrawObjects ( )

◆ SetManualZoom()

void ScPrintFunc::SetManualZoom ( sal_uInt16  nNewZoom)

Definition at line 2391 of file printfun.cxx.

References nManualZoom.

◆ SetOffset()

void ScPrintFunc::SetOffset ( const Point rOfs)

Definition at line 2386 of file printfun.cxx.

References aSrcOffset.

◆ SetRenderFlag()

void ScPrintFunc::SetRenderFlag ( bool  bFlag)

Definition at line 2408 of file printfun.cxx.

References bIsRender.

Referenced by ScPrintFuncCache::InitLocations().

◆ SetUseStyleColor()

void ScPrintFunc::SetUseStyleColor ( bool  bFlag)

Definition at line 2401 of file printfun.cxx.

References bUseStyleColor, and pEditEngine.

◆ TextHeight()

tools::Long ScPrintFunc::TextHeight ( const EditTextObject pObject)
private

Definition at line 788 of file printfun.cxx.

References pEditDefaults, pEditEngine, and pObject.

Referenced by PrintHF(), and UpdateHFHeight().

◆ UpdateHFHeight()

void ScPrintFunc::UpdateHFHeight ( ScPrintHFParam rParam)
private

◆ UpdatePages()

bool ScPrintFunc::UpdatePages ( )

Member Data Documentation

◆ aAreaParam

ScPageAreaParam ScPrintFunc::aAreaParam
private

Definition at line 275 of file printfun.hxx.

Referenced by CalcPages(), CountNotePages(), CountPages(), FillPageData(), InitParam(), and PrintPage().

◆ aFieldData

ScHeaderFieldData ScPrintFunc::aFieldData
private

Definition at line 309 of file printfun.hxx.

Referenced by DoPrint(), InitParam(), MakeEditEngine(), MakeTableString(), PrintHF(), and SetDateTime().

◆ aFtr

ScPrintHFParam ScPrintFunc::aFtr
private

◆ aHdr

ScPrintHFParam ScPrintFunc::aHdr
private

◆ aLastSourceRange

ScRange ScPrintFunc::aLastSourceRange
private

Definition at line 271 of file printfun.hxx.

Referenced by GetLastSourceRange(), and PrintPage().

◆ aLogicMode

MapMode ScPrintFunc::aLogicMode
private

Definition at line 287 of file printfun.hxx.

Referenced by InitModes(), LocateArea(), and PrintArea().

◆ aNotePosList

std::vector<ScAddress> ScPrintFunc::aNotePosList
private

Definition at line 311 of file printfun.hxx.

Referenced by CountNotePages(), DoNotes(), and PrintNotes().

◆ aOffset

Point ScPrintFunc::aOffset
private

Definition at line 240 of file printfun.hxx.

Referenced by InitModes().

◆ aOffsetMode

MapMode ScPrintFunc::aOffsetMode
private

Definition at line 288 of file printfun.hxx.

Referenced by DoPrint(), InitModes(), LocateArea(), PrintArea(), PrintNotes(), and PrintPage().

◆ aOldPrinterMode

MapMode ScPrintFunc::aOldPrinterMode
private

Definition at line 237 of file printfun.hxx.

Referenced by Construct(), and ~ScPrintFunc().

◆ aPageRect

tools::Rectangle ScPrintFunc::aPageRect
private

Definition at line 285 of file printfun.hxx.

Referenced by DoNotes(), GetDocPageSize(), PrintHF(), PrintNotes(), and PrintPage().

◆ aPageSize

Size ScPrintFunc::aPageSize
private

◆ aSrcOffset

Point ScPrintFunc::aSrcOffset
private

Definition at line 239 of file printfun.hxx.

Referenced by InitModes(), ScPrintFunc(), and SetOffset().

◆ aTableParam

ScPageTableParam ScPrintFunc::aTableParam
private

◆ aTwipMode

MapMode ScPrintFunc::aTwipMode
private

Definition at line 289 of file printfun.hxx.

Referenced by DoNotes(), GetDocPageSize(), InitModes(), PrintHF(), and PrintPage().

◆ bCenterHor

bool ScPrintFunc::bCenterHor
private

Definition at line 260 of file printfun.hxx.

Referenced by InitParam(), and PrintPage().

◆ bCenterVer

bool ScPrintFunc::bCenterVer
private

Definition at line 261 of file printfun.hxx.

Referenced by InitParam(), and PrintPage().

◆ bClearWin

bool ScPrintFunc::bClearWin
private

Definition at line 242 of file printfun.hxx.

Referenced by Construct(), PrintNotes(), PrintPage(), and SetClearFlag().

◆ bFromPrintState

bool ScPrintFunc::bFromPrintState
private

Definition at line 253 of file printfun.hxx.

Referenced by Construct(), and ScPrintFunc().

◆ bIsRender

bool ScPrintFunc::bIsRender
private

Definition at line 244 of file printfun.hxx.

Referenced by Construct(), DrawBorder(), InitModes(), PrintArea(), and SetRenderFlag().

◆ bLandscape

bool ScPrintFunc::bLandscape
private

Definition at line 262 of file printfun.hxx.

Referenced by ApplyPrintSettings(), and InitParam().

◆ bMultiArea

bool ScPrintFunc::bMultiArea
private

Definition at line 280 of file printfun.hxx.

Referenced by CountNotePages(), CountPages(), DoPrint(), and InitParam().

◆ bPrintAreaValid

bool ScPrintFunc::bPrintAreaValid
private

◆ bPrintCurrentTable

bool ScPrintFunc::bPrintCurrentTable
private

Definition at line 279 of file printfun.hxx.

Referenced by CountNotePages(), CountPages(), and InitParam().

◆ bSourceRangeValid

bool ScPrintFunc::bSourceRangeValid
private

Definition at line 263 of file printfun.hxx.

Referenced by DoPrint(), GetLastSourceRange(), and PrintPage().

◆ bUseStyleColor

bool ScPrintFunc::bUseStyleColor
private

◆ m_aRanges

sc::PrintPageRanges ScPrintFunc::m_aRanges
private

◆ mbHasPrintRange

bool ScPrintFunc::mbHasPrintRange
private

Definition at line 281 of file printfun.hxx.

Referenced by HasPrintRange(), and InitParam().

◆ nBottomMargin

sal_uInt16 ScPrintFunc::nBottomMargin
private

Definition at line 259 of file printfun.hxx.

Referenced by GetBottomMargin(), GetDataSize(), GetDocPageSize(), GetScaleData(), and InitParam().

◆ nDocPages

tools::Long ScPrintFunc::nDocPages
private

Definition at line 248 of file printfun.hxx.

Referenced by GetPrintState(), InitParam(), and ScPrintFunc().

◆ nEndCol

SCCOL ScPrintFunc::nEndCol
private

◆ nEndRow

SCROW ScPrintFunc::nEndRow
private

◆ nLeftMargin

sal_uInt16 ScPrintFunc::nLeftMargin
private

◆ nManualZoom

sal_uInt16 ScPrintFunc::nManualZoom
private

Definition at line 241 of file printfun.hxx.

Referenced by Construct(), InitModes(), and SetManualZoom().

◆ nPageStart

tools::Long ScPrintFunc::nPageStart
private

Definition at line 247 of file printfun.hxx.

Referenced by GetPrintState(), InitParam(), and ScPrintFunc().

◆ nPageUsage

SvxPageUsage ScPrintFunc::nPageUsage
private

Definition at line 265 of file printfun.hxx.

Referenced by InitParam(), IsLeft(), and IsMirror().

◆ nPrintTab

SCTAB ScPrintFunc::nPrintTab
private

◆ nRepeatEndCol

SCCOL ScPrintFunc::nRepeatEndCol
private

Definition at line 294 of file printfun.hxx.

Referenced by CalcZoom(), InitParam(), PrintPage(), and UpdatePages().

◆ nRepeatEndRow

SCROW ScPrintFunc::nRepeatEndRow
private

Definition at line 296 of file printfun.hxx.

Referenced by CalcZoom(), InitParam(), PrintPage(), and UpdatePages().

◆ nRepeatStartCol

SCCOL ScPrintFunc::nRepeatStartCol
private

Definition at line 293 of file printfun.hxx.

Referenced by CalcZoom(), InitParam(), PrintPage(), and UpdatePages().

◆ nRepeatStartRow

SCROW ScPrintFunc::nRepeatStartRow
private

Definition at line 295 of file printfun.hxx.

Referenced by CalcZoom(), InitParam(), PrintPage(), and UpdatePages().

◆ nRightMargin

sal_uInt16 ScPrintFunc::nRightMargin
private

◆ nScaleX

double ScPrintFunc::nScaleX
private

◆ nScaleY

double ScPrintFunc::nScaleY
private

◆ nStartCol

SCCOL ScPrintFunc::nStartCol
private

◆ nStartRow

SCROW ScPrintFunc::nStartRow
private

◆ nTabPages

tools::Long ScPrintFunc::nTabPages
private

Definition at line 282 of file printfun.hxx.

Referenced by GetPrintState(), InitParam(), and ScPrintFunc().

◆ nTopMargin

sal_uInt16 ScPrintFunc::nTopMargin
private

Definition at line 257 of file printfun.hxx.

Referenced by GetDataSize(), GetDocPageSize(), GetScaleData(), GetTopMargin(), and InitParam().

◆ nTotalPages

tools::Long ScPrintFunc::nTotalPages
private

Definition at line 283 of file printfun.hxx.

Referenced by GetPrintState(), GetTotalPages(), InitParam(), and ScPrintFunc().

◆ nZoom

sal_uInt16 ScPrintFunc::nZoom
private

◆ pBackgroundItem

const SvxBrushItem* ScPrintFunc::pBackgroundItem
private

Definition at line 268 of file printfun.hxx.

Referenced by Construct(), InitParam(), and PrintPage().

◆ pBorderItem

const SvxBoxItem* ScPrintFunc::pBorderItem
private

Definition at line 267 of file printfun.hxx.

Referenced by Construct(), GetDocPageSize(), InitParam(), and PrintPage().

◆ pDev

VclPtr<OutputDevice> ScPrintFunc::pDev
private

◆ pDocShell

ScDocShell* ScPrintFunc::pDocShell
private

Definition at line 231 of file printfun.hxx.

Referenced by Construct(), DrawBorder(), InitModes(), InitParam(), and UpdatePages().

◆ pDrawView

FmFormView* ScPrintFunc::pDrawView
private

Definition at line 235 of file printfun.hxx.

Referenced by DrawToDev(), PrintArea(), PrintPage(), and SetDrawView().

◆ pEditDefaults

std::unique_ptr<SfxItemSet> ScPrintFunc::pEditDefaults
private

Definition at line 307 of file printfun.hxx.

Referenced by Construct(), DoNotes(), MakeEditEngine(), PrintHF(), TextHeight(), and ~ScPrintFunc().

◆ pEditEngine

std::unique_ptr<ScHeaderEditEngine> ScPrintFunc::pEditEngine
private

◆ pPageData

ScPageBreakData* ScPrintFunc::pPageData
private

Definition at line 313 of file printfun.hxx.

Referenced by Construct(), CountPages(), FillPageData(), and InitParam().

◆ pParamSet

const SfxItemSet* ScPrintFunc::pParamSet
private

Definition at line 252 of file printfun.hxx.

Referenced by ApplyPrintSettings(), Construct(), DoPrint(), InitParam(), and UpdatePages().

◆ pPrinter

VclPtr<SfxPrinter> ScPrintFunc::pPrinter
private

◆ pShadowItem

const SvxShadowItem* ScPrintFunc::pShadowItem
private

Definition at line 269 of file printfun.hxx.

Referenced by Construct(), GetDocPageSize(), InitParam(), and PrintPage().

◆ pUserArea

const ScRange* ScPrintFunc::pUserArea
private

Definition at line 250 of file printfun.hxx.

Referenced by InitParam().

◆ rDoc

ScDocument& ScPrintFunc::rDoc
private

The documentation for this class was generated from the following files: