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
 
long GetNoteCountInRange (const tools::Rectangle &rVisiblePixel, bool bNoteMarks) const
 
bool GetNoteInRange (const tools::Rectangle &rVisiblePixel, 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 86 of file prevloc.hxx.

Member Typedef Documentation

Definition at line 89 of file prevloc.hxx.

Constructor & Destructor Documentation

ScPreviewLocationData::ScPreviewLocationData ( ScDocument pDocument,
OutputDevice pWin 
)

Definition at line 147 of file prevloc.cxx.

ScPreviewLocationData::~ScPreviewLocationData ( )

Definition at line 155 of file prevloc.cxx.

References Clear().

Member Function Documentation

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

?

Definition at line 209 of file prevloc.cxx.

References OutputDevice::LogicToPixel(), m_Entries, and pWindow.

Referenced by ScPrintFunc::LocateColHdr().

void ScPreviewLocationData::AddHeaderFooter ( const tools::Rectangle rRect,
bool  bHeader,
bool  bLeft 
)

?

Definition at line 227 of file prevloc.cxx.

References eType, OutputDevice::LogicToPixel(), m_Entries, and pWindow.

Referenced by ScPrintFunc::PrintHF().

void ScPreviewLocationData::AddNoteMark ( const tools::Rectangle rRect,
const ScAddress rPos 
)

Definition at line 239 of file prevloc.cxx.

References OutputDevice::LogicToPixel(), m_Entries, and pWindow.

Referenced by ScPrintFunc::DoNotes().

void ScPreviewLocationData::AddNoteText ( const tools::Rectangle rRect,
const ScAddress rPos 
)

Definition at line 247 of file prevloc.cxx.

References OutputDevice::LogicToPixel(), m_Entries, and pWindow.

Referenced by ScPrintFunc::DoNotes().

void ScPreviewLocationData::AddRowHeaders ( const tools::Rectangle rRect,
SCROW  nStartRow,
SCROW  nEndRow,
bool  bRepRow 
)

?

Definition at line 218 of file prevloc.cxx.

References OutputDevice::LogicToPixel(), m_Entries, and pWindow.

Referenced by ScPrintFunc::LocateRowHdr().

void ScPreviewLocationData::Clear ( )

Definition at line 170 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
void ScPreviewLocationData::GetDrawRange ( sal_uInt16  nPos,
tools::Rectangle rPixelRect,
MapMode rMapMode,
sal_uInt8 rRangeId 
) const

Definition at line 255 of file prevloc.cxx.

References aDrawMapMode, aDrawRangeId, aDrawRectangle, and nDrawRanges.

Referenced by ScShapeChildren::Init().

sal_uInt16 ScPreviewLocationData::GetDrawRanges ( ) const
inline

Definition at line 123 of file prevloc.hxx.

References nDrawRanges.

Referenced by ScShapeChildren::Init().

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

Definition at line 347 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
bool ScPreviewLocationData::GetHeaderPosition ( tools::Rectangle rHeaderRect) const
bool ScPreviewLocationData::GetMainCellRange ( ScRange rRange,
tools::Rectangle rPixRect 
) const

Definition at line 703 of file prevloc.cxx.

References m_Entries.

Referenced by ScPrintFuncCache::InitLocations().

long ScPreviewLocationData::GetNoteCountInRange ( const tools::Rectangle rVisiblePixel,
bool  bNoteMarks 
) const

Definition at line 389 of file prevloc.cxx.

References eType, and m_Entries.

Referenced by ScNotesChildren::AddNotes(), and ScNotesChildren::CheckChanges().

bool ScPreviewLocationData::GetNoteInRange ( const tools::Rectangle rVisiblePixel,
long  nIndex,
bool  bNoteMarks,
ScAddress rCellPos,
tools::Rectangle rNoteRect 
) const

Definition at line 403 of file prevloc.cxx.

References eType, m_Entries, 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 426 of file prevloc.cxx.

References eType, m_Entries, and nPos.

Referenced by ScAccessibleNoteTextData::GetTextForwarder().

tools::Rectangle ScPreviewLocationData::GetOffsetPixel ( const ScAddress rCellPos,
const ScRange rRange 
) const
private
SCTAB ScPreviewLocationData::GetPrintTab ( ) const
inline
void ScPreviewLocationData::GetTableInfo ( const tools::Rectangle rVisiblePixel,
ScPreviewTableInfo rInfo 
) const
bool ScPreviewLocationData::HasCellsInRange ( const tools::Rectangle rVisiblePixel) const

Definition at line 321 of file prevloc.cxx.

References m_Entries.

bool ScPreviewLocationData::IsFooterLeft ( ) const

Definition at line 375 of file prevloc.cxx.

References m_Entries.

Referenced by ScAccessiblePageHeader::getAccessibleChildCount().

bool ScPreviewLocationData::IsHeaderLeft ( ) const

Definition at line 361 of file prevloc.cxx.

References m_Entries.

Referenced by ScAccessiblePageHeader::getAccessibleChildCount().

void ScPreviewLocationData::SetCellMapMode ( const MapMode rMapMode)

Definition at line 160 of file prevloc.cxx.

References aCellMapMode.

Referenced by ScPrintFunc::DoPrint().

void ScPreviewLocationData::SetPrintTab ( SCTAB  nNew)

Definition at line 165 of file prevloc.cxx.

References nPrintTab.

Referenced by ScPrintFunc::DoPrint().

Member Data Documentation

MapMode ScPreviewLocationData::aCellMapMode
private

Definition at line 93 of file prevloc.hxx.

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

MapMode ScPreviewLocationData::aDrawMapMode[SC_PREVIEW_MAXRANGES]
private

Definition at line 94 of file prevloc.hxx.

Referenced by AddCellRange(), and GetDrawRange().

sal_uInt8 ScPreviewLocationData::aDrawRangeId[SC_PREVIEW_MAXRANGES]
private

Definition at line 96 of file prevloc.hxx.

Referenced by AddCellRange(), and GetDrawRange().

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

Definition at line 95 of file prevloc.hxx.

Referenced by AddCellRange(), and GetDrawRange().

Entries_t ScPreviewLocationData::m_Entries
private
sal_uInt16 ScPreviewLocationData::nDrawRanges
private

Definition at line 97 of file prevloc.hxx.

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

SCTAB ScPreviewLocationData::nPrintTab
private

Definition at line 98 of file prevloc.hxx.

Referenced by GetPrintTab(), and SetPrintTab().

ScDocument* ScPreviewLocationData::pDoc
private

Definition at line 92 of file prevloc.hxx.

Referenced by GetOffsetPixel(), and GetTableInfo().

VclPtr<OutputDevice> ScPreviewLocationData::pWindow
private

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