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, long nPage=0, 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, long nPage=0, 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 ()
 
long DoPrint (const MultiSelection &rPageRanges, long nStartPage, long nDisplayStart, bool bDoPrint, ScPreviewLocationData *pLocationData)
 
const SizeGetPageSize () const
 
Size GetDataSize () const
 
void GetScaleData (Size &rPhysSize, long &rDocHdr, long &rDocFtr)
 
long GetFirstPageNo () const
 
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 *pDoc, 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 ()
 
long CountPages ()
 
long CountNotePages ()
 
bool AdjustPrintArea (bool bNew)
 
Size GetDocPageSize ()
 
long TextHeight (const EditTextObject *pObject)
 
void MakeEditEngine ()
 
void UpdateHFHeight (ScPrintHFParam &rParam)
 
void InitModes ()
 
bool IsLeft (long nPageNo)
 
bool IsMirror (long nPageNo)
 
void MakeTableString ()
 
void PrintPage (long nPageNo, SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2, bool bDoPrint, ScPreviewLocationData *pLocationData)
 
void PrintArea (SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2, long nScrX, long nScrY, bool bShLeft, bool bShTop, bool bShRight, bool bShBottom)
 
void LocateArea (SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2, long nScrX, long nScrY, bool bRepCol, bool bRepRow, ScPreviewLocationData &rLocationData)
 
void PrintColHdr (SCCOL nX1, SCCOL nX2, long nScrX, long nScrY)
 
void PrintRowHdr (SCROW nY1, SCROW nY2, long nScrX, long nScrY)
 
void LocateColHdr (SCCOL nX1, SCCOL nX2, long nScrX, long nScrY, bool bRepCol, ScPreviewLocationData &rLocationData)
 
void LocateRowHdr (SCROW nY1, SCROW nY2, long nScrX, long nScrY, bool bRepRow, ScPreviewLocationData &rLocationData)
 
void PrintHF (long nPageNo, bool bHeader, long nStartY, bool bDoPrint, ScPreviewLocationData *pLocationData)
 
long PrintNotes (long nPageNo, long nNoteStart, bool bDoPrint, ScPreviewLocationData *pLocationData)
 
long DoNotes (long nNoteStart, bool bDoPrint, ScPreviewLocationData *pLocationData)
 
void DrawBorder (long nScrX, long nScrY, long nScrW, long nScrH, const SvxBoxItem *pBorderData, const SvxBrushItem *pBackground, const SvxShadowItem *pShadow)
 
void FillPageData ()
 

Private Attributes

ScDocShellpDocShell
 
ScDocumentpDoc
 
VclPtr< SfxPrinterpPrinter
 
VclPtr< OutputDevicepDev
 
FmFormViewpDrawView
 
MapMode aOldPrinterMode
 
Point aSrcOffset
 
Point aOffset
 
sal_uInt16 nManualZoom
 
bool bClearWin
 
bool bUseStyleColor
 
bool bIsRender
 
SCTAB nPrintTab
 
long nPageStart
 
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
 
long nTabPages
 
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 189 of file printfun.hxx.

Constructor & Destructor Documentation

ScPrintFunc::ScPrintFunc ( ScDocShell pShell,
SfxPrinter pNewPrinter,
SCTAB  nTab,
long  nPage = 0,
long  nDocP = 0,
const ScRange pArea = nullptr,
const ScPrintOptions pOptions = nullptr,
ScPageBreakData pData = nullptr 
)

Definition at line 198 of file printfun.cxx.

References aSrcOffset, Construct(), VclPtr< reference_type >::get(), pDev, and pPrinter.

ScPrintFunc::ScPrintFunc ( ScDocShell pShell,
SfxPrinter pNewPrinter,
const ScPrintState rState,
const ScPrintOptions pOptions 
)
ScPrintFunc::ScPrintFunc ( OutputDevice pOutDev,
ScDocShell pShell,
SCTAB  nTab,
long  nPage = 0,
long  nDocP = 0,
const ScRange pArea = nullptr,
const ScPrintOptions pOptions = nullptr 
)

Definition at line 266 of file printfun.cxx.

References Construct(), and pDev.

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

Definition at line 399 of file printfun.cxx.

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

Member Function Documentation

bool ScPrintFunc::AdjustPrintArea ( bool  bNew)
private
void ScPrintFunc::ApplyPrintSettings ( )
void ScPrintFunc::CalcPages ( )
private
void ScPrintFunc::CalcZoom ( sal_uInt16  nRangeNo)
private
void ScPrintFunc::Construct ( const ScPrintOptions pOptions)
private
long ScPrintFunc::CountNotePages ( )
private
long ScPrintFunc::CountPages ( )
private
long ScPrintFunc::DoNotes ( long  nNoteStart,
bool  bDoPrint,
ScPreviewLocationData pLocationData 
)
private
long ScPrintFunc::DoPrint ( const MultiSelection rPageRanges,
long  nStartPage,
long  nDisplayStart,
bool  bDoPrint,
ScPreviewLocationData pLocationData 
)
void ScPrintFunc::DrawBorder ( long  nScrX,
long  nScrY,
long  nScrW,
long  nScrH,
const SvxBoxItem pBorderData,
const SvxBrushItem pBackground,
const SvxShadowItem pShadow 
)
private
void ScPrintFunc::DrawToDev ( ScDocument pDoc,
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 443 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(), OutputDevice::DrawLine(), ScOutputData::DrawShadow(), ScOutputData::DrawStrings(), ScDocument::FillInfo(), SfxStyleSheetBasePool::Find(), SfxItemSet::Get(), ScViewData::GetActivePart(), ScDocument::GetColWidth(), ScDocument::GetDrawLayer(), ScDocument::GetEmbedded(), SfxStyleSheetBase::GetItemSet(), ScViewData::GetLogicMode(), OutputDevice::GetMapMode(), ScViewOptions::GetOption(), OutputDevice::GetOutputSize(), 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(), OutputDevice::IsVirtual(), lcl_HidePrint(), tools::Rectangle::Left(), ScDocument::MaxCol(), ScDocument::MaxRow(), nScaleX, nScaleY, OLE_STD_CELLS_X, OLE_STD_CELLS_Y, OUTTYPE_PRINTER, pDrawView, OutputDevice::PixelToLogic(), Point, ScOutputData::PostPrintDrawingLayer(), ScOutputData::PrePrintDrawingLayer(), ScOutputData::PrintDrawingLayer(), ScDocument::ResetEmbedded(), tools::Rectangle::Right(), ScAddress::Row(), SC_LAYER_BACK(), SC_LAYER_FRONT(), SC_LAYER_INTERN(), ScOutputData::SetDrawView(), ScDocument::SetEmbedded(), OutputDevice::SetLineColor(), OutputDevice::SetMapMode(), ScOutputData::SetMetaFileMode(), ScOutputData::SetShowFormulas(), ScOutputData::SetShowNullValues(), ScOutputData::SetSnapPixel(), FmFormView::ShowSdrPage(), tools::Rectangle::Top(), ScViewData::VisibleCellsX(), ScViewData::VisibleCellsY(), VOPT_FORMULAS, VOPT_GRID, VOPT_NULLVALS, WhichH(), WhichV(), and Size::Width().

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

void ScPrintFunc::FillPageData ( )
private
sal_uInt16 ScPrintFunc::GetBottomMargin ( ) const
inline

Definition at line 338 of file printfun.hxx.

References nBottomMargin.

Size ScPrintFunc::GetDataSize ( ) const
Size ScPrintFunc::GetDocPageSize ( )
private
long ScPrintFunc::GetFirstPageNo ( ) const
inline

Definition at line 326 of file printfun.hxx.

References ScPageTableParam::nFirstPageNo.

Referenced by ScPreview::CalcPages().

const ScPrintHFParam& ScPrintFunc::GetFooter ( ) const
inline

Definition at line 340 of file printfun.hxx.

References aFtr.

const ScPrintHFParam& ScPrintFunc::GetHeader ( ) const
inline

Definition at line 339 of file printfun.hxx.

References aHdr.

bool ScPrintFunc::GetLastSourceRange ( ScRange rRange) const

Definition at line 357 of file printfun.cxx.

References aLastSourceRange, and bSourceRangeValid.

sal_uInt16 ScPrintFunc::GetLeftMargin ( ) const
inline

Definition at line 335 of file printfun.hxx.

References nLeftMargin.

const Size& ScPrintFunc::GetPageSize ( ) const
inline

Definition at line 323 of file printfun.hxx.

References aPageSize.

void ScPrintFunc::GetPrintState ( ScPrintState rState,
bool  bSavePageRanges = false 
)
sal_uInt16 ScPrintFunc::GetRightMargin ( ) const
inline

Definition at line 336 of file printfun.hxx.

References nRightMargin.

void ScPrintFunc::GetScaleData ( Size rPhysSize,
long &  rDocHdr,
long &  rDocFtr 
)
sal_uInt16 ScPrintFunc::GetTopMargin ( ) const
inline

Definition at line 337 of file printfun.hxx.

References nTopMargin.

long ScPrintFunc::GetTotalPages ( ) const
inline

Definition at line 328 of file printfun.hxx.

References nTotalPages.

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

sal_uInt16 ScPrintFunc::GetZoom ( ) const
inline

Definition at line 329 of file printfun.hxx.

References nZoom.

bool ScPrintFunc::HasPrintRange ( ) const
inline

Definition at line 342 of file printfun.hxx.

References mbHasPrintRange.

Referenced by ScPreview::CalcPages().

void ScPrintFunc::InitModes ( )
private
void ScPrintFunc::InitParam ( const ScPrintOptions pOptions)
private

walk through all PrintAreas of the table !!!

Definition at line 828 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_FOOTERLEFT(), ATTR_PAGE_FOOTERRIGHT(), ATTR_PAGE_FOOTERSET(), ATTR_PAGE_FORMULAS(), ATTR_PAGE_GRID(), 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(), ScAddress::Col(), CountNotePages(), CountPages(), ScHeaderFieldData::eNumType, SfxItemSet::Get(), SfxItemPool::GetDefaultItem(), SfxObjectShell::getDocProperties(), ScPrintOptions::GetForceBreaks(), ScPageScaleToItem::GetHeight(), 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, pDoc, pDocShell, ScPrintHFParam::pLeft, pPageData, pParamSet, ScPrintHFParam::pRight, pShadowItem, pUserArea, ScAddress::Row(), SCCOL_REPEAT_NONE, SCROW_REPEAT_NONE, SetDateTime(), ScAddress::SetTab(), DateTime::SYSTEM, INetURLObject::Unambiguous, and Size::Width().

Referenced by Construct().

bool ScPrintFunc::IsLeft ( long  nPageNo)
private

Definition at line 1675 of file printfun.cxx.

References nPageUsage.

Referenced by PrintHF().

bool ScPrintFunc::IsMirror ( long  nPageNo)
private

Definition at line 1670 of file printfun.cxx.

References nPageUsage.

Referenced by PrintNotes(), and PrintPage().

void ScPrintFunc::LocateArea ( SCCOL  nX1,
SCROW  nY1,
SCCOL  nX2,
SCROW  nY2,
long  nScrX,
long  nScrY,
bool  bRepCol,
bool  bRepRow,
ScPreviewLocationData rLocationData 
)
private
void ScPrintFunc::LocateColHdr ( SCCOL  nX1,
SCCOL  nX2,
long  nScrX,
long  nScrY,
bool  bRepCol,
ScPreviewLocationData rLocationData 
)
private
void ScPrintFunc::LocateRowHdr ( SCROW  nY1,
SCROW  nY2,
long  nScrX,
long  nScrY,
bool  bRepRow,
ScPreviewLocationData rLocationData 
)
private
void ScPrintFunc::MakeEditEngine ( )
private
void ScPrintFunc::MakeTableString ( )
private

Definition at line 1687 of file printfun.cxx.

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

Referenced by DoPrint().

void ScPrintFunc::PrintArea ( SCCOL  nX1,
SCROW  nY1,
SCCOL  nX2,
SCROW  nY2,
long  nScrX,
long  nScrY,
bool  bShLeft,
bool  bShTop,
bool  bShRight,
bool  bShBottom 
)
private
void ScPrintFunc::PrintColHdr ( SCCOL  nX1,
SCCOL  nX2,
long  nScrX,
long  nScrY 
)
private
void ScPrintFunc::PrintHF ( long  nPageNo,
bool  bHeader,
long  nStartY,
bool  bDoPrint,
ScPreviewLocationData pLocationData 
)
private
long ScPrintFunc::PrintNotes ( long  nPageNo,
long  nNoteStart,
bool  bDoPrint,
ScPreviewLocationData pLocationData 
)
private
void ScPrintFunc::PrintPage ( 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 2011 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(), svtools::DOCCOLOR, DrawBorder(), OutputDevice::DrawRect(), 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, pDoc, pDrawView, OutputDevice::PixelToLogic(), Point, pPrinter, PRINT_HEADER_HEIGHT, PRINT_HEADER_WIDTH, PrintArea(), PrintColHdr(), PrintHF(), PrintRowHdr(), pShadowItem, tools::Rectangle::Right(), SC_AUTOCOL_DISPLAY, SC_AUTOCOL_PRINT, SC_MOD, OutputDevice::SetFillColor(), OutputDevice::SetFont(), SdrPaintView::setHideChart(), SdrPaintView::setHideDraw(), SdrPaintView::setHideFormControl(), SdrPaintView::setHideOle(), tools::Rectangle::SetLeft(), OutputDevice::SetLineColor(), OutputDevice::SetMapMode(), tools::Rectangle::SetRight(), tools::Rectangle::Top(), and Size::Width().

Referenced by DoPrint().

void ScPrintFunc::PrintRowHdr ( SCROW  nY1,
SCROW  nY2,
long  nScrX,
long  nScrY 
)
private
void ScPrintFunc::ResetBreaks ( SCTAB  nTab)
void ScPrintFunc::SetClearFlag ( bool  bFlag)

Definition at line 2367 of file printfun.cxx.

References bClearWin.

void ScPrintFunc::SetDateTime ( const DateTime rDateTime)

Definition at line 1108 of file printfun.cxx.

References ScHeaderFieldData::aDateTime, and aFieldData.

Referenced by InitParam().

void ScPrintFunc::SetDrawView ( FmFormView pNew)

Definition at line 412 of file printfun.cxx.

References pDrawView.

void ScPrintFunc::SetExclusivelyDrawOleAndDrawObjects ( )
void ScPrintFunc::SetManualZoom ( sal_uInt16  nNewZoom)

Definition at line 2362 of file printfun.cxx.

References nManualZoom.

void ScPrintFunc::SetOffset ( const Point rOfs)

Definition at line 2357 of file printfun.cxx.

References aSrcOffset.

void ScPrintFunc::SetRenderFlag ( bool  bFlag)

Definition at line 2379 of file printfun.cxx.

References bIsRender.

Referenced by ScPrintFuncCache::InitLocations().

void ScPrintFunc::SetUseStyleColor ( bool  bFlag)

Definition at line 2372 of file printfun.cxx.

References bUseStyleColor, and pEditEngine.

long ScPrintFunc::TextHeight ( const EditTextObject pObject)
private

Definition at line 763 of file printfun.cxx.

References pEditDefaults, and pEditEngine.

Referenced by PrintHF(), and UpdateHFHeight().

void ScPrintFunc::UpdateHFHeight ( ScPrintHFParam rParam)
private
bool ScPrintFunc::UpdatePages ( )

Member Data Documentation

ScPageAreaParam ScPrintFunc::aAreaParam
private

Definition at line 236 of file printfun.hxx.

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

ScHeaderFieldData ScPrintFunc::aFieldData
private

Definition at line 270 of file printfun.hxx.

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

ScPrintHFParam ScPrintFunc::aFtr
private
ScPrintHFParam ScPrintFunc::aHdr
private
ScRange ScPrintFunc::aLastSourceRange
private

Definition at line 232 of file printfun.hxx.

Referenced by GetLastSourceRange(), and PrintPage().

MapMode ScPrintFunc::aLogicMode
private

Definition at line 248 of file printfun.hxx.

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

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

Definition at line 272 of file printfun.hxx.

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

Point ScPrintFunc::aOffset
private

Definition at line 201 of file printfun.hxx.

Referenced by InitModes().

MapMode ScPrintFunc::aOffsetMode
private

Definition at line 249 of file printfun.hxx.

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

MapMode ScPrintFunc::aOldPrinterMode
private

Definition at line 198 of file printfun.hxx.

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

tools::Rectangle ScPrintFunc::aPageRect
private

Definition at line 246 of file printfun.hxx.

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

Size ScPrintFunc::aPageSize
private
Point ScPrintFunc::aSrcOffset
private

Definition at line 200 of file printfun.hxx.

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

ScPageTableParam ScPrintFunc::aTableParam
private
MapMode ScPrintFunc::aTwipMode
private

Definition at line 250 of file printfun.hxx.

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

bool ScPrintFunc::bCenterHor
private

Definition at line 221 of file printfun.hxx.

Referenced by InitParam(), and PrintPage().

bool ScPrintFunc::bCenterVer
private

Definition at line 222 of file printfun.hxx.

Referenced by InitParam(), and PrintPage().

bool ScPrintFunc::bClearWin
private

Definition at line 203 of file printfun.hxx.

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

bool ScPrintFunc::bFromPrintState
private

Definition at line 214 of file printfun.hxx.

Referenced by Construct(), and ScPrintFunc().

bool ScPrintFunc::bIsRender
private

Definition at line 205 of file printfun.hxx.

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

bool ScPrintFunc::bLandscape
private

Definition at line 223 of file printfun.hxx.

Referenced by ApplyPrintSettings(), and InitParam().

bool ScPrintFunc::bMultiArea
private

Definition at line 241 of file printfun.hxx.

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

bool ScPrintFunc::bPrintAreaValid
private
bool ScPrintFunc::bPrintCurrentTable
private

Definition at line 240 of file printfun.hxx.

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

bool ScPrintFunc::bSourceRangeValid
private

Definition at line 224 of file printfun.hxx.

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

bool ScPrintFunc::bUseStyleColor
private
sc::PrintPageRanges ScPrintFunc::m_aRanges
private
bool ScPrintFunc::mbHasPrintRange
private

Definition at line 242 of file printfun.hxx.

Referenced by HasPrintRange(), and InitParam().

sal_uInt16 ScPrintFunc::nBottomMargin
private

Definition at line 220 of file printfun.hxx.

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

long ScPrintFunc::nDocPages
private

Definition at line 209 of file printfun.hxx.

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

SCCOL ScPrintFunc::nEndCol
private
SCROW ScPrintFunc::nEndRow
private
sal_uInt16 ScPrintFunc::nLeftMargin
private
sal_uInt16 ScPrintFunc::nManualZoom
private

Definition at line 202 of file printfun.hxx.

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

long ScPrintFunc::nPageStart
private

Definition at line 208 of file printfun.hxx.

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

SvxPageUsage ScPrintFunc::nPageUsage
private

Definition at line 226 of file printfun.hxx.

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

SCTAB ScPrintFunc::nPrintTab
private
SCCOL ScPrintFunc::nRepeatEndCol
private

Definition at line 255 of file printfun.hxx.

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

SCROW ScPrintFunc::nRepeatEndRow
private

Definition at line 257 of file printfun.hxx.

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

SCCOL ScPrintFunc::nRepeatStartCol
private

Definition at line 254 of file printfun.hxx.

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

SCROW ScPrintFunc::nRepeatStartRow
private

Definition at line 256 of file printfun.hxx.

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

sal_uInt16 ScPrintFunc::nRightMargin
private
double ScPrintFunc::nScaleX
private
double ScPrintFunc::nScaleY
private
SCCOL ScPrintFunc::nStartCol
private
SCROW ScPrintFunc::nStartRow
private
long ScPrintFunc::nTabPages
private

Definition at line 243 of file printfun.hxx.

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

sal_uInt16 ScPrintFunc::nTopMargin
private

Definition at line 218 of file printfun.hxx.

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

long ScPrintFunc::nTotalPages
private

Definition at line 244 of file printfun.hxx.

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

sal_uInt16 ScPrintFunc::nZoom
private
const SvxBrushItem* ScPrintFunc::pBackgroundItem
private

Definition at line 229 of file printfun.hxx.

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

const SvxBoxItem* ScPrintFunc::pBorderItem
private

Definition at line 228 of file printfun.hxx.

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

VclPtr<OutputDevice> ScPrintFunc::pDev
private
ScDocument* ScPrintFunc::pDoc
private
ScDocShell* ScPrintFunc::pDocShell
private

Definition at line 192 of file printfun.hxx.

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

FmFormView* ScPrintFunc::pDrawView
private

Definition at line 196 of file printfun.hxx.

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

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

Definition at line 268 of file printfun.hxx.

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

std::unique_ptr<ScHeaderEditEngine> ScPrintFunc::pEditEngine
private
ScPageBreakData* ScPrintFunc::pPageData
private

Definition at line 274 of file printfun.hxx.

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

const SfxItemSet* ScPrintFunc::pParamSet
private

Definition at line 213 of file printfun.hxx.

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

VclPtr<SfxPrinter> ScPrintFunc::pPrinter
private
const SvxShadowItem* ScPrintFunc::pShadowItem
private

Definition at line 230 of file printfun.hxx.

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

const ScRange* ScPrintFunc::pUserArea
private

Definition at line 211 of file printfun.hxx.

Referenced by InitParam().


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