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

Stores the data for printing that is needed from several sheets, so it doesn't have to be calculated for rendering each page. More...

#include <pfuncache.hxx>

Collaboration diagram for ScPrintFuncCache:
[legend]

Public Member Functions

 ScPrintFuncCache (ScDocShell *pD, const ScMarkData &rMark, ScPrintSelectionStatus aStatus)
 
 ~ScPrintFuncCache ()
 
bool IsSameSelection (const ScPrintSelectionStatus &rStatus) const
 
void InitLocations (const ScMarkData &rMark, OutputDevice *pDev)
 
bool FindLocation (const ScAddress &rCell, ScPrintPageLocation &rLocation) const
 
tools::Long GetPageCount () const
 
tools::Long GetFirstAttr (SCTAB nTab) const
 
SCTAB GetTabForPage (tools::Long nPage) const
 
tools::Long GetTabStart (SCTAB nTab) const
 
tools::Long GetDisplayStart (SCTAB nTab) const
 

Private Attributes

ScPrintSelectionStatus aSelection
 
ScDocShellpDocSh
 
tools::Long nTotalPages
 
std::vector< tools::LongnPages
 
std::vector< tools::LongnFirstAttr
 
std::vector< ScPrintPageLocationaLocations
 
bool bLocInitialized
 

Detailed Description

Stores the data for printing that is needed from several sheets, so it doesn't have to be calculated for rendering each page.

Definition at line 84 of file pfuncache.hxx.

Constructor & Destructor Documentation

◆ ScPrintFuncCache()

ScPrintFuncCache::ScPrintFuncCache ( ScDocShell pD,
const ScMarkData rMark,
ScPrintSelectionStatus  aStatus 
)

◆ ~ScPrintFuncCache()

ScPrintFuncCache::~ScPrintFuncCache ( )

Definition at line 77 of file pfuncache.cxx.

Member Function Documentation

◆ FindLocation()

bool ScPrintFuncCache::FindLocation ( const ScAddress rCell,
ScPrintPageLocation rLocation 
) const

Definition at line 132 of file pfuncache.cxx.

References aLocations.

◆ GetDisplayStart()

tools::Long ScPrintFuncCache::GetDisplayStart ( SCTAB  nTab) const

merge with lcl_GetDisplayStart in preview?

Definition at line 170 of file pfuncache.cxx.

References ScDocShell::GetDocument(), i, ScDocument::NeedPageResetAfterTab(), nPages, and pDocSh.

Referenced by InitLocations().

◆ GetFirstAttr()

tools::Long ScPrintFuncCache::GetFirstAttr ( SCTAB  nTab) const
inline

Definition at line 105 of file pfuncache.hxx.

References nFirstAttr.

◆ GetPageCount()

tools::Long ScPrintFuncCache::GetPageCount ( ) const
inline

Definition at line 104 of file pfuncache.hxx.

References nTotalPages.

◆ GetTabForPage()

SCTAB ScPrintFuncCache::GetTabForPage ( tools::Long  nPage) const

Definition at line 149 of file pfuncache.cxx.

References ScDocShell::GetDocument(), ScDocument::GetTableCount(), nPages, and pDocSh.

◆ GetTabStart()

tools::Long ScPrintFuncCache::GetTabStart ( SCTAB  nTab) const

Definition at line 161 of file pfuncache.cxx.

References i, and nPages.

◆ InitLocations()

void ScPrintFuncCache::InitLocations ( const ScMarkData rMark,
OutputDevice pDev 
)

◆ IsSameSelection()

bool ScPrintFuncCache::IsSameSelection ( const ScPrintSelectionStatus rStatus) const

Definition at line 144 of file pfuncache.cxx.

References aSelection.

Member Data Documentation

◆ aLocations

std::vector<ScPrintPageLocation> ScPrintFuncCache::aLocations
private

Definition at line 91 of file pfuncache.hxx.

Referenced by FindLocation(), and InitLocations().

◆ aSelection

ScPrintSelectionStatus ScPrintFuncCache::aSelection
private

Definition at line 86 of file pfuncache.hxx.

Referenced by InitLocations(), IsSameSelection(), and ScPrintFuncCache().

◆ bLocInitialized

bool ScPrintFuncCache::bLocInitialized
private

Definition at line 92 of file pfuncache.hxx.

Referenced by InitLocations().

◆ nFirstAttr

std::vector<tools::Long> ScPrintFuncCache::nFirstAttr
private

Definition at line 90 of file pfuncache.hxx.

Referenced by GetFirstAttr(), InitLocations(), and ScPrintFuncCache().

◆ nPages

std::vector<tools::Long> ScPrintFuncCache::nPages
private

◆ nTotalPages

tools::Long ScPrintFuncCache::nTotalPages
private

Definition at line 88 of file pfuncache.hxx.

Referenced by GetPageCount(), InitLocations(), and ScPrintFuncCache().

◆ pDocSh

ScDocShell* ScPrintFuncCache::pDocSh
private

Definition at line 87 of file pfuncache.hxx.

Referenced by GetDisplayStart(), GetTabForPage(), InitLocations(), and ScPrintFuncCache().


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