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

#include <prevloc.hxx>

Collaboration diagram for ScPreviewLocationData:
[legend]

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< OutputDevicepWindow
 
ScDocumentpDoc
 
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
 

Detailed Description

Definition at line 85 of file prevloc.hxx.

Member Typedef Documentation

◆ Entries_t

typedef std::list<std::unique_ptr<ScPreviewLocationEntry> > ScPreviewLocationData::Entries_t

Definition at line 88 of file prevloc.hxx.

Constructor & Destructor Documentation

◆ ScPreviewLocationData()

ScPreviewLocationData::ScPreviewLocationData ( ScDocument pDocument,
OutputDevice pWin 
)

Definition at line 148 of file prevloc.cxx.

◆ ~ScPreviewLocationData()

ScPreviewLocationData::~ScPreviewLocationData ( )

Definition at line 156 of file prevloc.cxx.

References Clear().

Member Function Documentation

◆ AddCellRange()

void ScPreviewLocationData::AddCellRange ( const tools::Rectangle rRect,
const ScRange rRange,
bool  bRepCol,
bool  bRepRow,
const MapMode rDrawMap 
)

◆ AddColHeaders()

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().

◆ AddHeaderFooter()

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().

◆ AddNoteMark()

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().

◆ AddNoteText()

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().

◆ AddRowHeaders()

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().

◆ Clear()

void ScPreviewLocationData::Clear ( )

Definition at line 171 of file prevloc.cxx.

References m_Entries, and nDrawRanges.

Referenced by ~ScPreviewLocationData().

◆ GetCellOutputRect()

tools::Rectangle ScPreviewLocationData::GetCellOutputRect ( const ScAddress rCellPos) const

Definition at line 692 of file prevloc.cxx.

References GetCellPosition().

Referenced by ScAccessiblePreviewCellTextData::GetTextForwarder().

◆ GetCellPosition()

void ScPreviewLocationData::GetCellPosition ( const ScAddress rCellPos,
tools::Rectangle rCellRect 
) const

◆ GetDrawRange()

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().

◆ GetDrawRanges()

sal_uInt16 ScPreviewLocationData::GetDrawRanges ( ) const
inline

Definition at line 122 of file prevloc.hxx.

References nDrawRanges.

Referenced by ScShapeChildren::Init().

◆ GetFooterPosition()

bool ScPreviewLocationData::GetFooterPosition ( tools::Rectangle rFooterRect) const

Definition at line 348 of file prevloc.cxx.

References m_Entries.

Referenced by ScAccessiblePageHeader::GetBoundingBox().

◆ GetHeaderCellOutputRect()

tools::Rectangle ScPreviewLocationData::GetHeaderCellOutputRect ( const tools::Rectangle rVisRect,
const ScAddress rCellPos,
bool  bColHeader 
) const

◆ GetHeaderPosition()

bool ScPreviewLocationData::GetHeaderPosition ( tools::Rectangle rHeaderRect) const

◆ GetMainCellRange()

bool ScPreviewLocationData::GetMainCellRange ( ScRange rRange,
tools::Rectangle rPixRect 
) const

Definition at line 703 of file prevloc.cxx.

References m_Entries.

Referenced by ScPrintFuncCache::InitLocations().

◆ GetNoteCountInRange()

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().

◆ GetNoteInRange()

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().

◆ GetNoteInRangeOutputRect()

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().

◆ GetOffsetPixel()

tools::Rectangle ScPreviewLocationData::GetOffsetPixel ( const ScAddress rCellPos,
const ScRange rRange 
) const
private

◆ GetPrintTab()

SCTAB ScPreviewLocationData::GetPrintTab ( ) const
inline

◆ GetTableInfo()

void ScPreviewLocationData::GetTableInfo ( const tools::Rectangle rVisiblePixel,
ScPreviewTableInfo rInfo 
) const

◆ HasCellsInRange()

bool ScPreviewLocationData::HasCellsInRange ( const tools::Rectangle rVisiblePixel) const

Definition at line 322 of file prevloc.cxx.

References m_Entries.

◆ IsFooterLeft()

bool ScPreviewLocationData::IsFooterLeft ( ) const

Definition at line 376 of file prevloc.cxx.

References m_Entries.

Referenced by ScAccessiblePageHeader::getAccessibleChildCount().

◆ IsHeaderLeft()

bool ScPreviewLocationData::IsHeaderLeft ( ) const

Definition at line 362 of file prevloc.cxx.

References m_Entries.

Referenced by ScAccessiblePageHeader::getAccessibleChildCount().

◆ SetCellMapMode()

void ScPreviewLocationData::SetCellMapMode ( const MapMode rMapMode)

Definition at line 161 of file prevloc.cxx.

References aCellMapMode.

Referenced by ScPrintFunc::DoPrint().

◆ SetPrintTab()

void ScPreviewLocationData::SetPrintTab ( SCTAB  nNew)

Definition at line 166 of file prevloc.cxx.

References nPrintTab.

Referenced by ScPrintFunc::DoPrint().

Member Data Documentation

◆ aCellMapMode

MapMode ScPreviewLocationData::aCellMapMode
private

Definition at line 92 of file prevloc.hxx.

Referenced by GetOffsetPixel(), GetTableInfo(), and SetCellMapMode().

◆ aDrawMapMode

MapMode ScPreviewLocationData::aDrawMapMode[SC_PREVIEW_MAXRANGES]
private

Definition at line 93 of file prevloc.hxx.

Referenced by AddCellRange(), and GetDrawRange().

◆ aDrawRangeId

sal_uInt8 ScPreviewLocationData::aDrawRangeId[SC_PREVIEW_MAXRANGES]
private

Definition at line 95 of file prevloc.hxx.

Referenced by AddCellRange(), and GetDrawRange().

◆ aDrawRectangle

tools::Rectangle ScPreviewLocationData::aDrawRectangle[SC_PREVIEW_MAXRANGES]
private

Definition at line 94 of file prevloc.hxx.

Referenced by AddCellRange(), and GetDrawRange().

◆ m_Entries

Entries_t ScPreviewLocationData::m_Entries
private

◆ nDrawRanges

sal_uInt16 ScPreviewLocationData::nDrawRanges
private

Definition at line 96 of file prevloc.hxx.

Referenced by AddCellRange(), Clear(), GetDrawRange(), and GetDrawRanges().

◆ nPrintTab

SCTAB ScPreviewLocationData::nPrintTab
private

Definition at line 97 of file prevloc.hxx.

Referenced by GetPrintTab(), and SetPrintTab().

◆ pDoc

ScDocument* ScPreviewLocationData::pDoc
private

Definition at line 91 of file prevloc.hxx.

Referenced by GetOffsetPixel(), and GetTableInfo().

◆ pWindow

VclPtr<OutputDevice> ScPreviewLocationData::pWindow
private

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