LibreOffice Module sc (master) 1
|
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>
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 |
ScDocShell * | pDocSh |
tools::Long | nTotalPages |
std::vector< tools::Long > | nPages |
std::vector< tools::Long > | nFirstAttr |
std::vector< ScPrintPageLocation > | aLocations |
bool | bLocInitialized |
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.
ScPrintFuncCache::ScPrintFuncCache | ( | ScDocShell * | pD, |
const ScMarkData & | rMark, | ||
ScPrintSelectionStatus | aStatus | ||
) |
Definition at line 30 of file pfuncache.cxx.
References aSelection, ScDocShell::GetDocument(), ScPrintFunc::GetFirstPageNo(), ScMarkData::GetMarkArea(), ScPrintSelectionStatus::GetOptions(), ScDocShell::GetPrinter(), ScMarkData::GetSelectCount(), ScDocument::GetTableCount(), ScMarkData::GetTableSelect(), ScPrintFunc::GetTotalPages(), ScMarkData::IsMarked(), nFirstAttr, nPages, nTotalPages, pDocSh, and ScDocShell::UpdatePendingRowHeights().
ScPrintFuncCache::~ScPrintFuncCache | ( | ) |
Definition at line 77 of file pfuncache.cxx.
bool ScPrintFuncCache::FindLocation | ( | const ScAddress & | rCell, |
ScPrintPageLocation & | rLocation | ||
) | const |
Definition at line 132 of file pfuncache.cxx.
References aLocations.
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().
|
inline |
Definition at line 105 of file pfuncache.hxx.
References nFirstAttr.
|
inline |
Definition at line 104 of file pfuncache.hxx.
References nTotalPages.
SCTAB ScPrintFuncCache::GetTabForPage | ( | tools::Long | nPage | ) | const |
Definition at line 149 of file pfuncache.cxx.
References ScDocShell::GetDocument(), ScDocument::GetTableCount(), nPages, and pDocSh.
tools::Long ScPrintFuncCache::GetTabStart | ( | SCTAB | nTab | ) | const |
Definition at line 161 of file pfuncache.cxx.
void ScPrintFuncCache::InitLocations | ( | const ScMarkData & | rMark, |
OutputDevice * | pDev | ||
) |
Definition at line 81 of file pfuncache.cxx.
References aLocations, aSelection, bLocInitialized, ScPrintFunc::DoPrint(), GetDisplayStart(), ScDocShell::GetDocument(), ScPreviewLocationData::GetMainCellRange(), ScMarkData::GetMarkArea(), ScPrintSelectionStatus::GetOptions(), ScDocument::GetTableCount(), ScMarkData::IsMarked(), nFirstAttr, nPages, nTotalPages, pDocSh, RANGE_MAX, MultiSelection::Select(), ScPrintFunc::SetRenderFlag(), and MultiSelection::SetTotalRange().
bool ScPrintFuncCache::IsSameSelection | ( | const ScPrintSelectionStatus & | rStatus | ) | const |
Definition at line 144 of file pfuncache.cxx.
References aSelection.
|
private |
Definition at line 91 of file pfuncache.hxx.
Referenced by FindLocation(), and InitLocations().
|
private |
Definition at line 86 of file pfuncache.hxx.
Referenced by InitLocations(), IsSameSelection(), and ScPrintFuncCache().
|
private |
Definition at line 92 of file pfuncache.hxx.
Referenced by InitLocations().
|
private |
Definition at line 90 of file pfuncache.hxx.
Referenced by GetFirstAttr(), InitLocations(), and ScPrintFuncCache().
|
private |
Definition at line 89 of file pfuncache.hxx.
Referenced by GetDisplayStart(), GetTabForPage(), GetTabStart(), InitLocations(), and ScPrintFuncCache().
|
private |
Definition at line 88 of file pfuncache.hxx.
Referenced by GetPageCount(), InitLocations(), and ScPrintFuncCache().
|
private |
Definition at line 87 of file pfuncache.hxx.
Referenced by GetDisplayStart(), GetTabForPage(), InitLocations(), and ScPrintFuncCache().