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, const ScPrintSelectionStatus &rStatus)
 
 ~ScPrintFuncCache ()
 
bool IsSameSelection (const ScPrintSelectionStatus &rStatus) const
 
void InitLocations (const ScMarkData &rMark, OutputDevice *pDev)
 
bool FindLocation (const ScAddress &rCell, ScPrintPageLocation &rLocation) const
 
long GetPageCount () const
 
long GetFirstAttr (SCTAB nTab) const
 
SCTAB GetTabForPage (long nPage) const
 
long GetTabStart (SCTAB nTab) const
 
long GetDisplayStart (SCTAB nTab) const
 

Private Attributes

ScPrintSelectionStatus aSelection
 
ScDocShellpDocSh
 
long nTotalPages
 
std::vector< long > nPages
 
std::vector< long > nFirstAttr
 
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 85 of file pfuncache.hxx.

Constructor & Destructor Documentation

ScPrintFuncCache::ScPrintFuncCache ( ScDocShell pD,
const ScMarkData rMark,
const ScPrintSelectionStatus rStatus 
)
ScPrintFuncCache::~ScPrintFuncCache ( )

Definition at line 78 of file pfuncache.cxx.

Member Function Documentation

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

Definition at line 133 of file pfuncache.cxx.

References aLocations.

long ScPrintFuncCache::GetDisplayStart ( SCTAB  nTab) const

merge with lcl_GetDisplayStart in preview?

Definition at line 171 of file pfuncache.cxx.

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

Referenced by InitLocations().

long ScPrintFuncCache::GetFirstAttr ( SCTAB  nTab) const
inline

Definition at line 106 of file pfuncache.hxx.

long ScPrintFuncCache::GetPageCount ( ) const
inline

Definition at line 105 of file pfuncache.hxx.

References nTotalPages.

SCTAB ScPrintFuncCache::GetTabForPage ( long  nPage) const

Definition at line 150 of file pfuncache.cxx.

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

long ScPrintFuncCache::GetTabStart ( SCTAB  nTab) const

Definition at line 162 of file pfuncache.cxx.

References i, and nPages.

void ScPrintFuncCache::InitLocations ( const ScMarkData rMark,
OutputDevice pDev 
)
bool ScPrintFuncCache::IsSameSelection ( const ScPrintSelectionStatus rStatus) const

Definition at line 145 of file pfuncache.cxx.

References aSelection.

Member Data Documentation

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

Definition at line 92 of file pfuncache.hxx.

Referenced by FindLocation(), and InitLocations().

ScPrintSelectionStatus ScPrintFuncCache::aSelection
private

Definition at line 87 of file pfuncache.hxx.

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

bool ScPrintFuncCache::bLocInitialized
private

Definition at line 93 of file pfuncache.hxx.

Referenced by InitLocations().

std::vector<long> ScPrintFuncCache::nFirstAttr
private

Definition at line 91 of file pfuncache.hxx.

Referenced by InitLocations(), and ScPrintFuncCache().

std::vector<long> ScPrintFuncCache::nPages
private
long ScPrintFuncCache::nTotalPages
private

Definition at line 89 of file pfuncache.hxx.

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

ScDocShell* ScPrintFuncCache::pDocSh
private

Definition at line 88 of file pfuncache.hxx.

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


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