LibreOffice Module sw (master)
1
|
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 SwRect & | GetVisArea () const |
void | AdjustMapMode (MapMode &rMapMode, const Point &rPoint) const |
Adjust the MapMode so that the preview page appears at the proper position. More... | |
const SwPageFrame * | GetSelPage () const |
void | DisposePage (const SwPageFrame *pPageFrame) |
Private Types | |
typedef std::vector< tools::Rectangle > | Rectangles |
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 SwPageFrame * | mpSelPage |
Definition at line 673 of file accmap.cxx.
|
private |
Definition at line 675 of file accmap.cxx.
SwAccPreviewData::SwAccPreviewData | ( | ) |
Definition at line 727 of file accmap.cxx.
|
staticprivate |
adjust logic page rectangle to its visible part
_iorLogicPgSwRect | input/output parameter - reference to the logic page rectangle, which has to be adjusted. |
_rPreviewPgSwRect | input parameter - constant reference to the corresponding preview page rectangle; needed to determine the visible part of the logic page rectangle. |
_rPreviewWinSize | input parameter - constant reference to the preview window size in TWIP; needed to determine the visible part of the logic page rectangle |
Definition at line 829 of file accmap.cxx.
References SwRect::AddBottom(), SwRect::AddLeft(), SwRect::AddRight(), SwRect::AddTop(), SwRect::Bottom(), SwRect::Intersection(), SwRect::Left(), Point, SwRect::Right(), and SwRect::Top().
Referenced by Update().
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 799 of file accmap.cxx.
References maLogicRects, maPreviewRects, maScale, Point, MapMode::SetOrigin(), MapMode::SetScaleX(), and MapMode::SetScaleY().
void SwAccPreviewData::DisposePage | ( | const SwPageFrame * | pPageFrame | ) |
Definition at line 822 of file accmap.cxx.
References mpSelPage.
|
inline |
Definition at line 722 of file accmap.cxx.
References mpSelPage.
|
inline |
Definition at line 713 of file accmap.cxx.
References maVisArea.
void SwAccPreviewData::InvalidateSelection | ( | const SwPageFrame * | _pSelectedPageFrame | ) |
Definition at line 779 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 | ||
) |
Definition at line 732 of file accmap.cxx.
References AdjustLogicPgRectToVisibleArea(), SwRect::Clear(), SwRect::IsEmpty(), maLogicRects, maPreviewRects, maScale, maVisArea, mpSelPage, and SwRect::Union().
|
private |
Definition at line 677 of file accmap.cxx.
Referenced by AdjustMapMode(), and Update().
|
private |
Definition at line 676 of file accmap.cxx.
Referenced by AdjustMapMode(), and Update().
|
private |
Definition at line 680 of file accmap.cxx.
Referenced by AdjustMapMode(), and Update().
|
private |
Definition at line 679 of file accmap.cxx.
Referenced by GetVisArea(), and Update().
|
private |
Definition at line 682 of file accmap.cxx.
Referenced by DisposePage(), GetSelPage(), InvalidateSelection(), and Update().