LibreOffice Module sc (master) 1
|
#include <prevloc.hxx>
Public Types | |
typedef std::list< std::unique_ptr< ScPreviewLocationEntry > > | Entries_t |
Public Member Functions | |
ScPreviewLocationData (ScDocument *pDocument, OutputDevice *pWin) | |
~ScPreviewLocationData () | |
void | SetCellMapMode (const MapMode &rMapMode) |
void | SetPrintTab (SCTAB nNew) |
void | Clear () |
void | AddCellRange (const tools::Rectangle &rRect, const ScRange &rRange, bool bRepCol, bool bRepRow, const MapMode &rDrawMap) |
void | AddColHeaders (const tools::Rectangle &rRect, SCCOL nStartCol, SCCOL nEndCol, bool bRepCol) |
void | AddRowHeaders (const tools::Rectangle &rRect, SCROW nStartRow, SCROW nEndRow, bool bRepRow) |
void | AddHeaderFooter (const tools::Rectangle &rRect, bool bHeader, bool bLeft) |
void | AddNoteMark (const tools::Rectangle &rRect, const ScAddress &rPos) |
void | AddNoteText (const tools::Rectangle &rRect, const ScAddress &rPos) |
SCTAB | GetPrintTab () const |
void | GetTableInfo (const tools::Rectangle &rVisiblePixel, ScPreviewTableInfo &rInfo) const |
sal_uInt16 | GetDrawRanges () const |
void | GetDrawRange (sal_uInt16 nPos, tools::Rectangle &rPixelRect, MapMode &rMapMode, sal_uInt8 &rRangeId) const |
bool | GetHeaderPosition (tools::Rectangle &rHeaderRect) const |
bool | GetFooterPosition (tools::Rectangle &rFooterRect) const |
bool | IsHeaderLeft () const |
bool | IsFooterLeft () const |
tools::Long | GetNoteCountInRange (const tools::Rectangle &rVisiblePixel, bool bNoteMarks) const |
bool | GetNoteInRange (const tools::Rectangle &rVisiblePixel, tools::Long nIndex, bool bNoteMarks, ScAddress &rCellPos, tools::Rectangle &rNoteRect) const |
tools::Rectangle | GetNoteInRangeOutputRect (const tools::Rectangle &rVisiblePixel, bool bNoteMarks, const ScAddress &aCellPos) const |
bool | HasCellsInRange (const tools::Rectangle &rVisiblePixel) const |
void | GetCellPosition (const ScAddress &rCellPos, tools::Rectangle &rCellRect) const |
tools::Rectangle | GetHeaderCellOutputRect (const tools::Rectangle &rVisRect, const ScAddress &rCellPos, bool bColHeader) const |
tools::Rectangle | GetCellOutputRect (const ScAddress &rCellPos) const |
bool | GetMainCellRange (ScRange &rRange, tools::Rectangle &rPixRect) const |
Private Member Functions | |
tools::Rectangle | GetOffsetPixel (const ScAddress &rCellPos, const ScRange &rRange) const |
Private Attributes | |
VclPtr< OutputDevice > | pWindow |
ScDocument * | pDoc |
MapMode | aCellMapMode |
MapMode | aDrawMapMode [SC_PREVIEW_MAXRANGES] |
tools::Rectangle | aDrawRectangle [SC_PREVIEW_MAXRANGES] |
sal_uInt8 | aDrawRangeId [SC_PREVIEW_MAXRANGES] |
sal_uInt16 | nDrawRanges |
SCTAB | nPrintTab |
Entries_t | m_Entries |
Definition at line 85 of file prevloc.hxx.
typedef std::list<std::unique_ptr<ScPreviewLocationEntry> > ScPreviewLocationData::Entries_t |
Definition at line 88 of file prevloc.hxx.
ScPreviewLocationData::ScPreviewLocationData | ( | ScDocument * | pDocument, |
OutputDevice * | pWin | ||
) |
Definition at line 148 of file prevloc.cxx.
ScPreviewLocationData::~ScPreviewLocationData | ( | ) |
Definition at line 156 of file prevloc.cxx.
References Clear().
void ScPreviewLocationData::AddCellRange | ( | const tools::Rectangle & | rRect, |
const ScRange & | rRange, | ||
bool | bRepCol, | ||
bool | bRepRow, | ||
const MapMode & | rDrawMap | ||
) |
Definition at line 178 of file prevloc.cxx.
References aDrawMapMode, aDrawRangeId, aDrawRectangle, m_Entries, nDrawRanges, pWindow, SC_PREVIEW_MAXRANGES, SC_PREVIEW_RANGE_EDGE, SC_PREVIEW_RANGE_REPCOL, SC_PREVIEW_RANGE_REPROW, and SC_PREVIEW_RANGE_TAB.
Referenced by ScPrintFunc::LocateArea().
void ScPreviewLocationData::AddColHeaders | ( | const tools::Rectangle & | rRect, |
SCCOL | nStartCol, | ||
SCCOL | nEndCol, | ||
bool | bRepCol | ||
) |
?
Definition at line 210 of file prevloc.cxx.
References m_Entries, and pWindow.
Referenced by ScPrintFunc::LocateColHdr().
void ScPreviewLocationData::AddHeaderFooter | ( | const tools::Rectangle & | rRect, |
bool | bHeader, | ||
bool | bLeft | ||
) |
?
Definition at line 228 of file prevloc.cxx.
References eType, m_Entries, and pWindow.
Referenced by ScPrintFunc::PrintHF().
void ScPreviewLocationData::AddNoteMark | ( | const tools::Rectangle & | rRect, |
const ScAddress & | rPos | ||
) |
Definition at line 240 of file prevloc.cxx.
References m_Entries, and pWindow.
Referenced by ScPrintFunc::DoNotes().
void ScPreviewLocationData::AddNoteText | ( | const tools::Rectangle & | rRect, |
const ScAddress & | rPos | ||
) |
Definition at line 248 of file prevloc.cxx.
References m_Entries, and pWindow.
Referenced by ScPrintFunc::DoNotes().
void ScPreviewLocationData::AddRowHeaders | ( | const tools::Rectangle & | rRect, |
SCROW | nStartRow, | ||
SCROW | nEndRow, | ||
bool | bRepRow | ||
) |
?
Definition at line 219 of file prevloc.cxx.
References m_Entries, and pWindow.
Referenced by ScPrintFunc::LocateRowHdr().
void ScPreviewLocationData::Clear | ( | ) |
Definition at line 171 of file prevloc.cxx.
References m_Entries, and nDrawRanges.
Referenced by ~ScPreviewLocationData().
tools::Rectangle ScPreviewLocationData::GetCellOutputRect | ( | const ScAddress & | rCellPos | ) | const |
Definition at line 692 of file prevloc.cxx.
References GetCellPosition().
Referenced by ScAccessiblePreviewCellTextData::GetTextForwarder().
void ScPreviewLocationData::GetCellPosition | ( | const ScAddress & | rCellPos, |
tools::Rectangle & | rCellRect | ||
) | const |
Definition at line 309 of file prevloc.cxx.
References ScPreviewLocationEntry::aCellRange, ScPreviewLocationEntry::aPixelRect, tools::Rectangle::Bottom(), GetOffsetPixel(), lcl_GetEntryByAddress(), tools::Rectangle::Left(), m_Entries, tools::Rectangle::Right(), and tools::Rectangle::Top().
Referenced by ScAccessiblePreviewCell::GetBoundingBox(), ScAccessiblePreviewCell::GetBoundingBoxOnScreen(), and GetCellOutputRect().
void ScPreviewLocationData::GetDrawRange | ( | sal_uInt16 | nPos, |
tools::Rectangle & | rPixelRect, | ||
MapMode & | rMapMode, | ||
sal_uInt8 & | rRangeId | ||
) | const |
Definition at line 256 of file prevloc.cxx.
References aDrawMapMode, aDrawRangeId, aDrawRectangle, nDrawRanges, and nPos.
Referenced by ScShapeChildren::Init().
|
inline |
Definition at line 122 of file prevloc.hxx.
References nDrawRanges.
Referenced by ScShapeChildren::Init().
bool ScPreviewLocationData::GetFooterPosition | ( | tools::Rectangle & | rFooterRect | ) | const |
Definition at line 348 of file prevloc.cxx.
References m_Entries.
Referenced by ScAccessiblePageHeader::GetBoundingBox().
tools::Rectangle ScPreviewLocationData::GetHeaderCellOutputRect | ( | const tools::Rectangle & | rVisRect, |
const ScAddress & | rCellPos, | ||
bool | bColHeader | ||
) | const |
Definition at line 665 of file prevloc.cxx.
References ScPreviewColRowInfo::bIsHeader, ScAddress::Col(), ScPreviewTableInfo::GetColInfo(), ScPreviewTableInfo::GetCols(), ScPreviewTableInfo::GetRowInfo(), ScPreviewTableInfo::GetRows(), GetTableInfo(), ScPreviewColRowInfo::nPixelEnd, ScPreviewColRowInfo::nPixelStart, and ScAddress::Row().
Referenced by ScAccessiblePreviewHeaderCellTextData::GetTextForwarder().
bool ScPreviewLocationData::GetHeaderPosition | ( | tools::Rectangle & | rHeaderRect | ) | const |
Definition at line 334 of file prevloc.cxx.
References m_Entries.
Referenced by ScAccessiblePageHeader::GetBoundingBox(), and ScAccessibleHeaderTextData::GetTextForwarder().
bool ScPreviewLocationData::GetMainCellRange | ( | ScRange & | rRange, |
tools::Rectangle & | rPixRect | ||
) | const |
Definition at line 703 of file prevloc.cxx.
References m_Entries.
Referenced by ScPrintFuncCache::InitLocations().
tools::Long ScPreviewLocationData::GetNoteCountInRange | ( | const tools::Rectangle & | rVisiblePixel, |
bool | bNoteMarks | ||
) | const |
Definition at line 390 of file prevloc.cxx.
References eType, and m_Entries.
Referenced by ScNotesChildren::AddNotes(), and ScNotesChildren::CheckChanges().
bool ScPreviewLocationData::GetNoteInRange | ( | const tools::Rectangle & | rVisiblePixel, |
tools::Long | nIndex, | ||
bool | bNoteMarks, | ||
ScAddress & | rCellPos, | ||
tools::Rectangle & | rNoteRect | ||
) | const |
Definition at line 404 of file prevloc.cxx.
References eType, m_Entries, nIndex, and nPos.
Referenced by ScNotesChildren::AddNotes(), and ScNotesChildren::CheckChanges().
tools::Rectangle ScPreviewLocationData::GetNoteInRangeOutputRect | ( | const tools::Rectangle & | rVisiblePixel, |
bool | bNoteMarks, | ||
const ScAddress & | aCellPos | ||
) | const |
Definition at line 427 of file prevloc.cxx.
References eType, and m_Entries.
Referenced by ScAccessibleNoteTextData::GetTextForwarder().
|
private |
Definition at line 280 of file prevloc.cxx.
References aCellMapMode, ScRange::aStart, ScAddress::Col(), o3tl::convert(), ScDocument::GetColWidth(), ScDocument::GetRowHeight(), Size::Height(), o3tl::mm100, pDoc, pWindow, ScAddress::Row(), ScAddress::Tab(), o3tl::twip, and Size::Width().
Referenced by GetCellPosition().
|
inline |
Definition at line 117 of file prevloc.hxx.
References nPrintTab.
Referenced by ScAccessiblePageHeader::getAccessibleChildCount(), and ScShapeChildren::GetDrawPage().
void ScPreviewLocationData::GetTableInfo | ( | const tools::Rectangle & | rVisiblePixel, |
ScPreviewTableInfo & | rInfo | ||
) | const |
store separately?
Definition at line 443 of file prevloc.cxx.
References aCellMapMode, tools::Rectangle::Bottom(), ScDocument::ColHidden(), o3tl::convert(), ScDocument::CountVisibleRows(), ScDocument::GetColWidth(), ScDocument::GetOriginalHeight(), tools::Rectangle::Left(), ScPreviewTableInfo::LimitToArea(), m_Entries, o3tl::mm100, pDoc, pWindow, tools::Rectangle::Right(), ScDocument::RowHidden(), ScPreviewColRowInfo::Set(), tools::Rectangle::SetBottom(), ScPreviewTableInfo::SetColInfo(), tools::Rectangle::SetLeft(), tools::Rectangle::SetRight(), ScPreviewTableInfo::SetRowInfo(), ScPreviewTableInfo::SetTab(), tools::Rectangle::SetTop(), tools::Rectangle::Top(), and o3tl::twip.
Referenced by ScAccessiblePreviewHeaderCell::FillTableInfo(), ScAccessiblePreviewTable::FillTableInfo(), and GetHeaderCellOutputRect().
bool ScPreviewLocationData::HasCellsInRange | ( | const tools::Rectangle & | rVisiblePixel | ) | const |
Definition at line 322 of file prevloc.cxx.
References m_Entries.
bool ScPreviewLocationData::IsFooterLeft | ( | ) | const |
Definition at line 376 of file prevloc.cxx.
References m_Entries.
Referenced by ScAccessiblePageHeader::getAccessibleChildCount().
bool ScPreviewLocationData::IsHeaderLeft | ( | ) | const |
Definition at line 362 of file prevloc.cxx.
References m_Entries.
Referenced by ScAccessiblePageHeader::getAccessibleChildCount().
void ScPreviewLocationData::SetCellMapMode | ( | const MapMode & | rMapMode | ) |
Definition at line 161 of file prevloc.cxx.
References aCellMapMode.
Referenced by ScPrintFunc::DoPrint().
void ScPreviewLocationData::SetPrintTab | ( | SCTAB | nNew | ) |
Definition at line 166 of file prevloc.cxx.
References nPrintTab.
Referenced by ScPrintFunc::DoPrint().
|
private |
Definition at line 92 of file prevloc.hxx.
Referenced by GetOffsetPixel(), GetTableInfo(), and SetCellMapMode().
|
private |
Definition at line 93 of file prevloc.hxx.
Referenced by AddCellRange(), and GetDrawRange().
|
private |
Definition at line 95 of file prevloc.hxx.
Referenced by AddCellRange(), and GetDrawRange().
|
private |
Definition at line 94 of file prevloc.hxx.
Referenced by AddCellRange(), and GetDrawRange().
|
private |
Definition at line 98 of file prevloc.hxx.
Referenced by AddCellRange(), AddColHeaders(), AddHeaderFooter(), AddNoteMark(), AddNoteText(), AddRowHeaders(), Clear(), GetCellPosition(), GetFooterPosition(), GetHeaderPosition(), GetMainCellRange(), GetNoteCountInRange(), GetNoteInRange(), GetNoteInRangeOutputRect(), GetTableInfo(), HasCellsInRange(), IsFooterLeft(), and IsHeaderLeft().
|
private |
Definition at line 96 of file prevloc.hxx.
Referenced by AddCellRange(), Clear(), GetDrawRange(), and GetDrawRanges().
|
private |
Definition at line 97 of file prevloc.hxx.
Referenced by GetPrintTab(), and SetPrintTab().
|
private |
Definition at line 91 of file prevloc.hxx.
Referenced by GetOffsetPixel(), and GetTableInfo().
|
private |
Definition at line 90 of file prevloc.hxx.
Referenced by AddCellRange(), AddColHeaders(), AddHeaderFooter(), AddNoteMark(), AddNoteText(), AddRowHeaders(), GetOffsetPixel(), and GetTableInfo().