LibreOffice Module sw (master)  1
Public Member Functions | Private Types | Static Private Member Functions | Private Attributes | List of all members
SwAccPreviewData Class Reference
Collaboration diagram for SwAccPreviewData:
[legend]

Public Member Functions

 SwAccPreviewData ()
 
void Update (const SwAccessibleMap &rAccMap, const std::vector< std::unique_ptr< PreviewPage >> &_rPreviewPages, const Fraction &_rScale, const SwPageFrame *_pSelectedPageFrame, const Size &_rPreviewWinSize)
 
void InvalidateSelection (const SwPageFrame *_pSelectedPageFrame)
 
const SwRectGetVisArea () const
 
void AdjustMapMode (MapMode &rMapMode, const Point &rPoint) const
 Adjust the MapMode so that the preview page appears at the proper position. More...
 
const SwPageFrameGetSelPage () const
 
void DisposePage (const SwPageFrame *pPageFrame)
 

Private Types

typedef std::vector< tools::RectangleRectangles
 

Static Private Member Functions

static void AdjustLogicPgRectToVisibleArea (SwRect &_iorLogicPgSwRect, const SwRect &_rPreviewPgSwRect, const Size &_rPreviewWinSize)
 adjust logic page rectangle to its visible part More...
 

Private Attributes

Rectangles maPreviewRects
 
Rectangles maLogicRects
 
SwRect maVisArea
 
Fraction maScale
 
const SwPageFramempSelPage
 

Detailed Description

Definition at line 644 of file accmap.cxx.

Member Typedef Documentation

typedef std::vector<tools::Rectangle> SwAccPreviewData::Rectangles
private

Definition at line 646 of file accmap.cxx.

Constructor & Destructor Documentation

SwAccPreviewData::SwAccPreviewData ( )

Definition at line 698 of file accmap.cxx.

Member Function Documentation

void SwAccPreviewData::AdjustLogicPgRectToVisibleArea ( SwRect _iorLogicPgSwRect,
const SwRect _rPreviewPgSwRect,
const Size _rPreviewWinSize 
)
staticprivate

adjust logic page rectangle to its visible part

Parameters
_iorLogicPgSwRectinput/output parameter - reference to the logic page rectangle, which has to be adjusted.
_rPreviewPgSwRectinput parameter - constant reference to the corresponding preview page rectangle; needed to determine the visible part of the logic page rectangle.
_rPreviewWinSizeinput parameter - constant reference to the preview window size in TWIP; needed to determine the visible part of the logic page rectangle

Definition at line 797 of file accmap.cxx.

References SwRect::Bottom(), SwRect::Intersection(), SwRect::Left(), SwRect::Right(), and SwRect::Top().

Referenced by Update().

void SwAccPreviewData::AdjustMapMode ( MapMode rMapMode,
const Point rPoint 
) const

Adjust the MapMode so that the preview page appears at the proper position.

rPoint identifies the page for which the MapMode should be adjusted. If bFromPreview is true, rPoint is a preview coordinate; else it's a document coordinate.

Definition at line 767 of file accmap.cxx.

References maLogicRects, maPreviewRects, maScale, MapMode::SetOrigin(), MapMode::SetScaleX(), and MapMode::SetScaleY().

void SwAccPreviewData::DisposePage ( const SwPageFrame pPageFrame)

Definition at line 790 of file accmap.cxx.

References mpSelPage.

const SwPageFrame* SwAccPreviewData::GetSelPage ( ) const
inline

Definition at line 693 of file accmap.cxx.

References mpSelPage.

const SwRect& SwAccPreviewData::GetVisArea ( ) const
inline

Definition at line 684 of file accmap.cxx.

References maVisArea.

void SwAccPreviewData::InvalidateSelection ( const SwPageFrame _pSelectedPageFrame)

Definition at line 750 of file accmap.cxx.

References mpSelPage.

void SwAccPreviewData::Update ( const SwAccessibleMap rAccMap,
const std::vector< std::unique_ptr< PreviewPage >> &  _rPreviewPages,
const Fraction _rScale,
const SwPageFrame _pSelectedPageFrame,
const Size _rPreviewWinSize 
)

Member Data Documentation

Rectangles SwAccPreviewData::maLogicRects
private

Definition at line 648 of file accmap.cxx.

Referenced by AdjustMapMode(), and Update().

Rectangles SwAccPreviewData::maPreviewRects
private

Definition at line 647 of file accmap.cxx.

Referenced by AdjustMapMode(), and Update().

Fraction SwAccPreviewData::maScale
private

Definition at line 651 of file accmap.cxx.

Referenced by AdjustMapMode(), and Update().

SwRect SwAccPreviewData::maVisArea
private

Definition at line 650 of file accmap.cxx.

Referenced by GetVisArea(), and Update().

const SwPageFrame* SwAccPreviewData::mpSelPage
private

Definition at line 653 of file accmap.cxx.

Referenced by DisposePage(), GetSelPage(), InvalidateSelection(), and Update().


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